]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/_gdi_wrap.cpp
fix typo
[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]
580080c5
RD
2628#define SWIGTYPE_p_wxTGAHandler swig_types[162]
2629#define SWIGTYPE_p_wxTIFFHandler swig_types[163]
2630#define SWIGTYPE_p_wxUpdateUIEvent swig_types[164]
2631#define SWIGTYPE_p_wxValidator swig_types[165]
2632#define SWIGTYPE_p_wxWindow swig_types[166]
2633#define SWIGTYPE_p_wxWindowCreateEvent swig_types[167]
2634#define SWIGTYPE_p_wxWindowDC swig_types[168]
2635#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[169]
2636#define SWIGTYPE_p_wxXPMHandler swig_types[170]
2637static swig_type_info *swig_types[172];
2638static swig_module_info swig_module = {swig_types, 171, 0, 0, 0, 0};
32fe5131
RD
2639#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2640#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
d55e5bfc 2641
36ed4f51 2642/* -------- TYPES TABLE (END) -------- */
d55e5bfc 2643
1bd55598
RD
2644#if (PY_VERSION_HEX <= 0x02000000)
2645# if !defined(SWIG_PYTHON_CLASSIC)
2646# error "This python version requires to use swig with the '-classic' option"
2647# endif
2648#endif
2649#if (PY_VERSION_HEX <= 0x02020000)
2650# error "This python version requires to use swig with the '-nomodern' option"
2651#endif
2652#if (PY_VERSION_HEX <= 0x02020000)
2653# error "This python version requires to use swig with the '-nomodernargs' option"
2654#endif
2655#ifndef METH_O
2656# error "This python version requires to use swig with the '-nofastunpack' option"
2657#endif
d55e5bfc 2658
36ed4f51
RD
2659/*-----------------------------------------------
2660 @(target):= _gdi_.so
2661 ------------------------------------------------*/
2662#define SWIG_init init_gdi_
d55e5bfc 2663
36ed4f51 2664#define SWIG_name "_gdi_"
d55e5bfc 2665
1bd55598 2666#define SWIGVERSION 0x010329
d55e5bfc 2667
d55e5bfc 2668
1bd55598
RD
2669#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2670#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
d55e5bfc
RD
2671
2672
1bd55598
RD
2673#include <stdexcept>
2674
2675
2676namespace swig {
2677 class PyObject_ptr {
2678 protected:
2679 PyObject *_obj;
2680
2681 public:
2682 PyObject_ptr() :_obj(0)
2683 {
36ed4f51 2684 }
1bd55598
RD
2685
2686 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2687 {
2688 Py_XINCREF(_obj);
36ed4f51 2689 }
1bd55598
RD
2690
2691 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2692 {
2693 if (initial_ref) Py_XINCREF(_obj);
2694 }
2695
2696 PyObject_ptr & operator=(const PyObject_ptr& item)
2697 {
2698 Py_XINCREF(item._obj);
2699 Py_XDECREF(_obj);
2700 _obj = item._obj;
2701 return *this;
2702 }
2703
2704 ~PyObject_ptr()
2705 {
2706 Py_XDECREF(_obj);
2707 }
2708
2709 operator PyObject *() const
2710 {
2711 return _obj;
2712 }
2713
2714 PyObject *operator->() const
2715 {
2716 return _obj;
2717 }
2718 };
36ed4f51 2719}
d55e5bfc 2720
d55e5bfc 2721
1bd55598
RD
2722namespace swig {
2723 struct PyObject_var : PyObject_ptr {
2724 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2725
2726 PyObject_var & operator = (PyObject* obj)
2727 {
2728 Py_XDECREF(_obj);
2729 _obj = obj;
2730 return *this;
d55e5bfc 2731 }
1bd55598 2732 };
d55e5bfc
RD
2733}
2734
2735
1bd55598
RD
2736#include "wx/wxPython/wxPython.h"
2737#include "wx/wxPython/pyclasses.h"
2738
2739
2740 static const wxString wxPyEmptyString(wxEmptyString);
2741
2131d850
RD
2742 #define SWIG_From_long PyInt_FromLong
2743
2744
2745SWIGINTERNINLINE PyObject *
2746SWIG_From_int (int value)
2747{
2748 return SWIG_From_long (value);
2749}
2750
2751
1bd55598
RD
2752#include <limits.h>
2753#ifndef LLONG_MIN
2754# define LLONG_MIN LONG_LONG_MIN
2755#endif
2756#ifndef LLONG_MAX
2757# define LLONG_MAX LONG_LONG_MAX
2758#endif
2759#ifndef ULLONG_MAX
2760# define ULLONG_MAX ULONG_LONG_MAX
2761#endif
d55e5bfc
RD
2762
2763
da91cb0f
RD
2764SWIGINTERN int
2765SWIG_AsVal_long (PyObject* obj, long* val)
2766{
2767 if (PyNumber_Check(obj)) {
2768 if (val) *val = PyInt_AsLong(obj);
2769 return SWIG_OK;
2770 }
2771 return SWIG_TypeError;
2772}
2773
2774
36ed4f51 2775SWIGINTERN int
1bd55598 2776SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
36ed4f51
RD
2777{
2778 long v = 0;
2779 if (SWIG_AsVal_long(obj, &v) && v < 0) {
1bd55598 2780 return SWIG_TypeError;
36ed4f51
RD
2781 }
2782 else if (val)
2783 *val = (unsigned long)v;
1bd55598 2784 return SWIG_OK;
36ed4f51 2785}
d55e5bfc
RD
2786
2787
36ed4f51 2788SWIGINTERN int
1bd55598
RD
2789SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2790{
36ed4f51 2791 unsigned long v;
1bd55598
RD
2792 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2793 if (SWIG_IsOK(res)) {
2794 if ((v > UCHAR_MAX)) {
2795 return SWIG_OverflowError;
36ed4f51 2796 } else {
1bd55598 2797 if (val) *val = static_cast< unsigned char >(v);
36ed4f51 2798 }
1bd55598
RD
2799 }
2800 return res;
36ed4f51 2801}
d55e5bfc 2802
d55e5bfc 2803
1bd55598
RD
2804SWIGINTERNINLINE PyObject*
2805SWIG_From_unsigned_SS_long (unsigned long value)
36ed4f51 2806{
1bd55598
RD
2807 return (value > LONG_MAX) ?
2808 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
d55e5bfc
RD
2809}
2810
2811
1bd55598
RD
2812SWIGINTERNINLINE PyObject *
2813SWIG_From_unsigned_SS_char (unsigned char value)
2814{
2815 return SWIG_From_unsigned_SS_long (value);
2816}
d55e5bfc 2817
e9d6f3a4
RD
2818SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2819 wxColour temp, *obj = &temp;
2820 if ( other == Py_None ) return false;
2821 if ( ! wxColour_helper(other, &obj) ) {
2822 PyErr_Clear();
2823 return false;
2824 }
2825 return self->operator==(*obj);
2826 }
2827SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2828 wxColour temp, *obj = &temp;
2829 if ( other == Py_None ) return true;
2830 if ( ! wxColour_helper(other, &obj)) {
2831 PyErr_Clear();
2832 return true;
2833 }
2834 return self->operator!=(*obj);
2835 }
fc46b7f3
RD
2836
2837SWIGINTERN int
2838SWIG_AsVal_bool (PyObject *obj, bool *val)
2839{
2840 if (obj == Py_True) {
2841 if (val) *val = true;
2842 return SWIG_OK;
2843 } else if (obj == Py_False) {
2844 if (val) *val = false;
2845 return SWIG_OK;
2846 } else {
2847 long v = 0;
2848 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2849 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2850 return res;
2851 }
2852}
2853
2854SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2855 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
36ed4f51
RD
2856 int red = -1;
2857 int green = -1;
2858 int blue = -1;
fc46b7f3 2859 int alpha = wxALPHA_OPAQUE;
b39fe951 2860 if (self->IsOk()) {
36ed4f51
RD
2861 red = self->Red();
2862 green = self->Green();
2863 blue = self->Blue();
fc46b7f3 2864 alpha = self->Alpha();
36ed4f51
RD
2865 }
2866 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2867 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2868 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
fc46b7f3
RD
2869 if (includeAlpha)
2870 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
36ed4f51
RD
2871 return rv;
2872 }
1bd55598 2873SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
36ed4f51
RD
2874 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2875 }
d55e5bfc 2876
1bd55598
RD
2877SWIGINTERN int
2878SWIG_AsVal_int (PyObject * obj, int *val)
36ed4f51 2879{
1bd55598
RD
2880 long v;
2881 int res = SWIG_AsVal_long (obj, &v);
2882 if (SWIG_IsOK(res)) {
2883 if ((v < INT_MIN || v > INT_MAX)) {
2884 return SWIG_OverflowError;
2885 } else {
2886 if (val) *val = static_cast< int >(v);
2887 }
2888 }
2889 return res;
d55e5bfc
RD
2890}
2891
1bd55598 2892SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
36ed4f51
RD
2893 wxDash* dashes;
2894 int count = self->GetDashes(&dashes);
5a446332 2895 wxPyBlock_t blocked = wxPyBeginBlockThreads();
36ed4f51
RD
2896 PyObject* retval = PyList_New(0);
2897 for (int x=0; x<count; x++) {
2898 PyObject* pyint = PyInt_FromLong(dashes[x]);
2899 PyList_Append(retval, pyint);
2900 Py_DECREF(pyint);
2901 }
2902 wxPyEndBlockThreads(blocked);
2903 return retval;
2904 }
1bd55598 2905SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
5a446332 2906 wxPyBlock_t blocked = wxPyBeginBlockThreads();
36ed4f51
RD
2907 int size = PyList_Size(pyDashes);
2908 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
d55e5bfc 2909
36ed4f51
RD
2910 // black magic warning! The array of wxDashes needs to exist as
2911 // long as the pen does because wxPen does not copy the array. So
2912 // stick a copy in a Python string object and attach it to _self,
2913 // and then call SetDashes with a pointer to that array. Then
2914 // when the Python pen object is destroyed the array will be
2915 // cleaned up too.
2916 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2917 PyObject_SetAttrString(_self, "_dashes", strDashes);
2918
2919 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2920 delete [] dashes;
2921 Py_DECREF(strDashes);
2922 wxPyEndBlockThreads(blocked);
2923 }
1bd55598
RD
2924SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2925SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
d55e5bfc 2926
1bd55598
RD
2927SWIGINTERNINLINE PyObject *
2928SWIG_From_short (short value)
2929{
2930 return SWIG_From_long (value);
2931}
d55e5bfc
RD
2932
2933
36ed4f51 2934SWIGINTERN int
1bd55598
RD
2935SWIG_AsVal_short (PyObject * obj, short *val)
2936{
36ed4f51 2937 long v;
1bd55598
RD
2938 int res = SWIG_AsVal_long (obj, &v);
2939 if (SWIG_IsOK(res)) {
2940 if ((v < SHRT_MIN || v > SHRT_MAX)) {
2941 return SWIG_OverflowError;
36ed4f51 2942 } else {
1bd55598
RD
2943 if (val) *val = static_cast< short >(v);
2944 }
2945 }
2946 return res;
d55e5bfc
RD
2947}
2948
2949
fc46b7f3
RD
2950#include <wx/rawbmp.h>
2951
2952
8f514ab4
RD
2953// See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2954// appears to me that the other platforms are already doing it, so I'll just
2955// automatically do it for wxMSW here.
2956#ifdef __WXMSW__
2957#define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2958#define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2959#else
2960#define wxPy_premultiply(p, a) (p)
2961#define wxPy_unpremultiply(p, a) (p)
2962#endif
2963
2964
36ed4f51 2965#include <wx/image.h>
d55e5bfc 2966
36ed4f51
RD
2967 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2968 char** cArray = NULL;
2969 int count;
d55e5bfc 2970
36ed4f51
RD
2971 if (!PyList_Check(listOfStrings)) {
2972 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2973 return NULL;
2974 }
2975 count = PyList_Size(listOfStrings);
2976 cArray = new char*[count];
d55e5bfc 2977
36ed4f51
RD
2978 for(int x=0; x<count; x++) {
2979 // TODO: Need some validation and error checking here
2980 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2981 }
2982 return cArray;
d55e5bfc 2983 }
d55e5bfc
RD
2984
2985
1bd55598 2986SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
fc46b7f3
RD
2987 char** cArray = NULL;
2988 wxBitmap* bmp;
2989
2990 cArray = ConvertListOfStrings(listOfStrings);
2991 if (! cArray)
2992 return NULL;
2993 bmp = new wxBitmap(cArray);
2994 delete [] cArray;
2995 return bmp;
2996 }
1bd55598 2997SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
fc46b7f3
RD
2998 char* buf;
2999 Py_ssize_t length;
3000 PyString_AsStringAndSize(bits, &buf, &length);
3001 return new wxBitmap(buf, width, height, depth);
3002 }
1bd55598 3003SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
36ed4f51
RD
3004 wxSize size(self->GetWidth(), self->GetHeight());
3005 return size;
3006 }
1bd55598 3007SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
36ed4f51
RD
3008 wxMask *mask = new wxMask(*self, colour);
3009 self->SetMask(mask);
3010 }
1bd55598 3011SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
36ed4f51
RD
3012 self->SetWidth(size.x);
3013 self->SetHeight(size.y);
3014 }
8f514ab4
RD
3015SWIGINTERN void wxBitmap_CopyFromBuffer(wxBitmap *self,buffer data,int DATASIZE){
3016 int height=self->GetHeight();
3017 int width=self->GetWidth();
fc46b7f3 3018
8f514ab4
RD
3019 if (DATASIZE != width * height * 3) {
3020 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3021 }
3022 wxNativePixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3023 if (! pixData) {
3024 // raise an exception...
3025 wxPyErr_SetString(PyExc_RuntimeError,
3026 "Failed to gain raw access to bitmap data.");
3027 return;
3028 }
fc46b7f3 3029
8f514ab4
RD
3030 wxNativePixelData::Iterator p(pixData);
3031 for (int y=0; y<height; y++) {
3032 wxNativePixelData::Iterator rowStart = p;
3033 for (int x=0; x<width; x++) {
3034 p.Red() = *(data++);
3035 p.Green() = *(data++);
3036 p.Blue() = *(data++);
3037 ++p;
3038 }
3039 p = rowStart;
3040 p.OffsetY(pixData, 1);
3041 }
3042 }
3043SWIGINTERN void wxBitmap_CopyFromBufferRGBA(wxBitmap *self,buffer data,int DATASIZE){
3044 int height=self->GetHeight();
3045 int width=self->GetWidth();
3046
3047 if (DATASIZE != width * height * 4) {
3048 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3049 }
3050 wxAlphaPixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3051 if (! pixData) {
3052 // raise an exception...
3053 wxPyErr_SetString(PyExc_RuntimeError,
3054 "Failed to gain raw access to bitmap data.");
3055 return;
3056 }
3057
3058 pixData.UseAlpha();
3059 wxAlphaPixelData::Iterator p(pixData);
3060 for (int y=0; y<height; y++) {
3061 wxAlphaPixelData::Iterator rowStart = p;
3062 for (int x=0; x<width; x++) {
3063 byte a = data[3];
3064 p.Red() = wxPy_premultiply(*(data++), a);
3065 p.Green() = wxPy_premultiply(*(data++), a);
3066 p.Blue() = wxPy_premultiply(*(data++), a);
3067 p.Alpha() = a; data++;
3068 ++p;
3069 }
3070 p = rowStart;
3071 p.OffsetY(pixData, 1);
3072 }
3073 }
3074SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? self->IsSameAs(*other) : false; }
3075SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? !self->IsSameAs(*other) : true; }
fc46b7f3
RD
3076
3077 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
3078 buffer data, int DATASIZE,
3079 buffer alpha, int ALPHASIZE)
3080 {
3081 if (DATASIZE != width*height*3) {
3082 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3083 return NULL;
3084 }
3085
3086 if (ALPHASIZE != width*height) {
3087 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3088 return NULL;
3089 }
3090
3091 wxBitmap* bmp = new wxBitmap(width, height, 32);
3092 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3093 if (! pixData) {
3094 // raise an exception...
3095 wxPyErr_SetString(PyExc_RuntimeError,
3096 "Failed to gain raw access to bitmap data.");
3097 return NULL;
3098 }
3099
3100 pixData.UseAlpha();
3101 wxAlphaPixelData::Iterator p(pixData);
3102 for (int y=0; y<height; y++) {
3103 wxAlphaPixelData::Iterator rowStart = p;
3104 for (int x=0; x<width; x++) {
3105 byte a = *(alpha++);
3106 p.Red() = wxPy_premultiply(*(data++), a);
3107 p.Green() = wxPy_premultiply(*(data++), a);
3108 p.Blue() = wxPy_premultiply(*(data++), a);
3109 p.Alpha() = a;
3110 ++p;
3111 }
3112 p = rowStart;
3113 p.OffsetY(pixData, 1);
3114 }
3115 return bmp;
3116 }
3117
3118 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3119 {
3120 if (DATASIZE != width*height*3) {
3121 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3122 return NULL;
3123 }
3124
3125 wxBitmap* bmp = new wxBitmap(width, height, 24);
3126 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3127 if (! pixData) {
3128 // raise an exception...
3129 wxPyErr_SetString(PyExc_RuntimeError,
3130 "Failed to gain raw access to bitmap data.");
3131 return NULL;
3132 }
3133
3134 wxNativePixelData::Iterator p(pixData);
3135 for (int y=0; y<height; y++) {
3136 wxNativePixelData::Iterator rowStart = p;
3137 for (int x=0; x<width; x++) {
3138 p.Red() = *(data++);
3139 p.Green() = *(data++);
3140 p.Blue() = *(data++);
3141 ++p;
3142 }
3143 p = rowStart;
3144 p.OffsetY(pixData, 1);
3145 }
3146 return bmp;
3147 }
3148
3149
3150 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3151 {
3152 if (DATASIZE != width*height*4) {
3153 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3154 return NULL;
3155 }
3156
3157 wxBitmap* bmp = new wxBitmap(width, height, 32);
3158 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3159 if (! pixData) {
3160 // raise an exception...
3161 wxPyErr_SetString(PyExc_RuntimeError,
3162 "Failed to gain raw access to bitmap data.");
3163 return NULL;
3164 }
3165
3166 pixData.UseAlpha();
3167 wxAlphaPixelData::Iterator p(pixData);
3168 for (int y=0; y<height; y++) {
3169 wxAlphaPixelData::Iterator rowStart = p;
3170 for (int x=0; x<width; x++) {
3171 byte a = data[3];
3172 p.Red() = wxPy_premultiply(*(data++), a);
3173 p.Green() = wxPy_premultiply(*(data++), a);
3174 p.Blue() = wxPy_premultiply(*(data++), a);
3175 p.Alpha() = a; data++;
3176 ++p;
3177 }
3178 p = rowStart;
3179 p.OffsetY(pixData, 1);
3180 }
3181 return bmp;
3182 }
3183
3184
3185 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3186
3187SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3188SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3189SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3190 self->Red() = red;
3191 self->Green() = green;
3192 self->Blue() = blue;
3193 }
3194SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3195 PyObject* rv = PyTuple_New(3);
3196 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3197 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3198 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3199 return rv;
3200 }
3201
3202 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3203
3204SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3205SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3206SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3207 self->Red() = wxPy_premultiply(red, alpha);
3208 self->Green() = wxPy_premultiply(green, alpha);
3209 self->Blue() = wxPy_premultiply(blue, alpha);
3210 self->Alpha() = alpha;
3211 }
3212SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3213 PyObject* rv = PyTuple_New(4);
3214 int red = self->Red();
3215 int green = self->Green();
3216 int blue = self->Blue();
3217 int alpha = self->Alpha();
3218
3219 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3220 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3221 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3222 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3223 return rv;
3224 }
1bd55598 3225SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
b39fe951 3226 if ( !colour.IsOk() )
36ed4f51
RD
3227 return new wxMask(bitmap, *wxBLACK);
3228 else
3229 return new wxMask(bitmap, colour);
3230 }
d55e5bfc 3231
36ed4f51 3232#include <wx/iconbndl.h>
d55e5bfc 3233
1bd55598 3234SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
36ed4f51
RD
3235 wxIcon* icon = new wxIcon();
3236 icon->CopyFromBitmap(bmp);
3237 return icon;
3238 }
1bd55598 3239SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
36ed4f51
RD
3240 char** cArray = NULL;
3241 wxIcon* icon;
d55e5bfc 3242
36ed4f51
RD
3243 cArray = ConvertListOfStrings(listOfStrings);
3244 if (! cArray)
3245 return NULL;
3246 icon = new wxIcon(cArray);
3247 delete [] cArray;
3248 return icon;
3249 }
1bd55598 3250SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
d55e5bfc
RD
3251
3252
d55e5bfc 3253
36ed4f51 3254 return new wxIconLocation(*filename);
d55e5bfc 3255
36ed4f51 3256 }
1bd55598 3257SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
d55e5bfc
RD
3258
3259
d55e5bfc 3260
36ed4f51 3261 // do nothing
d55e5bfc 3262
36ed4f51 3263 }
1bd55598 3264SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
5cbf236d
RD
3265
3266
d55e5bfc 3267
36ed4f51 3268 return -1;
d55e5bfc 3269
36ed4f51 3270 }
1bd55598 3271SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
36ed4f51 3272#ifdef __WXGTK__
fef4c27a
RD
3273 wxImage img(cursorName, type);
3274 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3275 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3276 return new wxCursor(img);
36ed4f51 3277#else
fef4c27a 3278 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
36ed4f51
RD
3279#endif
3280 }
d55e5bfc 3281
d55e5bfc 3282
1bd55598 3283SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
36ed4f51
RD
3284 (*self) ++;
3285 }
1bd55598 3286SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
36ed4f51
RD
3287 return self->operator bool();
3288 }
d55e5bfc 3289
36ed4f51
RD
3290#include <wx/fontutil.h>
3291#include <wx/fontmap.h>
3292#include <wx/fontenum.h>
d55e5bfc 3293
1bd55598 3294SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
36ed4f51
RD
3295 return self->ToString();
3296 }
d55e5bfc 3297
36ed4f51
RD
3298 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3299 static wxNativeEncodingInfo info;
3300 if ( wxGetNativeFontEncoding(encoding, &info) )
3301 return &info;
3302 else
3303 return NULL;
d55e5bfc 3304 }
d55e5bfc 3305
1bd55598
RD
3306
3307SWIGINTERNINLINE PyObject *
3308SWIG_From_size_t (size_t value)
3309{
3310 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3311}
3312
3313
3314SWIGINTERNINLINE int
3315SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3316{
3317 unsigned long v;
3318 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3319 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3320 return res;
3321}
3322
3323SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
36ed4f51
RD
3324 wxFontEncoding alt_enc;
3325 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3326 return PyInt_FromLong(alt_enc);
3327 else {
3328 Py_INCREF(Py_None);
3329 return Py_None;
3330 }
3331 }
1bd55598 3332SWIGINTERN wxFont *new_wxFont(wxString const &info){
a97cefba
RD
3333 wxNativeFontInfo nfi;
3334 nfi.FromString(info);
3335 return new wxFont(nfi);
3336 }
1bd55598 3337SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3338 return wxFont::New(pointSize, family, flags, face, encoding);
3339 }
1bd55598 3340SWIGINTERN 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
3341 return wxFontBase::New(pixelSize, family,
3342 style, weight, underlined,
3343 face, encoding);
3344 }
1bd55598 3345SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3346 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3347 }
1bd55598
RD
3348SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3349SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
d55e5bfc 3350
36ed4f51
RD
3351class wxPyFontEnumerator : public wxFontEnumerator {
3352public:
3353 wxPyFontEnumerator() {}
3354 ~wxPyFontEnumerator() {}
d55e5bfc 3355
36ed4f51
RD
3356 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3357 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
d55e5bfc 3358
36ed4f51
RD
3359 PYPRIVATE;
3360};
d55e5bfc 3361
36ed4f51
RD
3362IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3363IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
d55e5bfc 3364
36ed4f51 3365
704eda0c 3366SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
e9d6f3a4 3367 PyObject* ret;
704eda0c 3368 wxArrayString arr = wxFontEnumerator::GetEncodings();
e9d6f3a4 3369 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3370 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3371 wxPyEndBlockThreads(blocked);
3372 return ret;
36ed4f51 3373 }
704eda0c 3374SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
e9d6f3a4 3375 PyObject* ret;
704eda0c 3376 wxArrayString arr = wxFontEnumerator::GetFacenames();
e9d6f3a4 3377 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3378 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3379 wxPyEndBlockThreads(blocked);
3380 return ret;
36ed4f51
RD
3381 }
3382
3383#include <locale.h>
3384
1bd55598 3385SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
36ed4f51
RD
3386 wxLocale* loc;
3387 if (language == -1)
3388 loc = new wxLocale();
3389 else
3390 loc = new wxLocale(language, flags);
3391 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3392 // for the floating point conversions and such to work right.
3393#if PY_VERSION_HEX < 0x02040000
3394 setlocale(LC_NUMERIC, "C");
3395#endif
3396 return loc;
3397 }
1bd55598 3398SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
36ed4f51
RD
3399 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3400 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3401 // for the floating point conversions and such to work right.
3402#if PY_VERSION_HEX < 0x02040000
3403 setlocale(LC_NUMERIC, "C");
3404#endif
3405 return rc;
3406 }
1bd55598 3407SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
36ed4f51
RD
3408 bool rc = self->Init(language, flags);
3409 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3410 // for the floating point conversions and such to work right.
3411#if PY_VERSION_HEX < 0x02040000
3412 setlocale(LC_NUMERIC, "C");
3413#endif
3414 return rc;
3415 }
3416
fc46b7f3
RD
3417class wxPyLocale : public wxLocale
3418{
3419public:
3420 wxPyLocale();
3421
3422 wxPyLocale(const wxChar *szName, // name (for messages)
3423 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3424 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3425 bool bLoadDefault = true, // preload wxstd.mo?
3426 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3427
3428 wxPyLocale(int language, // wxLanguage id or custom language
3429 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3430
3431 ~wxPyLocale();
3432
3433 virtual const wxChar *GetString(const wxChar *szOrigString,
3434 const wxChar *szDomain = NULL) const;
3435 virtual const wxChar *GetString(const wxChar *szOrigString,
3436 const wxChar *szOrigString2, size_t n,
3437 const wxChar *szDomain = NULL) const;
3438
3439 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3440 const wxChar *szDomain = NULL) const;
3441 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3442 const wxChar *szOrigString2, size_t n,
3443 const wxChar *szDomain = NULL) const;
3444
3445 PYPRIVATE;
3446private:
3447 DECLARE_NO_COPY_CLASS(wxPyLocale)
3448};
3449
3450wxPyLocale::wxPyLocale() : wxLocale()
3451{
3452}
3453
3454wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3455 const wxChar *szShort, // dir prefix (for msg files)
3456 const wxChar *szLocale, // locale (for setlocale)
3457 bool bLoadDefault, // preload wxstd.mo?
3458 bool bConvertEncoding) // convert Win<->Unix if necessary?
3459 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3460{
3461}
3462
3463wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3464 int flags) : wxLocale(language, flags)
3465{
3466}
3467
3468wxPyLocale::~wxPyLocale()
3469{
3470}
3471
3472const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3473 const wxChar *szDomain) const
3474{
3475 wxChar *str = GetSingularString(szOrigString, szDomain);
3476 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3477}
3478
3479const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3480 const wxChar *szOrigString2, size_t n,
3481 const wxChar *szDomain) const
3482{
3483 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3484 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3485}
3486
3487wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3488 const wxChar *szDomain) const
3489{
3490 bool found;
3491 static wxString str;
3492 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3493 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3494 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3495 PyObject* param1 = wx2PyString(szOrigString);
3496 PyObject* param2 = wx2PyString(szDomain);
3497 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3498 Py_DECREF(param1);
3499 Py_DECREF(param2);
3500 if (ret) {
3501 str = Py2wxString(ret);
3502 Py_DECREF(ret);
3503 }
3504 }
3505 wxPyEndBlockThreads(blocked);
3506 return (found ? (wxChar*)str.c_str() : NULL);
3507}
3508
3509wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3510 const wxChar *szOrigString2, size_t n,
3511 const wxChar *szDomain) const
3512{
3513 bool found;
3514 static wxString str;
3515 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.
3516 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3517 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3518 PyObject* param1 = wx2PyString(szOrigString);
3519 PyObject* param2 = wx2PyString(szOrigString2);
3520 PyObject* param4 = wx2PyString(szDomain);
3521 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3522 Py_DECREF(param1);
3523 Py_DECREF(param2);
3524 Py_DECREF(param4);
3525 if( ret) {
3526 str = Py2wxString(ret);
3527 Py_DECREF(ret);
3528 }
3529 }
3530 wxPyEndBlockThreads(blocked);
3531 return (found ? (wxChar*)str.c_str() : NULL);
3532}
3533
3534SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3535 wxPyLocale* loc;
3536 if (language == -1)
3537 loc = new wxPyLocale();
3538 else
3539 loc = new wxPyLocale(language, flags);
3540 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3541 // for the floating point conversions and such to work right.
3542#if PY_VERSION_HEX < 0x02040000
3543 setlocale(LC_NUMERIC, "C");
3544#endif
3545 return loc;
3546 }
3547
36ed4f51
RD
3548#include "wx/wxPython/pydrawxxx.h"
3549
1bd55598 3550SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
36ed4f51
RD
3551 wxColour col;
3552 self->GetPixel(x, y, &col);
3553 return col;
3554 }
1bd55598 3555SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
36ed4f51
RD
3556 wxColour col;
3557 self->GetPixel(pt, &col);
3558 return col;
3559 }
3560
3561SWIGINTERN int
1bd55598 3562SWIG_AsVal_double (PyObject *obj, double* val)
36ed4f51
RD
3563{
3564 if (PyNumber_Check(obj)) {
3565 if (val) *val = PyFloat_AsDouble(obj);
1bd55598 3566 return SWIG_OK;
d55e5bfc 3567 }
1bd55598 3568 return SWIG_TypeError;
36ed4f51
RD
3569}
3570
1bd55598 3571SWIGINTERN 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
3572 wxRect rv;
3573 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3574 return rv;
3575 }
1bd55598 3576SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
36ed4f51
RD
3577 wxRect rect;
3578 self->GetClippingBox(rect);
3579 return rect;
3580 }
1bd55598 3581SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
36ed4f51
RD
3582 wxArrayInt widths;
3583 self->GetPartialTextExtents(text, widths);
3584 return widths;
3585 }
3586
1bd55598 3587 #define SWIG_From_double PyFloat_FromDouble
36ed4f51 3588
1bd55598 3589SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3590 self->SetLogicalOrigin(point.x, point.y);
3591 }
1bd55598 3592SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3593 self->SetDeviceOrigin(point.x, point.y);
3594 }
1bd55598 3595SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3596 self->CalcBoundingBox(point.x, point.y);
3597 }
1bd55598 3598SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3599 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3600 }
1bd55598 3601SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3602 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3603 }
1bd55598 3604SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3605 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3606 }
1bd55598 3607SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3608 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3609 }
1bd55598 3610SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3611 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3612 }
1bd55598 3613SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
36ed4f51
RD
3614 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3615 }
3616
3617static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3618 *x1 = dc->MinX();
3619 *y1 = dc->MinY();
3620 *x2 = dc->MaxX();
3621 *y2 = dc->MaxY();
3622}
3623
3624
3625#include <wx/dcbuffer.h>
3626
3627
3628#include <wx/dcps.h>
3629
3630
3631#include <wx/metafile.h>
3632
3633
72ef6efb
RD
3634#include <wx/graphics.h>
3635
3636
3637#if !wxUSE_GRAPHICS_CONTEXT
70d7cb34
RD
3638// C++ stub classes for platforms or build configurations that don't have
3639// wxGraphicsContext yet.
72ef6efb 3640
70d7cb34
RD
3641
3642class wxGraphicsObject : public wxObject
72ef6efb
RD
3643{
3644public :
70d7cb34 3645 wxGraphicsObject( wxGraphicsRenderer* ) {
72ef6efb 3646 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34
RD
3647 "wx.GraphicsObject is not available on this platform.");
3648 }
3649 wxGraphicsObject( const wxGraphicsObject& ) {}
3650 virtual ~wxGraphicsObject() {}
3651 bool IsNull() const { return false; }
3652 wxGraphicsRenderer* GetRenderer() const { return NULL; }
3653} ;
3654
3655
3656
3657class wxGraphicsPen : public wxGraphicsObject
3658{
3659 wxGraphicsPen() {}
3660 virtual ~wxGraphicsPen() {}
3661} ;
3662wxGraphicsPen wxNullGraphicsPen;
3663
3664
3665
3666class wxGraphicsBrush : public wxGraphicsObject
3667{
3668public :
3669 wxGraphicsBrush() {}
3670 virtual ~wxGraphicsBrush() {}
3671} ;
3672wxGraphicsBrush wxNullGraphicsBrush;
3673
3674
3675
3676class wxGraphicsFont : public wxGraphicsObject
3677{
3678public :
3679 wxGraphicsFont() {}
3680 virtual ~wxGraphicsFont() {}
3681} ;
3682wxGraphicsFont wxNullGraphicsFont;
3683
3684
3685
3686class wxGraphicsPath : public wxGraphicsObject
3687{
3688public :
3689 wxGraphicsPath(wxGraphicsRenderer* ) {
3690 PyErr_SetString(PyExc_NotImplementedError,
3691 "wx.GraphicsPath is not available on this platform.");
72ef6efb
RD
3692 }
3693 virtual ~wxGraphicsPath() {}
70d7cb34 3694
72ef6efb 3695 void MoveToPoint( wxDouble, wxDouble ) {}
70d7cb34
RD
3696 void MoveToPoint( const wxPoint2DDouble& ) {}
3697 void AddLineToPoint( wxDouble, wxDouble ) {}
3698 void AddLineToPoint( const wxPoint2DDouble& ) {}
72ef6efb 3699 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
70d7cb34
RD
3700 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3701 void AddPath( const wxGraphicsPath* ) {}
72ef6efb
RD
3702 void CloseSubpath() {}
3703 void GetCurrentPoint( wxDouble&, wxDouble&) {}
70d7cb34 3704 wxPoint2DDouble GetCurrentPoint() { reutrn wxPoint2D(0,0); }
72ef6efb 3705 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
70d7cb34 3706 void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {}
72ef6efb
RD
3707
3708 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3709 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3710 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3711 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3712
70d7cb34
RD
3713 void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3714 void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3715 void * GetNativePath() const { return NULL; }
3716 void UnGetNativePath(void *) {}
3717 void Transform( wxGraphicsMatrix* ) {}
3718 void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) {}
3719 wxRect2D GetBox() { return wxRect2D(0,0,0,0); }
3720
3721 bool Contains( wxDouble , wxDouble , int ) { return false; }
3722 bool Contains( const wxPoint2DDouble& , int ) { return false; }
3723};
5c8c7dd3 3724wxGraphicsPath wxNullGraphicsPath;
70d7cb34
RD
3725
3726
3727class wxGraphicsMatrix : public wxGraphicsObject
3728{
3729public :
3730 wxGraphicsMatrix(wxGraphicsRenderer* ) {
3731 PyErr_SetString(PyExc_NotImplementedError,
3732 "wx.GraphicsMatrix is not available on this platform.");
3733 }
3734 virtual ~wxGraphicsMatrix() {}
70d7cb34
RD
3735 virtual void Concat( const wxGraphicsMatrix * ) {}
3736 virtual void Copy( const wxGraphicsMatrix * ) {}
3737 virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble ,
3738 wxDouble , wxDouble ) {}
3739 virtual void Invert() {}
3740 virtual bool IsEqual( const wxGraphicsMatrix* t) const {}
3741 virtual bool IsIdentity() { return false; }
3742 virtual void Translate( wxDouble , wxDouble ) {}
3743 virtual void Scale( wxDouble , wxDouble ) {}
3744 virtual void Rotate( wxDouble ) {}
3745 virtual void TransformPoint( wxDouble *, wxDouble * ) {}
3746 virtual void TransformDistance( wxDouble *, wxDouble * ) {}
3747 virtual void * GetNativeMatrix() const { return NULL; }
72ef6efb 3748};
5c8c7dd3 3749wxGraphicsMatrix wxNullGraphicsMatrix;
72ef6efb 3750
70d7cb34
RD
3751
3752class wxGraphicsContext : public wxGraphicsObject
72ef6efb
RD
3753{
3754public:
70d7cb34
RD
3755
3756 wxGraphicsContext(wxGraphicsRenderer* ) {
72ef6efb 3757 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3758 "wx.GraphicsContext is not available on this platform.");
72ef6efb 3759 }
70d7cb34 3760
72ef6efb 3761 virtual ~wxGraphicsContext() {}
70d7cb34
RD
3762
3763 static wxGraphicsContext* Create( const wxWindowDC& ) {
72ef6efb 3764 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3765 "wx.GraphicsContext is not available on this platform.");
72ef6efb 3766 }
b876c1e4 3767
70d7cb34 3768 static wxGraphicsContext* CreateFromNative( void * ) {
b876c1e4 3769 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34
RD
3770 "wx.GraphicsContext is not available on this platform.");
3771 }
b876c1e4 3772
70d7cb34
RD
3773 static wxGraphicsContext* CreateFromNativeWindow( void * ) {
3774 PyErr_SetString(PyExc_NotImplementedError,
3775 "wx.GraphicsContext is not available on this platform.");
3776 }
3777
3778 static wxGraphicsContext* Create( wxWindow* ) {
3779 PyErr_SetString(PyExc_NotImplementedError,
3780 "wx.GraphicsContext is not available on this platform.");
3781 }
3782
3783 wxGraphicsPath * CreatePath() { return NULL; }
3784
3785 virtual wxGraphicsPen CreatePen(const wxPen& ) { return NULL; }
3786
3787 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return NULL; }
3788
3789 virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3790 const wxColour&, const wxColour&) { return NULL; }
3791
3792 virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo,
3793 wxDouble xc, wxDouble yc, wxDouble radius,
3794 const wxColour &oColor, const wxColour &cColor) { return NULL; }
3795
3796 virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return NULL; }
3797
3798 virtual wxGraphicsMatrix* CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble,
3799 wxDouble, wxDouble) { return NULL; }
3800
3801 virtual void PushState() {}
3802 virtual void PopState() {}
3803 virtual void Clip( const wxRegion & ) {}
3804 virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3805 virtual void ResetClip() {}
3806 virtual void * GetNativeContext() { return NULL; }
3807 virtual void Translate( wxDouble , wxDouble ) {}
3808 virtual void Scale( wxDouble , wxDouble ) {}
3809 virtual void Rotate( wxDouble ) {}
3810 virtual void ConcatTransform( const wxGraphicsMatrix* ) {}
3811 virtual void SetTransform( const wxGraphicsMatrix* ) {}
3812 virtual void GetTransform( wxGraphicsMatrix* ) {}
3813
3814 virtual void SetPen( const wxGraphicsPen& ) {}
3815 void SetPen( const wxPen& ) {}
3816
3817 virtual void SetBrush( const wxGraphicsBrush& ) {}
3818 void SetBrush( const wxBrush& ) {}
3819
3820 virtual void SetFont( const wxGraphicsFont& ) {}
3821 void SetFont( const wxFont&, const wxColour& ) {}
3822
3823 virtual void StrokePath( const wxGraphicsPath * ) {}
3824 virtual void FillPath( const wxGraphicsPath *, int ) {}
3825 virtual void DrawPath( const wxGraphicsPath *, int ) {}
3826
3827 virtual void DrawText( const wxString &, wxDouble , wxDouble ) {}
3828 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3829 virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3830 wxDouble *, wxDouble * ) const {}
3831 virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3832
3833 virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3834 virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3835
3836 virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3837 virtual void StrokeLines( size_t , const wxPoint2DDouble *) {}
3838 virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3839 virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3840 virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3841 virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3842 virtual void DrawRoundedRectangle( wxDouble wxDouble , wxDouble , wxDouble , wxDouble ) {}
3843 virtual bool ShouldOffset() const { return false; }
3844};
3845
3846
3847class wxGraphicsRenderer : public wxObject
3848{
3849public :
3850 wxGraphicsRenderer() {
3851 PyErr_SetString(PyExc_NotImplementedError,
3852 "wx.GraphicsRenderer is not available on this platform.");
3853 }
3854
3855 virtual ~wxGraphicsRenderer() {}
3856
3857 static wxGraphicsRenderer* GetDefaultRenderer(
3858 PyErr_SetString(PyExc_NotImplementedError,
3859 "wx.GraphicsRenderer is not available on this platform.");
3860 );
3861
3862 virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; }
3863 virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; }
3864 virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; }
3865 virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; }
3866
3867 virtual wxGraphicsPath * CreatePath() { return NULL; }
3868
3869 virtual wxGraphicsMatrix * CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble ,
3870 wxDouble , wxDouble ) { return NULL; }
3871
3872 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGaphicsPen; }
3873 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGaphicsBrush; }
3874 virtual wxGraphicsBrush CreateLinearGradientBrush(xDouble , wxDouble , wxDouble , wxDouble ,
3875 const wxColour&, const wxColour&) { return wxNullGaphicsBrush; }
3876 virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3877 const wxColour &, const wxColour &) { return wxNullGaphicsBrush; }
3878 virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGaphicsFont; }
72ef6efb
RD
3879};
3880
3881
70d7cb34 3882
72ef6efb
RD
3883class wxGCDC: public wxWindowDC
3884{
3885public:
3886 wxGCDC(const wxWindowDC&) {
3887 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3888 PyErr_SetString(PyExc_NotImplementedError,
3889 "wxGCDC is not available on this platform.");
3890 wxPyEndBlockThreads(blocked);
3891 }
70d7cb34 3892
72ef6efb
RD
3893 wxGCDC() {
3894 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3895 PyErr_SetString(PyExc_NotImplementedError,
3896 "wxGCDC is not available on this platform.");
3897 wxPyEndBlockThreads(blocked);
3898 }
70d7cb34 3899
72ef6efb
RD
3900 virtual ~wxGCDC() {}
3901
b876c1e4
RD
3902 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3903 void SetGraphicsContext( wxGraphicsContext* ) {}
72ef6efb
RD
3904};
3905
3906#endif
3907
5c8c7dd3
RD
3908SWIGINTERN void wxGraphicsMatrix_Copy(wxGraphicsMatrix *self,wxGraphicsMatrix const &t){
3909 *self = t;
3910 }
be68621e
RD
3911SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){
3912 wxDouble width = 0.0,
3913 height = 0.0;
3914 self->GetTextExtent(text, &width, &height, NULL, NULL);
3915 // thread wrapers are turned off for this .i file, so no need to acquire GIL...
3916 PyObject* rv = PyTuple_New(2);
3917 PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width));
3918 PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height));
3919 return rv;
3920 }
b39fe951
RD
3921SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3922 wxArrayDouble widths;
3923 self->GetPartialTextExtents(text, widths);
3924 return widths;
3925 }
f8eb59b9 3926SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
b39fe951
RD
3927 size_t c1, c2, count;
3928 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3929 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3930
3931 if ( beginP != NULL && endP != NULL )
3932 {
3933 count = wxMin(c1, c2);
3934 self->StrokeLines(count, beginP, endP);
3935 }
3936 delete [] beginP;
3937 delete [] endP;
3938 }
72ef6efb 3939
0a27f394
RD
3940#include "wx/dcgraph.h"
3941
3942
66493fc7
RD
3943#include <wx/overlay.h>
3944
3945
36ed4f51 3946
1bd55598 3947SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
36ed4f51
RD
3948 self->AddColour(name, wxColour(red, green, blue));
3949 }
3950
da91cb0f
RD
3951 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3952 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3953 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3954 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3955
3956
36ed4f51
RD
3957#include <wx/effects.h>
3958
be9b1dca
RD
3959
3960#include "wx/renderer.h"
3961
3962
32fe5131 3963SWIGINTERNINLINE PyObject*
1bd55598 3964 SWIG_From_bool (bool value)
be9b1dca 3965{
1bd55598 3966 return PyBool_FromLong(value ? 1 : 0);
be9b1dca
RD
3967}
3968
27e45892
RD
3969
3970#include "wx/wxPython/pseudodc.h"
3971
3972SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3973 wxRect rect;
3974 self->GetIdBounds(id, rect);
3975 return rect;
3976 }
36ed4f51
RD
3977#ifdef __cplusplus
3978extern "C" {
3979#endif
1bd55598
RD
3980SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3981 PyObject *resultobj = 0;
3982 wxGDIObject *result = 0 ;
3983
3984 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3985 {
3986 if (!wxPyCheckForApp()) SWIG_fail;
3987 PyThreadState* __tstate = wxPyBeginAllowThreads();
3988 result = (wxGDIObject *)new wxGDIObject();
3989 wxPyEndAllowThreads(__tstate);
3990 if (PyErr_Occurred()) SWIG_fail;
3991 }
3992 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3993 return resultobj;
3994fail:
3995 return NULL;
d55e5bfc
RD
3996}
3997
3998
1bd55598
RD
3999SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4000 PyObject *resultobj = 0;
4001 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4002 void *argp1 = 0 ;
4003 int res1 = 0 ;
4004 PyObject *swig_obj[1] ;
4005
4006 if (!args) SWIG_fail;
4007 swig_obj[0] = args;
4008 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
4009 if (!SWIG_IsOK(res1)) {
4010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4011 }
4012 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4013 {
4014 PyThreadState* __tstate = wxPyBeginAllowThreads();
4015 delete arg1;
d55e5bfc 4016
1bd55598
RD
4017 wxPyEndAllowThreads(__tstate);
4018 if (PyErr_Occurred()) SWIG_fail;
4019 }
4020 resultobj = SWIG_Py_Void();
4021 return resultobj;
4022fail:
4023 return NULL;
d55e5bfc
RD
4024}
4025
4026
1bd55598
RD
4027SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4028 PyObject *resultobj = 0;
4029 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4030 bool result;
4031 void *argp1 = 0 ;
4032 int res1 = 0 ;
4033 PyObject *swig_obj[1] ;
4034
4035 if (!args) SWIG_fail;
4036 swig_obj[0] = args;
4037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
4038 if (!SWIG_IsOK(res1)) {
4039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4040 }
4041 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4042 {
4043 PyThreadState* __tstate = wxPyBeginAllowThreads();
4044 result = (bool)(arg1)->IsNull();
4045 wxPyEndAllowThreads(__tstate);
4046 if (PyErr_Occurred()) SWIG_fail;
4047 }
4048 {
4049 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4050 }
4051 return resultobj;
4052fail:
4053 return NULL;
4054}
4055
4056
4057SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4058 PyObject *obj;
4059 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4060 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
4061 return SWIG_Py_Void();
4062}
4063
4064SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4065 return SWIG_Python_InitShadowInstance(args);
4066}
4067
4068SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4069 PyObject *resultobj = 0;
4070 byte arg1 = (byte) 0 ;
4071 byte arg2 = (byte) 0 ;
4072 byte arg3 = (byte) 0 ;
fc46b7f3 4073 byte arg4 = (byte) wxALPHA_OPAQUE ;
1bd55598
RD
4074 wxColour *result = 0 ;
4075 unsigned char val1 ;
4076 int ecode1 = 0 ;
4077 unsigned char val2 ;
4078 int ecode2 = 0 ;
4079 unsigned char val3 ;
4080 int ecode3 = 0 ;
fc46b7f3
RD
4081 unsigned char val4 ;
4082 int ecode4 = 0 ;
1bd55598
RD
4083 PyObject * obj0 = 0 ;
4084 PyObject * obj1 = 0 ;
4085 PyObject * obj2 = 0 ;
fc46b7f3 4086 PyObject * obj3 = 0 ;
1bd55598 4087 char * kwnames[] = {
fc46b7f3 4088 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
1bd55598
RD
4089 };
4090
fc46b7f3 4091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
4092 if (obj0) {
4093 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
4094 if (!SWIG_IsOK(ecode1)) {
4095 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
4096 }
4097 arg1 = static_cast< byte >(val1);
4098 }
4099 if (obj1) {
4100 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4101 if (!SWIG_IsOK(ecode2)) {
4102 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
4103 }
4104 arg2 = static_cast< byte >(val2);
4105 }
4106 if (obj2) {
4107 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4108 if (!SWIG_IsOK(ecode3)) {
4109 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
4110 }
4111 arg3 = static_cast< byte >(val3);
4112 }
fc46b7f3
RD
4113 if (obj3) {
4114 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4115 if (!SWIG_IsOK(ecode4)) {
4116 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
4117 }
4118 arg4 = static_cast< byte >(val4);
4119 }
1bd55598
RD
4120 {
4121 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4122 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
1bd55598
RD
4123 wxPyEndAllowThreads(__tstate);
4124 if (PyErr_Occurred()) SWIG_fail;
4125 }
4126 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
4127 return resultobj;
4128fail:
4129 return NULL;
d55e5bfc
RD
4130}
4131
4132
1bd55598
RD
4133SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4134 PyObject *resultobj = 0;
4135 wxString *arg1 = 0 ;
4136 wxColour *result = 0 ;
4137 bool temp1 = false ;
4138 PyObject * obj0 = 0 ;
4139 char * kwnames[] = {
4140 (char *) "colorName", NULL
4141 };
4142
4143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
4144 {
4145 arg1 = wxString_in_helper(obj0);
4146 if (arg1 == NULL) SWIG_fail;
4147 temp1 = true;
4148 }
4149 {
4150 if (!wxPyCheckForApp()) SWIG_fail;
4151 PyThreadState* __tstate = wxPyBeginAllowThreads();
4152 result = (wxColour *)new wxColour((wxString const &)*arg1);
4153 wxPyEndAllowThreads(__tstate);
4154 if (PyErr_Occurred()) SWIG_fail;
4155 }
4156 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4157 {
4158 if (temp1)
4159 delete arg1;
4160 }
4161 return resultobj;
4162fail:
4163 {
4164 if (temp1)
4165 delete arg1;
4166 }
4167 return NULL;
36ed4f51
RD
4168}
4169
4170
1bd55598
RD
4171SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4172 PyObject *resultobj = 0;
4173 unsigned long arg1 ;
4174 wxColour *result = 0 ;
4175 unsigned long val1 ;
4176 int ecode1 = 0 ;
4177 PyObject * obj0 = 0 ;
4178 char * kwnames[] = {
4179 (char *) "colRGB", NULL
4180 };
4181
4182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
4183 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
4184 if (!SWIG_IsOK(ecode1)) {
4185 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
4186 }
4187 arg1 = static_cast< unsigned long >(val1);
4188 {
4189 PyThreadState* __tstate = wxPyBeginAllowThreads();
4190 result = (wxColour *)new wxColour(arg1);
4191 wxPyEndAllowThreads(__tstate);
4192 if (PyErr_Occurred()) SWIG_fail;
4193 }
4194 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4195 return resultobj;
4196fail:
4197 return NULL;
d55e5bfc
RD
4198}
4199
4200
1bd55598
RD
4201SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4202 PyObject *resultobj = 0;
4203 wxColour *arg1 = (wxColour *) 0 ;
4204 void *argp1 = 0 ;
4205 int res1 = 0 ;
4206 PyObject *swig_obj[1] ;
4207
4208 if (!args) SWIG_fail;
4209 swig_obj[0] = args;
4210 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
4211 if (!SWIG_IsOK(res1)) {
4212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
4213 }
4214 arg1 = reinterpret_cast< wxColour * >(argp1);
4215 {
4216 PyThreadState* __tstate = wxPyBeginAllowThreads();
4217 delete arg1;
d55e5bfc 4218
1bd55598
RD
4219 wxPyEndAllowThreads(__tstate);
4220 if (PyErr_Occurred()) SWIG_fail;
4221 }
4222 resultobj = SWIG_Py_Void();
4223 return resultobj;
4224fail:
4225 return NULL;
d55e5bfc
RD
4226}
4227
4228
1bd55598
RD
4229SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4230 PyObject *resultobj = 0;
4231 wxColour *arg1 = (wxColour *) 0 ;
4232 byte result;
4233 void *argp1 = 0 ;
4234 int res1 = 0 ;
4235 PyObject *swig_obj[1] ;
4236
4237 if (!args) SWIG_fail;
4238 swig_obj[0] = args;
4239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4240 if (!SWIG_IsOK(res1)) {
4241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4242 }
4243 arg1 = reinterpret_cast< wxColour * >(argp1);
4244 {
4245 PyThreadState* __tstate = wxPyBeginAllowThreads();
4246 result = (byte)(arg1)->Red();
4247 wxPyEndAllowThreads(__tstate);
4248 if (PyErr_Occurred()) SWIG_fail;
4249 }
4250 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4251 return resultobj;
4252fail:
4253 return NULL;
d55e5bfc
RD
4254}
4255
4256
1bd55598
RD
4257SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4258 PyObject *resultobj = 0;
4259 wxColour *arg1 = (wxColour *) 0 ;
4260 byte result;
4261 void *argp1 = 0 ;
4262 int res1 = 0 ;
4263 PyObject *swig_obj[1] ;
4264
4265 if (!args) SWIG_fail;
4266 swig_obj[0] = args;
4267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4268 if (!SWIG_IsOK(res1)) {
4269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4270 }
4271 arg1 = reinterpret_cast< wxColour * >(argp1);
4272 {
4273 PyThreadState* __tstate = wxPyBeginAllowThreads();
4274 result = (byte)(arg1)->Green();
4275 wxPyEndAllowThreads(__tstate);
4276 if (PyErr_Occurred()) SWIG_fail;
4277 }
4278 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4279 return resultobj;
4280fail:
4281 return NULL;
d55e5bfc
RD
4282}
4283
4284
1bd55598
RD
4285SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4286 PyObject *resultobj = 0;
4287 wxColour *arg1 = (wxColour *) 0 ;
4288 byte result;
4289 void *argp1 = 0 ;
4290 int res1 = 0 ;
4291 PyObject *swig_obj[1] ;
4292
4293 if (!args) SWIG_fail;
4294 swig_obj[0] = args;
4295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4296 if (!SWIG_IsOK(res1)) {
4297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4298 }
4299 arg1 = reinterpret_cast< wxColour * >(argp1);
4300 {
4301 PyThreadState* __tstate = wxPyBeginAllowThreads();
4302 result = (byte)(arg1)->Blue();
4303 wxPyEndAllowThreads(__tstate);
4304 if (PyErr_Occurred()) SWIG_fail;
4305 }
4306 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4307 return resultobj;
4308fail:
4309 return NULL;
d55e5bfc
RD
4310}
4311
4312
fc46b7f3
RD
4313SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4314 PyObject *resultobj = 0;
4315 wxColour *arg1 = (wxColour *) 0 ;
4316 byte result;
4317 void *argp1 = 0 ;
4318 int res1 = 0 ;
4319 PyObject *swig_obj[1] ;
4320
4321 if (!args) SWIG_fail;
4322 swig_obj[0] = args;
4323 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4324 if (!SWIG_IsOK(res1)) {
4325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4326 }
4327 arg1 = reinterpret_cast< wxColour * >(argp1);
4328 {
4329 PyThreadState* __tstate = wxPyBeginAllowThreads();
4330 result = (byte)(arg1)->Alpha();
4331 wxPyEndAllowThreads(__tstate);
4332 if (PyErr_Occurred()) SWIG_fail;
4333 }
4334 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4335 return resultobj;
4336fail:
4337 return NULL;
4338}
4339
4340
b39fe951 4341SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
4342 PyObject *resultobj = 0;
4343 wxColour *arg1 = (wxColour *) 0 ;
4344 bool result;
4345 void *argp1 = 0 ;
4346 int res1 = 0 ;
4347 PyObject *swig_obj[1] ;
4348
4349 if (!args) SWIG_fail;
4350 swig_obj[0] = args;
4351 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4352 if (!SWIG_IsOK(res1)) {
b39fe951 4353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4354 }
4355 arg1 = reinterpret_cast< wxColour * >(argp1);
4356 {
4357 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4358 result = (bool)(arg1)->IsOk();
1bd55598
RD
4359 wxPyEndAllowThreads(__tstate);
4360 if (PyErr_Occurred()) SWIG_fail;
4361 }
4362 {
4363 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4364 }
4365 return resultobj;
4366fail:
4367 return NULL;
4368}
4369
4370
4371SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4372 PyObject *resultobj = 0;
4373 wxColour *arg1 = (wxColour *) 0 ;
4374 byte arg2 ;
4375 byte arg3 ;
4376 byte arg4 ;
fc46b7f3 4377 byte arg5 = (byte) wxALPHA_OPAQUE ;
1bd55598
RD
4378 void *argp1 = 0 ;
4379 int res1 = 0 ;
4380 unsigned char val2 ;
4381 int ecode2 = 0 ;
4382 unsigned char val3 ;
4383 int ecode3 = 0 ;
4384 unsigned char val4 ;
4385 int ecode4 = 0 ;
fc46b7f3
RD
4386 unsigned char val5 ;
4387 int ecode5 = 0 ;
1bd55598
RD
4388 PyObject * obj0 = 0 ;
4389 PyObject * obj1 = 0 ;
4390 PyObject * obj2 = 0 ;
4391 PyObject * obj3 = 0 ;
fc46b7f3 4392 PyObject * obj4 = 0 ;
1bd55598 4393 char * kwnames[] = {
fc46b7f3 4394 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
1bd55598
RD
4395 };
4396
fc46b7f3 4397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
1bd55598
RD
4398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4399 if (!SWIG_IsOK(res1)) {
4400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4401 }
4402 arg1 = reinterpret_cast< wxColour * >(argp1);
4403 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4404 if (!SWIG_IsOK(ecode2)) {
4405 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4406 }
4407 arg2 = static_cast< byte >(val2);
4408 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4409 if (!SWIG_IsOK(ecode3)) {
4410 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4411 }
4412 arg3 = static_cast< byte >(val3);
4413 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4414 if (!SWIG_IsOK(ecode4)) {
4415 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4416 }
4417 arg4 = static_cast< byte >(val4);
fc46b7f3
RD
4418 if (obj4) {
4419 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4420 if (!SWIG_IsOK(ecode5)) {
4421 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4422 }
4423 arg5 = static_cast< byte >(val5);
4424 }
1bd55598
RD
4425 {
4426 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4427 (arg1)->Set(arg2,arg3,arg4,arg5);
1bd55598
RD
4428 wxPyEndAllowThreads(__tstate);
4429 if (PyErr_Occurred()) SWIG_fail;
4430 }
4431 resultobj = SWIG_Py_Void();
4432 return resultobj;
4433fail:
4434 return NULL;
4435}
4436
4437
4438SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4439 PyObject *resultobj = 0;
4440 wxColour *arg1 = (wxColour *) 0 ;
4441 unsigned long arg2 ;
4442 void *argp1 = 0 ;
4443 int res1 = 0 ;
4444 unsigned long val2 ;
4445 int ecode2 = 0 ;
4446 PyObject * obj0 = 0 ;
4447 PyObject * obj1 = 0 ;
4448 char * kwnames[] = {
4449 (char *) "self",(char *) "colRGB", NULL
4450 };
4451
4452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4454 if (!SWIG_IsOK(res1)) {
4455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4456 }
4457 arg1 = reinterpret_cast< wxColour * >(argp1);
4458 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4459 if (!SWIG_IsOK(ecode2)) {
4460 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4461 }
4462 arg2 = static_cast< unsigned long >(val2);
4463 {
4464 PyThreadState* __tstate = wxPyBeginAllowThreads();
4465 (arg1)->Set(arg2);
4466 wxPyEndAllowThreads(__tstate);
4467 if (PyErr_Occurred()) SWIG_fail;
4468 }
4469 resultobj = SWIG_Py_Void();
4470 return resultobj;
4471fail:
4472 return NULL;
4473}
4474
4475
4476SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4477 PyObject *resultobj = 0;
4478 wxColour *arg1 = (wxColour *) 0 ;
4479 wxString *arg2 = 0 ;
4480 void *argp1 = 0 ;
4481 int res1 = 0 ;
4482 bool temp2 = false ;
4483 PyObject * obj0 = 0 ;
4484 PyObject * obj1 = 0 ;
4485 char * kwnames[] = {
4486 (char *) "self",(char *) "colourName", NULL
4487 };
4488
4489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4491 if (!SWIG_IsOK(res1)) {
4492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4493 }
4494 arg1 = reinterpret_cast< wxColour * >(argp1);
4495 {
4496 arg2 = wxString_in_helper(obj1);
4497 if (arg2 == NULL) SWIG_fail;
4498 temp2 = true;
4499 }
4500 {
4501 PyThreadState* __tstate = wxPyBeginAllowThreads();
72ef6efb 4502 (arg1)->Set((wxString const &)*arg2);
1bd55598
RD
4503 wxPyEndAllowThreads(__tstate);
4504 if (PyErr_Occurred()) SWIG_fail;
4505 }
4506 resultobj = SWIG_Py_Void();
4507 {
4508 if (temp2)
4509 delete arg2;
4510 }
4511 return resultobj;
4512fail:
4513 {
4514 if (temp2)
4515 delete arg2;
4516 }
4517 return NULL;
d55e5bfc
RD
4518}
4519
4520
2131d850
RD
4521SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4522 PyObject *resultobj = 0;
4523 wxColour *arg1 = (wxColour *) 0 ;
4524 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4525 wxString result;
4526 void *argp1 = 0 ;
4527 int res1 = 0 ;
4528 long val2 ;
4529 int ecode2 = 0 ;
4530 PyObject * obj0 = 0 ;
4531 PyObject * obj1 = 0 ;
4532 char * kwnames[] = {
4533 (char *) "self",(char *) "flags", NULL
4534 };
4535
4536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4538 if (!SWIG_IsOK(res1)) {
4539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4540 }
4541 arg1 = reinterpret_cast< wxColour * >(argp1);
4542 if (obj1) {
4543 ecode2 = SWIG_AsVal_long(obj1, &val2);
4544 if (!SWIG_IsOK(ecode2)) {
4545 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4546 }
4547 arg2 = static_cast< long >(val2);
4548 }
4549 {
4550 PyThreadState* __tstate = wxPyBeginAllowThreads();
4551 result = ((wxColour const *)arg1)->GetAsString(arg2);
4552 wxPyEndAllowThreads(__tstate);
4553 if (PyErr_Occurred()) SWIG_fail;
4554 }
4555 {
4556#if wxUSE_UNICODE
4557 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4558#else
4559 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4560#endif
4561 }
4562 return resultobj;
4563fail:
4564 return NULL;
4565}
4566
4567
1bd55598
RD
4568SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4569 PyObject *resultobj = 0;
4570 wxColour *arg1 = (wxColour *) 0 ;
4571 long result;
4572 void *argp1 = 0 ;
4573 int res1 = 0 ;
4574 PyObject *swig_obj[1] ;
4575
4576 if (!args) SWIG_fail;
4577 swig_obj[0] = args;
4578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4579 if (!SWIG_IsOK(res1)) {
4580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4581 }
4582 arg1 = reinterpret_cast< wxColour * >(argp1);
4583 {
4584 PyThreadState* __tstate = wxPyBeginAllowThreads();
4585 result = (long)((wxColour const *)arg1)->GetPixel();
4586 wxPyEndAllowThreads(__tstate);
4587 if (PyErr_Occurred()) SWIG_fail;
4588 }
4589 resultobj = SWIG_From_long(static_cast< long >(result));
4590 return resultobj;
4591fail:
4592 return NULL;
4593}
4594
4595
4596SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4597 PyObject *resultobj = 0;
4598 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4599 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
4600 bool result;
4601 void *argp1 = 0 ;
4602 int res1 = 0 ;
1bd55598
RD
4603 PyObject * obj0 = 0 ;
4604 PyObject * obj1 = 0 ;
4605 char * kwnames[] = {
e9d6f3a4 4606 (char *) "self",(char *) "other", NULL
1bd55598
RD
4607 };
4608
4609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4611 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4613 }
4614 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4615 arg2 = obj1;
1bd55598 4616 {
e9d6f3a4 4617 result = (bool)wxColour___eq__(arg1,arg2);
1bd55598
RD
4618 if (PyErr_Occurred()) SWIG_fail;
4619 }
4620 {
4621 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4622 }
4623 return resultobj;
4624fail:
4625 return NULL;
4626}
4627
4628
4629SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4630 PyObject *resultobj = 0;
4631 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4632 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
4633 bool result;
4634 void *argp1 = 0 ;
4635 int res1 = 0 ;
1bd55598
RD
4636 PyObject * obj0 = 0 ;
4637 PyObject * obj1 = 0 ;
4638 char * kwnames[] = {
e9d6f3a4 4639 (char *) "self",(char *) "other", NULL
1bd55598
RD
4640 };
4641
4642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4644 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4646 }
4647 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4648 arg2 = obj1;
1bd55598 4649 {
e9d6f3a4 4650 result = (bool)wxColour___ne__(arg1,arg2);
1bd55598
RD
4651 if (PyErr_Occurred()) SWIG_fail;
4652 }
4653 {
4654 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4655 }
4656 return resultobj;
4657fail:
4658 return NULL;
d55e5bfc
RD
4659}
4660
4661
fc46b7f3 4662SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
4663 PyObject *resultobj = 0;
4664 wxColour *arg1 = (wxColour *) 0 ;
fc46b7f3 4665 bool arg2 = (bool) false ;
1bd55598
RD
4666 PyObject *result = 0 ;
4667 void *argp1 = 0 ;
4668 int res1 = 0 ;
fc46b7f3
RD
4669 bool val2 ;
4670 int ecode2 = 0 ;
4671 PyObject * obj0 = 0 ;
4672 PyObject * obj1 = 0 ;
4673 char * kwnames[] = {
4674 (char *) "self",(char *) "includeAlpha", NULL
4675 };
1bd55598 4676
fc46b7f3
RD
4677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
1bd55598
RD
4679 if (!SWIG_IsOK(res1)) {
4680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4681 }
4682 arg1 = reinterpret_cast< wxColour * >(argp1);
fc46b7f3
RD
4683 if (obj1) {
4684 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4685 if (!SWIG_IsOK(ecode2)) {
4686 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4687 }
4688 arg2 = static_cast< bool >(val2);
4689 }
1bd55598 4690 {
fc46b7f3 4691 result = (PyObject *)wxColour_Get(arg1,arg2);
1bd55598
RD
4692 if (PyErr_Occurred()) SWIG_fail;
4693 }
4694 resultobj = result;
4695 return resultobj;
4696fail:
4697 return NULL;
d55e5bfc
RD
4698}
4699
4700
1bd55598
RD
4701SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4702 PyObject *resultobj = 0;
4703 wxColour *arg1 = (wxColour *) 0 ;
4704 unsigned long result;
4705 void *argp1 = 0 ;
4706 int res1 = 0 ;
4707 PyObject *swig_obj[1] ;
4708
4709 if (!args) SWIG_fail;
4710 swig_obj[0] = args;
4711 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4712 if (!SWIG_IsOK(res1)) {
4713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4714 }
4715 arg1 = reinterpret_cast< wxColour * >(argp1);
4716 {
1bd55598 4717 result = (unsigned long)wxColour_GetRGB(arg1);
1bd55598
RD
4718 if (PyErr_Occurred()) SWIG_fail;
4719 }
4720 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4721 return resultobj;
4722fail:
4723 return NULL;
4724}
4725
4726
4727SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4728 PyObject *obj;
4729 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4730 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4731 return SWIG_Py_Void();
4732}
4733
4734SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4735 return SWIG_Python_InitShadowInstance(args);
4736}
4737
4738SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4739 PyObject *resultobj = 0;
4740 int arg1 ;
4741 unsigned char *arg2 = (unsigned char *) 0 ;
4742 unsigned char *arg3 = (unsigned char *) 0 ;
4743 unsigned char *arg4 = (unsigned char *) 0 ;
4744 wxPalette *result = 0 ;
4745 int val1 ;
4746 int ecode1 = 0 ;
4747 void *argp2 = 0 ;
4748 int res2 = 0 ;
4749 void *argp3 = 0 ;
4750 int res3 = 0 ;
4751 void *argp4 = 0 ;
4752 int res4 = 0 ;
4753 PyObject * obj0 = 0 ;
4754 PyObject * obj1 = 0 ;
4755 PyObject * obj2 = 0 ;
4756 PyObject * obj3 = 0 ;
4757 char * kwnames[] = {
4758 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4759 };
4760
4761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4762 ecode1 = SWIG_AsVal_int(obj0, &val1);
4763 if (!SWIG_IsOK(ecode1)) {
4764 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4765 }
4766 arg1 = static_cast< int >(val1);
4767 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4768 if (!SWIG_IsOK(res2)) {
4769 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4770 }
4771 arg2 = reinterpret_cast< unsigned char * >(argp2);
4772 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4773 if (!SWIG_IsOK(res3)) {
4774 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4775 }
4776 arg3 = reinterpret_cast< unsigned char * >(argp3);
4777 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4778 if (!SWIG_IsOK(res4)) {
4779 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4780 }
4781 arg4 = reinterpret_cast< unsigned char * >(argp4);
4782 {
4783 if (!wxPyCheckForApp()) SWIG_fail;
4784 PyThreadState* __tstate = wxPyBeginAllowThreads();
4785 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4786 wxPyEndAllowThreads(__tstate);
4787 if (PyErr_Occurred()) SWIG_fail;
4788 }
4789 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4790 return resultobj;
4791fail:
4792 return NULL;
d55e5bfc
RD
4793}
4794
4795
1bd55598
RD
4796SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4797 PyObject *resultobj = 0;
4798 wxPalette *arg1 = (wxPalette *) 0 ;
4799 void *argp1 = 0 ;
4800 int res1 = 0 ;
4801 PyObject *swig_obj[1] ;
4802
4803 if (!args) SWIG_fail;
4804 swig_obj[0] = args;
4805 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4806 if (!SWIG_IsOK(res1)) {
4807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4808 }
4809 arg1 = reinterpret_cast< wxPalette * >(argp1);
4810 {
4811 PyThreadState* __tstate = wxPyBeginAllowThreads();
4812 delete arg1;
d55e5bfc 4813
1bd55598
RD
4814 wxPyEndAllowThreads(__tstate);
4815 if (PyErr_Occurred()) SWIG_fail;
4816 }
4817 resultobj = SWIG_Py_Void();
4818 return resultobj;
4819fail:
4820 return NULL;
4821}
4822
4823
4824SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4825 PyObject *resultobj = 0;
4826 wxPalette *arg1 = (wxPalette *) 0 ;
4827 byte arg2 ;
4828 byte arg3 ;
4829 byte arg4 ;
4830 int result;
4831 void *argp1 = 0 ;
4832 int res1 = 0 ;
4833 unsigned char val2 ;
4834 int ecode2 = 0 ;
4835 unsigned char val3 ;
4836 int ecode3 = 0 ;
4837 unsigned char val4 ;
4838 int ecode4 = 0 ;
4839 PyObject * obj0 = 0 ;
4840 PyObject * obj1 = 0 ;
4841 PyObject * obj2 = 0 ;
4842 PyObject * obj3 = 0 ;
4843 char * kwnames[] = {
4844 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4845 };
4846
4847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4849 if (!SWIG_IsOK(res1)) {
4850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4851 }
4852 arg1 = reinterpret_cast< wxPalette * >(argp1);
4853 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4854 if (!SWIG_IsOK(ecode2)) {
4855 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4856 }
4857 arg2 = static_cast< byte >(val2);
4858 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4859 if (!SWIG_IsOK(ecode3)) {
4860 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4861 }
4862 arg3 = static_cast< byte >(val3);
4863 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4864 if (!SWIG_IsOK(ecode4)) {
4865 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4866 }
4867 arg4 = static_cast< byte >(val4);
4868 {
4869 PyThreadState* __tstate = wxPyBeginAllowThreads();
4870 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4871 wxPyEndAllowThreads(__tstate);
4872 if (PyErr_Occurred()) SWIG_fail;
4873 }
4874 resultobj = SWIG_From_int(static_cast< int >(result));
4875 return resultobj;
4876fail:
4877 return NULL;
4878}
4879
4880
4881SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4882 PyObject *resultobj = 0;
4883 wxPalette *arg1 = (wxPalette *) 0 ;
4884 int arg2 ;
4885 byte *arg3 = (byte *) 0 ;
4886 byte *arg4 = (byte *) 0 ;
4887 byte *arg5 = (byte *) 0 ;
4888 bool result;
4889 void *argp1 = 0 ;
4890 int res1 = 0 ;
4891 int val2 ;
4892 int ecode2 = 0 ;
4893 byte temp3 ;
4894 int res3 = SWIG_TMPOBJ ;
4895 byte temp4 ;
4896 int res4 = SWIG_TMPOBJ ;
4897 byte temp5 ;
4898 int res5 = SWIG_TMPOBJ ;
4899 PyObject * obj0 = 0 ;
4900 PyObject * obj1 = 0 ;
4901 char * kwnames[] = {
4902 (char *) "self",(char *) "pixel", NULL
4903 };
4904
4905 arg3 = &temp3;
4906 arg4 = &temp4;
4907 arg5 = &temp5;
4908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4910 if (!SWIG_IsOK(res1)) {
4911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4912 }
4913 arg1 = reinterpret_cast< wxPalette * >(argp1);
4914 ecode2 = SWIG_AsVal_int(obj1, &val2);
4915 if (!SWIG_IsOK(ecode2)) {
4916 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4917 }
4918 arg2 = static_cast< int >(val2);
4919 {
4920 PyThreadState* __tstate = wxPyBeginAllowThreads();
4921 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4922 wxPyEndAllowThreads(__tstate);
4923 if (PyErr_Occurred()) SWIG_fail;
4924 }
4925 {
4926 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4927 }
4928 if (SWIG_IsTmpObj(res3)) {
4929 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4930 } else {
4931 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4932 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4933 }
4934 if (SWIG_IsTmpObj(res4)) {
4935 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4936 } else {
4937 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4938 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4939 }
4940 if (SWIG_IsTmpObj(res5)) {
4941 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4942 } else {
4943 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4944 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4945 }
4946 return resultobj;
4947fail:
4948 return NULL;
d55e5bfc
RD
4949}
4950
4951
1bd55598
RD
4952SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4953 PyObject *resultobj = 0;
4954 wxPalette *arg1 = (wxPalette *) 0 ;
4955 int result;
4956 void *argp1 = 0 ;
4957 int res1 = 0 ;
4958 PyObject *swig_obj[1] ;
4959
4960 if (!args) SWIG_fail;
4961 swig_obj[0] = args;
4962 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4963 if (!SWIG_IsOK(res1)) {
4964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4965 }
4966 arg1 = reinterpret_cast< wxPalette * >(argp1);
4967 {
4968 PyThreadState* __tstate = wxPyBeginAllowThreads();
4969 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4970 wxPyEndAllowThreads(__tstate);
4971 if (PyErr_Occurred()) SWIG_fail;
4972 }
4973 resultobj = SWIG_From_int(static_cast< int >(result));
4974 return resultobj;
4975fail:
4976 return NULL;
d55e5bfc
RD
4977}
4978
4979
b39fe951 4980SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
4981 PyObject *resultobj = 0;
4982 wxPalette *arg1 = (wxPalette *) 0 ;
4983 bool result;
4984 void *argp1 = 0 ;
4985 int res1 = 0 ;
4986 PyObject *swig_obj[1] ;
4987
4988 if (!args) SWIG_fail;
4989 swig_obj[0] = args;
4990 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4991 if (!SWIG_IsOK(res1)) {
b39fe951 4992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
1bd55598
RD
4993 }
4994 arg1 = reinterpret_cast< wxPalette * >(argp1);
4995 {
4996 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4997 result = (bool)(arg1)->IsOk();
1bd55598
RD
4998 wxPyEndAllowThreads(__tstate);
4999 if (PyErr_Occurred()) SWIG_fail;
5000 }
5001 {
5002 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5003 }
5004 return resultobj;
5005fail:
5006 return NULL;
5007}
5008
5009
5010SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5011 PyObject *obj;
5012 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5013 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
5014 return SWIG_Py_Void();
5015}
5016
5017SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5018 return SWIG_Python_InitShadowInstance(args);
5019}
5020
5021SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5022 PyObject *resultobj = 0;
5023 wxColour *arg1 = 0 ;
5024 int arg2 = (int) 1 ;
5025 int arg3 = (int) wxSOLID ;
5026 wxPen *result = 0 ;
5027 wxColour temp1 ;
5028 int val2 ;
5029 int ecode2 = 0 ;
5030 int val3 ;
5031 int ecode3 = 0 ;
5032 PyObject * obj0 = 0 ;
5033 PyObject * obj1 = 0 ;
5034 PyObject * obj2 = 0 ;
5035 char * kwnames[] = {
5036 (char *) "colour",(char *) "width",(char *) "style", NULL
5037 };
5038
5039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5040 {
5041 arg1 = &temp1;
5042 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5043 }
5044 if (obj1) {
5045 ecode2 = SWIG_AsVal_int(obj1, &val2);
5046 if (!SWIG_IsOK(ecode2)) {
5047 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
5048 }
5049 arg2 = static_cast< int >(val2);
5050 }
5051 if (obj2) {
5052 ecode3 = SWIG_AsVal_int(obj2, &val3);
5053 if (!SWIG_IsOK(ecode3)) {
5054 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
5055 }
5056 arg3 = static_cast< int >(val3);
5057 }
5058 {
5059 if (!wxPyCheckForApp()) SWIG_fail;
5060 PyThreadState* __tstate = wxPyBeginAllowThreads();
5061 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
5062 wxPyEndAllowThreads(__tstate);
5063 if (PyErr_Occurred()) SWIG_fail;
5064 }
5065 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
5066 return resultobj;
5067fail:
5068 return NULL;
d55e5bfc
RD
5069}
5070
5071
1bd55598
RD
5072SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5073 PyObject *resultobj = 0;
5074 wxPen *arg1 = (wxPen *) 0 ;
5075 void *argp1 = 0 ;
5076 int res1 = 0 ;
5077 PyObject *swig_obj[1] ;
5078
5079 if (!args) SWIG_fail;
5080 swig_obj[0] = args;
5081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
5082 if (!SWIG_IsOK(res1)) {
5083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
5084 }
5085 arg1 = reinterpret_cast< wxPen * >(argp1);
5086 {
5087 PyThreadState* __tstate = wxPyBeginAllowThreads();
5088 delete arg1;
f78cc896 5089
1bd55598
RD
5090 wxPyEndAllowThreads(__tstate);
5091 if (PyErr_Occurred()) SWIG_fail;
5092 }
5093 resultobj = SWIG_Py_Void();
5094 return resultobj;
5095fail:
5096 return NULL;
f78cc896
RD
5097}
5098
5099
1bd55598
RD
5100SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5101 PyObject *resultobj = 0;
5102 wxPen *arg1 = (wxPen *) 0 ;
5103 int result;
5104 void *argp1 = 0 ;
5105 int res1 = 0 ;
5106 PyObject *swig_obj[1] ;
5107
5108 if (!args) SWIG_fail;
5109 swig_obj[0] = args;
5110 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5111 if (!SWIG_IsOK(res1)) {
5112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5113 }
5114 arg1 = reinterpret_cast< wxPen * >(argp1);
5115 {
5116 PyThreadState* __tstate = wxPyBeginAllowThreads();
5117 result = (int)(arg1)->GetCap();
5118 wxPyEndAllowThreads(__tstate);
5119 if (PyErr_Occurred()) SWIG_fail;
5120 }
5121 resultobj = SWIG_From_int(static_cast< int >(result));
5122 return resultobj;
5123fail:
5124 return NULL;
d55e5bfc
RD
5125}
5126
5127
1bd55598
RD
5128SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5129 PyObject *resultobj = 0;
5130 wxPen *arg1 = (wxPen *) 0 ;
5131 wxColour result;
5132 void *argp1 = 0 ;
5133 int res1 = 0 ;
5134 PyObject *swig_obj[1] ;
5135
5136 if (!args) SWIG_fail;
5137 swig_obj[0] = args;
5138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5139 if (!SWIG_IsOK(res1)) {
5140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5141 }
5142 arg1 = reinterpret_cast< wxPen * >(argp1);
5143 {
5144 PyThreadState* __tstate = wxPyBeginAllowThreads();
5145 result = (arg1)->GetColour();
5146 wxPyEndAllowThreads(__tstate);
5147 if (PyErr_Occurred()) SWIG_fail;
5148 }
5149 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5150 return resultobj;
5151fail:
5152 return NULL;
d55e5bfc
RD
5153}
5154
5155
1bd55598
RD
5156SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5157 PyObject *resultobj = 0;
5158 wxPen *arg1 = (wxPen *) 0 ;
5159 int result;
5160 void *argp1 = 0 ;
5161 int res1 = 0 ;
5162 PyObject *swig_obj[1] ;
5163
5164 if (!args) SWIG_fail;
5165 swig_obj[0] = args;
5166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5167 if (!SWIG_IsOK(res1)) {
5168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5169 }
5170 arg1 = reinterpret_cast< wxPen * >(argp1);
5171 {
5172 PyThreadState* __tstate = wxPyBeginAllowThreads();
5173 result = (int)(arg1)->GetJoin();
5174 wxPyEndAllowThreads(__tstate);
5175 if (PyErr_Occurred()) SWIG_fail;
5176 }
5177 resultobj = SWIG_From_int(static_cast< int >(result));
5178 return resultobj;
5179fail:
5180 return NULL;
d55e5bfc
RD
5181}
5182
5183
1bd55598
RD
5184SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5185 PyObject *resultobj = 0;
5186 wxPen *arg1 = (wxPen *) 0 ;
5187 int result;
5188 void *argp1 = 0 ;
5189 int res1 = 0 ;
5190 PyObject *swig_obj[1] ;
5191
5192 if (!args) SWIG_fail;
5193 swig_obj[0] = args;
5194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5195 if (!SWIG_IsOK(res1)) {
5196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5197 }
5198 arg1 = reinterpret_cast< wxPen * >(argp1);
5199 {
5200 PyThreadState* __tstate = wxPyBeginAllowThreads();
5201 result = (int)(arg1)->GetStyle();
5202 wxPyEndAllowThreads(__tstate);
5203 if (PyErr_Occurred()) SWIG_fail;
5204 }
5205 resultobj = SWIG_From_int(static_cast< int >(result));
5206 return resultobj;
5207fail:
5208 return NULL;
d55e5bfc
RD
5209}
5210
5211
1bd55598
RD
5212SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5213 PyObject *resultobj = 0;
5214 wxPen *arg1 = (wxPen *) 0 ;
5215 int result;
5216 void *argp1 = 0 ;
5217 int res1 = 0 ;
5218 PyObject *swig_obj[1] ;
5219
5220 if (!args) SWIG_fail;
5221 swig_obj[0] = args;
5222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5223 if (!SWIG_IsOK(res1)) {
5224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5225 }
5226 arg1 = reinterpret_cast< wxPen * >(argp1);
5227 {
5228 PyThreadState* __tstate = wxPyBeginAllowThreads();
5229 result = (int)(arg1)->GetWidth();
5230 wxPyEndAllowThreads(__tstate);
5231 if (PyErr_Occurred()) SWIG_fail;
5232 }
5233 resultobj = SWIG_From_int(static_cast< int >(result));
5234 return resultobj;
5235fail:
5236 return NULL;
d55e5bfc
RD
5237}
5238
5239
b39fe951 5240SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
5241 PyObject *resultobj = 0;
5242 wxPen *arg1 = (wxPen *) 0 ;
5243 bool result;
5244 void *argp1 = 0 ;
5245 int res1 = 0 ;
5246 PyObject *swig_obj[1] ;
5247
5248 if (!args) SWIG_fail;
5249 swig_obj[0] = args;
5250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5251 if (!SWIG_IsOK(res1)) {
b39fe951 5252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
1bd55598
RD
5253 }
5254 arg1 = reinterpret_cast< wxPen * >(argp1);
5255 {
5256 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5257 result = (bool)(arg1)->IsOk();
1bd55598
RD
5258 wxPyEndAllowThreads(__tstate);
5259 if (PyErr_Occurred()) SWIG_fail;
5260 }
5261 {
5262 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5263 }
5264 return resultobj;
5265fail:
5266 return NULL;
5267}
5268
5269
5270SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5271 PyObject *resultobj = 0;
5272 wxPen *arg1 = (wxPen *) 0 ;
5273 int arg2 ;
5274 void *argp1 = 0 ;
5275 int res1 = 0 ;
5276 int val2 ;
5277 int ecode2 = 0 ;
5278 PyObject * obj0 = 0 ;
5279 PyObject * obj1 = 0 ;
5280 char * kwnames[] = {
5281 (char *) "self",(char *) "cap_style", NULL
5282 };
5283
5284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5286 if (!SWIG_IsOK(res1)) {
5287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5288 }
5289 arg1 = reinterpret_cast< wxPen * >(argp1);
5290 ecode2 = SWIG_AsVal_int(obj1, &val2);
5291 if (!SWIG_IsOK(ecode2)) {
5292 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5293 }
5294 arg2 = static_cast< int >(val2);
5295 {
5296 PyThreadState* __tstate = wxPyBeginAllowThreads();
5297 (arg1)->SetCap(arg2);
5298 wxPyEndAllowThreads(__tstate);
5299 if (PyErr_Occurred()) SWIG_fail;
5300 }
5301 resultobj = SWIG_Py_Void();
5302 return resultobj;
5303fail:
5304 return NULL;
5305}
5306
5307
5308SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5309 PyObject *resultobj = 0;
5310 wxPen *arg1 = (wxPen *) 0 ;
5311 wxColour *arg2 = 0 ;
5312 void *argp1 = 0 ;
5313 int res1 = 0 ;
5314 wxColour temp2 ;
5315 PyObject * obj0 = 0 ;
5316 PyObject * obj1 = 0 ;
5317 char * kwnames[] = {
5318 (char *) "self",(char *) "colour", NULL
5319 };
5320
5321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5323 if (!SWIG_IsOK(res1)) {
5324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5325 }
5326 arg1 = reinterpret_cast< wxPen * >(argp1);
5327 {
5328 arg2 = &temp2;
5329 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5330 }
5331 {
5332 PyThreadState* __tstate = wxPyBeginAllowThreads();
5333 (arg1)->SetColour(*arg2);
5334 wxPyEndAllowThreads(__tstate);
5335 if (PyErr_Occurred()) SWIG_fail;
5336 }
5337 resultobj = SWIG_Py_Void();
5338 return resultobj;
5339fail:
5340 return NULL;
5341}
5342
5343
5344SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5345 PyObject *resultobj = 0;
5346 wxPen *arg1 = (wxPen *) 0 ;
5347 int arg2 ;
5348 void *argp1 = 0 ;
5349 int res1 = 0 ;
5350 int val2 ;
5351 int ecode2 = 0 ;
5352 PyObject * obj0 = 0 ;
5353 PyObject * obj1 = 0 ;
5354 char * kwnames[] = {
5355 (char *) "self",(char *) "join_style", NULL
5356 };
5357
5358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5360 if (!SWIG_IsOK(res1)) {
5361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5362 }
5363 arg1 = reinterpret_cast< wxPen * >(argp1);
5364 ecode2 = SWIG_AsVal_int(obj1, &val2);
5365 if (!SWIG_IsOK(ecode2)) {
5366 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5367 }
5368 arg2 = static_cast< int >(val2);
5369 {
5370 PyThreadState* __tstate = wxPyBeginAllowThreads();
5371 (arg1)->SetJoin(arg2);
5372 wxPyEndAllowThreads(__tstate);
5373 if (PyErr_Occurred()) SWIG_fail;
5374 }
5375 resultobj = SWIG_Py_Void();
5376 return resultobj;
5377fail:
5378 return NULL;
5379}
5380
5381
5382SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5383 PyObject *resultobj = 0;
5384 wxPen *arg1 = (wxPen *) 0 ;
5385 int arg2 ;
5386 void *argp1 = 0 ;
5387 int res1 = 0 ;
5388 int val2 ;
5389 int ecode2 = 0 ;
5390 PyObject * obj0 = 0 ;
5391 PyObject * obj1 = 0 ;
5392 char * kwnames[] = {
5393 (char *) "self",(char *) "style", NULL
5394 };
5395
5396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5398 if (!SWIG_IsOK(res1)) {
5399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5400 }
5401 arg1 = reinterpret_cast< wxPen * >(argp1);
5402 ecode2 = SWIG_AsVal_int(obj1, &val2);
5403 if (!SWIG_IsOK(ecode2)) {
5404 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5405 }
5406 arg2 = static_cast< int >(val2);
5407 {
5408 PyThreadState* __tstate = wxPyBeginAllowThreads();
5409 (arg1)->SetStyle(arg2);
5410 wxPyEndAllowThreads(__tstate);
5411 if (PyErr_Occurred()) SWIG_fail;
5412 }
5413 resultobj = SWIG_Py_Void();
5414 return resultobj;
5415fail:
5416 return NULL;
5417}
5418
5419
5420SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5421 PyObject *resultobj = 0;
5422 wxPen *arg1 = (wxPen *) 0 ;
5423 int arg2 ;
5424 void *argp1 = 0 ;
5425 int res1 = 0 ;
5426 int val2 ;
5427 int ecode2 = 0 ;
5428 PyObject * obj0 = 0 ;
5429 PyObject * obj1 = 0 ;
5430 char * kwnames[] = {
5431 (char *) "self",(char *) "width", NULL
5432 };
5433
5434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5436 if (!SWIG_IsOK(res1)) {
5437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5438 }
5439 arg1 = reinterpret_cast< wxPen * >(argp1);
5440 ecode2 = SWIG_AsVal_int(obj1, &val2);
5441 if (!SWIG_IsOK(ecode2)) {
5442 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5443 }
5444 arg2 = static_cast< int >(val2);
5445 {
5446 PyThreadState* __tstate = wxPyBeginAllowThreads();
5447 (arg1)->SetWidth(arg2);
5448 wxPyEndAllowThreads(__tstate);
5449 if (PyErr_Occurred()) SWIG_fail;
5450 }
5451 resultobj = SWIG_Py_Void();
5452 return resultobj;
5453fail:
5454 return NULL;
5455}
5456
5457
5458SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5459 PyObject *resultobj = 0;
5460 wxPen *arg1 = (wxPen *) 0 ;
5461 int arg2 ;
5462 wxDash *arg3 = (wxDash *) 0 ;
5463 void *argp1 = 0 ;
5464 int res1 = 0 ;
5465 PyObject * obj0 = 0 ;
5466 PyObject * obj1 = 0 ;
5467 char * kwnames[] = {
5468 (char *) "self",(char *) "dashes", NULL
5469 };
5470
5471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5473 if (!SWIG_IsOK(res1)) {
5474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5475 }
5476 arg1 = reinterpret_cast< wxPen * >(argp1);
5477 {
5478 arg2 = PyList_Size(obj1);
5479 arg3 = (wxDash*)byte_LIST_helper(obj1);
5480 if (arg3 == NULL) SWIG_fail;
5481 }
5482 {
5483 PyThreadState* __tstate = wxPyBeginAllowThreads();
5484 (arg1)->SetDashes(arg2,arg3);
5485 wxPyEndAllowThreads(__tstate);
5486 if (PyErr_Occurred()) SWIG_fail;
5487 }
5488 resultobj = SWIG_Py_Void();
5489 {
5490 if (arg3) delete [] arg3;
5491 }
5492 return resultobj;
5493fail:
5494 {
5495 if (arg3) delete [] arg3;
5496 }
5497 return NULL;
d6c14a4c
RD
5498}
5499
5500
1bd55598
RD
5501SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5502 PyObject *resultobj = 0;
5503 wxPen *arg1 = (wxPen *) 0 ;
5504 PyObject *result = 0 ;
5505 void *argp1 = 0 ;
5506 int res1 = 0 ;
5507 PyObject *swig_obj[1] ;
5508
5509 if (!args) SWIG_fail;
5510 swig_obj[0] = args;
5511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5512 if (!SWIG_IsOK(res1)) {
5513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5514 }
5515 arg1 = reinterpret_cast< wxPen * >(argp1);
5516 {
5517 PyThreadState* __tstate = wxPyBeginAllowThreads();
5518 result = (PyObject *)wxPen_GetDashes(arg1);
5519 wxPyEndAllowThreads(__tstate);
5520 if (PyErr_Occurred()) SWIG_fail;
5521 }
5522 resultobj = result;
5523 return resultobj;
5524fail:
5525 return NULL;
5526}
5527
5528
5529SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5530 PyObject *resultobj = 0;
5531 wxPen *arg1 = (wxPen *) 0 ;
5532 PyObject *arg2 = (PyObject *) 0 ;
5533 PyObject *arg3 = (PyObject *) 0 ;
5534 void *argp1 = 0 ;
5535 int res1 = 0 ;
5536 PyObject * obj0 = 0 ;
5537 PyObject * obj1 = 0 ;
5538 PyObject * obj2 = 0 ;
5539 char * kwnames[] = {
5540 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5541 };
5542
5543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5545 if (!SWIG_IsOK(res1)) {
5546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5547 }
5548 arg1 = reinterpret_cast< wxPen * >(argp1);
5549 arg2 = obj1;
5550 arg3 = obj2;
5551 {
5552 PyThreadState* __tstate = wxPyBeginAllowThreads();
5553 wxPen__SetDashes(arg1,arg2,arg3);
5554 wxPyEndAllowThreads(__tstate);
5555 if (PyErr_Occurred()) SWIG_fail;
5556 }
5557 resultobj = SWIG_Py_Void();
5558 return resultobj;
5559fail:
5560 return NULL;
5561}
5562
5563
5564SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5565 PyObject *resultobj = 0;
5566 wxPen *arg1 = (wxPen *) 0 ;
5567 wxPen *arg2 = (wxPen *) 0 ;
5568 bool result;
5569 void *argp1 = 0 ;
5570 int res1 = 0 ;
5571 void *argp2 = 0 ;
5572 int res2 = 0 ;
5573 PyObject * obj0 = 0 ;
5574 PyObject * obj1 = 0 ;
5575 char * kwnames[] = {
5576 (char *) "self",(char *) "other", NULL
5577 };
5578
5579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5581 if (!SWIG_IsOK(res1)) {
5582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5583 }
5584 arg1 = reinterpret_cast< wxPen * >(argp1);
5585 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5586 if (!SWIG_IsOK(res2)) {
5587 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5588 }
5589 arg2 = reinterpret_cast< wxPen * >(argp2);
5590 {
5591 PyThreadState* __tstate = wxPyBeginAllowThreads();
5592 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5593 wxPyEndAllowThreads(__tstate);
5594 if (PyErr_Occurred()) SWIG_fail;
5595 }
5596 {
5597 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5598 }
5599 return resultobj;
5600fail:
5601 return NULL;
5602}
5603
5604
5605SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5606 PyObject *resultobj = 0;
5607 wxPen *arg1 = (wxPen *) 0 ;
5608 wxPen *arg2 = (wxPen *) 0 ;
5609 bool result;
5610 void *argp1 = 0 ;
5611 int res1 = 0 ;
5612 void *argp2 = 0 ;
5613 int res2 = 0 ;
5614 PyObject * obj0 = 0 ;
5615 PyObject * obj1 = 0 ;
5616 char * kwnames[] = {
5617 (char *) "self",(char *) "other", NULL
5618 };
5619
5620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5622 if (!SWIG_IsOK(res1)) {
5623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5624 }
5625 arg1 = reinterpret_cast< wxPen * >(argp1);
5626 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5627 if (!SWIG_IsOK(res2)) {
5628 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5629 }
5630 arg2 = reinterpret_cast< wxPen * >(argp2);
5631 {
5632 PyThreadState* __tstate = wxPyBeginAllowThreads();
5633 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5634 wxPyEndAllowThreads(__tstate);
5635 if (PyErr_Occurred()) SWIG_fail;
5636 }
5637 {
5638 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5639 }
5640 return resultobj;
5641fail:
5642 return NULL;
5643}
d55e5bfc
RD
5644
5645
1bd55598
RD
5646SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5647 PyObject *obj;
5648 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5649 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5650 return SWIG_Py_Void();
d55e5bfc
RD
5651}
5652
1bd55598
RD
5653SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5654 return SWIG_Python_InitShadowInstance(args);
5655}
d55e5bfc 5656
1bd55598
RD
5657SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5658 PyObject *resultobj = 0;
5659 wxColour *arg1 = 0 ;
5660 int arg2 = (int) wxSOLID ;
5661 wxBrush *result = 0 ;
5662 wxColour temp1 ;
5663 int val2 ;
5664 int ecode2 = 0 ;
5665 PyObject * obj0 = 0 ;
5666 PyObject * obj1 = 0 ;
5667 char * kwnames[] = {
5668 (char *) "colour",(char *) "style", NULL
5669 };
5670
5671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5672 {
5673 arg1 = &temp1;
5674 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5675 }
5676 if (obj1) {
5677 ecode2 = SWIG_AsVal_int(obj1, &val2);
5678 if (!SWIG_IsOK(ecode2)) {
5679 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5680 }
5681 arg2 = static_cast< int >(val2);
5682 }
5683 {
5684 if (!wxPyCheckForApp()) SWIG_fail;
5685 PyThreadState* __tstate = wxPyBeginAllowThreads();
5686 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5687 wxPyEndAllowThreads(__tstate);
5688 if (PyErr_Occurred()) SWIG_fail;
5689 }
5690 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5691 return resultobj;
5692fail:
5693 return NULL;
5694}
5695
5696
5697SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5698 PyObject *resultobj = 0;
5699 wxBitmap *arg1 = 0 ;
5700 wxBrush *result = 0 ;
5701 void *argp1 = 0 ;
5702 int res1 = 0 ;
5703 PyObject * obj0 = 0 ;
5704 char * kwnames[] = {
5705 (char *) "stippleBitmap", NULL
5706 };
5707
5708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5709 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5710 if (!SWIG_IsOK(res1)) {
5711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5712 }
5713 if (!argp1) {
5714 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5715 }
5716 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5717 {
5718 if (!wxPyCheckForApp()) SWIG_fail;
5719 PyThreadState* __tstate = wxPyBeginAllowThreads();
5720 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5721 wxPyEndAllowThreads(__tstate);
5722 if (PyErr_Occurred()) SWIG_fail;
5723 }
5724 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5725 return resultobj;
5726fail:
5727 return NULL;
d55e5bfc
RD
5728}
5729
5730
1bd55598
RD
5731SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5732 PyObject *resultobj = 0;
5733 wxBrush *arg1 = (wxBrush *) 0 ;
5734 void *argp1 = 0 ;
5735 int res1 = 0 ;
5736 PyObject *swig_obj[1] ;
5737
5738 if (!args) SWIG_fail;
5739 swig_obj[0] = args;
5740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5741 if (!SWIG_IsOK(res1)) {
5742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5743 }
5744 arg1 = reinterpret_cast< wxBrush * >(argp1);
5745 {
5746 PyThreadState* __tstate = wxPyBeginAllowThreads();
5747 delete arg1;
d55e5bfc 5748
1bd55598
RD
5749 wxPyEndAllowThreads(__tstate);
5750 if (PyErr_Occurred()) SWIG_fail;
5751 }
5752 resultobj = SWIG_Py_Void();
5753 return resultobj;
5754fail:
5755 return NULL;
5756}
5757
5758
5759SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5760 PyObject *resultobj = 0;
5761 wxBrush *arg1 = (wxBrush *) 0 ;
5762 wxColour *arg2 = 0 ;
5763 void *argp1 = 0 ;
5764 int res1 = 0 ;
5765 wxColour temp2 ;
5766 PyObject * obj0 = 0 ;
5767 PyObject * obj1 = 0 ;
5768 char * kwnames[] = {
5769 (char *) "self",(char *) "col", NULL
5770 };
5771
5772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5774 if (!SWIG_IsOK(res1)) {
5775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5776 }
5777 arg1 = reinterpret_cast< wxBrush * >(argp1);
5778 {
5779 arg2 = &temp2;
5780 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5781 }
5782 {
5783 PyThreadState* __tstate = wxPyBeginAllowThreads();
5784 (arg1)->SetColour((wxColour const &)*arg2);
5785 wxPyEndAllowThreads(__tstate);
5786 if (PyErr_Occurred()) SWIG_fail;
5787 }
5788 resultobj = SWIG_Py_Void();
5789 return resultobj;
5790fail:
5791 return NULL;
5792}
5793
5794
5795SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5796 PyObject *resultobj = 0;
5797 wxBrush *arg1 = (wxBrush *) 0 ;
5798 int arg2 ;
5799 void *argp1 = 0 ;
5800 int res1 = 0 ;
5801 int val2 ;
5802 int ecode2 = 0 ;
5803 PyObject * obj0 = 0 ;
5804 PyObject * obj1 = 0 ;
5805 char * kwnames[] = {
5806 (char *) "self",(char *) "style", NULL
5807 };
5808
5809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5811 if (!SWIG_IsOK(res1)) {
5812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5813 }
5814 arg1 = reinterpret_cast< wxBrush * >(argp1);
5815 ecode2 = SWIG_AsVal_int(obj1, &val2);
5816 if (!SWIG_IsOK(ecode2)) {
5817 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5818 }
5819 arg2 = static_cast< int >(val2);
5820 {
5821 PyThreadState* __tstate = wxPyBeginAllowThreads();
5822 (arg1)->SetStyle(arg2);
5823 wxPyEndAllowThreads(__tstate);
5824 if (PyErr_Occurred()) SWIG_fail;
5825 }
5826 resultobj = SWIG_Py_Void();
5827 return resultobj;
5828fail:
5829 return NULL;
5830}
5831
5832
5833SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5834 PyObject *resultobj = 0;
5835 wxBrush *arg1 = (wxBrush *) 0 ;
5836 wxBitmap *arg2 = 0 ;
5837 void *argp1 = 0 ;
5838 int res1 = 0 ;
5839 void *argp2 = 0 ;
5840 int res2 = 0 ;
5841 PyObject * obj0 = 0 ;
5842 PyObject * obj1 = 0 ;
5843 char * kwnames[] = {
5844 (char *) "self",(char *) "stipple", NULL
5845 };
5846
5847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5849 if (!SWIG_IsOK(res1)) {
5850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5851 }
5852 arg1 = reinterpret_cast< wxBrush * >(argp1);
5853 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5854 if (!SWIG_IsOK(res2)) {
5855 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5856 }
5857 if (!argp2) {
5858 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5859 }
5860 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5861 {
5862 PyThreadState* __tstate = wxPyBeginAllowThreads();
5863 (arg1)->SetStipple((wxBitmap const &)*arg2);
5864 wxPyEndAllowThreads(__tstate);
5865 if (PyErr_Occurred()) SWIG_fail;
5866 }
5867 resultobj = SWIG_Py_Void();
5868 return resultobj;
5869fail:
5870 return NULL;
d55e5bfc
RD
5871}
5872
5873
1bd55598
RD
5874SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5875 PyObject *resultobj = 0;
5876 wxBrush *arg1 = (wxBrush *) 0 ;
5877 wxColour result;
5878 void *argp1 = 0 ;
5879 int res1 = 0 ;
5880 PyObject *swig_obj[1] ;
5881
5882 if (!args) SWIG_fail;
5883 swig_obj[0] = args;
5884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5885 if (!SWIG_IsOK(res1)) {
5886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5887 }
5888 arg1 = reinterpret_cast< wxBrush * >(argp1);
5889 {
5890 PyThreadState* __tstate = wxPyBeginAllowThreads();
5891 result = ((wxBrush const *)arg1)->GetColour();
5892 wxPyEndAllowThreads(__tstate);
5893 if (PyErr_Occurred()) SWIG_fail;
5894 }
5895 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5896 return resultobj;
5897fail:
5898 return NULL;
d55e5bfc
RD
5899}
5900
5901
1bd55598
RD
5902SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5903 PyObject *resultobj = 0;
5904 wxBrush *arg1 = (wxBrush *) 0 ;
5905 int result;
5906 void *argp1 = 0 ;
5907 int res1 = 0 ;
5908 PyObject *swig_obj[1] ;
5909
5910 if (!args) SWIG_fail;
5911 swig_obj[0] = args;
5912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5913 if (!SWIG_IsOK(res1)) {
5914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5915 }
5916 arg1 = reinterpret_cast< wxBrush * >(argp1);
5917 {
5918 PyThreadState* __tstate = wxPyBeginAllowThreads();
5919 result = (int)((wxBrush const *)arg1)->GetStyle();
5920 wxPyEndAllowThreads(__tstate);
5921 if (PyErr_Occurred()) SWIG_fail;
5922 }
5923 resultobj = SWIG_From_int(static_cast< int >(result));
5924 return resultobj;
5925fail:
5926 return NULL;
d55e5bfc
RD
5927}
5928
5929
1bd55598
RD
5930SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5931 PyObject *resultobj = 0;
5932 wxBrush *arg1 = (wxBrush *) 0 ;
5933 wxBitmap *result = 0 ;
5934 void *argp1 = 0 ;
5935 int res1 = 0 ;
5936 PyObject *swig_obj[1] ;
5937
5938 if (!args) SWIG_fail;
5939 swig_obj[0] = args;
5940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5941 if (!SWIG_IsOK(res1)) {
5942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5943 }
5944 arg1 = reinterpret_cast< wxBrush * >(argp1);
5945 {
5946 PyThreadState* __tstate = wxPyBeginAllowThreads();
5947 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5948 wxPyEndAllowThreads(__tstate);
5949 if (PyErr_Occurred()) SWIG_fail;
5950 }
5951 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5952 return resultobj;
5953fail:
5954 return NULL;
d55e5bfc
RD
5955}
5956
5957
1bd55598
RD
5958SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5959 PyObject *resultobj = 0;
5960 wxBrush *arg1 = (wxBrush *) 0 ;
5961 bool result;
5962 void *argp1 = 0 ;
5963 int res1 = 0 ;
5964 PyObject *swig_obj[1] ;
5965
5966 if (!args) SWIG_fail;
5967 swig_obj[0] = args;
5968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5969 if (!SWIG_IsOK(res1)) {
5970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5971 }
5972 arg1 = reinterpret_cast< wxBrush * >(argp1);
5973 {
5974 PyThreadState* __tstate = wxPyBeginAllowThreads();
5975 result = (bool)((wxBrush const *)arg1)->IsHatch();
5976 wxPyEndAllowThreads(__tstate);
5977 if (PyErr_Occurred()) SWIG_fail;
5978 }
5979 {
5980 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5981 }
5982 return resultobj;
5983fail:
5984 return NULL;
d55e5bfc
RD
5985}
5986
5987
b39fe951 5988SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
5989 PyObject *resultobj = 0;
5990 wxBrush *arg1 = (wxBrush *) 0 ;
5991 bool result;
5992 void *argp1 = 0 ;
5993 int res1 = 0 ;
5994 PyObject *swig_obj[1] ;
5995
5996 if (!args) SWIG_fail;
5997 swig_obj[0] = args;
5998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5999 if (!SWIG_IsOK(res1)) {
b39fe951 6000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
1bd55598
RD
6001 }
6002 arg1 = reinterpret_cast< wxBrush * >(argp1);
6003 {
6004 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 6005 result = (bool)(arg1)->IsOk();
1bd55598
RD
6006 wxPyEndAllowThreads(__tstate);
6007 if (PyErr_Occurred()) SWIG_fail;
6008 }
6009 {
6010 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6011 }
6012 return resultobj;
6013fail:
6014 return NULL;
d55e5bfc
RD
6015}
6016
6017
1bd55598
RD
6018SWIGINTERN PyObject *_wrap_Brush_MacGetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6019 PyObject *resultobj = 0;
6020 wxBrush *arg1 = (wxBrush *) 0 ;
6021 short result;
6022 void *argp1 = 0 ;
6023 int res1 = 0 ;
6024 PyObject *swig_obj[1] ;
6025
6026 if (!args) SWIG_fail;
6027 swig_obj[0] = args;
6028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6029 if (!SWIG_IsOK(res1)) {
6030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacGetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
6031 }
6032 arg1 = reinterpret_cast< wxBrush * >(argp1);
6033 {
6034 PyThreadState* __tstate = wxPyBeginAllowThreads();
6035 result = (short)(arg1)->MacGetTheme();
6036 wxPyEndAllowThreads(__tstate);
6037 if (PyErr_Occurred()) SWIG_fail;
6038 }
6039 resultobj = SWIG_From_short(static_cast< short >(result));
6040 return resultobj;
6041fail:
6042 return NULL;
6043}
6044
6045
6046SWIGINTERN PyObject *_wrap_Brush_MacSetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6047 PyObject *resultobj = 0;
6048 wxBrush *arg1 = (wxBrush *) 0 ;
6049 short arg2 ;
6050 void *argp1 = 0 ;
6051 int res1 = 0 ;
6052 short val2 ;
6053 int ecode2 = 0 ;
6054 PyObject * obj0 = 0 ;
6055 PyObject * obj1 = 0 ;
6056 char * kwnames[] = {
6057 (char *) "self",(char *) "macThemeBrush", NULL
6058 };
6059
6060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) SWIG_fail;
6061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6062 if (!SWIG_IsOK(res1)) {
6063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacSetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
6064 }
6065 arg1 = reinterpret_cast< wxBrush * >(argp1);
6066 ecode2 = SWIG_AsVal_short(obj1, &val2);
6067 if (!SWIG_IsOK(ecode2)) {
6068 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_MacSetTheme" "', expected argument " "2"" of type '" "short""'");
6069 }
6070 arg2 = static_cast< short >(val2);
6071 {
6072 PyThreadState* __tstate = wxPyBeginAllowThreads();
6073 (arg1)->MacSetTheme(arg2);
6074 wxPyEndAllowThreads(__tstate);
6075 if (PyErr_Occurred()) SWIG_fail;
6076 }
6077 resultobj = SWIG_Py_Void();
6078 return resultobj;
6079fail:
6080 return NULL;
d55e5bfc
RD
6081}
6082
6083
1bd55598
RD
6084SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6085 PyObject *obj;
6086 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6087 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
6088 return SWIG_Py_Void();
d55e5bfc
RD
6089}
6090
1bd55598
RD
6091SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6092 return SWIG_Python_InitShadowInstance(args);
6093}
d55e5bfc 6094
1bd55598
RD
6095SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6096 PyObject *resultobj = 0;
6097 wxString *arg1 = 0 ;
6098 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
6099 wxBitmap *result = 0 ;
6100 bool temp1 = false ;
6101 int val2 ;
6102 int ecode2 = 0 ;
6103 PyObject * obj0 = 0 ;
6104 PyObject * obj1 = 0 ;
6105 char * kwnames[] = {
6106 (char *) "name",(char *) "type", NULL
6107 };
6108
6109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6110 {
6111 arg1 = wxString_in_helper(obj0);
6112 if (arg1 == NULL) SWIG_fail;
6113 temp1 = true;
6114 }
6115 if (obj1) {
6116 ecode2 = SWIG_AsVal_int(obj1, &val2);
6117 if (!SWIG_IsOK(ecode2)) {
6118 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
6119 }
6120 arg2 = static_cast< wxBitmapType >(val2);
6121 }
6122 {
6123 if (!wxPyCheckForApp()) SWIG_fail;
6124 PyThreadState* __tstate = wxPyBeginAllowThreads();
6125 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
6126 wxPyEndAllowThreads(__tstate);
6127 if (PyErr_Occurred()) SWIG_fail;
6128 }
6129 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
6130 {
6131 if (temp1)
6132 delete arg1;
6133 }
6134 return resultobj;
6135fail:
6136 {
6137 if (temp1)
6138 delete arg1;
6139 }
6140 return NULL;
d55e5bfc
RD
6141}
6142
6143
1bd55598
RD
6144SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6145 PyObject *resultobj = 0;
6146 wxBitmap *arg1 = (wxBitmap *) 0 ;
6147 void *argp1 = 0 ;
6148 int res1 = 0 ;
6149 PyObject *swig_obj[1] ;
6150
6151 if (!args) SWIG_fail;
6152 swig_obj[0] = args;
6153 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
6154 if (!SWIG_IsOK(res1)) {
6155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
6156 }
6157 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6158 {
1bd55598 6159 delete arg1;
d55e5bfc 6160
1bd55598
RD
6161 if (PyErr_Occurred()) SWIG_fail;
6162 }
6163 resultobj = SWIG_Py_Void();
6164 return resultobj;
6165fail:
6166 return NULL;
6167}
6168
6169
6170SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6171 PyObject *resultobj = 0;
6172 int arg1 ;
6173 int arg2 ;
6174 int arg3 = (int) -1 ;
6175 wxBitmap *result = 0 ;
6176 int val1 ;
6177 int ecode1 = 0 ;
6178 int val2 ;
6179 int ecode2 = 0 ;
6180 int val3 ;
6181 int ecode3 = 0 ;
6182 PyObject * obj0 = 0 ;
6183 PyObject * obj1 = 0 ;
6184 PyObject * obj2 = 0 ;
6185 char * kwnames[] = {
6186 (char *) "width",(char *) "height",(char *) "depth", NULL
6187 };
6188
6189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6190 ecode1 = SWIG_AsVal_int(obj0, &val1);
6191 if (!SWIG_IsOK(ecode1)) {
6192 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
6193 }
6194 arg1 = static_cast< int >(val1);
6195 ecode2 = SWIG_AsVal_int(obj1, &val2);
6196 if (!SWIG_IsOK(ecode2)) {
6197 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
6198 }
6199 arg2 = static_cast< int >(val2);
6200 if (obj2) {
6201 ecode3 = SWIG_AsVal_int(obj2, &val3);
6202 if (!SWIG_IsOK(ecode3)) {
6203 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
6204 }
6205 arg3 = static_cast< int >(val3);
6206 }
6207 {
6208 if (!wxPyCheckForApp()) SWIG_fail;
6209 PyThreadState* __tstate = wxPyBeginAllowThreads();
6210 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
6211 wxPyEndAllowThreads(__tstate);
6212 if (PyErr_Occurred()) SWIG_fail;
6213 }
6214 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6215 return resultobj;
6216fail:
6217 return NULL;
6218}
6219
6220
6221SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6222 PyObject *resultobj = 0;
6223 wxIcon *arg1 = 0 ;
6224 wxBitmap *result = 0 ;
6225 void *argp1 = 0 ;
6226 int res1 = 0 ;
6227 PyObject * obj0 = 0 ;
6228 char * kwnames[] = {
6229 (char *) "icon", NULL
6230 };
6231
6232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
6233 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
6234 if (!SWIG_IsOK(res1)) {
6235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6236 }
6237 if (!argp1) {
6238 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6239 }
6240 arg1 = reinterpret_cast< wxIcon * >(argp1);
6241 {
6242 if (!wxPyCheckForApp()) SWIG_fail;
6243 PyThreadState* __tstate = wxPyBeginAllowThreads();
6244 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6245 wxPyEndAllowThreads(__tstate);
6246 if (PyErr_Occurred()) SWIG_fail;
6247 }
6248 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6249 return resultobj;
6250fail:
6251 return NULL;
6252}
6253
6254
6255SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6256 PyObject *resultobj = 0;
6257 wxImage *arg1 = 0 ;
6258 int arg2 = (int) -1 ;
6259 wxBitmap *result = 0 ;
6260 void *argp1 = 0 ;
6261 int res1 = 0 ;
6262 int val2 ;
6263 int ecode2 = 0 ;
6264 PyObject * obj0 = 0 ;
6265 PyObject * obj1 = 0 ;
6266 char * kwnames[] = {
6267 (char *) "image",(char *) "depth", NULL
6268 };
6269
6270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6271 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6272 if (!SWIG_IsOK(res1)) {
6273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6274 }
6275 if (!argp1) {
6276 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6277 }
6278 arg1 = reinterpret_cast< wxImage * >(argp1);
6279 if (obj1) {
6280 ecode2 = SWIG_AsVal_int(obj1, &val2);
6281 if (!SWIG_IsOK(ecode2)) {
6282 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6283 }
6284 arg2 = static_cast< int >(val2);
6285 }
6286 {
6287 if (!wxPyCheckForApp()) SWIG_fail;
6288 PyThreadState* __tstate = wxPyBeginAllowThreads();
6289 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6290 wxPyEndAllowThreads(__tstate);
6291 if (PyErr_Occurred()) SWIG_fail;
6292 }
6293 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6294 return resultobj;
6295fail:
6296 return NULL;
d55e5bfc
RD
6297}
6298
6299
1bd55598
RD
6300SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6301 PyObject *resultobj = 0;
6302 PyObject *arg1 = (PyObject *) 0 ;
6303 wxBitmap *result = 0 ;
6304 PyObject * obj0 = 0 ;
6305 char * kwnames[] = {
6306 (char *) "listOfStrings", NULL
6307 };
6308
6309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6310 arg1 = obj0;
6311 {
6312 if (!wxPyCheckForApp()) SWIG_fail;
6313 PyThreadState* __tstate = wxPyBeginAllowThreads();
6314 result = (wxBitmap *)new_wxBitmap(arg1);
6315 wxPyEndAllowThreads(__tstate);
6316 if (PyErr_Occurred()) SWIG_fail;
6317 }
6318 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6319 return resultobj;
6320fail:
6321 return NULL;
6322}
6323
6324
6325SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6326 PyObject *resultobj = 0;
6327 PyObject *arg1 = (PyObject *) 0 ;
6328 int arg2 ;
6329 int arg3 ;
6330 int arg4 = (int) 1 ;
6331 wxBitmap *result = 0 ;
6332 int val2 ;
6333 int ecode2 = 0 ;
6334 int val3 ;
6335 int ecode3 = 0 ;
6336 int val4 ;
6337 int ecode4 = 0 ;
6338 PyObject * obj0 = 0 ;
6339 PyObject * obj1 = 0 ;
6340 PyObject * obj2 = 0 ;
6341 PyObject * obj3 = 0 ;
6342 char * kwnames[] = {
6343 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6344 };
6345
6346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6347 arg1 = obj0;
6348 ecode2 = SWIG_AsVal_int(obj1, &val2);
6349 if (!SWIG_IsOK(ecode2)) {
6350 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6351 }
6352 arg2 = static_cast< int >(val2);
6353 ecode3 = SWIG_AsVal_int(obj2, &val3);
6354 if (!SWIG_IsOK(ecode3)) {
6355 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6356 }
6357 arg3 = static_cast< int >(val3);
6358 if (obj3) {
6359 ecode4 = SWIG_AsVal_int(obj3, &val4);
6360 if (!SWIG_IsOK(ecode4)) {
6361 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6362 }
6363 arg4 = static_cast< int >(val4);
6364 }
6365 {
6366 if (!wxPyCheckForApp()) SWIG_fail;
6367 PyThreadState* __tstate = wxPyBeginAllowThreads();
6368 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6369 wxPyEndAllowThreads(__tstate);
6370 if (PyErr_Occurred()) SWIG_fail;
6371 }
6372 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6373 return resultobj;
6374fail:
6375 return NULL;
d55e5bfc
RD
6376}
6377
6378
b39fe951 6379SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
6380 PyObject *resultobj = 0;
6381 wxBitmap *arg1 = (wxBitmap *) 0 ;
6382 bool result;
6383 void *argp1 = 0 ;
6384 int res1 = 0 ;
6385 PyObject *swig_obj[1] ;
6386
6387 if (!args) SWIG_fail;
6388 swig_obj[0] = args;
6389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6390 if (!SWIG_IsOK(res1)) {
b39fe951 6391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
1bd55598
RD
6392 }
6393 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6394 {
b39fe951 6395 result = (bool)(arg1)->IsOk();
1bd55598
RD
6396 if (PyErr_Occurred()) SWIG_fail;
6397 }
6398 {
6399 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6400 }
6401 return resultobj;
6402fail:
6403 return NULL;
d55e5bfc
RD
6404}
6405
6406
1bd55598
RD
6407SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6408 PyObject *resultobj = 0;
6409 wxBitmap *arg1 = (wxBitmap *) 0 ;
6410 int result;
6411 void *argp1 = 0 ;
6412 int res1 = 0 ;
6413 PyObject *swig_obj[1] ;
6414
6415 if (!args) SWIG_fail;
6416 swig_obj[0] = args;
6417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6418 if (!SWIG_IsOK(res1)) {
6419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6420 }
6421 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6422 {
1bd55598 6423 result = (int)(arg1)->GetWidth();
1bd55598
RD
6424 if (PyErr_Occurred()) SWIG_fail;
6425 }
6426 resultobj = SWIG_From_int(static_cast< int >(result));
6427 return resultobj;
6428fail:
6429 return NULL;
070c48b4
RD
6430}
6431
6432
1bd55598
RD
6433SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6434 PyObject *resultobj = 0;
6435 wxBitmap *arg1 = (wxBitmap *) 0 ;
6436 int result;
6437 void *argp1 = 0 ;
6438 int res1 = 0 ;
6439 PyObject *swig_obj[1] ;
6440
6441 if (!args) SWIG_fail;
6442 swig_obj[0] = args;
6443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6444 if (!SWIG_IsOK(res1)) {
6445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6446 }
6447 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6448 {
1bd55598 6449 result = (int)(arg1)->GetHeight();
1bd55598
RD
6450 if (PyErr_Occurred()) SWIG_fail;
6451 }
6452 resultobj = SWIG_From_int(static_cast< int >(result));
6453 return resultobj;
6454fail:
6455 return NULL;
d55e5bfc
RD
6456}
6457
6458
1bd55598
RD
6459SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6460 PyObject *resultobj = 0;
6461 wxBitmap *arg1 = (wxBitmap *) 0 ;
6462 int result;
6463 void *argp1 = 0 ;
6464 int res1 = 0 ;
6465 PyObject *swig_obj[1] ;
6466
6467 if (!args) SWIG_fail;
6468 swig_obj[0] = args;
6469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6470 if (!SWIG_IsOK(res1)) {
6471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6472 }
6473 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6474 {
1bd55598 6475 result = (int)(arg1)->GetDepth();
1bd55598
RD
6476 if (PyErr_Occurred()) SWIG_fail;
6477 }
6478 resultobj = SWIG_From_int(static_cast< int >(result));
6479 return resultobj;
6480fail:
6481 return NULL;
d55e5bfc
RD
6482}
6483
6484
1bd55598
RD
6485SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6486 PyObject *resultobj = 0;
6487 wxBitmap *arg1 = (wxBitmap *) 0 ;
6488 wxSize result;
6489 void *argp1 = 0 ;
6490 int res1 = 0 ;
6491 PyObject *swig_obj[1] ;
6492
6493 if (!args) SWIG_fail;
6494 swig_obj[0] = args;
6495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6496 if (!SWIG_IsOK(res1)) {
6497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6498 }
6499 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6500 {
1bd55598 6501 result = wxBitmap_GetSize(arg1);
1bd55598
RD
6502 if (PyErr_Occurred()) SWIG_fail;
6503 }
6504 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6505 return resultobj;
6506fail:
6507 return NULL;
d55e5bfc
RD
6508}
6509
6510
1bd55598
RD
6511SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6512 PyObject *resultobj = 0;
6513 wxBitmap *arg1 = (wxBitmap *) 0 ;
6514 SwigValueWrapper<wxImage > result;
6515 void *argp1 = 0 ;
6516 int res1 = 0 ;
6517 PyObject *swig_obj[1] ;
6518
6519 if (!args) SWIG_fail;
6520 swig_obj[0] = args;
6521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6522 if (!SWIG_IsOK(res1)) {
6523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6524 }
6525 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6526 {
1bd55598 6527 result = ((wxBitmap const *)arg1)->ConvertToImage();
1bd55598
RD
6528 if (PyErr_Occurred()) SWIG_fail;
6529 }
6530 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6531 return resultobj;
6532fail:
6533 return NULL;
d55e5bfc
RD
6534}
6535
6536
1bd55598
RD
6537SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6538 PyObject *resultobj = 0;
6539 wxBitmap *arg1 = (wxBitmap *) 0 ;
6540 wxMask *result = 0 ;
6541 void *argp1 = 0 ;
6542 int res1 = 0 ;
6543 PyObject *swig_obj[1] ;
6544
6545 if (!args) SWIG_fail;
6546 swig_obj[0] = args;
6547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6548 if (!SWIG_IsOK(res1)) {
6549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6550 }
6551 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6552 {
1bd55598 6553 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
1bd55598
RD
6554 if (PyErr_Occurred()) SWIG_fail;
6555 }
6556 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6557 return resultobj;
6558fail:
6559 return NULL;
6560}
6561
6562
6563SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6564 PyObject *resultobj = 0;
6565 wxBitmap *arg1 = (wxBitmap *) 0 ;
6566 wxMask *arg2 = (wxMask *) 0 ;
6567 void *argp1 = 0 ;
6568 int res1 = 0 ;
6569 int res2 = 0 ;
6570 PyObject * obj0 = 0 ;
6571 PyObject * obj1 = 0 ;
6572 char * kwnames[] = {
6573 (char *) "self",(char *) "mask", NULL
6574 };
6575
6576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6578 if (!SWIG_IsOK(res1)) {
6579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6580 }
6581 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6582 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6583 if (!SWIG_IsOK(res2)) {
6584 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6585 }
6586 {
1bd55598 6587 (arg1)->SetMask(arg2);
1bd55598
RD
6588 if (PyErr_Occurred()) SWIG_fail;
6589 }
6590 resultobj = SWIG_Py_Void();
6591 return resultobj;
6592fail:
6593 return NULL;
6594}
6595
6596
6597SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6598 PyObject *resultobj = 0;
6599 wxBitmap *arg1 = (wxBitmap *) 0 ;
6600 wxColour *arg2 = 0 ;
6601 void *argp1 = 0 ;
6602 int res1 = 0 ;
6603 wxColour temp2 ;
6604 PyObject * obj0 = 0 ;
6605 PyObject * obj1 = 0 ;
6606 char * kwnames[] = {
6607 (char *) "self",(char *) "colour", NULL
6608 };
6609
6610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6612 if (!SWIG_IsOK(res1)) {
6613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6614 }
6615 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6616 {
6617 arg2 = &temp2;
6618 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6619 }
6620 {
1bd55598 6621 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
1bd55598
RD
6622 if (PyErr_Occurred()) SWIG_fail;
6623 }
6624 resultobj = SWIG_Py_Void();
6625 return resultobj;
6626fail:
6627 return NULL;
6628}
6629
6630
6631SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6632 PyObject *resultobj = 0;
6633 wxBitmap *arg1 = (wxBitmap *) 0 ;
6634 wxRect *arg2 = 0 ;
6635 SwigValueWrapper<wxBitmap > result;
6636 void *argp1 = 0 ;
6637 int res1 = 0 ;
6638 wxRect temp2 ;
6639 PyObject * obj0 = 0 ;
6640 PyObject * obj1 = 0 ;
6641 char * kwnames[] = {
6642 (char *) "self",(char *) "rect", NULL
6643 };
6644
6645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6647 if (!SWIG_IsOK(res1)) {
6648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6649 }
6650 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6651 {
6652 arg2 = &temp2;
6653 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6654 }
6655 {
1bd55598 6656 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
1bd55598
RD
6657 if (PyErr_Occurred()) SWIG_fail;
6658 }
6659 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6660 return resultobj;
6661fail:
6662 return NULL;
6663}
6664
6665
6666SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6667 PyObject *resultobj = 0;
6668 wxBitmap *arg1 = (wxBitmap *) 0 ;
6669 wxString *arg2 = 0 ;
6670 wxBitmapType arg3 ;
6671 wxPalette *arg4 = (wxPalette *) NULL ;
6672 bool result;
6673 void *argp1 = 0 ;
6674 int res1 = 0 ;
6675 bool temp2 = false ;
6676 int val3 ;
6677 int ecode3 = 0 ;
6678 void *argp4 = 0 ;
6679 int res4 = 0 ;
6680 PyObject * obj0 = 0 ;
6681 PyObject * obj1 = 0 ;
6682 PyObject * obj2 = 0 ;
6683 PyObject * obj3 = 0 ;
6684 char * kwnames[] = {
6685 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6686 };
6687
6688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6690 if (!SWIG_IsOK(res1)) {
6691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6692 }
6693 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6694 {
6695 arg2 = wxString_in_helper(obj1);
6696 if (arg2 == NULL) SWIG_fail;
6697 temp2 = true;
6698 }
6699 ecode3 = SWIG_AsVal_int(obj2, &val3);
6700 if (!SWIG_IsOK(ecode3)) {
6701 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6702 }
6703 arg3 = static_cast< wxBitmapType >(val3);
6704 if (obj3) {
6705 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6706 if (!SWIG_IsOK(res4)) {
6707 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
d04418a7 6708 }
1bd55598
RD
6709 arg4 = reinterpret_cast< wxPalette * >(argp4);
6710 }
6711 {
1bd55598 6712 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
1bd55598
RD
6713 if (PyErr_Occurred()) SWIG_fail;
6714 }
6715 {
6716 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6717 }
6718 {
6719 if (temp2)
6720 delete arg2;
6721 }
6722 return resultobj;
6723fail:
6724 {
6725 if (temp2)
6726 delete arg2;
6727 }
6728 return NULL;
6729}
6730
6731
6732SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6733 PyObject *resultobj = 0;
6734 wxBitmap *arg1 = (wxBitmap *) 0 ;
6735 wxString *arg2 = 0 ;
6736 wxBitmapType arg3 ;
6737 bool result;
6738 void *argp1 = 0 ;
6739 int res1 = 0 ;
6740 bool temp2 = false ;
6741 int val3 ;
6742 int ecode3 = 0 ;
6743 PyObject * obj0 = 0 ;
6744 PyObject * obj1 = 0 ;
6745 PyObject * obj2 = 0 ;
6746 char * kwnames[] = {
6747 (char *) "self",(char *) "name",(char *) "type", NULL
6748 };
6749
6750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6752 if (!SWIG_IsOK(res1)) {
6753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6754 }
6755 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6756 {
6757 arg2 = wxString_in_helper(obj1);
6758 if (arg2 == NULL) SWIG_fail;
6759 temp2 = true;
6760 }
6761 ecode3 = SWIG_AsVal_int(obj2, &val3);
6762 if (!SWIG_IsOK(ecode3)) {
6763 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6764 }
6765 arg3 = static_cast< wxBitmapType >(val3);
6766 {
1bd55598 6767 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
1bd55598
RD
6768 if (PyErr_Occurred()) SWIG_fail;
6769 }
6770 {
6771 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6772 }
6773 {
6774 if (temp2)
6775 delete arg2;
6776 }
6777 return resultobj;
6778fail:
6779 {
6780 if (temp2)
6781 delete arg2;
6782 }
6783 return NULL;
d04418a7
RD
6784}
6785
6786
1bd55598
RD
6787SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6788 PyObject *resultobj = 0;
6789 wxBitmap *arg1 = (wxBitmap *) 0 ;
6790 wxPalette *result = 0 ;
6791 void *argp1 = 0 ;
6792 int res1 = 0 ;
6793 PyObject *swig_obj[1] ;
6794
6795 if (!args) SWIG_fail;
6796 swig_obj[0] = args;
6797 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6798 if (!SWIG_IsOK(res1)) {
6799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6800 }
6801 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6802 {
1bd55598 6803 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
1bd55598
RD
6804 if (PyErr_Occurred()) SWIG_fail;
6805 }
6806 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6807 return resultobj;
6808fail:
6809 return NULL;
6810}
6811
6812
6813SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6814 PyObject *resultobj = 0;
6815 wxBitmap *arg1 = (wxBitmap *) 0 ;
6816 wxIcon *arg2 = 0 ;
6817 bool result;
6818 void *argp1 = 0 ;
6819 int res1 = 0 ;
6820 void *argp2 = 0 ;
6821 int res2 = 0 ;
6822 PyObject * obj0 = 0 ;
6823 PyObject * obj1 = 0 ;
6824 char * kwnames[] = {
6825 (char *) "self",(char *) "icon", NULL
6826 };
6827
6828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6830 if (!SWIG_IsOK(res1)) {
6831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6832 }
6833 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6834 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6835 if (!SWIG_IsOK(res2)) {
6836 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6837 }
6838 if (!argp2) {
6839 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6840 }
6841 arg2 = reinterpret_cast< wxIcon * >(argp2);
6842 {
1bd55598 6843 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
1bd55598
RD
6844 if (PyErr_Occurred()) SWIG_fail;
6845 }
6846 {
6847 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6848 }
6849 return resultobj;
6850fail:
6851 return NULL;
6852}
6853
6854
6855SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6856 PyObject *resultobj = 0;
6857 wxBitmap *arg1 = (wxBitmap *) 0 ;
6858 int arg2 ;
6859 void *argp1 = 0 ;
6860 int res1 = 0 ;
6861 int val2 ;
6862 int ecode2 = 0 ;
6863 PyObject * obj0 = 0 ;
6864 PyObject * obj1 = 0 ;
6865 char * kwnames[] = {
6866 (char *) "self",(char *) "height", NULL
6867 };
6868
6869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6871 if (!SWIG_IsOK(res1)) {
6872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6873 }
6874 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6875 ecode2 = SWIG_AsVal_int(obj1, &val2);
6876 if (!SWIG_IsOK(ecode2)) {
6877 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6878 }
6879 arg2 = static_cast< int >(val2);
6880 {
1bd55598 6881 (arg1)->SetHeight(arg2);
1bd55598
RD
6882 if (PyErr_Occurred()) SWIG_fail;
6883 }
6884 resultobj = SWIG_Py_Void();
6885 return resultobj;
6886fail:
6887 return NULL;
6888}
6889
6890
6891SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6892 PyObject *resultobj = 0;
6893 wxBitmap *arg1 = (wxBitmap *) 0 ;
6894 int arg2 ;
6895 void *argp1 = 0 ;
6896 int res1 = 0 ;
6897 int val2 ;
6898 int ecode2 = 0 ;
6899 PyObject * obj0 = 0 ;
6900 PyObject * obj1 = 0 ;
6901 char * kwnames[] = {
6902 (char *) "self",(char *) "width", NULL
6903 };
6904
6905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6907 if (!SWIG_IsOK(res1)) {
6908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6909 }
6910 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6911 ecode2 = SWIG_AsVal_int(obj1, &val2);
6912 if (!SWIG_IsOK(ecode2)) {
6913 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6914 }
6915 arg2 = static_cast< int >(val2);
6916 {
1bd55598 6917 (arg1)->SetWidth(arg2);
1bd55598
RD
6918 if (PyErr_Occurred()) SWIG_fail;
6919 }
6920 resultobj = SWIG_Py_Void();
6921 return resultobj;
6922fail:
6923 return NULL;
6924}
6925
6926
6927SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6928 PyObject *resultobj = 0;
6929 wxBitmap *arg1 = (wxBitmap *) 0 ;
6930 int arg2 ;
6931 void *argp1 = 0 ;
6932 int res1 = 0 ;
6933 int val2 ;
6934 int ecode2 = 0 ;
6935 PyObject * obj0 = 0 ;
6936 PyObject * obj1 = 0 ;
6937 char * kwnames[] = {
6938 (char *) "self",(char *) "depth", NULL
6939 };
6940
6941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6943 if (!SWIG_IsOK(res1)) {
6944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6945 }
6946 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6947 ecode2 = SWIG_AsVal_int(obj1, &val2);
6948 if (!SWIG_IsOK(ecode2)) {
6949 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6950 }
6951 arg2 = static_cast< int >(val2);
6952 {
1bd55598 6953 (arg1)->SetDepth(arg2);
1bd55598
RD
6954 if (PyErr_Occurred()) SWIG_fail;
6955 }
6956 resultobj = SWIG_Py_Void();
6957 return resultobj;
6958fail:
6959 return NULL;
6960}
6961
6962
6963SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6964 PyObject *resultobj = 0;
6965 wxBitmap *arg1 = (wxBitmap *) 0 ;
6966 wxSize *arg2 = 0 ;
6967 void *argp1 = 0 ;
6968 int res1 = 0 ;
6969 wxSize temp2 ;
6970 PyObject * obj0 = 0 ;
6971 PyObject * obj1 = 0 ;
6972 char * kwnames[] = {
6973 (char *) "self",(char *) "size", NULL
6974 };
6975
6976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6978 if (!SWIG_IsOK(res1)) {
6979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6980 }
6981 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6982 {
6983 arg2 = &temp2;
6984 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6985 }
6986 {
1bd55598 6987 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
1bd55598
RD
6988 if (PyErr_Occurred()) SWIG_fail;
6989 }
6990 resultobj = SWIG_Py_Void();
6991 return resultobj;
6992fail:
6993 return NULL;
6994}
6995
6996
8f514ab4
RD
6997SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6998 PyObject *resultobj = 0;
6999 wxBitmap *arg1 = (wxBitmap *) 0 ;
7000 buffer arg2 ;
7001 int arg3 ;
7002 void *argp1 = 0 ;
7003 int res1 = 0 ;
7004 Py_ssize_t temp2 ;
7005 PyObject * obj0 = 0 ;
7006 PyObject * obj1 = 0 ;
7007 char * kwnames[] = {
7008 (char *) "self",(char *) "data", NULL
7009 };
7010
7011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBuffer",kwnames,&obj0,&obj1)) SWIG_fail;
7012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7013 if (!SWIG_IsOK(res1)) {
7014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBuffer" "', expected argument " "1"" of type '" "wxBitmap *""'");
7015 }
7016 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7017 {
7018 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7019 arg3 = (int)temp2;
7020 }
7021 {
7022 wxBitmap_CopyFromBuffer(arg1,arg2,arg3);
7023 if (PyErr_Occurred()) SWIG_fail;
7024 }
7025 resultobj = SWIG_Py_Void();
7026 return resultobj;
7027fail:
7028 return NULL;
7029}
7030
7031
7032SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7033 PyObject *resultobj = 0;
7034 wxBitmap *arg1 = (wxBitmap *) 0 ;
7035 buffer arg2 ;
7036 int arg3 ;
7037 void *argp1 = 0 ;
7038 int res1 = 0 ;
7039 Py_ssize_t temp2 ;
7040 PyObject * obj0 = 0 ;
7041 PyObject * obj1 = 0 ;
7042 char * kwnames[] = {
7043 (char *) "self",(char *) "data", NULL
7044 };
7045
7046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBufferRGBA",kwnames,&obj0,&obj1)) SWIG_fail;
7047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7048 if (!SWIG_IsOK(res1)) {
7049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBufferRGBA" "', expected argument " "1"" of type '" "wxBitmap *""'");
7050 }
7051 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7052 {
7053 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7054 arg3 = (int)temp2;
7055 }
7056 {
7057 wxBitmap_CopyFromBufferRGBA(arg1,arg2,arg3);
7058 if (PyErr_Occurred()) SWIG_fail;
7059 }
7060 resultobj = SWIG_Py_Void();
7061 return resultobj;
7062fail:
7063 return NULL;
7064}
7065
7066
1bd55598
RD
7067SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7068 PyObject *resultobj = 0;
7069 wxBitmap *arg1 = (wxBitmap *) 0 ;
7070 wxBitmap *arg2 = (wxBitmap *) 0 ;
7071 bool result;
7072 void *argp1 = 0 ;
7073 int res1 = 0 ;
7074 void *argp2 = 0 ;
7075 int res2 = 0 ;
7076 PyObject * obj0 = 0 ;
7077 PyObject * obj1 = 0 ;
7078 char * kwnames[] = {
7079 (char *) "self",(char *) "other", NULL
7080 };
7081
7082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
7083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7084 if (!SWIG_IsOK(res1)) {
7085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7086 }
7087 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7088 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7089 if (!SWIG_IsOK(res2)) {
7090 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7091 }
7092 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7093 {
1bd55598 7094 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
1bd55598
RD
7095 if (PyErr_Occurred()) SWIG_fail;
7096 }
7097 {
fc46b7f3
RD
7098 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7099 }
7100 return resultobj;
7101fail:
7102 return NULL;
7103}
7104
7105
7106SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7107 PyObject *resultobj = 0;
7108 wxBitmap *arg1 = (wxBitmap *) 0 ;
7109 wxBitmap *arg2 = (wxBitmap *) 0 ;
7110 bool result;
7111 void *argp1 = 0 ;
7112 int res1 = 0 ;
7113 void *argp2 = 0 ;
7114 int res2 = 0 ;
7115 PyObject * obj0 = 0 ;
7116 PyObject * obj1 = 0 ;
7117 char * kwnames[] = {
7118 (char *) "self",(char *) "other", NULL
7119 };
7120
7121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
7122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7123 if (!SWIG_IsOK(res1)) {
7124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7125 }
7126 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7127 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7128 if (!SWIG_IsOK(res2)) {
7129 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7130 }
7131 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7132 {
7133 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
7134 if (PyErr_Occurred()) SWIG_fail;
7135 }
7136 {
7137 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7138 }
7139 return resultobj;
7140fail:
7141 return NULL;
7142}
7143
7144
7145SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7146 PyObject *obj;
7147 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7148 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
7149 return SWIG_Py_Void();
7150}
7151
7152SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7153 return SWIG_Python_InitShadowInstance(args);
7154}
7155
7156SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7157 PyObject *resultobj = 0;
7158 int arg1 ;
7159 int arg2 ;
7160 buffer arg3 ;
7161 int arg4 ;
7162 buffer arg5 ;
7163 int arg6 ;
7164 wxBitmap *result = 0 ;
7165 int val1 ;
7166 int ecode1 = 0 ;
7167 int val2 ;
7168 int ecode2 = 0 ;
8c9c423b
RD
7169 Py_ssize_t temp3 ;
7170 Py_ssize_t temp5 ;
fc46b7f3
RD
7171 PyObject * obj0 = 0 ;
7172 PyObject * obj1 = 0 ;
7173 PyObject * obj2 = 0 ;
7174 PyObject * obj3 = 0 ;
7175 char * kwnames[] = {
7176 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7177 };
7178
7179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7180 ecode1 = SWIG_AsVal_int(obj0, &val1);
7181 if (!SWIG_IsOK(ecode1)) {
7182 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7183 }
7184 arg1 = static_cast< int >(val1);
7185 ecode2 = SWIG_AsVal_int(obj1, &val2);
7186 if (!SWIG_IsOK(ecode2)) {
7187 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7188 }
7189 arg2 = static_cast< int >(val2);
7190 {
8c9c423b
RD
7191 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7192 arg4 = (int)temp3;
fc46b7f3
RD
7193 }
7194 {
7195 if (obj3 != Py_None) {
8c9c423b
RD
7196 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7197 arg6 = (int)temp5;
fc46b7f3
RD
7198 }
7199 }
7200 {
7201 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7202 if (PyErr_Occurred()) SWIG_fail;
7203 }
7204 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7205 return resultobj;
7206fail:
7207 return NULL;
7208}
7209
7210
7211SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7212 PyObject *resultobj = 0;
7213 int arg1 ;
7214 int arg2 ;
7215 buffer arg3 ;
7216 int arg4 ;
7217 wxBitmap *result = 0 ;
7218 int val1 ;
7219 int ecode1 = 0 ;
7220 int val2 ;
7221 int ecode2 = 0 ;
8c9c423b 7222 Py_ssize_t temp3 ;
fc46b7f3
RD
7223 PyObject * obj0 = 0 ;
7224 PyObject * obj1 = 0 ;
7225 PyObject * obj2 = 0 ;
7226 char * kwnames[] = {
7227 (char *) "width",(char *) "height",(char *) "data", NULL
7228 };
7229
7230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7231 ecode1 = SWIG_AsVal_int(obj0, &val1);
7232 if (!SWIG_IsOK(ecode1)) {
7233 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7234 }
7235 arg1 = static_cast< int >(val1);
7236 ecode2 = SWIG_AsVal_int(obj1, &val2);
7237 if (!SWIG_IsOK(ecode2)) {
7238 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7239 }
7240 arg2 = static_cast< int >(val2);
7241 {
8c9c423b
RD
7242 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7243 arg4 = (int)temp3;
fc46b7f3
RD
7244 }
7245 {
7246 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7247 if (PyErr_Occurred()) SWIG_fail;
7248 }
7249 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7250 return resultobj;
7251fail:
7252 return NULL;
7253}
7254
7255
7256SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7257 PyObject *resultobj = 0;
7258 int arg1 ;
7259 int arg2 ;
7260 buffer arg3 ;
7261 int arg4 ;
7262 wxBitmap *result = 0 ;
7263 int val1 ;
7264 int ecode1 = 0 ;
7265 int val2 ;
7266 int ecode2 = 0 ;
8c9c423b 7267 Py_ssize_t temp3 ;
fc46b7f3
RD
7268 PyObject * obj0 = 0 ;
7269 PyObject * obj1 = 0 ;
7270 PyObject * obj2 = 0 ;
7271 char * kwnames[] = {
7272 (char *) "width",(char *) "height",(char *) "data", NULL
7273 };
7274
7275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7276 ecode1 = SWIG_AsVal_int(obj0, &val1);
7277 if (!SWIG_IsOK(ecode1)) {
7278 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7279 }
7280 arg1 = static_cast< int >(val1);
7281 ecode2 = SWIG_AsVal_int(obj1, &val2);
7282 if (!SWIG_IsOK(ecode2)) {
7283 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7284 }
7285 arg2 = static_cast< int >(val2);
7286 {
8c9c423b
RD
7287 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7288 arg4 = (int)temp3;
fc46b7f3
RD
7289 }
7290 {
7291 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7292 if (PyErr_Occurred()) SWIG_fail;
7293 }
7294 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7295 return resultobj;
7296fail:
7297 return NULL;
7298}
7299
7300
7301SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7302 PyObject *resultobj = 0;
7303 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7304 wxPoint result;
7305 void *argp1 = 0 ;
7306 int res1 = 0 ;
7307 PyObject *swig_obj[1] ;
7308
7309 if (!args) SWIG_fail;
7310 swig_obj[0] = args;
7311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7312 if (!SWIG_IsOK(res1)) {
7313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7314 }
7315 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7316 {
7317 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7318 if (PyErr_Occurred()) SWIG_fail;
7319 }
7320 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7321 return resultobj;
7322fail:
7323 return NULL;
7324}
7325
7326
7327SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7328 PyObject *resultobj = 0;
7329 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7330 int result;
7331 void *argp1 = 0 ;
7332 int res1 = 0 ;
7333 PyObject *swig_obj[1] ;
7334
7335 if (!args) SWIG_fail;
7336 swig_obj[0] = args;
7337 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7338 if (!SWIG_IsOK(res1)) {
7339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7340 }
7341 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7342 {
7343 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7344 if (PyErr_Occurred()) SWIG_fail;
7345 }
7346 resultobj = SWIG_From_int(static_cast< int >(result));
7347 return resultobj;
7348fail:
7349 return NULL;
7350}
7351
7352
7353SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7354 PyObject *resultobj = 0;
7355 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7356 int result;
7357 void *argp1 = 0 ;
7358 int res1 = 0 ;
7359 PyObject *swig_obj[1] ;
7360
7361 if (!args) SWIG_fail;
7362 swig_obj[0] = args;
7363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7364 if (!SWIG_IsOK(res1)) {
7365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7366 }
7367 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7368 {
7369 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7370 if (PyErr_Occurred()) SWIG_fail;
7371 }
7372 resultobj = SWIG_From_int(static_cast< int >(result));
7373 return resultobj;
7374fail:
7375 return NULL;
7376}
7377
7378
7379SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7380 PyObject *resultobj = 0;
7381 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7382 wxSize result;
7383 void *argp1 = 0 ;
7384 int res1 = 0 ;
7385 PyObject *swig_obj[1] ;
7386
7387 if (!args) SWIG_fail;
7388 swig_obj[0] = args;
7389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7390 if (!SWIG_IsOK(res1)) {
7391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7392 }
7393 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7394 {
7395 result = ((wxPixelDataBase const *)arg1)->GetSize();
7396 if (PyErr_Occurred()) SWIG_fail;
7397 }
7398 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7399 return resultobj;
7400fail:
7401 return NULL;
7402}
7403
7404
7405SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7406 PyObject *resultobj = 0;
7407 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7408 int result;
7409 void *argp1 = 0 ;
7410 int res1 = 0 ;
7411 PyObject *swig_obj[1] ;
7412
7413 if (!args) SWIG_fail;
7414 swig_obj[0] = args;
7415 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7416 if (!SWIG_IsOK(res1)) {
7417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7418 }
7419 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7420 {
7421 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7422 if (PyErr_Occurred()) SWIG_fail;
7423 }
7424 resultobj = SWIG_From_int(static_cast< int >(result));
7425 return resultobj;
7426fail:
7427 return NULL;
7428}
7429
7430
7431SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7432 PyObject *obj;
7433 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7434 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7435 return SWIG_Py_Void();
7436}
7437
7438SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7439 PyObject *resultobj = 0;
7440 wxBitmap *arg1 = 0 ;
7441 wxNativePixelData *result = 0 ;
7442 void *argp1 = 0 ;
7443 int res1 = 0 ;
7444
7445 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7447 if (!SWIG_IsOK(res1)) {
7448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7449 }
7450 if (!argp1) {
7451 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7452 }
7453 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7454 {
7455 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7456 if (PyErr_Occurred()) SWIG_fail;
7457 }
7458 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7459 return resultobj;
7460fail:
7461 return NULL;
7462}
7463
7464
7465SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7466 PyObject *resultobj = 0;
7467 wxBitmap *arg1 = 0 ;
7468 wxRect *arg2 = 0 ;
7469 wxNativePixelData *result = 0 ;
7470 void *argp1 = 0 ;
7471 int res1 = 0 ;
7472 wxRect temp2 ;
7473
7474 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7476 if (!SWIG_IsOK(res1)) {
7477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7478 }
7479 if (!argp1) {
7480 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7481 }
7482 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7483 {
7484 arg2 = &temp2;
7485 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7486 }
7487 {
7488 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7489 if (PyErr_Occurred()) SWIG_fail;
7490 }
7491 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7492 return resultobj;
7493fail:
7494 return NULL;
7495}
7496
7497
7498SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7499 PyObject *resultobj = 0;
7500 wxBitmap *arg1 = 0 ;
7501 wxPoint *arg2 = 0 ;
7502 wxSize *arg3 = 0 ;
7503 wxNativePixelData *result = 0 ;
7504 void *argp1 = 0 ;
7505 int res1 = 0 ;
7506 wxPoint temp2 ;
7507 wxSize temp3 ;
7508
7509 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7511 if (!SWIG_IsOK(res1)) {
7512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7513 }
7514 if (!argp1) {
7515 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7516 }
7517 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7518 {
7519 arg2 = &temp2;
7520 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7521 }
7522 {
7523 arg3 = &temp3;
7524 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7525 }
7526 {
7527 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7528 if (PyErr_Occurred()) SWIG_fail;
7529 }
7530 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7531 return resultobj;
7532fail:
7533 return NULL;
7534}
7535
7536
7537SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7538 int argc;
7539 PyObject *argv[4];
7540
7541 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7542 --argc;
7543 if (argc == 1) {
7544 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7545 }
7546 if (argc == 2) {
7547 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7548 }
7549 if (argc == 3) {
7550 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7551 }
7552
7553fail:
7554 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7555 return NULL;
7556}
7557
7558
7559SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7560 PyObject *resultobj = 0;
7561 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7562 void *argp1 = 0 ;
7563 int res1 = 0 ;
7564 PyObject *swig_obj[1] ;
7565
7566 if (!args) SWIG_fail;
7567 swig_obj[0] = args;
7568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7569 if (!SWIG_IsOK(res1)) {
7570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7571 }
7572 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7573 {
7574 delete arg1;
7575
7576 if (PyErr_Occurred()) SWIG_fail;
7577 }
7578 resultobj = SWIG_Py_Void();
7579 return resultobj;
7580fail:
7581 return NULL;
7582}
7583
7584
7585SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7586 PyObject *resultobj = 0;
7587 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7588 wxNativePixelData_Accessor result;
7589 void *argp1 = 0 ;
7590 int res1 = 0 ;
7591 PyObject *swig_obj[1] ;
7592
7593 if (!args) SWIG_fail;
7594 swig_obj[0] = args;
7595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7596 if (!SWIG_IsOK(res1)) {
7597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7598 }
7599 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7600 {
7601 result = ((wxNativePixelData const *)arg1)->GetPixels();
7602 if (PyErr_Occurred()) SWIG_fail;
7603 }
7604 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7605 return resultobj;
7606fail:
7607 return NULL;
7608}
7609
7610
7611SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7612 PyObject *resultobj = 0;
7613 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7614 void *argp1 = 0 ;
7615 int res1 = 0 ;
7616 PyObject *swig_obj[1] ;
7617
7618 if (!args) SWIG_fail;
7619 swig_obj[0] = args;
7620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7621 if (!SWIG_IsOK(res1)) {
7622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7623 }
7624 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7625 {
7626 (arg1)->UseAlpha();
7627 if (PyErr_Occurred()) SWIG_fail;
7628 }
7629 resultobj = SWIG_Py_Void();
7630 return resultobj;
7631fail:
7632 return NULL;
7633}
7634
7635
7636SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7637 PyObject *resultobj = 0;
7638 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7639 bool result;
7640 void *argp1 = 0 ;
7641 int res1 = 0 ;
7642 PyObject *swig_obj[1] ;
7643
7644 if (!args) SWIG_fail;
7645 swig_obj[0] = args;
7646 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7647 if (!SWIG_IsOK(res1)) {
7648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7649 }
7650 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7651 {
7652 result = (bool)wxNativePixelData___nonzero__(arg1);
7653 if (PyErr_Occurred()) SWIG_fail;
7654 }
7655 {
7656 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7657 }
7658 return resultobj;
7659fail:
7660 return NULL;
7661}
7662
7663
7664SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7665 PyObject *obj;
7666 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7667 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7668 return SWIG_Py_Void();
7669}
7670
7671SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7672 return SWIG_Python_InitShadowInstance(args);
7673}
7674
7675SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7676 PyObject *resultobj = 0;
7677 wxNativePixelData *arg1 = 0 ;
7678 wxNativePixelData_Accessor *result = 0 ;
7679 void *argp1 = 0 ;
7680 int res1 = 0 ;
7681
7682 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7683 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7684 if (!SWIG_IsOK(res1)) {
7685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7686 }
7687 if (!argp1) {
7688 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7689 }
7690 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7691 {
7692 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7693 if (PyErr_Occurred()) SWIG_fail;
7694 }
7695 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7696 return resultobj;
7697fail:
7698 return NULL;
7699}
7700
7701
7702SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7703 PyObject *resultobj = 0;
7704 wxBitmap *arg1 = 0 ;
7705 wxNativePixelData *arg2 = 0 ;
7706 wxNativePixelData_Accessor *result = 0 ;
7707 void *argp1 = 0 ;
7708 int res1 = 0 ;
7709 void *argp2 = 0 ;
7710 int res2 = 0 ;
7711
7712 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7713 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7714 if (!SWIG_IsOK(res1)) {
7715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7716 }
7717 if (!argp1) {
7718 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7719 }
7720 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7721 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7722 if (!SWIG_IsOK(res2)) {
7723 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7724 }
7725 if (!argp2) {
7726 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7727 }
7728 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7729 {
7730 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7731 if (PyErr_Occurred()) SWIG_fail;
7732 }
7733 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7734 return resultobj;
7735fail:
7736 return NULL;
7737}
7738
7739
7740SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7741 PyObject *resultobj = 0;
7742 wxNativePixelData_Accessor *result = 0 ;
7743
7744 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7745 {
7746 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7747 if (PyErr_Occurred()) SWIG_fail;
7748 }
7749 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7750 return resultobj;
7751fail:
7752 return NULL;
7753}
7754
7755
7756SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7757 int argc;
7758 PyObject *argv[3];
7759
7760 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7761 --argc;
7762 if (argc == 0) {
7763 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7764 }
7765 if (argc == 1) {
7766 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7767 }
7768 if (argc == 2) {
7769 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7770 }
7771
7772fail:
7773 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7774 return NULL;
7775}
7776
7777
7778SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7779 PyObject *resultobj = 0;
7780 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7781 void *argp1 = 0 ;
7782 int res1 = 0 ;
7783 PyObject *swig_obj[1] ;
7784
7785 if (!args) SWIG_fail;
7786 swig_obj[0] = args;
7787 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7788 if (!SWIG_IsOK(res1)) {
7789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7790 }
7791 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7792 {
7793 delete arg1;
7794
7795 if (PyErr_Occurred()) SWIG_fail;
7796 }
7797 resultobj = SWIG_Py_Void();
7798 return resultobj;
7799fail:
7800 return NULL;
7801}
7802
7803
7804SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7805 PyObject *resultobj = 0;
7806 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7807 wxNativePixelData *arg2 = 0 ;
7808 void *argp1 = 0 ;
7809 int res1 = 0 ;
7810 void *argp2 = 0 ;
7811 int res2 = 0 ;
7812 PyObject * obj0 = 0 ;
7813 PyObject * obj1 = 0 ;
7814 char * kwnames[] = {
7815 (char *) "self",(char *) "data", NULL
7816 };
7817
7818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7820 if (!SWIG_IsOK(res1)) {
7821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7822 }
7823 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7824 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7825 if (!SWIG_IsOK(res2)) {
7826 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7827 }
7828 if (!argp2) {
7829 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7830 }
7831 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7832 {
7833 (arg1)->Reset((wxNativePixelData const &)*arg2);
7834 if (PyErr_Occurred()) SWIG_fail;
7835 }
7836 resultobj = SWIG_Py_Void();
7837 return resultobj;
7838fail:
7839 return NULL;
7840}
7841
7842
7843SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7844 PyObject *resultobj = 0;
7845 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7846 bool result;
7847 void *argp1 = 0 ;
7848 int res1 = 0 ;
7849 PyObject *swig_obj[1] ;
7850
7851 if (!args) SWIG_fail;
7852 swig_obj[0] = args;
7853 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7854 if (!SWIG_IsOK(res1)) {
7855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7856 }
7857 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7858 {
7859 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7860 if (PyErr_Occurred()) SWIG_fail;
7861 }
7862 {
7863 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7864 }
7865 return resultobj;
7866fail:
7867 return NULL;
7868}
7869
7870
7871SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7872 PyObject *resultobj = 0;
7873 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7874 void *argp1 = 0 ;
7875 int res1 = 0 ;
7876 PyObject *swig_obj[1] ;
7877
7878 if (!args) SWIG_fail;
7879 swig_obj[0] = args;
7880 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7881 if (!SWIG_IsOK(res1)) {
7882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7883 }
7884 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7885 {
7886 wxNativePixelData_Accessor_nextPixel(arg1);
7887 if (PyErr_Occurred()) SWIG_fail;
7888 }
7889 resultobj = SWIG_Py_Void();
7890 return resultobj;
7891fail:
7892 return NULL;
7893}
7894
7895
7896SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7897 PyObject *resultobj = 0;
7898 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7899 wxNativePixelData *arg2 = 0 ;
7900 int arg3 ;
7901 int arg4 ;
7902 void *argp1 = 0 ;
7903 int res1 = 0 ;
7904 void *argp2 = 0 ;
7905 int res2 = 0 ;
7906 int val3 ;
7907 int ecode3 = 0 ;
7908 int val4 ;
7909 int ecode4 = 0 ;
7910 PyObject * obj0 = 0 ;
7911 PyObject * obj1 = 0 ;
7912 PyObject * obj2 = 0 ;
7913 PyObject * obj3 = 0 ;
7914 char * kwnames[] = {
7915 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7916 };
7917
7918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7920 if (!SWIG_IsOK(res1)) {
7921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7922 }
7923 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7924 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7925 if (!SWIG_IsOK(res2)) {
7926 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7927 }
7928 if (!argp2) {
7929 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7930 }
7931 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7932 ecode3 = SWIG_AsVal_int(obj2, &val3);
7933 if (!SWIG_IsOK(ecode3)) {
7934 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7935 }
7936 arg3 = static_cast< int >(val3);
7937 ecode4 = SWIG_AsVal_int(obj3, &val4);
7938 if (!SWIG_IsOK(ecode4)) {
7939 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7940 }
7941 arg4 = static_cast< int >(val4);
7942 {
7943 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7944 if (PyErr_Occurred()) SWIG_fail;
7945 }
7946 resultobj = SWIG_Py_Void();
7947 return resultobj;
7948fail:
7949 return NULL;
7950}
7951
7952
7953SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7954 PyObject *resultobj = 0;
7955 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7956 wxNativePixelData *arg2 = 0 ;
7957 int arg3 ;
7958 void *argp1 = 0 ;
7959 int res1 = 0 ;
7960 void *argp2 = 0 ;
7961 int res2 = 0 ;
7962 int val3 ;
7963 int ecode3 = 0 ;
7964 PyObject * obj0 = 0 ;
7965 PyObject * obj1 = 0 ;
7966 PyObject * obj2 = 0 ;
7967 char * kwnames[] = {
7968 (char *) "self",(char *) "data",(char *) "x", NULL
7969 };
7970
7971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7973 if (!SWIG_IsOK(res1)) {
7974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7975 }
7976 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7977 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7978 if (!SWIG_IsOK(res2)) {
7979 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7980 }
7981 if (!argp2) {
7982 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7983 }
7984 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7985 ecode3 = SWIG_AsVal_int(obj2, &val3);
7986 if (!SWIG_IsOK(ecode3)) {
7987 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7988 }
7989 arg3 = static_cast< int >(val3);
7990 {
7991 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7992 if (PyErr_Occurred()) SWIG_fail;
7993 }
7994 resultobj = SWIG_Py_Void();
7995 return resultobj;
7996fail:
7997 return NULL;
7998}
7999
8000
8001SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8002 PyObject *resultobj = 0;
8003 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8004 wxNativePixelData *arg2 = 0 ;
8005 int arg3 ;
8006 void *argp1 = 0 ;
8007 int res1 = 0 ;
8008 void *argp2 = 0 ;
8009 int res2 = 0 ;
8010 int val3 ;
8011 int ecode3 = 0 ;
8012 PyObject * obj0 = 0 ;
8013 PyObject * obj1 = 0 ;
8014 PyObject * obj2 = 0 ;
8015 char * kwnames[] = {
8016 (char *) "self",(char *) "data",(char *) "y", NULL
8017 };
8018
8019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8021 if (!SWIG_IsOK(res1)) {
8022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8023 }
8024 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8025 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8026 if (!SWIG_IsOK(res2)) {
8027 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8028 }
8029 if (!argp2) {
8030 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8031 }
8032 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8033 ecode3 = SWIG_AsVal_int(obj2, &val3);
8034 if (!SWIG_IsOK(ecode3)) {
8035 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8036 }
8037 arg3 = static_cast< int >(val3);
8038 {
8039 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
8040 if (PyErr_Occurred()) SWIG_fail;
8041 }
8042 resultobj = SWIG_Py_Void();
8043 return resultobj;
8044fail:
8045 return NULL;
8046}
8047
8048
8049SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8050 PyObject *resultobj = 0;
8051 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8052 wxNativePixelData *arg2 = 0 ;
8053 int arg3 ;
8054 int arg4 ;
8055 void *argp1 = 0 ;
8056 int res1 = 0 ;
8057 void *argp2 = 0 ;
8058 int res2 = 0 ;
8059 int val3 ;
8060 int ecode3 = 0 ;
8061 int val4 ;
8062 int ecode4 = 0 ;
8063 PyObject * obj0 = 0 ;
8064 PyObject * obj1 = 0 ;
8065 PyObject * obj2 = 0 ;
8066 PyObject * obj3 = 0 ;
8067 char * kwnames[] = {
8068 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8069 };
8070
8071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8073 if (!SWIG_IsOK(res1)) {
8074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8075 }
8076 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8077 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8078 if (!SWIG_IsOK(res2)) {
8079 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8080 }
8081 if (!argp2) {
8082 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8083 }
8084 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8085 ecode3 = SWIG_AsVal_int(obj2, &val3);
8086 if (!SWIG_IsOK(ecode3)) {
8087 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8088 }
8089 arg3 = static_cast< int >(val3);
8090 ecode4 = SWIG_AsVal_int(obj3, &val4);
8091 if (!SWIG_IsOK(ecode4)) {
8092 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8093 }
8094 arg4 = static_cast< int >(val4);
8095 {
8096 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
8097 if (PyErr_Occurred()) SWIG_fail;
8098 }
8099 resultobj = SWIG_Py_Void();
8100 return resultobj;
8101fail:
8102 return NULL;
8103}
8104
8105
8106SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8107 PyObject *resultobj = 0;
8108 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8109 byte arg2 ;
8110 byte arg3 ;
8111 byte arg4 ;
8112 void *argp1 = 0 ;
8113 int res1 = 0 ;
8114 unsigned char val2 ;
8115 int ecode2 = 0 ;
8116 unsigned char val3 ;
8117 int ecode3 = 0 ;
8118 unsigned char val4 ;
8119 int ecode4 = 0 ;
8120 PyObject * obj0 = 0 ;
8121 PyObject * obj1 = 0 ;
8122 PyObject * obj2 = 0 ;
8123 PyObject * obj3 = 0 ;
8124 char * kwnames[] = {
8125 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
8126 };
8127
8128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8130 if (!SWIG_IsOK(res1)) {
8131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8132 }
8133 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8134 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8135 if (!SWIG_IsOK(ecode2)) {
8136 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8137 }
8138 arg2 = static_cast< byte >(val2);
8139 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8140 if (!SWIG_IsOK(ecode3)) {
8141 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8142 }
8143 arg3 = static_cast< byte >(val3);
8144 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8145 if (!SWIG_IsOK(ecode4)) {
8146 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8147 }
8148 arg4 = static_cast< byte >(val4);
8149 {
8150 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
8151 if (PyErr_Occurred()) SWIG_fail;
8152 }
8153 resultobj = SWIG_Py_Void();
8154 return resultobj;
8155fail:
8156 return NULL;
8157}
8158
8159
8160SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8161 PyObject *resultobj = 0;
8162 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8163 PyObject *result = 0 ;
8164 void *argp1 = 0 ;
8165 int res1 = 0 ;
8166 PyObject *swig_obj[1] ;
8167
8168 if (!args) SWIG_fail;
8169 swig_obj[0] = args;
8170 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8171 if (!SWIG_IsOK(res1)) {
8172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8173 }
8174 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8175 {
8176 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8177 if (PyErr_Occurred()) SWIG_fail;
8178 }
8179 resultobj = result;
8180 return resultobj;
8181fail:
8182 return NULL;
8183}
8184
8185
8186SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8187 PyObject *obj;
8188 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8189 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8190 return SWIG_Py_Void();
8191}
8192
8193SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8194 return SWIG_Python_InitShadowInstance(args);
8195}
8196
8197SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8198 PyObject *resultobj = 0;
8199 wxBitmap *arg1 = 0 ;
8200 wxAlphaPixelData *result = 0 ;
8201 void *argp1 = 0 ;
8202 int res1 = 0 ;
8203
8204 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8206 if (!SWIG_IsOK(res1)) {
8207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8208 }
8209 if (!argp1) {
8210 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8211 }
8212 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8213 {
8214 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8215 if (PyErr_Occurred()) SWIG_fail;
8216 }
8217 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8218 return resultobj;
8219fail:
8220 return NULL;
8221}
8222
8223
8224SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8225 PyObject *resultobj = 0;
8226 wxBitmap *arg1 = 0 ;
8227 wxRect *arg2 = 0 ;
8228 wxAlphaPixelData *result = 0 ;
8229 void *argp1 = 0 ;
8230 int res1 = 0 ;
8231 wxRect temp2 ;
8232
8233 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8235 if (!SWIG_IsOK(res1)) {
8236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8237 }
8238 if (!argp1) {
8239 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8240 }
8241 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8242 {
8243 arg2 = &temp2;
8244 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8245 }
8246 {
8247 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8248 if (PyErr_Occurred()) SWIG_fail;
8249 }
8250 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8251 return resultobj;
8252fail:
8253 return NULL;
8254}
8255
8256
8257SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8258 PyObject *resultobj = 0;
8259 wxBitmap *arg1 = 0 ;
8260 wxPoint *arg2 = 0 ;
8261 wxSize *arg3 = 0 ;
8262 wxAlphaPixelData *result = 0 ;
8263 void *argp1 = 0 ;
8264 int res1 = 0 ;
8265 wxPoint temp2 ;
8266 wxSize temp3 ;
8267
8268 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8269 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8270 if (!SWIG_IsOK(res1)) {
8271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8272 }
8273 if (!argp1) {
8274 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8275 }
8276 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8277 {
8278 arg2 = &temp2;
8279 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8280 }
8281 {
8282 arg3 = &temp3;
8283 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8284 }
8285 {
8286 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8287 if (PyErr_Occurred()) SWIG_fail;
8288 }
8289 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8290 return resultobj;
8291fail:
8292 return NULL;
8293}
8294
8295
8296SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8297 int argc;
8298 PyObject *argv[4];
8299
8300 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8301 --argc;
8302 if (argc == 1) {
8303 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8304 }
8305 if (argc == 2) {
8306 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8307 }
8308 if (argc == 3) {
8309 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8310 }
8311
8312fail:
8313 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8314 return NULL;
8315}
8316
8317
8318SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8319 PyObject *resultobj = 0;
8320 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8321 void *argp1 = 0 ;
8322 int res1 = 0 ;
8323 PyObject *swig_obj[1] ;
8324
8325 if (!args) SWIG_fail;
8326 swig_obj[0] = args;
8327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8328 if (!SWIG_IsOK(res1)) {
8329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8330 }
8331 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8332 {
8333 delete arg1;
8334
8335 if (PyErr_Occurred()) SWIG_fail;
8336 }
8337 resultobj = SWIG_Py_Void();
8338 return resultobj;
8339fail:
8340 return NULL;
8341}
8342
8343
8344SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8345 PyObject *resultobj = 0;
8346 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8347 wxAlphaPixelData_Accessor result;
8348 void *argp1 = 0 ;
8349 int res1 = 0 ;
8350 PyObject *swig_obj[1] ;
8351
8352 if (!args) SWIG_fail;
8353 swig_obj[0] = args;
8354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8355 if (!SWIG_IsOK(res1)) {
8356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8357 }
8358 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8359 {
8360 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8361 if (PyErr_Occurred()) SWIG_fail;
8362 }
8363 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8364 return resultobj;
8365fail:
8366 return NULL;
8367}
8368
8369
8370SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8371 PyObject *resultobj = 0;
8372 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8373 void *argp1 = 0 ;
8374 int res1 = 0 ;
8375 PyObject *swig_obj[1] ;
8376
8377 if (!args) SWIG_fail;
8378 swig_obj[0] = args;
8379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8380 if (!SWIG_IsOK(res1)) {
8381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8382 }
8383 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8384 {
8385 (arg1)->UseAlpha();
8386 if (PyErr_Occurred()) SWIG_fail;
8387 }
8388 resultobj = SWIG_Py_Void();
8389 return resultobj;
8390fail:
8391 return NULL;
8392}
8393
8394
8395SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8396 PyObject *resultobj = 0;
8397 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8398 bool result;
8399 void *argp1 = 0 ;
8400 int res1 = 0 ;
8401 PyObject *swig_obj[1] ;
8402
8403 if (!args) SWIG_fail;
8404 swig_obj[0] = args;
8405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8406 if (!SWIG_IsOK(res1)) {
8407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8408 }
8409 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8410 {
8411 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8412 if (PyErr_Occurred()) SWIG_fail;
8413 }
8414 {
8415 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8416 }
8417 return resultobj;
8418fail:
8419 return NULL;
8420}
8421
8422
8423SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8424 PyObject *obj;
8425 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8426 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8427 return SWIG_Py_Void();
8428}
8429
8430SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8431 return SWIG_Python_InitShadowInstance(args);
8432}
8433
8434SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8435 PyObject *resultobj = 0;
8436 wxAlphaPixelData *arg1 = 0 ;
8437 wxAlphaPixelData_Accessor *result = 0 ;
8438 void *argp1 = 0 ;
8439 int res1 = 0 ;
8440
8441 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8443 if (!SWIG_IsOK(res1)) {
8444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8445 }
8446 if (!argp1) {
8447 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8448 }
8449 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8450 {
8451 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8452 if (PyErr_Occurred()) SWIG_fail;
8453 }
8454 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8455 return resultobj;
8456fail:
8457 return NULL;
8458}
8459
8460
8461SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8462 PyObject *resultobj = 0;
8463 wxBitmap *arg1 = 0 ;
8464 wxAlphaPixelData *arg2 = 0 ;
8465 wxAlphaPixelData_Accessor *result = 0 ;
8466 void *argp1 = 0 ;
8467 int res1 = 0 ;
8468 void *argp2 = 0 ;
8469 int res2 = 0 ;
8470
8471 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8472 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8473 if (!SWIG_IsOK(res1)) {
8474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8475 }
8476 if (!argp1) {
8477 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8478 }
8479 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8480 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8481 if (!SWIG_IsOK(res2)) {
8482 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8483 }
8484 if (!argp2) {
8485 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8486 }
8487 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8488 {
8489 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8490 if (PyErr_Occurred()) SWIG_fail;
8491 }
8492 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8493 return resultobj;
8494fail:
8495 return NULL;
8496}
8497
8498
8499SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8500 PyObject *resultobj = 0;
8501 wxAlphaPixelData_Accessor *result = 0 ;
8502
8503 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8504 {
8505 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8506 if (PyErr_Occurred()) SWIG_fail;
8507 }
8508 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8509 return resultobj;
8510fail:
8511 return NULL;
8512}
8513
8514
8515SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8516 int argc;
8517 PyObject *argv[3];
8518
8519 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8520 --argc;
8521 if (argc == 0) {
8522 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8523 }
8524 if (argc == 1) {
8525 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8526 }
8527 if (argc == 2) {
8528 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8529 }
8530
8531fail:
8532 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8533 return NULL;
8534}
8535
8536
8537SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8538 PyObject *resultobj = 0;
8539 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8540 void *argp1 = 0 ;
8541 int res1 = 0 ;
8542 PyObject *swig_obj[1] ;
8543
8544 if (!args) SWIG_fail;
8545 swig_obj[0] = args;
8546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8547 if (!SWIG_IsOK(res1)) {
8548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8549 }
8550 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8551 {
8552 delete arg1;
8553
8554 if (PyErr_Occurred()) SWIG_fail;
8555 }
8556 resultobj = SWIG_Py_Void();
8557 return resultobj;
8558fail:
8559 return NULL;
8560}
8561
8562
8563SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8564 PyObject *resultobj = 0;
8565 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8566 wxAlphaPixelData *arg2 = 0 ;
8567 void *argp1 = 0 ;
8568 int res1 = 0 ;
8569 void *argp2 = 0 ;
8570 int res2 = 0 ;
8571 PyObject * obj0 = 0 ;
8572 PyObject * obj1 = 0 ;
8573 char * kwnames[] = {
8574 (char *) "self",(char *) "data", NULL
8575 };
8576
8577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8579 if (!SWIG_IsOK(res1)) {
8580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8581 }
8582 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8583 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8584 if (!SWIG_IsOK(res2)) {
8585 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8586 }
8587 if (!argp2) {
8588 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8589 }
8590 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8591 {
8592 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8593 if (PyErr_Occurred()) SWIG_fail;
8594 }
8595 resultobj = SWIG_Py_Void();
8596 return resultobj;
8597fail:
8598 return NULL;
8599}
8600
8601
8602SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8603 PyObject *resultobj = 0;
8604 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8605 bool result;
8606 void *argp1 = 0 ;
8607 int res1 = 0 ;
8608 PyObject *swig_obj[1] ;
8609
8610 if (!args) SWIG_fail;
8611 swig_obj[0] = args;
8612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8613 if (!SWIG_IsOK(res1)) {
8614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8615 }
8616 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8617 {
8618 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8619 if (PyErr_Occurred()) SWIG_fail;
8620 }
8621 {
8622 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8623 }
8624 return resultobj;
8625fail:
8626 return NULL;
8627}
8628
8629
8630SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8631 PyObject *resultobj = 0;
8632 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8633 void *argp1 = 0 ;
8634 int res1 = 0 ;
8635 PyObject *swig_obj[1] ;
8636
8637 if (!args) SWIG_fail;
8638 swig_obj[0] = args;
8639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8640 if (!SWIG_IsOK(res1)) {
8641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8642 }
8643 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8644 {
8645 wxAlphaPixelData_Accessor_nextPixel(arg1);
8646 if (PyErr_Occurred()) SWIG_fail;
8647 }
8648 resultobj = SWIG_Py_Void();
8649 return resultobj;
8650fail:
8651 return NULL;
8652}
8653
8654
8655SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8656 PyObject *resultobj = 0;
8657 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8658 wxAlphaPixelData *arg2 = 0 ;
8659 int arg3 ;
8660 int arg4 ;
8661 void *argp1 = 0 ;
8662 int res1 = 0 ;
8663 void *argp2 = 0 ;
8664 int res2 = 0 ;
8665 int val3 ;
8666 int ecode3 = 0 ;
8667 int val4 ;
8668 int ecode4 = 0 ;
8669 PyObject * obj0 = 0 ;
8670 PyObject * obj1 = 0 ;
8671 PyObject * obj2 = 0 ;
8672 PyObject * obj3 = 0 ;
8673 char * kwnames[] = {
8674 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8675 };
8676
8677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8679 if (!SWIG_IsOK(res1)) {
8680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8681 }
8682 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8683 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8684 if (!SWIG_IsOK(res2)) {
8685 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8686 }
8687 if (!argp2) {
8688 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8689 }
8690 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8691 ecode3 = SWIG_AsVal_int(obj2, &val3);
8692 if (!SWIG_IsOK(ecode3)) {
8693 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8694 }
8695 arg3 = static_cast< int >(val3);
8696 ecode4 = SWIG_AsVal_int(obj3, &val4);
8697 if (!SWIG_IsOK(ecode4)) {
8698 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8699 }
8700 arg4 = static_cast< int >(val4);
8701 {
8702 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8703 if (PyErr_Occurred()) SWIG_fail;
8704 }
8705 resultobj = SWIG_Py_Void();
8706 return resultobj;
8707fail:
8708 return NULL;
8709}
8710
8711
8712SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8713 PyObject *resultobj = 0;
8714 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8715 wxAlphaPixelData *arg2 = 0 ;
8716 int arg3 ;
8717 void *argp1 = 0 ;
8718 int res1 = 0 ;
8719 void *argp2 = 0 ;
8720 int res2 = 0 ;
8721 int val3 ;
8722 int ecode3 = 0 ;
8723 PyObject * obj0 = 0 ;
8724 PyObject * obj1 = 0 ;
8725 PyObject * obj2 = 0 ;
8726 char * kwnames[] = {
8727 (char *) "self",(char *) "data",(char *) "x", NULL
8728 };
8729
8730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8732 if (!SWIG_IsOK(res1)) {
8733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8734 }
8735 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8736 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8737 if (!SWIG_IsOK(res2)) {
8738 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8739 }
8740 if (!argp2) {
8741 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8742 }
8743 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8744 ecode3 = SWIG_AsVal_int(obj2, &val3);
8745 if (!SWIG_IsOK(ecode3)) {
8746 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8747 }
8748 arg3 = static_cast< int >(val3);
8749 {
8750 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8751 if (PyErr_Occurred()) SWIG_fail;
8752 }
8753 resultobj = SWIG_Py_Void();
8754 return resultobj;
8755fail:
8756 return NULL;
8757}
8758
8759
8760SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8761 PyObject *resultobj = 0;
8762 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8763 wxAlphaPixelData *arg2 = 0 ;
8764 int arg3 ;
8765 void *argp1 = 0 ;
8766 int res1 = 0 ;
8767 void *argp2 = 0 ;
8768 int res2 = 0 ;
8769 int val3 ;
8770 int ecode3 = 0 ;
8771 PyObject * obj0 = 0 ;
8772 PyObject * obj1 = 0 ;
8773 PyObject * obj2 = 0 ;
8774 char * kwnames[] = {
8775 (char *) "self",(char *) "data",(char *) "y", NULL
8776 };
8777
8778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8780 if (!SWIG_IsOK(res1)) {
8781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8782 }
8783 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8784 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8785 if (!SWIG_IsOK(res2)) {
8786 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8787 }
8788 if (!argp2) {
8789 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8790 }
8791 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8792 ecode3 = SWIG_AsVal_int(obj2, &val3);
8793 if (!SWIG_IsOK(ecode3)) {
8794 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8795 }
8796 arg3 = static_cast< int >(val3);
8797 {
8798 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8799 if (PyErr_Occurred()) SWIG_fail;
8800 }
8801 resultobj = SWIG_Py_Void();
8802 return resultobj;
8803fail:
8804 return NULL;
8805}
8806
8807
8808SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8809 PyObject *resultobj = 0;
8810 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8811 wxAlphaPixelData *arg2 = 0 ;
8812 int arg3 ;
8813 int arg4 ;
8814 void *argp1 = 0 ;
8815 int res1 = 0 ;
8816 void *argp2 = 0 ;
8817 int res2 = 0 ;
8818 int val3 ;
8819 int ecode3 = 0 ;
8820 int val4 ;
8821 int ecode4 = 0 ;
8822 PyObject * obj0 = 0 ;
8823 PyObject * obj1 = 0 ;
8824 PyObject * obj2 = 0 ;
8825 PyObject * obj3 = 0 ;
8826 char * kwnames[] = {
8827 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8828 };
8829
8830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8832 if (!SWIG_IsOK(res1)) {
8833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8834 }
8835 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8836 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8837 if (!SWIG_IsOK(res2)) {
8838 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8839 }
8840 if (!argp2) {
8841 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8842 }
8843 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8844 ecode3 = SWIG_AsVal_int(obj2, &val3);
8845 if (!SWIG_IsOK(ecode3)) {
8846 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8847 }
8848 arg3 = static_cast< int >(val3);
8849 ecode4 = SWIG_AsVal_int(obj3, &val4);
8850 if (!SWIG_IsOK(ecode4)) {
8851 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8852 }
8853 arg4 = static_cast< int >(val4);
8854 {
8855 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8856 if (PyErr_Occurred()) SWIG_fail;
8857 }
8858 resultobj = SWIG_Py_Void();
8859 return resultobj;
8860fail:
8861 return NULL;
8862}
8863
8864
8865SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8866 PyObject *resultobj = 0;
8867 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8868 byte arg2 ;
8869 byte arg3 ;
8870 byte arg4 ;
8871 byte arg5 ;
8872 void *argp1 = 0 ;
8873 int res1 = 0 ;
8874 unsigned char val2 ;
8875 int ecode2 = 0 ;
8876 unsigned char val3 ;
8877 int ecode3 = 0 ;
8878 unsigned char val4 ;
8879 int ecode4 = 0 ;
8880 unsigned char val5 ;
8881 int ecode5 = 0 ;
8882 PyObject * obj0 = 0 ;
8883 PyObject * obj1 = 0 ;
8884 PyObject * obj2 = 0 ;
8885 PyObject * obj3 = 0 ;
8886 PyObject * obj4 = 0 ;
8887 char * kwnames[] = {
8888 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8889 };
8890
8891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8893 if (!SWIG_IsOK(res1)) {
8894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8895 }
8896 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8897 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8898 if (!SWIG_IsOK(ecode2)) {
8899 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8900 }
8901 arg2 = static_cast< byte >(val2);
8902 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8903 if (!SWIG_IsOK(ecode3)) {
8904 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8905 }
8906 arg3 = static_cast< byte >(val3);
8907 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8908 if (!SWIG_IsOK(ecode4)) {
8909 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8910 }
8911 arg4 = static_cast< byte >(val4);
8912 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8913 if (!SWIG_IsOK(ecode5)) {
8914 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8915 }
8916 arg5 = static_cast< byte >(val5);
8917 {
8918 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8919 if (PyErr_Occurred()) SWIG_fail;
1bd55598 8920 }
fc46b7f3 8921 resultobj = SWIG_Py_Void();
1bd55598
RD
8922 return resultobj;
8923fail:
8924 return NULL;
8925}
8926
8927
fc46b7f3 8928SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 8929 PyObject *resultobj = 0;
fc46b7f3
RD
8930 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8931 PyObject *result = 0 ;
1bd55598
RD
8932 void *argp1 = 0 ;
8933 int res1 = 0 ;
fc46b7f3 8934 PyObject *swig_obj[1] ;
1bd55598 8935
fc46b7f3
RD
8936 if (!args) SWIG_fail;
8937 swig_obj[0] = args;
8938 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
1bd55598 8939 if (!SWIG_IsOK(res1)) {
fc46b7f3 8940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
1bd55598 8941 }
fc46b7f3 8942 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
1bd55598 8943 {
fc46b7f3 8944 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
1bd55598
RD
8945 if (PyErr_Occurred()) SWIG_fail;
8946 }
fc46b7f3 8947 resultobj = result;
1bd55598
RD
8948 return resultobj;
8949fail:
8950 return NULL;
d55e5bfc
RD
8951}
8952
8953
fc46b7f3 8954SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
8955 PyObject *obj;
8956 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 8957 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
1bd55598 8958 return SWIG_Py_Void();
d55e5bfc
RD
8959}
8960
fc46b7f3 8961SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 8962 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
8963}
8964
1bd55598
RD
8965SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8966 PyObject *resultobj = 0;
8967 wxBitmap *arg1 = 0 ;
8968 wxColour const &arg2_defvalue = wxNullColour ;
8969 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8970 wxMask *result = 0 ;
8971 void *argp1 = 0 ;
8972 int res1 = 0 ;
8973 wxColour temp2 ;
8974 PyObject * obj0 = 0 ;
8975 PyObject * obj1 = 0 ;
8976 char * kwnames[] = {
8977 (char *) "bitmap",(char *) "colour", NULL
8978 };
8979
8980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8981 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8982 if (!SWIG_IsOK(res1)) {
8983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8984 }
8985 if (!argp1) {
8986 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8987 }
8988 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8989 if (obj1) {
d55e5bfc 8990 {
1bd55598
RD
8991 arg2 = &temp2;
8992 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 8993 }
1bd55598
RD
8994 }
8995 {
8996 if (!wxPyCheckForApp()) SWIG_fail;
8997 PyThreadState* __tstate = wxPyBeginAllowThreads();
8998 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8999 wxPyEndAllowThreads(__tstate);
9000 if (PyErr_Occurred()) SWIG_fail;
9001 }
9002 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
9003 return resultobj;
9004fail:
9005 return NULL;
d55e5bfc
RD
9006}
9007
9008
1bd55598
RD
9009SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9010 PyObject *resultobj = 0;
9011 wxMask *arg1 = (wxMask *) 0 ;
9012 void *argp1 = 0 ;
9013 int res1 = 0 ;
9014 PyObject *swig_obj[1] ;
9015
9016 if (!args) SWIG_fail;
9017 swig_obj[0] = args;
9018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
9019 if (!SWIG_IsOK(res1)) {
9020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
9021 }
9022 arg1 = reinterpret_cast< wxMask * >(argp1);
9023 {
1bd55598 9024 delete arg1;
d55e5bfc 9025
1bd55598
RD
9026 if (PyErr_Occurred()) SWIG_fail;
9027 }
9028 resultobj = SWIG_Py_Void();
9029 return resultobj;
9030fail:
9031 return NULL;
9032}
9033
9034
9035SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9036 PyObject *obj;
9037 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9038 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
9039 return SWIG_Py_Void();
9040}
9041
9042SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9043 return SWIG_Python_InitShadowInstance(args);
9044}
9045
9046SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9047 PyObject *resultobj = 0;
9048 wxString *arg1 = 0 ;
9049 wxBitmapType arg2 ;
9050 int arg3 = (int) -1 ;
9051 int arg4 = (int) -1 ;
9052 wxIcon *result = 0 ;
9053 bool temp1 = false ;
9054 int val2 ;
9055 int ecode2 = 0 ;
9056 int val3 ;
9057 int ecode3 = 0 ;
9058 int val4 ;
9059 int ecode4 = 0 ;
9060 PyObject * obj0 = 0 ;
9061 PyObject * obj1 = 0 ;
9062 PyObject * obj2 = 0 ;
9063 PyObject * obj3 = 0 ;
9064 char * kwnames[] = {
9065 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
9066 };
9067
9068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9069 {
9070 arg1 = wxString_in_helper(obj0);
9071 if (arg1 == NULL) SWIG_fail;
9072 temp1 = true;
9073 }
9074 ecode2 = SWIG_AsVal_int(obj1, &val2);
9075 if (!SWIG_IsOK(ecode2)) {
9076 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
9077 }
9078 arg2 = static_cast< wxBitmapType >(val2);
9079 if (obj2) {
9080 ecode3 = SWIG_AsVal_int(obj2, &val3);
9081 if (!SWIG_IsOK(ecode3)) {
9082 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
9083 }
9084 arg3 = static_cast< int >(val3);
9085 }
9086 if (obj3) {
9087 ecode4 = SWIG_AsVal_int(obj3, &val4);
9088 if (!SWIG_IsOK(ecode4)) {
9089 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
9090 }
9091 arg4 = static_cast< int >(val4);
9092 }
9093 {
9094 if (!wxPyCheckForApp()) SWIG_fail;
9095 PyThreadState* __tstate = wxPyBeginAllowThreads();
9096 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
9097 wxPyEndAllowThreads(__tstate);
9098 if (PyErr_Occurred()) SWIG_fail;
9099 }
9100 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
9101 {
9102 if (temp1)
9103 delete arg1;
9104 }
9105 return resultobj;
9106fail:
9107 {
9108 if (temp1)
9109 delete arg1;
9110 }
9111 return NULL;
d55e5bfc
RD
9112}
9113
9114
1bd55598
RD
9115SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9116 PyObject *resultobj = 0;
9117 wxIcon *arg1 = (wxIcon *) 0 ;
9118 void *argp1 = 0 ;
9119 int res1 = 0 ;
9120 PyObject *swig_obj[1] ;
9121
9122 if (!args) SWIG_fail;
9123 swig_obj[0] = args;
9124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
9125 if (!SWIG_IsOK(res1)) {
9126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
9127 }
9128 arg1 = reinterpret_cast< wxIcon * >(argp1);
9129 {
9130 PyThreadState* __tstate = wxPyBeginAllowThreads();
9131 delete arg1;
d55e5bfc 9132
1bd55598
RD
9133 wxPyEndAllowThreads(__tstate);
9134 if (PyErr_Occurred()) SWIG_fail;
9135 }
9136 resultobj = SWIG_Py_Void();
9137 return resultobj;
9138fail:
9139 return NULL;
d55e5bfc
RD
9140}
9141
9142
1bd55598
RD
9143SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9144 PyObject *resultobj = 0;
9145 wxIcon *result = 0 ;
9146
9147 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
9148 {
9149 if (!wxPyCheckForApp()) SWIG_fail;
9150 PyThreadState* __tstate = wxPyBeginAllowThreads();
9151 result = (wxIcon *)new wxIcon();
9152 wxPyEndAllowThreads(__tstate);
9153 if (PyErr_Occurred()) SWIG_fail;
9154 }
9155 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9156 return resultobj;
9157fail:
9158 return NULL;
9159}
9160
9161
9162SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9163 PyObject *resultobj = 0;
9164 wxIconLocation *arg1 = 0 ;
9165 wxIcon *result = 0 ;
9166 void *argp1 = 0 ;
9167 int res1 = 0 ;
9168 PyObject * obj0 = 0 ;
9169 char * kwnames[] = {
9170 (char *) "loc", NULL
9171 };
9172
9173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9174 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9175 if (!SWIG_IsOK(res1)) {
9176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9177 }
9178 if (!argp1) {
9179 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9180 }
9181 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9182 {
9183 if (!wxPyCheckForApp()) SWIG_fail;
9184 PyThreadState* __tstate = wxPyBeginAllowThreads();
9185 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9186 wxPyEndAllowThreads(__tstate);
9187 if (PyErr_Occurred()) SWIG_fail;
9188 }
9189 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9190 return resultobj;
9191fail:
9192 return NULL;
9193}
9194
9195
9196SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9197 PyObject *resultobj = 0;
9198 wxBitmap *arg1 = 0 ;
9199 wxIcon *result = 0 ;
9200 void *argp1 = 0 ;
9201 int res1 = 0 ;
9202 PyObject * obj0 = 0 ;
9203 char * kwnames[] = {
9204 (char *) "bmp", NULL
9205 };
9206
9207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9208 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9209 if (!SWIG_IsOK(res1)) {
9210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9211 }
9212 if (!argp1) {
9213 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9214 }
9215 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9216 {
9217 if (!wxPyCheckForApp()) SWIG_fail;
9218 PyThreadState* __tstate = wxPyBeginAllowThreads();
9219 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9220 wxPyEndAllowThreads(__tstate);
9221 if (PyErr_Occurred()) SWIG_fail;
9222 }
9223 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9224 return resultobj;
9225fail:
9226 return NULL;
d55e5bfc
RD
9227}
9228
9229
1bd55598
RD
9230SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9231 PyObject *resultobj = 0;
9232 PyObject *arg1 = (PyObject *) 0 ;
9233 wxIcon *result = 0 ;
9234 PyObject * obj0 = 0 ;
9235 char * kwnames[] = {
9236 (char *) "listOfStrings", NULL
9237 };
9238
9239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9240 arg1 = obj0;
9241 {
9242 if (!wxPyCheckForApp()) SWIG_fail;
9243 PyThreadState* __tstate = wxPyBeginAllowThreads();
9244 result = (wxIcon *)new_wxIcon(arg1);
9245 wxPyEndAllowThreads(__tstate);
9246 if (PyErr_Occurred()) SWIG_fail;
9247 }
9248 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9249 return resultobj;
9250fail:
9251 return NULL;
d55e5bfc
RD
9252}
9253
9254
b39fe951 9255SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
9256 PyObject *resultobj = 0;
9257 wxIcon *arg1 = (wxIcon *) 0 ;
9258 bool result;
9259 void *argp1 = 0 ;
9260 int res1 = 0 ;
9261 PyObject *swig_obj[1] ;
9262
9263 if (!args) SWIG_fail;
9264 swig_obj[0] = args;
9265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9266 if (!SWIG_IsOK(res1)) {
b39fe951 9267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
1bd55598
RD
9268 }
9269 arg1 = reinterpret_cast< wxIcon * >(argp1);
9270 {
9271 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 9272 result = (bool)(arg1)->IsOk();
1bd55598
RD
9273 wxPyEndAllowThreads(__tstate);
9274 if (PyErr_Occurred()) SWIG_fail;
9275 }
9276 {
9277 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9278 }
9279 return resultobj;
9280fail:
9281 return NULL;
d55e5bfc
RD
9282}
9283
9284
1bd55598
RD
9285SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9286 PyObject *resultobj = 0;
9287 wxIcon *arg1 = (wxIcon *) 0 ;
9288 int result;
9289 void *argp1 = 0 ;
9290 int res1 = 0 ;
9291 PyObject *swig_obj[1] ;
9292
9293 if (!args) SWIG_fail;
9294 swig_obj[0] = args;
9295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9296 if (!SWIG_IsOK(res1)) {
9297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9298 }
9299 arg1 = reinterpret_cast< wxIcon * >(argp1);
9300 {
9301 PyThreadState* __tstate = wxPyBeginAllowThreads();
9302 result = (int)(arg1)->GetWidth();
9303 wxPyEndAllowThreads(__tstate);
9304 if (PyErr_Occurred()) SWIG_fail;
9305 }
9306 resultobj = SWIG_From_int(static_cast< int >(result));
9307 return resultobj;
9308fail:
9309 return NULL;
d55e5bfc
RD
9310}
9311
9312
1bd55598
RD
9313SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9314 PyObject *resultobj = 0;
9315 wxIcon *arg1 = (wxIcon *) 0 ;
9316 int result;
9317 void *argp1 = 0 ;
9318 int res1 = 0 ;
9319 PyObject *swig_obj[1] ;
9320
9321 if (!args) SWIG_fail;
9322 swig_obj[0] = args;
9323 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9324 if (!SWIG_IsOK(res1)) {
9325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9326 }
9327 arg1 = reinterpret_cast< wxIcon * >(argp1);
9328 {
9329 PyThreadState* __tstate = wxPyBeginAllowThreads();
9330 result = (int)(arg1)->GetHeight();
9331 wxPyEndAllowThreads(__tstate);
9332 if (PyErr_Occurred()) SWIG_fail;
9333 }
9334 resultobj = SWIG_From_int(static_cast< int >(result));
9335 return resultobj;
9336fail:
9337 return NULL;
d55e5bfc
RD
9338}
9339
9340
1bd55598
RD
9341SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9342 PyObject *resultobj = 0;
9343 wxIcon *arg1 = (wxIcon *) 0 ;
9344 int result;
9345 void *argp1 = 0 ;
9346 int res1 = 0 ;
9347 PyObject *swig_obj[1] ;
9348
9349 if (!args) SWIG_fail;
9350 swig_obj[0] = args;
9351 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9352 if (!SWIG_IsOK(res1)) {
9353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9354 }
9355 arg1 = reinterpret_cast< wxIcon * >(argp1);
9356 {
9357 PyThreadState* __tstate = wxPyBeginAllowThreads();
9358 result = (int)(arg1)->GetDepth();
9359 wxPyEndAllowThreads(__tstate);
9360 if (PyErr_Occurred()) SWIG_fail;
9361 }
9362 resultobj = SWIG_From_int(static_cast< int >(result));
9363 return resultobj;
9364fail:
9365 return NULL;
9366}
9367
9368
9369SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9370 PyObject *resultobj = 0;
9371 wxIcon *arg1 = (wxIcon *) 0 ;
9372 int arg2 ;
9373 void *argp1 = 0 ;
9374 int res1 = 0 ;
9375 int val2 ;
9376 int ecode2 = 0 ;
9377 PyObject * obj0 = 0 ;
9378 PyObject * obj1 = 0 ;
9379 char * kwnames[] = {
9380 (char *) "self",(char *) "w", NULL
9381 };
9382
9383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9385 if (!SWIG_IsOK(res1)) {
9386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9387 }
9388 arg1 = reinterpret_cast< wxIcon * >(argp1);
9389 ecode2 = SWIG_AsVal_int(obj1, &val2);
9390 if (!SWIG_IsOK(ecode2)) {
9391 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9392 }
9393 arg2 = static_cast< int >(val2);
9394 {
9395 PyThreadState* __tstate = wxPyBeginAllowThreads();
9396 (arg1)->SetWidth(arg2);
9397 wxPyEndAllowThreads(__tstate);
9398 if (PyErr_Occurred()) SWIG_fail;
9399 }
9400 resultobj = SWIG_Py_Void();
9401 return resultobj;
9402fail:
9403 return NULL;
9404}
9405
9406
9407SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9408 PyObject *resultobj = 0;
9409 wxIcon *arg1 = (wxIcon *) 0 ;
9410 int arg2 ;
9411 void *argp1 = 0 ;
9412 int res1 = 0 ;
9413 int val2 ;
9414 int ecode2 = 0 ;
9415 PyObject * obj0 = 0 ;
9416 PyObject * obj1 = 0 ;
9417 char * kwnames[] = {
9418 (char *) "self",(char *) "h", NULL
9419 };
9420
9421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9423 if (!SWIG_IsOK(res1)) {
9424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9425 }
9426 arg1 = reinterpret_cast< wxIcon * >(argp1);
9427 ecode2 = SWIG_AsVal_int(obj1, &val2);
9428 if (!SWIG_IsOK(ecode2)) {
9429 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9430 }
9431 arg2 = static_cast< int >(val2);
9432 {
9433 PyThreadState* __tstate = wxPyBeginAllowThreads();
9434 (arg1)->SetHeight(arg2);
9435 wxPyEndAllowThreads(__tstate);
9436 if (PyErr_Occurred()) SWIG_fail;
9437 }
9438 resultobj = SWIG_Py_Void();
9439 return resultobj;
9440fail:
9441 return NULL;
9442}
9443
9444
9445SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9446 PyObject *resultobj = 0;
9447 wxIcon *arg1 = (wxIcon *) 0 ;
9448 int arg2 ;
9449 void *argp1 = 0 ;
9450 int res1 = 0 ;
9451 int val2 ;
9452 int ecode2 = 0 ;
9453 PyObject * obj0 = 0 ;
9454 PyObject * obj1 = 0 ;
9455 char * kwnames[] = {
9456 (char *) "self",(char *) "d", NULL
9457 };
9458
9459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9461 if (!SWIG_IsOK(res1)) {
9462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9463 }
9464 arg1 = reinterpret_cast< wxIcon * >(argp1);
9465 ecode2 = SWIG_AsVal_int(obj1, &val2);
9466 if (!SWIG_IsOK(ecode2)) {
9467 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9468 }
9469 arg2 = static_cast< int >(val2);
9470 {
9471 PyThreadState* __tstate = wxPyBeginAllowThreads();
9472 (arg1)->SetDepth(arg2);
9473 wxPyEndAllowThreads(__tstate);
9474 if (PyErr_Occurred()) SWIG_fail;
9475 }
9476 resultobj = SWIG_Py_Void();
9477 return resultobj;
9478fail:
9479 return NULL;
9480}
9481
9482
9483SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9484 PyObject *resultobj = 0;
9485 wxIcon *arg1 = (wxIcon *) 0 ;
9486 wxBitmap *arg2 = 0 ;
9487 void *argp1 = 0 ;
9488 int res1 = 0 ;
9489 void *argp2 = 0 ;
9490 int res2 = 0 ;
9491 PyObject * obj0 = 0 ;
9492 PyObject * obj1 = 0 ;
9493 char * kwnames[] = {
9494 (char *) "self",(char *) "bmp", NULL
9495 };
9496
9497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9499 if (!SWIG_IsOK(res1)) {
9500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9501 }
9502 arg1 = reinterpret_cast< wxIcon * >(argp1);
9503 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9504 if (!SWIG_IsOK(res2)) {
9505 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9506 }
9507 if (!argp2) {
9508 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9509 }
9510 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9511 {
9512 PyThreadState* __tstate = wxPyBeginAllowThreads();
9513 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9514 wxPyEndAllowThreads(__tstate);
9515 if (PyErr_Occurred()) SWIG_fail;
9516 }
9517 resultobj = SWIG_Py_Void();
9518 return resultobj;
9519fail:
9520 return NULL;
d55e5bfc
RD
9521}
9522
9523
1bd55598
RD
9524SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9525 PyObject *obj;
9526 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9527 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9528 return SWIG_Py_Void();
d55e5bfc
RD
9529}
9530
1bd55598
RD
9531SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9532 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
9533}
9534
1bd55598
RD
9535SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9536 PyObject *resultobj = 0;
9537 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9538 int arg2 = (int) 0 ;
9539 wxIconLocation *result = 0 ;
9540 bool temp1 = false ;
9541 int val2 ;
9542 int ecode2 = 0 ;
9543 PyObject * obj0 = 0 ;
9544 PyObject * obj1 = 0 ;
9545 char * kwnames[] = {
9546 (char *) "filename",(char *) "num", NULL
9547 };
9548
9549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9550 if (obj0) {
d55e5bfc 9551 {
1bd55598
RD
9552 arg1 = wxString_in_helper(obj0);
9553 if (arg1 == NULL) SWIG_fail;
9554 temp1 = true;
d55e5bfc 9555 }
1bd55598
RD
9556 }
9557 if (obj1) {
9558 ecode2 = SWIG_AsVal_int(obj1, &val2);
9559 if (!SWIG_IsOK(ecode2)) {
9560 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9561 }
9562 arg2 = static_cast< int >(val2);
9563 }
9564 {
9565 PyThreadState* __tstate = wxPyBeginAllowThreads();
9566 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9567 wxPyEndAllowThreads(__tstate);
9568 if (PyErr_Occurred()) SWIG_fail;
9569 }
9570 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9571 {
9572 if (temp1)
9573 delete arg1;
9574 }
9575 return resultobj;
9576fail:
9577 {
9578 if (temp1)
9579 delete arg1;
9580 }
9581 return NULL;
d55e5bfc
RD
9582}
9583
9584
1bd55598
RD
9585SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9586 PyObject *resultobj = 0;
9587 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9588 void *argp1 = 0 ;
9589 int res1 = 0 ;
9590 PyObject *swig_obj[1] ;
9591
9592 if (!args) SWIG_fail;
9593 swig_obj[0] = args;
9594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9595 if (!SWIG_IsOK(res1)) {
9596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9597 }
9598 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9599 {
9600 PyThreadState* __tstate = wxPyBeginAllowThreads();
9601 delete arg1;
d55e5bfc 9602
1bd55598
RD
9603 wxPyEndAllowThreads(__tstate);
9604 if (PyErr_Occurred()) SWIG_fail;
9605 }
9606 resultobj = SWIG_Py_Void();
9607 return resultobj;
9608fail:
9609 return NULL;
d55e5bfc
RD
9610}
9611
9612
1bd55598
RD
9613SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9614 PyObject *resultobj = 0;
9615 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9616 bool result;
9617 void *argp1 = 0 ;
9618 int res1 = 0 ;
9619 PyObject *swig_obj[1] ;
9620
9621 if (!args) SWIG_fail;
9622 swig_obj[0] = args;
9623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9624 if (!SWIG_IsOK(res1)) {
9625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9626 }
9627 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9628 {
9629 PyThreadState* __tstate = wxPyBeginAllowThreads();
9630 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9631 wxPyEndAllowThreads(__tstate);
9632 if (PyErr_Occurred()) SWIG_fail;
9633 }
9634 {
9635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9636 }
9637 return resultobj;
9638fail:
9639 return NULL;
9640}
9641
9642
9643SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9644 PyObject *resultobj = 0;
9645 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9646 wxString *arg2 = 0 ;
9647 void *argp1 = 0 ;
9648 int res1 = 0 ;
9649 bool temp2 = false ;
9650 PyObject * obj0 = 0 ;
9651 PyObject * obj1 = 0 ;
9652 char * kwnames[] = {
9653 (char *) "self",(char *) "filename", NULL
9654 };
9655
9656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9658 if (!SWIG_IsOK(res1)) {
9659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9660 }
9661 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9662 {
9663 arg2 = wxString_in_helper(obj1);
9664 if (arg2 == NULL) SWIG_fail;
9665 temp2 = true;
9666 }
9667 {
9668 PyThreadState* __tstate = wxPyBeginAllowThreads();
9669 (arg1)->SetFileName((wxString const &)*arg2);
9670 wxPyEndAllowThreads(__tstate);
9671 if (PyErr_Occurred()) SWIG_fail;
9672 }
9673 resultobj = SWIG_Py_Void();
9674 {
9675 if (temp2)
9676 delete arg2;
9677 }
9678 return resultobj;
9679fail:
9680 {
9681 if (temp2)
9682 delete arg2;
9683 }
9684 return NULL;
d55e5bfc
RD
9685}
9686
9687
1bd55598
RD
9688SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9689 PyObject *resultobj = 0;
9690 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9691 wxString *result = 0 ;
9692 void *argp1 = 0 ;
9693 int res1 = 0 ;
9694 PyObject *swig_obj[1] ;
9695
9696 if (!args) SWIG_fail;
9697 swig_obj[0] = args;
9698 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9699 if (!SWIG_IsOK(res1)) {
9700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9701 }
9702 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9703 {
9704 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 9705 {
1bd55598
RD
9706 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9707 result = (wxString *) &_result_ref;
d55e5bfc 9708 }
1bd55598
RD
9709 wxPyEndAllowThreads(__tstate);
9710 if (PyErr_Occurred()) SWIG_fail;
9711 }
9712 {
9713#if wxUSE_UNICODE
9714 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9715#else
9716 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9717#endif
9718 }
9719 return resultobj;
9720fail:
9721 return NULL;
9722}
9723
9724
9725SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9726 PyObject *resultobj = 0;
9727 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9728 int arg2 ;
9729 void *argp1 = 0 ;
9730 int res1 = 0 ;
9731 int val2 ;
9732 int ecode2 = 0 ;
9733 PyObject * obj0 = 0 ;
9734 PyObject * obj1 = 0 ;
9735 char * kwnames[] = {
9736 (char *) "self",(char *) "num", NULL
9737 };
9738
9739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9741 if (!SWIG_IsOK(res1)) {
9742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9743 }
9744 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9745 ecode2 = SWIG_AsVal_int(obj1, &val2);
9746 if (!SWIG_IsOK(ecode2)) {
9747 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9748 }
9749 arg2 = static_cast< int >(val2);
9750 {
9751 PyThreadState* __tstate = wxPyBeginAllowThreads();
9752 wxIconLocation_SetIndex(arg1,arg2);
9753 wxPyEndAllowThreads(__tstate);
9754 if (PyErr_Occurred()) SWIG_fail;
9755 }
9756 resultobj = SWIG_Py_Void();
9757 return resultobj;
9758fail:
9759 return NULL;
d55e5bfc
RD
9760}
9761
9762
1bd55598
RD
9763SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9764 PyObject *resultobj = 0;
9765 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9766 int result;
9767 void *argp1 = 0 ;
9768 int res1 = 0 ;
9769 PyObject *swig_obj[1] ;
9770
9771 if (!args) SWIG_fail;
9772 swig_obj[0] = args;
9773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9774 if (!SWIG_IsOK(res1)) {
9775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9776 }
9777 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9778 {
9779 PyThreadState* __tstate = wxPyBeginAllowThreads();
9780 result = (int)wxIconLocation_GetIndex(arg1);
9781 wxPyEndAllowThreads(__tstate);
9782 if (PyErr_Occurred()) SWIG_fail;
9783 }
9784 resultobj = SWIG_From_int(static_cast< int >(result));
9785 return resultobj;
9786fail:
9787 return NULL;
d55e5bfc
RD
9788}
9789
9790
1bd55598
RD
9791SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9792 PyObject *obj;
9793 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9794 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9795 return SWIG_Py_Void();
d55e5bfc
RD
9796}
9797
1bd55598
RD
9798SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9799 return SWIG_Python_InitShadowInstance(args);
9800}
d55e5bfc 9801
1bd55598
RD
9802SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9803 PyObject *resultobj = 0;
9804 wxIconBundle *result = 0 ;
9805
9806 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9807 {
9808 PyThreadState* __tstate = wxPyBeginAllowThreads();
9809 result = (wxIconBundle *)new wxIconBundle();
9810 wxPyEndAllowThreads(__tstate);
9811 if (PyErr_Occurred()) SWIG_fail;
9812 }
9813 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9814 return resultobj;
9815fail:
9816 return NULL;
9817}
9818
9819
9820SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9821 PyObject *resultobj = 0;
9822 wxString *arg1 = 0 ;
9823 long arg2 ;
9824 wxIconBundle *result = 0 ;
9825 bool temp1 = false ;
9826 long val2 ;
9827 int ecode2 = 0 ;
9828 PyObject * obj0 = 0 ;
9829 PyObject * obj1 = 0 ;
9830 char * kwnames[] = {
9831 (char *) "file",(char *) "type", NULL
9832 };
9833
9834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9835 {
9836 arg1 = wxString_in_helper(obj0);
9837 if (arg1 == NULL) SWIG_fail;
9838 temp1 = true;
9839 }
9840 ecode2 = SWIG_AsVal_long(obj1, &val2);
9841 if (!SWIG_IsOK(ecode2)) {
9842 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9843 }
9844 arg2 = static_cast< long >(val2);
9845 {
9846 PyThreadState* __tstate = wxPyBeginAllowThreads();
9847 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9848 wxPyEndAllowThreads(__tstate);
9849 if (PyErr_Occurred()) SWIG_fail;
9850 }
9851 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9852 {
9853 if (temp1)
9854 delete arg1;
9855 }
9856 return resultobj;
9857fail:
9858 {
9859 if (temp1)
9860 delete arg1;
9861 }
9862 return NULL;
d55e5bfc
RD
9863}
9864
9865
1bd55598
RD
9866SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9867 PyObject *resultobj = 0;
9868 wxIcon *arg1 = 0 ;
9869 wxIconBundle *result = 0 ;
9870 void *argp1 = 0 ;
9871 int res1 = 0 ;
9872 PyObject * obj0 = 0 ;
9873 char * kwnames[] = {
9874 (char *) "icon", NULL
9875 };
9876
9877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9878 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9879 if (!SWIG_IsOK(res1)) {
9880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9881 }
9882 if (!argp1) {
9883 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9884 }
9885 arg1 = reinterpret_cast< wxIcon * >(argp1);
9886 {
9887 PyThreadState* __tstate = wxPyBeginAllowThreads();
9888 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9889 wxPyEndAllowThreads(__tstate);
9890 if (PyErr_Occurred()) SWIG_fail;
9891 }
9892 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9893 return resultobj;
9894fail:
9895 return NULL;
d55e5bfc
RD
9896}
9897
9898
1bd55598
RD
9899SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9900 PyObject *resultobj = 0;
9901 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9902 void *argp1 = 0 ;
9903 int res1 = 0 ;
9904 PyObject *swig_obj[1] ;
9905
9906 if (!args) SWIG_fail;
9907 swig_obj[0] = args;
9908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9909 if (!SWIG_IsOK(res1)) {
9910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9911 }
9912 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9913 {
9914 PyThreadState* __tstate = wxPyBeginAllowThreads();
9915 delete arg1;
d55e5bfc 9916
1bd55598
RD
9917 wxPyEndAllowThreads(__tstate);
9918 if (PyErr_Occurred()) SWIG_fail;
9919 }
9920 resultobj = SWIG_Py_Void();
9921 return resultobj;
9922fail:
9923 return NULL;
9924}
9925
9926
9927SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9928 PyObject *resultobj = 0;
9929 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9930 wxIcon *arg2 = 0 ;
9931 void *argp1 = 0 ;
9932 int res1 = 0 ;
9933 void *argp2 = 0 ;
9934 int res2 = 0 ;
9935 PyObject * obj0 = 0 ;
9936 PyObject * obj1 = 0 ;
9937 char * kwnames[] = {
9938 (char *) "self",(char *) "icon", NULL
9939 };
9940
9941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9943 if (!SWIG_IsOK(res1)) {
9944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9945 }
9946 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9947 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9948 if (!SWIG_IsOK(res2)) {
9949 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9950 }
9951 if (!argp2) {
9952 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9953 }
9954 arg2 = reinterpret_cast< wxIcon * >(argp2);
9955 {
9956 PyThreadState* __tstate = wxPyBeginAllowThreads();
9957 (arg1)->AddIcon((wxIcon const &)*arg2);
9958 wxPyEndAllowThreads(__tstate);
9959 if (PyErr_Occurred()) SWIG_fail;
9960 }
9961 resultobj = SWIG_Py_Void();
9962 return resultobj;
9963fail:
9964 return NULL;
9965}
9966
9967
9968SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9969 PyObject *resultobj = 0;
9970 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9971 wxString *arg2 = 0 ;
9972 long arg3 ;
9973 void *argp1 = 0 ;
9974 int res1 = 0 ;
9975 bool temp2 = false ;
9976 long val3 ;
9977 int ecode3 = 0 ;
9978 PyObject * obj0 = 0 ;
9979 PyObject * obj1 = 0 ;
9980 PyObject * obj2 = 0 ;
9981 char * kwnames[] = {
9982 (char *) "self",(char *) "file",(char *) "type", NULL
9983 };
9984
9985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9987 if (!SWIG_IsOK(res1)) {
9988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9989 }
9990 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9991 {
9992 arg2 = wxString_in_helper(obj1);
9993 if (arg2 == NULL) SWIG_fail;
9994 temp2 = true;
9995 }
9996 ecode3 = SWIG_AsVal_long(obj2, &val3);
9997 if (!SWIG_IsOK(ecode3)) {
9998 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
9999 }
10000 arg3 = static_cast< long >(val3);
10001 {
10002 PyThreadState* __tstate = wxPyBeginAllowThreads();
10003 (arg1)->AddIcon((wxString const &)*arg2,arg3);
10004 wxPyEndAllowThreads(__tstate);
10005 if (PyErr_Occurred()) SWIG_fail;
10006 }
10007 resultobj = SWIG_Py_Void();
10008 {
10009 if (temp2)
10010 delete arg2;
10011 }
10012 return resultobj;
10013fail:
10014 {
10015 if (temp2)
10016 delete arg2;
10017 }
10018 return NULL;
10019}
10020
10021
10022SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10023 PyObject *resultobj = 0;
10024 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10025 wxSize *arg2 = 0 ;
10026 wxIcon *result = 0 ;
10027 void *argp1 = 0 ;
10028 int res1 = 0 ;
10029 wxSize temp2 ;
10030 PyObject * obj0 = 0 ;
10031 PyObject * obj1 = 0 ;
10032 char * kwnames[] = {
10033 (char *) "self",(char *) "size", NULL
10034 };
10035
10036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10038 if (!SWIG_IsOK(res1)) {
10039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10040 }
10041 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10042 {
10043 arg2 = &temp2;
10044 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10045 }
10046 {
10047 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 10048 {
1bd55598
RD
10049 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10050 result = (wxIcon *) &_result_ref;
d55e5bfc 10051 }
1bd55598
RD
10052 wxPyEndAllowThreads(__tstate);
10053 if (PyErr_Occurred()) SWIG_fail;
10054 }
10055 {
10056 wxIcon* resultptr = new wxIcon(*result);
10057 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10058 }
10059 return resultobj;
10060fail:
10061 return NULL;
10062}
10063
10064
10065SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10066 PyObject *obj;
10067 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10068 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10069 return SWIG_Py_Void();
10070}
10071
10072SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10073 return SWIG_Python_InitShadowInstance(args);
10074}
10075
10076SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10077 PyObject *resultobj = 0;
10078 wxString *arg1 = 0 ;
10079 long arg2 ;
10080 int arg3 = (int) 0 ;
10081 int arg4 = (int) 0 ;
10082 wxCursor *result = 0 ;
10083 bool temp1 = false ;
10084 long val2 ;
10085 int ecode2 = 0 ;
10086 int val3 ;
10087 int ecode3 = 0 ;
10088 int val4 ;
10089 int ecode4 = 0 ;
10090 PyObject * obj0 = 0 ;
10091 PyObject * obj1 = 0 ;
10092 PyObject * obj2 = 0 ;
10093 PyObject * obj3 = 0 ;
10094 char * kwnames[] = {
10095 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10096 };
10097
10098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10099 {
10100 arg1 = wxString_in_helper(obj0);
10101 if (arg1 == NULL) SWIG_fail;
10102 temp1 = true;
10103 }
10104 ecode2 = SWIG_AsVal_long(obj1, &val2);
10105 if (!SWIG_IsOK(ecode2)) {
10106 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10107 }
10108 arg2 = static_cast< long >(val2);
10109 if (obj2) {
10110 ecode3 = SWIG_AsVal_int(obj2, &val3);
10111 if (!SWIG_IsOK(ecode3)) {
10112 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10113 }
10114 arg3 = static_cast< int >(val3);
10115 }
10116 if (obj3) {
10117 ecode4 = SWIG_AsVal_int(obj3, &val4);
10118 if (!SWIG_IsOK(ecode4)) {
10119 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10120 }
10121 arg4 = static_cast< int >(val4);
10122 }
10123 {
10124 if (!wxPyCheckForApp()) SWIG_fail;
10125 PyThreadState* __tstate = wxPyBeginAllowThreads();
10126 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10127 wxPyEndAllowThreads(__tstate);
10128 if (PyErr_Occurred()) SWIG_fail;
10129 }
10130 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10131 {
10132 if (temp1)
10133 delete arg1;
10134 }
10135 return resultobj;
10136fail:
10137 {
10138 if (temp1)
10139 delete arg1;
10140 }
10141 return NULL;
d55e5bfc
RD
10142}
10143
10144
1bd55598
RD
10145SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10146 PyObject *resultobj = 0;
10147 wxCursor *arg1 = (wxCursor *) 0 ;
10148 void *argp1 = 0 ;
10149 int res1 = 0 ;
10150 PyObject *swig_obj[1] ;
10151
10152 if (!args) SWIG_fail;
10153 swig_obj[0] = args;
10154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10155 if (!SWIG_IsOK(res1)) {
10156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10157 }
10158 arg1 = reinterpret_cast< wxCursor * >(argp1);
10159 {
10160 PyThreadState* __tstate = wxPyBeginAllowThreads();
10161 delete arg1;
d55e5bfc 10162
1bd55598
RD
10163 wxPyEndAllowThreads(__tstate);
10164 if (PyErr_Occurred()) SWIG_fail;
10165 }
10166 resultobj = SWIG_Py_Void();
10167 return resultobj;
10168fail:
10169 return NULL;
10170}
10171
10172
10173SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10174 PyObject *resultobj = 0;
10175 int arg1 ;
10176 wxCursor *result = 0 ;
10177 int val1 ;
10178 int ecode1 = 0 ;
10179 PyObject * obj0 = 0 ;
10180 char * kwnames[] = {
10181 (char *) "id", NULL
10182 };
10183
10184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10185 ecode1 = SWIG_AsVal_int(obj0, &val1);
10186 if (!SWIG_IsOK(ecode1)) {
10187 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10188 }
10189 arg1 = static_cast< int >(val1);
10190 {
10191 if (!wxPyCheckForApp()) SWIG_fail;
10192 PyThreadState* __tstate = wxPyBeginAllowThreads();
10193 result = (wxCursor *)new wxCursor(arg1);
10194 wxPyEndAllowThreads(__tstate);
10195 if (PyErr_Occurred()) SWIG_fail;
10196 }
10197 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10198 return resultobj;
10199fail:
10200 return NULL;
10201}
10202
10203
10204SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10205 PyObject *resultobj = 0;
10206 wxImage *arg1 = 0 ;
10207 wxCursor *result = 0 ;
10208 void *argp1 = 0 ;
10209 int res1 = 0 ;
10210 PyObject * obj0 = 0 ;
10211 char * kwnames[] = {
10212 (char *) "image", NULL
10213 };
10214
10215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10216 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10217 if (!SWIG_IsOK(res1)) {
10218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10219 }
10220 if (!argp1) {
10221 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10222 }
10223 arg1 = reinterpret_cast< wxImage * >(argp1);
10224 {
10225 if (!wxPyCheckForApp()) SWIG_fail;
10226 PyThreadState* __tstate = wxPyBeginAllowThreads();
10227 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10228 wxPyEndAllowThreads(__tstate);
10229 if (PyErr_Occurred()) SWIG_fail;
10230 }
10231 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10232 return resultobj;
10233fail:
10234 return NULL;
d55e5bfc
RD
10235}
10236
10237
b39fe951 10238SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
10239 PyObject *resultobj = 0;
10240 wxCursor *arg1 = (wxCursor *) 0 ;
10241 bool result;
10242 void *argp1 = 0 ;
10243 int res1 = 0 ;
10244 PyObject *swig_obj[1] ;
10245
10246 if (!args) SWIG_fail;
10247 swig_obj[0] = args;
10248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10249 if (!SWIG_IsOK(res1)) {
b39fe951 10250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
1bd55598
RD
10251 }
10252 arg1 = reinterpret_cast< wxCursor * >(argp1);
10253 {
10254 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 10255 result = (bool)(arg1)->IsOk();
1bd55598
RD
10256 wxPyEndAllowThreads(__tstate);
10257 if (PyErr_Occurred()) SWIG_fail;
10258 }
10259 {
10260 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10261 }
10262 return resultobj;
10263fail:
10264 return NULL;
10265}
10266
10267
10268SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10269 PyObject *obj;
10270 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10271 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10272 return SWIG_Py_Void();
10273}
10274
10275SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10276 return SWIG_Python_InitShadowInstance(args);
10277}
10278
10279SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10280 PyObject *resultobj = 0;
10281 int arg1 = (int) 0 ;
10282 int arg2 = (int) 0 ;
10283 int arg3 = (int) 0 ;
10284 int arg4 = (int) 0 ;
10285 wxRegion *result = 0 ;
10286 int val1 ;
10287 int ecode1 = 0 ;
10288 int val2 ;
10289 int ecode2 = 0 ;
10290 int val3 ;
10291 int ecode3 = 0 ;
10292 int val4 ;
10293 int ecode4 = 0 ;
10294 PyObject * obj0 = 0 ;
10295 PyObject * obj1 = 0 ;
10296 PyObject * obj2 = 0 ;
10297 PyObject * obj3 = 0 ;
10298 char * kwnames[] = {
10299 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10300 };
10301
10302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10303 if (obj0) {
10304 ecode1 = SWIG_AsVal_int(obj0, &val1);
10305 if (!SWIG_IsOK(ecode1)) {
10306 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10307 }
10308 arg1 = static_cast< int >(val1);
10309 }
10310 if (obj1) {
10311 ecode2 = SWIG_AsVal_int(obj1, &val2);
10312 if (!SWIG_IsOK(ecode2)) {
10313 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10314 }
10315 arg2 = static_cast< int >(val2);
10316 }
10317 if (obj2) {
10318 ecode3 = SWIG_AsVal_int(obj2, &val3);
10319 if (!SWIG_IsOK(ecode3)) {
10320 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10321 }
10322 arg3 = static_cast< int >(val3);
10323 }
10324 if (obj3) {
10325 ecode4 = SWIG_AsVal_int(obj3, &val4);
10326 if (!SWIG_IsOK(ecode4)) {
10327 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10328 }
10329 arg4 = static_cast< int >(val4);
10330 }
10331 {
10332 if (!wxPyCheckForApp()) SWIG_fail;
10333 PyThreadState* __tstate = wxPyBeginAllowThreads();
10334 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10335 wxPyEndAllowThreads(__tstate);
10336 if (PyErr_Occurred()) SWIG_fail;
10337 }
10338 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10339 return resultobj;
10340fail:
10341 return NULL;
10342}
10343
10344
10345SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10346 PyObject *resultobj = 0;
10347 wxBitmap *arg1 = 0 ;
10348 wxRegion *result = 0 ;
10349 void *argp1 = 0 ;
10350 int res1 = 0 ;
10351 PyObject * obj0 = 0 ;
10352 char * kwnames[] = {
10353 (char *) "bmp", NULL
10354 };
10355
10356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10357 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10358 if (!SWIG_IsOK(res1)) {
10359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10360 }
10361 if (!argp1) {
10362 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10363 }
10364 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10365 {
10366 if (!wxPyCheckForApp()) SWIG_fail;
10367 PyThreadState* __tstate = wxPyBeginAllowThreads();
10368 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10369 wxPyEndAllowThreads(__tstate);
10370 if (PyErr_Occurred()) SWIG_fail;
10371 }
10372 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10373 return resultobj;
10374fail:
10375 return NULL;
10376}
10377
10378
10379SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10380 PyObject *resultobj = 0;
10381 wxBitmap *arg1 = 0 ;
10382 wxColour *arg2 = 0 ;
10383 int arg3 = (int) 0 ;
10384 wxRegion *result = 0 ;
10385 void *argp1 = 0 ;
10386 int res1 = 0 ;
10387 wxColour temp2 ;
10388 int val3 ;
10389 int ecode3 = 0 ;
10390 PyObject * obj0 = 0 ;
10391 PyObject * obj1 = 0 ;
10392 PyObject * obj2 = 0 ;
10393 char * kwnames[] = {
10394 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10395 };
10396
10397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10398 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10399 if (!SWIG_IsOK(res1)) {
10400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10401 }
10402 if (!argp1) {
10403 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10404 }
10405 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10406 {
10407 arg2 = &temp2;
10408 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10409 }
10410 if (obj2) {
10411 ecode3 = SWIG_AsVal_int(obj2, &val3);
10412 if (!SWIG_IsOK(ecode3)) {
10413 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10414 }
10415 arg3 = static_cast< int >(val3);
10416 }
10417 {
10418 if (!wxPyCheckForApp()) SWIG_fail;
10419 PyThreadState* __tstate = wxPyBeginAllowThreads();
10420 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10421 wxPyEndAllowThreads(__tstate);
10422 if (PyErr_Occurred()) SWIG_fail;
10423 }
10424 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10425 return resultobj;
10426fail:
10427 return NULL;
10428}
10429
10430
10431SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10432 PyObject *resultobj = 0;
10433 int arg1 ;
10434 wxPoint *arg2 = (wxPoint *) 0 ;
10435 int arg3 = (int) wxWINDING_RULE ;
10436 wxRegion *result = 0 ;
10437 int val3 ;
10438 int ecode3 = 0 ;
10439 PyObject * obj0 = 0 ;
10440 PyObject * obj1 = 0 ;
10441 char * kwnames[] = {
10442 (char *) "points",(char *) "fillStyle", NULL
10443 };
10444
10445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10446 {
10447 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10448 if (arg2 == NULL) SWIG_fail;
10449 }
10450 if (obj1) {
10451 ecode3 = SWIG_AsVal_int(obj1, &val3);
10452 if (!SWIG_IsOK(ecode3)) {
10453 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10454 }
10455 arg3 = static_cast< int >(val3);
10456 }
10457 {
10458 if (!wxPyCheckForApp()) SWIG_fail;
10459 PyThreadState* __tstate = wxPyBeginAllowThreads();
10460 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10461 wxPyEndAllowThreads(__tstate);
10462 if (PyErr_Occurred()) SWIG_fail;
10463 }
10464 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10465 {
10466 if (arg2) delete [] arg2;
10467 }
10468 return resultobj;
10469fail:
10470 {
10471 if (arg2) delete [] arg2;
10472 }
10473 return NULL;
d55e5bfc
RD
10474}
10475
10476
1bd55598
RD
10477SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10478 PyObject *resultobj = 0;
10479 wxRegion *arg1 = (wxRegion *) 0 ;
10480 void *argp1 = 0 ;
10481 int res1 = 0 ;
10482 PyObject *swig_obj[1] ;
10483
10484 if (!args) SWIG_fail;
10485 swig_obj[0] = args;
10486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10487 if (!SWIG_IsOK(res1)) {
10488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10489 }
10490 arg1 = reinterpret_cast< wxRegion * >(argp1);
10491 {
10492 PyThreadState* __tstate = wxPyBeginAllowThreads();
10493 delete arg1;
d55e5bfc 10494
1bd55598
RD
10495 wxPyEndAllowThreads(__tstate);
10496 if (PyErr_Occurred()) SWIG_fail;
10497 }
10498 resultobj = SWIG_Py_Void();
10499 return resultobj;
10500fail:
10501 return NULL;
d55e5bfc
RD
10502}
10503
10504
1bd55598
RD
10505SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10506 PyObject *resultobj = 0;
10507 wxRegion *arg1 = (wxRegion *) 0 ;
10508 void *argp1 = 0 ;
10509 int res1 = 0 ;
10510 PyObject *swig_obj[1] ;
10511
10512 if (!args) SWIG_fail;
10513 swig_obj[0] = args;
10514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10515 if (!SWIG_IsOK(res1)) {
10516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10517 }
10518 arg1 = reinterpret_cast< wxRegion * >(argp1);
10519 {
10520 PyThreadState* __tstate = wxPyBeginAllowThreads();
10521 (arg1)->Clear();
10522 wxPyEndAllowThreads(__tstate);
10523 if (PyErr_Occurred()) SWIG_fail;
10524 }
10525 resultobj = SWIG_Py_Void();
10526 return resultobj;
10527fail:
10528 return NULL;
10529}
10530
10531
10532SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10533 PyObject *resultobj = 0;
10534 wxRegion *arg1 = (wxRegion *) 0 ;
10535 int arg2 ;
10536 int arg3 ;
10537 bool result;
10538 void *argp1 = 0 ;
10539 int res1 = 0 ;
10540 int val2 ;
10541 int ecode2 = 0 ;
10542 int val3 ;
10543 int ecode3 = 0 ;
10544 PyObject * obj0 = 0 ;
10545 PyObject * obj1 = 0 ;
10546 PyObject * obj2 = 0 ;
10547 char * kwnames[] = {
10548 (char *) "self",(char *) "x",(char *) "y", NULL
10549 };
10550
10551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10553 if (!SWIG_IsOK(res1)) {
10554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10555 }
10556 arg1 = reinterpret_cast< wxRegion * >(argp1);
10557 ecode2 = SWIG_AsVal_int(obj1, &val2);
10558 if (!SWIG_IsOK(ecode2)) {
10559 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10560 }
10561 arg2 = static_cast< int >(val2);
10562 ecode3 = SWIG_AsVal_int(obj2, &val3);
10563 if (!SWIG_IsOK(ecode3)) {
10564 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10565 }
10566 arg3 = static_cast< int >(val3);
10567 {
10568 PyThreadState* __tstate = wxPyBeginAllowThreads();
10569 result = (bool)(arg1)->Offset(arg2,arg3);
10570 wxPyEndAllowThreads(__tstate);
10571 if (PyErr_Occurred()) SWIG_fail;
10572 }
10573 {
10574 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10575 }
10576 return resultobj;
10577fail:
10578 return NULL;
10579}
10580
10581
10582SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10583 PyObject *resultobj = 0;
10584 wxRegion *arg1 = (wxRegion *) 0 ;
10585 int arg2 ;
10586 int arg3 ;
10587 wxRegionContain result;
10588 void *argp1 = 0 ;
10589 int res1 = 0 ;
10590 int val2 ;
10591 int ecode2 = 0 ;
10592 int val3 ;
10593 int ecode3 = 0 ;
10594 PyObject * obj0 = 0 ;
10595 PyObject * obj1 = 0 ;
10596 PyObject * obj2 = 0 ;
10597 char * kwnames[] = {
10598 (char *) "self",(char *) "x",(char *) "y", NULL
10599 };
10600
10601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10603 if (!SWIG_IsOK(res1)) {
10604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10605 }
10606 arg1 = reinterpret_cast< wxRegion * >(argp1);
10607 ecode2 = SWIG_AsVal_int(obj1, &val2);
10608 if (!SWIG_IsOK(ecode2)) {
10609 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10610 }
10611 arg2 = static_cast< int >(val2);
10612 ecode3 = SWIG_AsVal_int(obj2, &val3);
10613 if (!SWIG_IsOK(ecode3)) {
10614 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10615 }
10616 arg3 = static_cast< int >(val3);
10617 {
10618 PyThreadState* __tstate = wxPyBeginAllowThreads();
10619 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10620 wxPyEndAllowThreads(__tstate);
10621 if (PyErr_Occurred()) SWIG_fail;
10622 }
10623 resultobj = SWIG_From_int(static_cast< int >(result));
10624 return resultobj;
10625fail:
10626 return NULL;
10627}
10628
10629
10630SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10631 PyObject *resultobj = 0;
10632 wxRegion *arg1 = (wxRegion *) 0 ;
10633 wxPoint *arg2 = 0 ;
10634 wxRegionContain result;
10635 void *argp1 = 0 ;
10636 int res1 = 0 ;
10637 wxPoint temp2 ;
10638 PyObject * obj0 = 0 ;
10639 PyObject * obj1 = 0 ;
10640 char * kwnames[] = {
10641 (char *) "self",(char *) "pt", NULL
10642 };
10643
10644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10646 if (!SWIG_IsOK(res1)) {
10647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10648 }
10649 arg1 = reinterpret_cast< wxRegion * >(argp1);
10650 {
10651 arg2 = &temp2;
10652 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10653 }
10654 {
10655 PyThreadState* __tstate = wxPyBeginAllowThreads();
10656 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10657 wxPyEndAllowThreads(__tstate);
10658 if (PyErr_Occurred()) SWIG_fail;
10659 }
10660 resultobj = SWIG_From_int(static_cast< int >(result));
10661 return resultobj;
10662fail:
10663 return NULL;
10664}
10665
10666
10667SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10668 PyObject *resultobj = 0;
10669 wxRegion *arg1 = (wxRegion *) 0 ;
10670 wxRect *arg2 = 0 ;
10671 wxRegionContain result;
10672 void *argp1 = 0 ;
10673 int res1 = 0 ;
10674 wxRect temp2 ;
10675 PyObject * obj0 = 0 ;
10676 PyObject * obj1 = 0 ;
10677 char * kwnames[] = {
10678 (char *) "self",(char *) "rect", NULL
10679 };
10680
10681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10683 if (!SWIG_IsOK(res1)) {
10684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10685 }
10686 arg1 = reinterpret_cast< wxRegion * >(argp1);
10687 {
10688 arg2 = &temp2;
10689 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10690 }
10691 {
10692 PyThreadState* __tstate = wxPyBeginAllowThreads();
10693 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10694 wxPyEndAllowThreads(__tstate);
10695 if (PyErr_Occurred()) SWIG_fail;
10696 }
10697 resultobj = SWIG_From_int(static_cast< int >(result));
10698 return resultobj;
10699fail:
10700 return NULL;
10701}
10702
10703
10704SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10705 PyObject *resultobj = 0;
10706 wxRegion *arg1 = (wxRegion *) 0 ;
10707 int arg2 ;
10708 int arg3 ;
10709 int arg4 ;
10710 int arg5 ;
10711 wxRegionContain result;
10712 void *argp1 = 0 ;
10713 int res1 = 0 ;
10714 int val2 ;
10715 int ecode2 = 0 ;
10716 int val3 ;
10717 int ecode3 = 0 ;
10718 int val4 ;
10719 int ecode4 = 0 ;
10720 int val5 ;
10721 int ecode5 = 0 ;
10722 PyObject * obj0 = 0 ;
10723 PyObject * obj1 = 0 ;
10724 PyObject * obj2 = 0 ;
10725 PyObject * obj3 = 0 ;
10726 PyObject * obj4 = 0 ;
10727 char * kwnames[] = {
10728 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10729 };
10730
10731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10732 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10733 if (!SWIG_IsOK(res1)) {
10734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10735 }
10736 arg1 = reinterpret_cast< wxRegion * >(argp1);
10737 ecode2 = SWIG_AsVal_int(obj1, &val2);
10738 if (!SWIG_IsOK(ecode2)) {
10739 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10740 }
10741 arg2 = static_cast< int >(val2);
10742 ecode3 = SWIG_AsVal_int(obj2, &val3);
10743 if (!SWIG_IsOK(ecode3)) {
10744 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10745 }
10746 arg3 = static_cast< int >(val3);
10747 ecode4 = SWIG_AsVal_int(obj3, &val4);
10748 if (!SWIG_IsOK(ecode4)) {
10749 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10750 }
10751 arg4 = static_cast< int >(val4);
10752 ecode5 = SWIG_AsVal_int(obj4, &val5);
10753 if (!SWIG_IsOK(ecode5)) {
10754 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10755 }
10756 arg5 = static_cast< int >(val5);
10757 {
10758 PyThreadState* __tstate = wxPyBeginAllowThreads();
10759 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10760 wxPyEndAllowThreads(__tstate);
10761 if (PyErr_Occurred()) SWIG_fail;
10762 }
10763 resultobj = SWIG_From_int(static_cast< int >(result));
10764 return resultobj;
10765fail:
10766 return NULL;
d55e5bfc
RD
10767}
10768
10769
1bd55598
RD
10770SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10771 PyObject *resultobj = 0;
10772 wxRegion *arg1 = (wxRegion *) 0 ;
10773 wxRect result;
10774 void *argp1 = 0 ;
10775 int res1 = 0 ;
10776 PyObject *swig_obj[1] ;
10777
10778 if (!args) SWIG_fail;
10779 swig_obj[0] = args;
10780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10781 if (!SWIG_IsOK(res1)) {
10782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10783 }
10784 arg1 = reinterpret_cast< wxRegion * >(argp1);
10785 {
10786 PyThreadState* __tstate = wxPyBeginAllowThreads();
10787 result = (arg1)->GetBox();
10788 wxPyEndAllowThreads(__tstate);
10789 if (PyErr_Occurred()) SWIG_fail;
10790 }
10791 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10792 return resultobj;
10793fail:
10794 return NULL;
10795}
10796
10797
10798SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10799 PyObject *resultobj = 0;
10800 wxRegion *arg1 = (wxRegion *) 0 ;
10801 int arg2 ;
10802 int arg3 ;
10803 int arg4 ;
10804 int arg5 ;
10805 bool result;
10806 void *argp1 = 0 ;
10807 int res1 = 0 ;
10808 int val2 ;
10809 int ecode2 = 0 ;
10810 int val3 ;
10811 int ecode3 = 0 ;
10812 int val4 ;
10813 int ecode4 = 0 ;
10814 int val5 ;
10815 int ecode5 = 0 ;
10816 PyObject * obj0 = 0 ;
10817 PyObject * obj1 = 0 ;
10818 PyObject * obj2 = 0 ;
10819 PyObject * obj3 = 0 ;
10820 PyObject * obj4 = 0 ;
10821 char * kwnames[] = {
10822 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10823 };
10824
10825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10827 if (!SWIG_IsOK(res1)) {
10828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10829 }
10830 arg1 = reinterpret_cast< wxRegion * >(argp1);
10831 ecode2 = SWIG_AsVal_int(obj1, &val2);
10832 if (!SWIG_IsOK(ecode2)) {
10833 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10834 }
10835 arg2 = static_cast< int >(val2);
10836 ecode3 = SWIG_AsVal_int(obj2, &val3);
10837 if (!SWIG_IsOK(ecode3)) {
10838 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10839 }
10840 arg3 = static_cast< int >(val3);
10841 ecode4 = SWIG_AsVal_int(obj3, &val4);
10842 if (!SWIG_IsOK(ecode4)) {
10843 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10844 }
10845 arg4 = static_cast< int >(val4);
10846 ecode5 = SWIG_AsVal_int(obj4, &val5);
10847 if (!SWIG_IsOK(ecode5)) {
10848 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10849 }
10850 arg5 = static_cast< int >(val5);
10851 {
10852 PyThreadState* __tstate = wxPyBeginAllowThreads();
10853 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10854 wxPyEndAllowThreads(__tstate);
10855 if (PyErr_Occurred()) SWIG_fail;
10856 }
10857 {
10858 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10859 }
10860 return resultobj;
10861fail:
10862 return NULL;
10863}
10864
10865
10866SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10867 PyObject *resultobj = 0;
10868 wxRegion *arg1 = (wxRegion *) 0 ;
10869 wxRect *arg2 = 0 ;
10870 bool result;
10871 void *argp1 = 0 ;
10872 int res1 = 0 ;
10873 wxRect temp2 ;
10874 PyObject * obj0 = 0 ;
10875 PyObject * obj1 = 0 ;
10876 char * kwnames[] = {
10877 (char *) "self",(char *) "rect", NULL
10878 };
10879
10880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10882 if (!SWIG_IsOK(res1)) {
10883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10884 }
10885 arg1 = reinterpret_cast< wxRegion * >(argp1);
10886 {
10887 arg2 = &temp2;
10888 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10889 }
10890 {
10891 PyThreadState* __tstate = wxPyBeginAllowThreads();
10892 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10893 wxPyEndAllowThreads(__tstate);
10894 if (PyErr_Occurred()) SWIG_fail;
10895 }
10896 {
10897 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10898 }
10899 return resultobj;
10900fail:
10901 return NULL;
10902}
10903
10904
10905SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10906 PyObject *resultobj = 0;
10907 wxRegion *arg1 = (wxRegion *) 0 ;
10908 wxRegion *arg2 = 0 ;
10909 bool result;
10910 void *argp1 = 0 ;
10911 int res1 = 0 ;
10912 void *argp2 = 0 ;
10913 int res2 = 0 ;
10914 PyObject * obj0 = 0 ;
10915 PyObject * obj1 = 0 ;
10916 char * kwnames[] = {
10917 (char *) "self",(char *) "region", NULL
10918 };
10919
10920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10922 if (!SWIG_IsOK(res1)) {
10923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10924 }
10925 arg1 = reinterpret_cast< wxRegion * >(argp1);
10926 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10927 if (!SWIG_IsOK(res2)) {
10928 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10929 }
10930 if (!argp2) {
10931 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10932 }
10933 arg2 = reinterpret_cast< wxRegion * >(argp2);
10934 {
10935 PyThreadState* __tstate = wxPyBeginAllowThreads();
10936 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10937 wxPyEndAllowThreads(__tstate);
10938 if (PyErr_Occurred()) SWIG_fail;
10939 }
10940 {
10941 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10942 }
10943 return resultobj;
10944fail:
10945 return NULL;
d55e5bfc
RD
10946}
10947
10948
1bd55598
RD
10949SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10950 PyObject *resultobj = 0;
10951 wxRegion *arg1 = (wxRegion *) 0 ;
10952 bool result;
10953 void *argp1 = 0 ;
10954 int res1 = 0 ;
10955 PyObject *swig_obj[1] ;
10956
10957 if (!args) SWIG_fail;
10958 swig_obj[0] = args;
10959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10960 if (!SWIG_IsOK(res1)) {
10961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
10962 }
10963 arg1 = reinterpret_cast< wxRegion * >(argp1);
10964 {
10965 PyThreadState* __tstate = wxPyBeginAllowThreads();
10966 result = (bool)(arg1)->IsEmpty();
10967 wxPyEndAllowThreads(__tstate);
10968 if (PyErr_Occurred()) SWIG_fail;
10969 }
10970 {
10971 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10972 }
10973 return resultobj;
10974fail:
10975 return NULL;
10976}
10977
10978
f5263701
RD
10979SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10980 PyObject *resultobj = 0;
10981 wxRegion *arg1 = (wxRegion *) 0 ;
10982 wxRegion *arg2 = 0 ;
10983 bool result;
10984 void *argp1 = 0 ;
10985 int res1 = 0 ;
10986 void *argp2 = 0 ;
10987 int res2 = 0 ;
10988 PyObject * obj0 = 0 ;
10989 PyObject * obj1 = 0 ;
10990 char * kwnames[] = {
10991 (char *) "self",(char *) "region", NULL
10992 };
10993
10994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
10995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10996 if (!SWIG_IsOK(res1)) {
10997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
10998 }
10999 arg1 = reinterpret_cast< wxRegion * >(argp1);
11000 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11001 if (!SWIG_IsOK(res2)) {
11002 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11003 }
11004 if (!argp2) {
11005 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11006 }
11007 arg2 = reinterpret_cast< wxRegion * >(argp2);
11008 {
11009 PyThreadState* __tstate = wxPyBeginAllowThreads();
11010 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11011 wxPyEndAllowThreads(__tstate);
11012 if (PyErr_Occurred()) SWIG_fail;
11013 }
11014 {
11015 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11016 }
11017 return resultobj;
11018fail:
11019 return NULL;
11020}
11021
11022
1bd55598
RD
11023SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11024 PyObject *resultobj = 0;
11025 wxRegion *arg1 = (wxRegion *) 0 ;
11026 int arg2 ;
11027 int arg3 ;
11028 int arg4 ;
11029 int arg5 ;
11030 bool result;
11031 void *argp1 = 0 ;
11032 int res1 = 0 ;
11033 int val2 ;
11034 int ecode2 = 0 ;
11035 int val3 ;
11036 int ecode3 = 0 ;
11037 int val4 ;
11038 int ecode4 = 0 ;
11039 int val5 ;
11040 int ecode5 = 0 ;
11041 PyObject * obj0 = 0 ;
11042 PyObject * obj1 = 0 ;
11043 PyObject * obj2 = 0 ;
11044 PyObject * obj3 = 0 ;
11045 PyObject * obj4 = 0 ;
11046 char * kwnames[] = {
11047 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11048 };
11049
11050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11052 if (!SWIG_IsOK(res1)) {
11053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11054 }
11055 arg1 = reinterpret_cast< wxRegion * >(argp1);
11056 ecode2 = SWIG_AsVal_int(obj1, &val2);
11057 if (!SWIG_IsOK(ecode2)) {
11058 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11059 }
11060 arg2 = static_cast< int >(val2);
11061 ecode3 = SWIG_AsVal_int(obj2, &val3);
11062 if (!SWIG_IsOK(ecode3)) {
11063 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11064 }
11065 arg3 = static_cast< int >(val3);
11066 ecode4 = SWIG_AsVal_int(obj3, &val4);
11067 if (!SWIG_IsOK(ecode4)) {
11068 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11069 }
11070 arg4 = static_cast< int >(val4);
11071 ecode5 = SWIG_AsVal_int(obj4, &val5);
11072 if (!SWIG_IsOK(ecode5)) {
11073 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11074 }
11075 arg5 = static_cast< int >(val5);
11076 {
11077 PyThreadState* __tstate = wxPyBeginAllowThreads();
11078 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11079 wxPyEndAllowThreads(__tstate);
11080 if (PyErr_Occurred()) SWIG_fail;
11081 }
11082 {
11083 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11084 }
11085 return resultobj;
11086fail:
11087 return NULL;
11088}
11089
11090
11091SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11092 PyObject *resultobj = 0;
11093 wxRegion *arg1 = (wxRegion *) 0 ;
11094 wxRect *arg2 = 0 ;
11095 bool result;
11096 void *argp1 = 0 ;
11097 int res1 = 0 ;
11098 wxRect temp2 ;
11099 PyObject * obj0 = 0 ;
11100 PyObject * obj1 = 0 ;
11101 char * kwnames[] = {
11102 (char *) "self",(char *) "rect", NULL
11103 };
11104
11105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11107 if (!SWIG_IsOK(res1)) {
11108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11109 }
11110 arg1 = reinterpret_cast< wxRegion * >(argp1);
11111 {
11112 arg2 = &temp2;
11113 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11114 }
11115 {
11116 PyThreadState* __tstate = wxPyBeginAllowThreads();
11117 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11118 wxPyEndAllowThreads(__tstate);
11119 if (PyErr_Occurred()) SWIG_fail;
11120 }
11121 {
11122 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11123 }
11124 return resultobj;
11125fail:
11126 return NULL;
11127}
11128
11129
11130SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11131 PyObject *resultobj = 0;
11132 wxRegion *arg1 = (wxRegion *) 0 ;
11133 wxRegion *arg2 = 0 ;
11134 bool result;
11135 void *argp1 = 0 ;
11136 int res1 = 0 ;
11137 void *argp2 = 0 ;
11138 int res2 = 0 ;
11139 PyObject * obj0 = 0 ;
11140 PyObject * obj1 = 0 ;
11141 char * kwnames[] = {
11142 (char *) "self",(char *) "region", NULL
11143 };
11144
11145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11147 if (!SWIG_IsOK(res1)) {
11148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11149 }
11150 arg1 = reinterpret_cast< wxRegion * >(argp1);
11151 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11152 if (!SWIG_IsOK(res2)) {
11153 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11154 }
11155 if (!argp2) {
11156 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11157 }
11158 arg2 = reinterpret_cast< wxRegion * >(argp2);
11159 {
11160 PyThreadState* __tstate = wxPyBeginAllowThreads();
11161 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11162 wxPyEndAllowThreads(__tstate);
11163 if (PyErr_Occurred()) SWIG_fail;
11164 }
11165 {
11166 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11167 }
11168 return resultobj;
11169fail:
11170 return NULL;
11171}
11172
11173
11174SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11175 PyObject *resultobj = 0;
11176 wxRegion *arg1 = (wxRegion *) 0 ;
11177 int arg2 ;
11178 int arg3 ;
11179 int arg4 ;
11180 int arg5 ;
11181 bool result;
11182 void *argp1 = 0 ;
11183 int res1 = 0 ;
11184 int val2 ;
11185 int ecode2 = 0 ;
11186 int val3 ;
11187 int ecode3 = 0 ;
11188 int val4 ;
11189 int ecode4 = 0 ;
11190 int val5 ;
11191 int ecode5 = 0 ;
11192 PyObject * obj0 = 0 ;
11193 PyObject * obj1 = 0 ;
11194 PyObject * obj2 = 0 ;
11195 PyObject * obj3 = 0 ;
11196 PyObject * obj4 = 0 ;
11197 char * kwnames[] = {
11198 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11199 };
11200
11201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11203 if (!SWIG_IsOK(res1)) {
11204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11205 }
11206 arg1 = reinterpret_cast< wxRegion * >(argp1);
11207 ecode2 = SWIG_AsVal_int(obj1, &val2);
11208 if (!SWIG_IsOK(ecode2)) {
11209 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11210 }
11211 arg2 = static_cast< int >(val2);
11212 ecode3 = SWIG_AsVal_int(obj2, &val3);
11213 if (!SWIG_IsOK(ecode3)) {
11214 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11215 }
11216 arg3 = static_cast< int >(val3);
11217 ecode4 = SWIG_AsVal_int(obj3, &val4);
11218 if (!SWIG_IsOK(ecode4)) {
11219 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11220 }
11221 arg4 = static_cast< int >(val4);
11222 ecode5 = SWIG_AsVal_int(obj4, &val5);
11223 if (!SWIG_IsOK(ecode5)) {
11224 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11225 }
11226 arg5 = static_cast< int >(val5);
11227 {
11228 PyThreadState* __tstate = wxPyBeginAllowThreads();
11229 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11230 wxPyEndAllowThreads(__tstate);
11231 if (PyErr_Occurred()) SWIG_fail;
11232 }
11233 {
11234 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11235 }
11236 return resultobj;
11237fail:
11238 return NULL;
11239}
11240
11241
11242SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11243 PyObject *resultobj = 0;
11244 wxRegion *arg1 = (wxRegion *) 0 ;
11245 wxRect *arg2 = 0 ;
11246 bool result;
11247 void *argp1 = 0 ;
11248 int res1 = 0 ;
11249 wxRect temp2 ;
11250 PyObject * obj0 = 0 ;
11251 PyObject * obj1 = 0 ;
11252 char * kwnames[] = {
11253 (char *) "self",(char *) "rect", NULL
11254 };
11255
11256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11258 if (!SWIG_IsOK(res1)) {
11259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11260 }
11261 arg1 = reinterpret_cast< wxRegion * >(argp1);
11262 {
11263 arg2 = &temp2;
11264 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11265 }
11266 {
11267 PyThreadState* __tstate = wxPyBeginAllowThreads();
11268 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11269 wxPyEndAllowThreads(__tstate);
11270 if (PyErr_Occurred()) SWIG_fail;
11271 }
11272 {
11273 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11274 }
11275 return resultobj;
11276fail:
11277 return NULL;
11278}
11279
11280
11281SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11282 PyObject *resultobj = 0;
11283 wxRegion *arg1 = (wxRegion *) 0 ;
11284 wxRegion *arg2 = 0 ;
11285 bool result;
11286 void *argp1 = 0 ;
11287 int res1 = 0 ;
11288 void *argp2 = 0 ;
11289 int res2 = 0 ;
11290 PyObject * obj0 = 0 ;
11291 PyObject * obj1 = 0 ;
11292 char * kwnames[] = {
11293 (char *) "self",(char *) "region", NULL
11294 };
11295
11296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11298 if (!SWIG_IsOK(res1)) {
11299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11300 }
11301 arg1 = reinterpret_cast< wxRegion * >(argp1);
11302 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11303 if (!SWIG_IsOK(res2)) {
11304 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11305 }
11306 if (!argp2) {
11307 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11308 }
11309 arg2 = reinterpret_cast< wxRegion * >(argp2);
11310 {
11311 PyThreadState* __tstate = wxPyBeginAllowThreads();
11312 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11313 wxPyEndAllowThreads(__tstate);
11314 if (PyErr_Occurred()) SWIG_fail;
11315 }
11316 {
11317 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11318 }
11319 return resultobj;
11320fail:
11321 return NULL;
11322}
11323
11324
11325SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11326 PyObject *resultobj = 0;
11327 wxRegion *arg1 = (wxRegion *) 0 ;
11328 int arg2 ;
11329 int arg3 ;
11330 int arg4 ;
11331 int arg5 ;
11332 bool result;
11333 void *argp1 = 0 ;
11334 int res1 = 0 ;
11335 int val2 ;
11336 int ecode2 = 0 ;
11337 int val3 ;
11338 int ecode3 = 0 ;
11339 int val4 ;
11340 int ecode4 = 0 ;
11341 int val5 ;
11342 int ecode5 = 0 ;
11343 PyObject * obj0 = 0 ;
11344 PyObject * obj1 = 0 ;
11345 PyObject * obj2 = 0 ;
11346 PyObject * obj3 = 0 ;
11347 PyObject * obj4 = 0 ;
11348 char * kwnames[] = {
11349 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11350 };
11351
11352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11354 if (!SWIG_IsOK(res1)) {
11355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11356 }
11357 arg1 = reinterpret_cast< wxRegion * >(argp1);
11358 ecode2 = SWIG_AsVal_int(obj1, &val2);
11359 if (!SWIG_IsOK(ecode2)) {
11360 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11361 }
11362 arg2 = static_cast< int >(val2);
11363 ecode3 = SWIG_AsVal_int(obj2, &val3);
11364 if (!SWIG_IsOK(ecode3)) {
11365 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11366 }
11367 arg3 = static_cast< int >(val3);
11368 ecode4 = SWIG_AsVal_int(obj3, &val4);
11369 if (!SWIG_IsOK(ecode4)) {
11370 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11371 }
11372 arg4 = static_cast< int >(val4);
11373 ecode5 = SWIG_AsVal_int(obj4, &val5);
11374 if (!SWIG_IsOK(ecode5)) {
11375 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11376 }
11377 arg5 = static_cast< int >(val5);
11378 {
11379 PyThreadState* __tstate = wxPyBeginAllowThreads();
11380 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11381 wxPyEndAllowThreads(__tstate);
11382 if (PyErr_Occurred()) SWIG_fail;
11383 }
11384 {
11385 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11386 }
11387 return resultobj;
11388fail:
11389 return NULL;
11390}
11391
11392
11393SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11394 PyObject *resultobj = 0;
11395 wxRegion *arg1 = (wxRegion *) 0 ;
11396 wxRect *arg2 = 0 ;
11397 bool result;
11398 void *argp1 = 0 ;
11399 int res1 = 0 ;
11400 wxRect temp2 ;
11401 PyObject * obj0 = 0 ;
11402 PyObject * obj1 = 0 ;
11403 char * kwnames[] = {
11404 (char *) "self",(char *) "rect", NULL
11405 };
11406
11407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11409 if (!SWIG_IsOK(res1)) {
11410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11411 }
11412 arg1 = reinterpret_cast< wxRegion * >(argp1);
11413 {
11414 arg2 = &temp2;
11415 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11416 }
11417 {
11418 PyThreadState* __tstate = wxPyBeginAllowThreads();
11419 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11420 wxPyEndAllowThreads(__tstate);
11421 if (PyErr_Occurred()) SWIG_fail;
11422 }
11423 {
11424 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11425 }
11426 return resultobj;
11427fail:
11428 return NULL;
11429}
11430
11431
11432SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11433 PyObject *resultobj = 0;
11434 wxRegion *arg1 = (wxRegion *) 0 ;
11435 wxRegion *arg2 = 0 ;
11436 bool result;
11437 void *argp1 = 0 ;
11438 int res1 = 0 ;
11439 void *argp2 = 0 ;
11440 int res2 = 0 ;
11441 PyObject * obj0 = 0 ;
11442 PyObject * obj1 = 0 ;
11443 char * kwnames[] = {
11444 (char *) "self",(char *) "region", NULL
11445 };
11446
11447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11449 if (!SWIG_IsOK(res1)) {
11450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11451 }
11452 arg1 = reinterpret_cast< wxRegion * >(argp1);
11453 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11454 if (!SWIG_IsOK(res2)) {
11455 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11456 }
11457 if (!argp2) {
11458 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11459 }
11460 arg2 = reinterpret_cast< wxRegion * >(argp2);
11461 {
11462 PyThreadState* __tstate = wxPyBeginAllowThreads();
11463 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11464 wxPyEndAllowThreads(__tstate);
11465 if (PyErr_Occurred()) SWIG_fail;
11466 }
11467 {
11468 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11469 }
11470 return resultobj;
11471fail:
11472 return NULL;
d55e5bfc
RD
11473}
11474
11475
1bd55598
RD
11476SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11477 PyObject *resultobj = 0;
11478 wxRegion *arg1 = (wxRegion *) 0 ;
11479 SwigValueWrapper<wxBitmap > result;
11480 void *argp1 = 0 ;
11481 int res1 = 0 ;
11482 PyObject *swig_obj[1] ;
11483
11484 if (!args) SWIG_fail;
11485 swig_obj[0] = args;
11486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11487 if (!SWIG_IsOK(res1)) {
11488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11489 }
11490 arg1 = reinterpret_cast< wxRegion * >(argp1);
11491 {
11492 PyThreadState* __tstate = wxPyBeginAllowThreads();
11493 result = (arg1)->ConvertToBitmap();
11494 wxPyEndAllowThreads(__tstate);
11495 if (PyErr_Occurred()) SWIG_fail;
11496 }
11497 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11498 return resultobj;
11499fail:
11500 return NULL;
11501}
11502
11503
11504SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11505 PyObject *resultobj = 0;
11506 wxRegion *arg1 = (wxRegion *) 0 ;
11507 wxBitmap *arg2 = 0 ;
11508 bool result;
11509 void *argp1 = 0 ;
11510 int res1 = 0 ;
11511 void *argp2 = 0 ;
11512 int res2 = 0 ;
11513 PyObject * obj0 = 0 ;
11514 PyObject * obj1 = 0 ;
11515 char * kwnames[] = {
11516 (char *) "self",(char *) "bmp", NULL
11517 };
11518
11519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11521 if (!SWIG_IsOK(res1)) {
11522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11523 }
11524 arg1 = reinterpret_cast< wxRegion * >(argp1);
11525 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11526 if (!SWIG_IsOK(res2)) {
11527 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11528 }
11529 if (!argp2) {
11530 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11531 }
11532 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11533 {
11534 PyThreadState* __tstate = wxPyBeginAllowThreads();
11535 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11536 wxPyEndAllowThreads(__tstate);
11537 if (PyErr_Occurred()) SWIG_fail;
11538 }
11539 {
11540 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11541 }
11542 return resultobj;
11543fail:
11544 return NULL;
11545}
11546
11547
11548SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11549 PyObject *resultobj = 0;
11550 wxRegion *arg1 = (wxRegion *) 0 ;
11551 wxBitmap *arg2 = 0 ;
11552 wxColour *arg3 = 0 ;
11553 int arg4 = (int) 0 ;
11554 bool result;
11555 void *argp1 = 0 ;
11556 int res1 = 0 ;
11557 void *argp2 = 0 ;
11558 int res2 = 0 ;
11559 wxColour temp3 ;
11560 int val4 ;
11561 int ecode4 = 0 ;
11562 PyObject * obj0 = 0 ;
11563 PyObject * obj1 = 0 ;
11564 PyObject * obj2 = 0 ;
11565 PyObject * obj3 = 0 ;
11566 char * kwnames[] = {
11567 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11568 };
11569
11570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11572 if (!SWIG_IsOK(res1)) {
11573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11574 }
11575 arg1 = reinterpret_cast< wxRegion * >(argp1);
11576 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11577 if (!SWIG_IsOK(res2)) {
11578 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11579 }
11580 if (!argp2) {
11581 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11582 }
11583 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11584 {
11585 arg3 = &temp3;
11586 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11587 }
11588 if (obj3) {
11589 ecode4 = SWIG_AsVal_int(obj3, &val4);
11590 if (!SWIG_IsOK(ecode4)) {
11591 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11592 }
11593 arg4 = static_cast< int >(val4);
11594 }
11595 {
11596 PyThreadState* __tstate = wxPyBeginAllowThreads();
11597 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11598 wxPyEndAllowThreads(__tstate);
11599 if (PyErr_Occurred()) SWIG_fail;
11600 }
11601 {
11602 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11603 }
11604 return resultobj;
11605fail:
11606 return NULL;
d55e5bfc
RD
11607}
11608
11609
1bd55598
RD
11610SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11611 PyObject *obj;
11612 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11613 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11614 return SWIG_Py_Void();
d55e5bfc
RD
11615}
11616
1bd55598
RD
11617SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11618 return SWIG_Python_InitShadowInstance(args);
11619}
d55e5bfc 11620
1bd55598
RD
11621SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11622 PyObject *resultobj = 0;
11623 wxRegion *arg1 = 0 ;
11624 wxRegionIterator *result = 0 ;
11625 void *argp1 = 0 ;
11626 int res1 = 0 ;
11627 PyObject * obj0 = 0 ;
11628 char * kwnames[] = {
11629 (char *) "region", NULL
11630 };
11631
11632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11633 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11634 if (!SWIG_IsOK(res1)) {
11635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11636 }
11637 if (!argp1) {
11638 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11639 }
11640 arg1 = reinterpret_cast< wxRegion * >(argp1);
11641 {
11642 if (!wxPyCheckForApp()) SWIG_fail;
11643 PyThreadState* __tstate = wxPyBeginAllowThreads();
11644 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11645 wxPyEndAllowThreads(__tstate);
11646 if (PyErr_Occurred()) SWIG_fail;
11647 }
11648 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11649 return resultobj;
11650fail:
11651 return NULL;
d55e5bfc
RD
11652}
11653
11654
1bd55598
RD
11655SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11656 PyObject *resultobj = 0;
11657 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11658 void *argp1 = 0 ;
11659 int res1 = 0 ;
11660 PyObject *swig_obj[1] ;
11661
11662 if (!args) SWIG_fail;
11663 swig_obj[0] = args;
11664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11665 if (!SWIG_IsOK(res1)) {
11666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11667 }
11668 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11669 {
11670 PyThreadState* __tstate = wxPyBeginAllowThreads();
11671 delete arg1;
d55e5bfc 11672
1bd55598
RD
11673 wxPyEndAllowThreads(__tstate);
11674 if (PyErr_Occurred()) SWIG_fail;
11675 }
11676 resultobj = SWIG_Py_Void();
11677 return resultobj;
11678fail:
11679 return NULL;
d55e5bfc
RD
11680}
11681
11682
1bd55598
RD
11683SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11684 PyObject *resultobj = 0;
11685 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11686 int result;
11687 void *argp1 = 0 ;
11688 int res1 = 0 ;
11689 PyObject *swig_obj[1] ;
11690
11691 if (!args) SWIG_fail;
11692 swig_obj[0] = args;
11693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11694 if (!SWIG_IsOK(res1)) {
11695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11696 }
11697 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11698 {
11699 PyThreadState* __tstate = wxPyBeginAllowThreads();
11700 result = (int)(arg1)->GetX();
11701 wxPyEndAllowThreads(__tstate);
11702 if (PyErr_Occurred()) SWIG_fail;
11703 }
11704 resultobj = SWIG_From_int(static_cast< int >(result));
11705 return resultobj;
11706fail:
11707 return NULL;
d55e5bfc
RD
11708}
11709
11710
1bd55598
RD
11711SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11712 PyObject *resultobj = 0;
11713 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11714 int result;
11715 void *argp1 = 0 ;
11716 int res1 = 0 ;
11717 PyObject *swig_obj[1] ;
11718
11719 if (!args) SWIG_fail;
11720 swig_obj[0] = args;
11721 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11722 if (!SWIG_IsOK(res1)) {
11723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11724 }
11725 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11726 {
11727 PyThreadState* __tstate = wxPyBeginAllowThreads();
11728 result = (int)(arg1)->GetY();
11729 wxPyEndAllowThreads(__tstate);
11730 if (PyErr_Occurred()) SWIG_fail;
11731 }
11732 resultobj = SWIG_From_int(static_cast< int >(result));
11733 return resultobj;
11734fail:
11735 return NULL;
d55e5bfc
RD
11736}
11737
11738
1bd55598
RD
11739SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11740 PyObject *resultobj = 0;
11741 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11742 int result;
11743 void *argp1 = 0 ;
11744 int res1 = 0 ;
11745 PyObject *swig_obj[1] ;
11746
11747 if (!args) SWIG_fail;
11748 swig_obj[0] = args;
11749 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11750 if (!SWIG_IsOK(res1)) {
11751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11752 }
11753 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11754 {
11755 PyThreadState* __tstate = wxPyBeginAllowThreads();
11756 result = (int)(arg1)->GetW();
11757 wxPyEndAllowThreads(__tstate);
11758 if (PyErr_Occurred()) SWIG_fail;
11759 }
11760 resultobj = SWIG_From_int(static_cast< int >(result));
11761 return resultobj;
11762fail:
11763 return NULL;
d55e5bfc
RD
11764}
11765
11766
1bd55598
RD
11767SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11768 PyObject *resultobj = 0;
11769 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11770 int result;
11771 void *argp1 = 0 ;
11772 int res1 = 0 ;
11773 PyObject *swig_obj[1] ;
11774
11775 if (!args) SWIG_fail;
11776 swig_obj[0] = args;
11777 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11778 if (!SWIG_IsOK(res1)) {
11779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11780 }
11781 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11782 {
11783 PyThreadState* __tstate = wxPyBeginAllowThreads();
11784 result = (int)(arg1)->GetWidth();
11785 wxPyEndAllowThreads(__tstate);
11786 if (PyErr_Occurred()) SWIG_fail;
11787 }
11788 resultobj = SWIG_From_int(static_cast< int >(result));
11789 return resultobj;
11790fail:
11791 return NULL;
d55e5bfc
RD
11792}
11793
11794
1bd55598
RD
11795SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11796 PyObject *resultobj = 0;
11797 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11798 int result;
11799 void *argp1 = 0 ;
11800 int res1 = 0 ;
11801 PyObject *swig_obj[1] ;
11802
11803 if (!args) SWIG_fail;
11804 swig_obj[0] = args;
11805 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11806 if (!SWIG_IsOK(res1)) {
11807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11808 }
11809 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11810 {
11811 PyThreadState* __tstate = wxPyBeginAllowThreads();
11812 result = (int)(arg1)->GetH();
11813 wxPyEndAllowThreads(__tstate);
11814 if (PyErr_Occurred()) SWIG_fail;
11815 }
11816 resultobj = SWIG_From_int(static_cast< int >(result));
11817 return resultobj;
11818fail:
11819 return NULL;
d07096ad
RD
11820}
11821
11822
1bd55598
RD
11823SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11824 PyObject *resultobj = 0;
11825 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11826 int result;
11827 void *argp1 = 0 ;
11828 int res1 = 0 ;
11829 PyObject *swig_obj[1] ;
11830
11831 if (!args) SWIG_fail;
11832 swig_obj[0] = args;
11833 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11834 if (!SWIG_IsOK(res1)) {
11835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11836 }
11837 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11838 {
11839 PyThreadState* __tstate = wxPyBeginAllowThreads();
11840 result = (int)(arg1)->GetHeight();
11841 wxPyEndAllowThreads(__tstate);
11842 if (PyErr_Occurred()) SWIG_fail;
11843 }
11844 resultobj = SWIG_From_int(static_cast< int >(result));
11845 return resultobj;
11846fail:
11847 return NULL;
d55e5bfc
RD
11848}
11849
11850
1bd55598
RD
11851SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11852 PyObject *resultobj = 0;
11853 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11854 wxRect result;
11855 void *argp1 = 0 ;
11856 int res1 = 0 ;
11857 PyObject *swig_obj[1] ;
11858
11859 if (!args) SWIG_fail;
11860 swig_obj[0] = args;
11861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11862 if (!SWIG_IsOK(res1)) {
11863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11864 }
11865 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11866 {
11867 PyThreadState* __tstate = wxPyBeginAllowThreads();
11868 result = (arg1)->GetRect();
11869 wxPyEndAllowThreads(__tstate);
11870 if (PyErr_Occurred()) SWIG_fail;
11871 }
11872 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11873 return resultobj;
11874fail:
11875 return NULL;
d55e5bfc
RD
11876}
11877
11878
1bd55598
RD
11879SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11880 PyObject *resultobj = 0;
11881 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11882 bool result;
11883 void *argp1 = 0 ;
11884 int res1 = 0 ;
11885 PyObject *swig_obj[1] ;
11886
11887 if (!args) SWIG_fail;
11888 swig_obj[0] = args;
11889 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11890 if (!SWIG_IsOK(res1)) {
11891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11892 }
11893 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11894 {
11895 PyThreadState* __tstate = wxPyBeginAllowThreads();
11896 result = (bool)(arg1)->HaveRects();
11897 wxPyEndAllowThreads(__tstate);
11898 if (PyErr_Occurred()) SWIG_fail;
11899 }
11900 {
11901 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11902 }
11903 return resultobj;
11904fail:
11905 return NULL;
d55e5bfc
RD
11906}
11907
11908
1bd55598
RD
11909SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11910 PyObject *resultobj = 0;
11911 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11912 void *argp1 = 0 ;
11913 int res1 = 0 ;
11914 PyObject *swig_obj[1] ;
11915
11916 if (!args) SWIG_fail;
11917 swig_obj[0] = args;
11918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11919 if (!SWIG_IsOK(res1)) {
11920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11921 }
11922 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11923 {
11924 PyThreadState* __tstate = wxPyBeginAllowThreads();
11925 (arg1)->Reset();
11926 wxPyEndAllowThreads(__tstate);
11927 if (PyErr_Occurred()) SWIG_fail;
11928 }
11929 resultobj = SWIG_Py_Void();
11930 return resultobj;
11931fail:
11932 return NULL;
d55e5bfc
RD
11933}
11934
11935
1bd55598
RD
11936SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11937 PyObject *resultobj = 0;
11938 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11939 void *argp1 = 0 ;
11940 int res1 = 0 ;
11941 PyObject *swig_obj[1] ;
11942
11943 if (!args) SWIG_fail;
11944 swig_obj[0] = args;
11945 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11946 if (!SWIG_IsOK(res1)) {
11947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11948 }
11949 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11950 {
11951 PyThreadState* __tstate = wxPyBeginAllowThreads();
11952 wxRegionIterator_Next(arg1);
11953 wxPyEndAllowThreads(__tstate);
11954 if (PyErr_Occurred()) SWIG_fail;
11955 }
11956 resultobj = SWIG_Py_Void();
11957 return resultobj;
11958fail:
11959 return NULL;
070c48b4
RD
11960}
11961
11962
1bd55598
RD
11963SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11964 PyObject *resultobj = 0;
11965 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11966 bool result;
11967 void *argp1 = 0 ;
11968 int res1 = 0 ;
11969 PyObject *swig_obj[1] ;
11970
11971 if (!args) SWIG_fail;
11972 swig_obj[0] = args;
11973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11974 if (!SWIG_IsOK(res1)) {
11975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11976 }
11977 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11978 {
11979 PyThreadState* __tstate = wxPyBeginAllowThreads();
11980 result = (bool)wxRegionIterator___nonzero__(arg1);
11981 wxPyEndAllowThreads(__tstate);
11982 if (PyErr_Occurred()) SWIG_fail;
11983 }
11984 {
11985 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11986 }
11987 return resultobj;
11988fail:
11989 return NULL;
d55e5bfc
RD
11990}
11991
11992
1bd55598
RD
11993SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11994 PyObject *obj;
11995 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11996 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
11997 return SWIG_Py_Void();
d55e5bfc
RD
11998}
11999
1bd55598
RD
12000SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12001 return SWIG_Python_InitShadowInstance(args);
12002}
d55e5bfc 12003
1bd55598
RD
12004SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12005 PyObject *resultobj = 0;
12006 wxNativeFontInfo *result = 0 ;
12007
12008 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12009 {
12010 PyThreadState* __tstate = wxPyBeginAllowThreads();
12011 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12012 wxPyEndAllowThreads(__tstate);
12013 if (PyErr_Occurred()) SWIG_fail;
12014 }
12015 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12016 return resultobj;
12017fail:
12018 return NULL;
d55e5bfc
RD
12019}
12020
12021
1bd55598
RD
12022SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12023 PyObject *resultobj = 0;
12024 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12025 void *argp1 = 0 ;
12026 int res1 = 0 ;
12027 PyObject *swig_obj[1] ;
12028
12029 if (!args) SWIG_fail;
12030 swig_obj[0] = args;
12031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12032 if (!SWIG_IsOK(res1)) {
12033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12034 }
12035 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12036 {
12037 PyThreadState* __tstate = wxPyBeginAllowThreads();
12038 delete arg1;
d55e5bfc 12039
1bd55598
RD
12040 wxPyEndAllowThreads(__tstate);
12041 if (PyErr_Occurred()) SWIG_fail;
12042 }
12043 resultobj = SWIG_Py_Void();
12044 return resultobj;
12045fail:
12046 return NULL;
d55e5bfc
RD
12047}
12048
12049
1bd55598
RD
12050SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12051 PyObject *resultobj = 0;
12052 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12053 void *argp1 = 0 ;
12054 int res1 = 0 ;
12055 PyObject *swig_obj[1] ;
12056
12057 if (!args) SWIG_fail;
12058 swig_obj[0] = args;
12059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12060 if (!SWIG_IsOK(res1)) {
12061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12062 }
12063 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12064 {
12065 PyThreadState* __tstate = wxPyBeginAllowThreads();
12066 (arg1)->Init();
12067 wxPyEndAllowThreads(__tstate);
12068 if (PyErr_Occurred()) SWIG_fail;
12069 }
12070 resultobj = SWIG_Py_Void();
12071 return resultobj;
12072fail:
12073 return NULL;
12074}
12075
12076
12077SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12078 PyObject *resultobj = 0;
12079 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12080 wxFont *arg2 = 0 ;
12081 void *argp1 = 0 ;
12082 int res1 = 0 ;
12083 void *argp2 = 0 ;
12084 int res2 = 0 ;
12085 PyObject * obj0 = 0 ;
12086 PyObject * obj1 = 0 ;
12087 char * kwnames[] = {
12088 (char *) "self",(char *) "font", NULL
12089 };
12090
12091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12093 if (!SWIG_IsOK(res1)) {
12094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12095 }
12096 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12097 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12098 if (!SWIG_IsOK(res2)) {
12099 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12100 }
12101 if (!argp2) {
12102 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12103 }
12104 arg2 = reinterpret_cast< wxFont * >(argp2);
12105 {
12106 PyThreadState* __tstate = wxPyBeginAllowThreads();
12107 (arg1)->InitFromFont((wxFont const &)*arg2);
12108 wxPyEndAllowThreads(__tstate);
12109 if (PyErr_Occurred()) SWIG_fail;
12110 }
12111 resultobj = SWIG_Py_Void();
12112 return resultobj;
12113fail:
12114 return NULL;
d55e5bfc
RD
12115}
12116
12117
1bd55598
RD
12118SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12119 PyObject *resultobj = 0;
12120 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12121 int result;
12122 void *argp1 = 0 ;
12123 int res1 = 0 ;
12124 PyObject *swig_obj[1] ;
12125
12126 if (!args) SWIG_fail;
12127 swig_obj[0] = args;
12128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12129 if (!SWIG_IsOK(res1)) {
12130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12131 }
12132 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12133 {
12134 PyThreadState* __tstate = wxPyBeginAllowThreads();
12135 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12136 wxPyEndAllowThreads(__tstate);
12137 if (PyErr_Occurred()) SWIG_fail;
12138 }
12139 resultobj = SWIG_From_int(static_cast< int >(result));
12140 return resultobj;
12141fail:
12142 return NULL;
d55e5bfc
RD
12143}
12144
12145
1bd55598
RD
12146SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12147 PyObject *resultobj = 0;
12148 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12149 wxFontStyle result;
12150 void *argp1 = 0 ;
12151 int res1 = 0 ;
12152 PyObject *swig_obj[1] ;
12153
12154 if (!args) SWIG_fail;
12155 swig_obj[0] = args;
12156 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12157 if (!SWIG_IsOK(res1)) {
12158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12159 }
12160 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12161 {
12162 PyThreadState* __tstate = wxPyBeginAllowThreads();
12163 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12164 wxPyEndAllowThreads(__tstate);
12165 if (PyErr_Occurred()) SWIG_fail;
12166 }
12167 resultobj = SWIG_From_int(static_cast< int >(result));
12168 return resultobj;
12169fail:
12170 return NULL;
d55e5bfc
RD
12171}
12172
12173
1bd55598
RD
12174SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12175 PyObject *resultobj = 0;
12176 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12177 wxFontWeight result;
12178 void *argp1 = 0 ;
12179 int res1 = 0 ;
12180 PyObject *swig_obj[1] ;
12181
12182 if (!args) SWIG_fail;
12183 swig_obj[0] = args;
12184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12185 if (!SWIG_IsOK(res1)) {
12186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12187 }
12188 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12189 {
12190 PyThreadState* __tstate = wxPyBeginAllowThreads();
12191 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12192 wxPyEndAllowThreads(__tstate);
12193 if (PyErr_Occurred()) SWIG_fail;
12194 }
12195 resultobj = SWIG_From_int(static_cast< int >(result));
12196 return resultobj;
12197fail:
12198 return NULL;
d55e5bfc
RD
12199}
12200
12201
1bd55598
RD
12202SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12203 PyObject *resultobj = 0;
12204 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12205 bool result;
12206 void *argp1 = 0 ;
12207 int res1 = 0 ;
12208 PyObject *swig_obj[1] ;
12209
12210 if (!args) SWIG_fail;
12211 swig_obj[0] = args;
12212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12213 if (!SWIG_IsOK(res1)) {
12214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12215 }
12216 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12217 {
12218 PyThreadState* __tstate = wxPyBeginAllowThreads();
12219 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12220 wxPyEndAllowThreads(__tstate);
12221 if (PyErr_Occurred()) SWIG_fail;
12222 }
12223 {
12224 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12225 }
12226 return resultobj;
12227fail:
12228 return NULL;
d55e5bfc
RD
12229}
12230
12231
1bd55598
RD
12232SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12233 PyObject *resultobj = 0;
12234 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12235 wxString result;
12236 void *argp1 = 0 ;
12237 int res1 = 0 ;
12238 PyObject *swig_obj[1] ;
12239
12240 if (!args) SWIG_fail;
12241 swig_obj[0] = args;
12242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12243 if (!SWIG_IsOK(res1)) {
12244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12245 }
12246 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12247 {
12248 PyThreadState* __tstate = wxPyBeginAllowThreads();
12249 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12250 wxPyEndAllowThreads(__tstate);
12251 if (PyErr_Occurred()) SWIG_fail;
12252 }
12253 {
12254#if wxUSE_UNICODE
12255 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12256#else
12257 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12258#endif
12259 }
12260 return resultobj;
12261fail:
12262 return NULL;
d55e5bfc
RD
12263}
12264
12265
1bd55598
RD
12266SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12267 PyObject *resultobj = 0;
12268 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12269 wxFontFamily result;
12270 void *argp1 = 0 ;
12271 int res1 = 0 ;
12272 PyObject *swig_obj[1] ;
12273
12274 if (!args) SWIG_fail;
12275 swig_obj[0] = args;
12276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12277 if (!SWIG_IsOK(res1)) {
12278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12279 }
12280 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12281 {
12282 PyThreadState* __tstate = wxPyBeginAllowThreads();
12283 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12284 wxPyEndAllowThreads(__tstate);
12285 if (PyErr_Occurred()) SWIG_fail;
12286 }
12287 resultobj = SWIG_From_int(static_cast< int >(result));
12288 return resultobj;
12289fail:
12290 return NULL;
d55e5bfc
RD
12291}
12292
12293
1bd55598
RD
12294SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12295 PyObject *resultobj = 0;
12296 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12297 wxFontEncoding result;
12298 void *argp1 = 0 ;
12299 int res1 = 0 ;
12300 PyObject *swig_obj[1] ;
12301
12302 if (!args) SWIG_fail;
12303 swig_obj[0] = args;
12304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12305 if (!SWIG_IsOK(res1)) {
12306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12307 }
12308 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12309 {
12310 PyThreadState* __tstate = wxPyBeginAllowThreads();
12311 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12312 wxPyEndAllowThreads(__tstate);
12313 if (PyErr_Occurred()) SWIG_fail;
12314 }
12315 resultobj = SWIG_From_int(static_cast< int >(result));
12316 return resultobj;
12317fail:
12318 return NULL;
12319}
12320
12321
12322SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12323 PyObject *resultobj = 0;
12324 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12325 int arg2 ;
12326 void *argp1 = 0 ;
12327 int res1 = 0 ;
12328 int val2 ;
12329 int ecode2 = 0 ;
12330 PyObject * obj0 = 0 ;
12331 PyObject * obj1 = 0 ;
12332 char * kwnames[] = {
12333 (char *) "self",(char *) "pointsize", NULL
12334 };
12335
12336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12338 if (!SWIG_IsOK(res1)) {
12339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12340 }
12341 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12342 ecode2 = SWIG_AsVal_int(obj1, &val2);
12343 if (!SWIG_IsOK(ecode2)) {
12344 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12345 }
12346 arg2 = static_cast< int >(val2);
12347 {
12348 PyThreadState* __tstate = wxPyBeginAllowThreads();
12349 (arg1)->SetPointSize(arg2);
12350 wxPyEndAllowThreads(__tstate);
12351 if (PyErr_Occurred()) SWIG_fail;
12352 }
12353 resultobj = SWIG_Py_Void();
12354 return resultobj;
12355fail:
12356 return NULL;
12357}
12358
12359
12360SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12361 PyObject *resultobj = 0;
12362 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12363 wxFontStyle arg2 ;
12364 void *argp1 = 0 ;
12365 int res1 = 0 ;
12366 int val2 ;
12367 int ecode2 = 0 ;
12368 PyObject * obj0 = 0 ;
12369 PyObject * obj1 = 0 ;
12370 char * kwnames[] = {
12371 (char *) "self",(char *) "style", NULL
12372 };
12373
12374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12376 if (!SWIG_IsOK(res1)) {
12377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12378 }
12379 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12380 ecode2 = SWIG_AsVal_int(obj1, &val2);
12381 if (!SWIG_IsOK(ecode2)) {
12382 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12383 }
12384 arg2 = static_cast< wxFontStyle >(val2);
12385 {
12386 PyThreadState* __tstate = wxPyBeginAllowThreads();
12387 (arg1)->SetStyle(arg2);
12388 wxPyEndAllowThreads(__tstate);
12389 if (PyErr_Occurred()) SWIG_fail;
12390 }
12391 resultobj = SWIG_Py_Void();
12392 return resultobj;
12393fail:
12394 return NULL;
12395}
12396
12397
12398SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12399 PyObject *resultobj = 0;
12400 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12401 wxFontWeight arg2 ;
12402 void *argp1 = 0 ;
12403 int res1 = 0 ;
12404 int val2 ;
12405 int ecode2 = 0 ;
12406 PyObject * obj0 = 0 ;
12407 PyObject * obj1 = 0 ;
12408 char * kwnames[] = {
12409 (char *) "self",(char *) "weight", NULL
12410 };
12411
12412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12414 if (!SWIG_IsOK(res1)) {
12415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12416 }
12417 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12418 ecode2 = SWIG_AsVal_int(obj1, &val2);
12419 if (!SWIG_IsOK(ecode2)) {
12420 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12421 }
12422 arg2 = static_cast< wxFontWeight >(val2);
12423 {
12424 PyThreadState* __tstate = wxPyBeginAllowThreads();
12425 (arg1)->SetWeight(arg2);
12426 wxPyEndAllowThreads(__tstate);
12427 if (PyErr_Occurred()) SWIG_fail;
12428 }
12429 resultobj = SWIG_Py_Void();
12430 return resultobj;
12431fail:
12432 return NULL;
12433}
12434
12435
12436SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12437 PyObject *resultobj = 0;
12438 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12439 bool arg2 ;
12440 void *argp1 = 0 ;
12441 int res1 = 0 ;
12442 bool val2 ;
12443 int ecode2 = 0 ;
12444 PyObject * obj0 = 0 ;
12445 PyObject * obj1 = 0 ;
12446 char * kwnames[] = {
12447 (char *) "self",(char *) "underlined", NULL
12448 };
12449
12450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12452 if (!SWIG_IsOK(res1)) {
12453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12454 }
12455 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12456 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12457 if (!SWIG_IsOK(ecode2)) {
12458 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12459 }
12460 arg2 = static_cast< bool >(val2);
12461 {
12462 PyThreadState* __tstate = wxPyBeginAllowThreads();
12463 (arg1)->SetUnderlined(arg2);
12464 wxPyEndAllowThreads(__tstate);
12465 if (PyErr_Occurred()) SWIG_fail;
12466 }
12467 resultobj = SWIG_Py_Void();
12468 return resultobj;
12469fail:
12470 return NULL;
12471}
12472
12473
12474SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12475 PyObject *resultobj = 0;
12476 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12477 wxString arg2 ;
704eda0c 12478 bool result;
1bd55598
RD
12479 void *argp1 = 0 ;
12480 int res1 = 0 ;
12481 PyObject * obj0 = 0 ;
12482 PyObject * obj1 = 0 ;
12483 char * kwnames[] = {
12484 (char *) "self",(char *) "facename", NULL
12485 };
12486
12487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12489 if (!SWIG_IsOK(res1)) {
12490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12491 }
12492 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12493 {
12494 wxString* sptr = wxString_in_helper(obj1);
12495 if (sptr == NULL) SWIG_fail;
12496 arg2 = *sptr;
12497 delete sptr;
12498 }
12499 {
12500 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 12501 result = (bool)(arg1)->SetFaceName(arg2);
1bd55598
RD
12502 wxPyEndAllowThreads(__tstate);
12503 if (PyErr_Occurred()) SWIG_fail;
12504 }
704eda0c
RD
12505 {
12506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12507 }
1bd55598
RD
12508 return resultobj;
12509fail:
12510 return NULL;
12511}
12512
12513
12514SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12515 PyObject *resultobj = 0;
12516 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12517 wxFontFamily arg2 ;
12518 void *argp1 = 0 ;
12519 int res1 = 0 ;
12520 int val2 ;
12521 int ecode2 = 0 ;
12522 PyObject * obj0 = 0 ;
12523 PyObject * obj1 = 0 ;
12524 char * kwnames[] = {
12525 (char *) "self",(char *) "family", NULL
12526 };
12527
12528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12530 if (!SWIG_IsOK(res1)) {
12531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12532 }
12533 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12534 ecode2 = SWIG_AsVal_int(obj1, &val2);
12535 if (!SWIG_IsOK(ecode2)) {
12536 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12537 }
12538 arg2 = static_cast< wxFontFamily >(val2);
12539 {
12540 PyThreadState* __tstate = wxPyBeginAllowThreads();
12541 (arg1)->SetFamily(arg2);
12542 wxPyEndAllowThreads(__tstate);
12543 if (PyErr_Occurred()) SWIG_fail;
12544 }
12545 resultobj = SWIG_Py_Void();
12546 return resultobj;
12547fail:
12548 return NULL;
12549}
12550
12551
12552SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12553 PyObject *resultobj = 0;
12554 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12555 wxFontEncoding arg2 ;
12556 void *argp1 = 0 ;
12557 int res1 = 0 ;
12558 int val2 ;
12559 int ecode2 = 0 ;
12560 PyObject * obj0 = 0 ;
12561 PyObject * obj1 = 0 ;
12562 char * kwnames[] = {
12563 (char *) "self",(char *) "encoding", NULL
12564 };
12565
12566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12568 if (!SWIG_IsOK(res1)) {
12569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12570 }
12571 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12572 ecode2 = SWIG_AsVal_int(obj1, &val2);
12573 if (!SWIG_IsOK(ecode2)) {
12574 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12575 }
12576 arg2 = static_cast< wxFontEncoding >(val2);
12577 {
12578 PyThreadState* __tstate = wxPyBeginAllowThreads();
12579 (arg1)->SetEncoding(arg2);
12580 wxPyEndAllowThreads(__tstate);
12581 if (PyErr_Occurred()) SWIG_fail;
12582 }
12583 resultobj = SWIG_Py_Void();
12584 return resultobj;
12585fail:
12586 return NULL;
12587}
12588
12589
12590SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12591 PyObject *resultobj = 0;
12592 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12593 wxString *arg2 = 0 ;
12594 bool result;
12595 void *argp1 = 0 ;
12596 int res1 = 0 ;
12597 bool temp2 = false ;
12598 PyObject * obj0 = 0 ;
12599 PyObject * obj1 = 0 ;
12600 char * kwnames[] = {
12601 (char *) "self",(char *) "s", NULL
12602 };
12603
12604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12606 if (!SWIG_IsOK(res1)) {
12607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12608 }
12609 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12610 {
12611 arg2 = wxString_in_helper(obj1);
12612 if (arg2 == NULL) SWIG_fail;
12613 temp2 = true;
12614 }
12615 {
12616 PyThreadState* __tstate = wxPyBeginAllowThreads();
12617 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12618 wxPyEndAllowThreads(__tstate);
12619 if (PyErr_Occurred()) SWIG_fail;
12620 }
12621 {
12622 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12623 }
12624 {
12625 if (temp2)
12626 delete arg2;
12627 }
12628 return resultobj;
12629fail:
12630 {
12631 if (temp2)
12632 delete arg2;
12633 }
12634 return NULL;
d55e5bfc
RD
12635}
12636
12637
1bd55598
RD
12638SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12639 PyObject *resultobj = 0;
12640 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12641 wxString result;
12642 void *argp1 = 0 ;
12643 int res1 = 0 ;
12644 PyObject *swig_obj[1] ;
12645
12646 if (!args) SWIG_fail;
12647 swig_obj[0] = args;
12648 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12649 if (!SWIG_IsOK(res1)) {
12650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12651 }
12652 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12653 {
12654 PyThreadState* __tstate = wxPyBeginAllowThreads();
12655 result = ((wxNativeFontInfo const *)arg1)->ToString();
12656 wxPyEndAllowThreads(__tstate);
12657 if (PyErr_Occurred()) SWIG_fail;
12658 }
12659 {
12660#if wxUSE_UNICODE
12661 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12662#else
12663 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12664#endif
12665 }
12666 return resultobj;
12667fail:
12668 return NULL;
d55e5bfc
RD
12669}
12670
12671
1bd55598
RD
12672SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12673 PyObject *resultobj = 0;
12674 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12675 wxString result;
12676 void *argp1 = 0 ;
12677 int res1 = 0 ;
12678 PyObject *swig_obj[1] ;
12679
12680 if (!args) SWIG_fail;
12681 swig_obj[0] = args;
12682 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12683 if (!SWIG_IsOK(res1)) {
12684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12685 }
12686 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12687 {
12688 PyThreadState* __tstate = wxPyBeginAllowThreads();
12689 result = wxNativeFontInfo___str__(arg1);
12690 wxPyEndAllowThreads(__tstate);
12691 if (PyErr_Occurred()) SWIG_fail;
12692 }
12693 {
12694#if wxUSE_UNICODE
12695 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12696#else
12697 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12698#endif
12699 }
12700 return resultobj;
12701fail:
12702 return NULL;
12703}
12704
12705
12706SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12707 PyObject *resultobj = 0;
12708 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12709 wxString *arg2 = 0 ;
12710 bool result;
12711 void *argp1 = 0 ;
12712 int res1 = 0 ;
12713 bool temp2 = false ;
12714 PyObject * obj0 = 0 ;
12715 PyObject * obj1 = 0 ;
12716 char * kwnames[] = {
12717 (char *) "self",(char *) "s", NULL
12718 };
12719
12720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12722 if (!SWIG_IsOK(res1)) {
12723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12724 }
12725 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12726 {
12727 arg2 = wxString_in_helper(obj1);
12728 if (arg2 == NULL) SWIG_fail;
12729 temp2 = true;
12730 }
12731 {
12732 PyThreadState* __tstate = wxPyBeginAllowThreads();
12733 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12734 wxPyEndAllowThreads(__tstate);
12735 if (PyErr_Occurred()) SWIG_fail;
12736 }
12737 {
12738 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12739 }
12740 {
12741 if (temp2)
12742 delete arg2;
12743 }
12744 return resultobj;
12745fail:
12746 {
12747 if (temp2)
12748 delete arg2;
12749 }
12750 return NULL;
d55e5bfc
RD
12751}
12752
12753
1bd55598
RD
12754SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12755 PyObject *resultobj = 0;
12756 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12757 wxString result;
12758 void *argp1 = 0 ;
12759 int res1 = 0 ;
12760 PyObject *swig_obj[1] ;
12761
12762 if (!args) SWIG_fail;
12763 swig_obj[0] = args;
12764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12765 if (!SWIG_IsOK(res1)) {
12766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12767 }
12768 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12769 {
12770 PyThreadState* __tstate = wxPyBeginAllowThreads();
12771 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12772 wxPyEndAllowThreads(__tstate);
12773 if (PyErr_Occurred()) SWIG_fail;
12774 }
12775 {
36ed4f51 12776#if wxUSE_UNICODE
1bd55598 12777 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 12778#else
1bd55598 12779 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 12780#endif
1bd55598
RD
12781 }
12782 return resultobj;
12783fail:
12784 return NULL;
d55e5bfc
RD
12785}
12786
12787
1bd55598
RD
12788SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12789 PyObject *obj;
12790 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12791 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12792 return SWIG_Py_Void();
d55e5bfc
RD
12793}
12794
1bd55598
RD
12795SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12796 return SWIG_Python_InitShadowInstance(args);
12797}
d55e5bfc 12798
1bd55598
RD
12799SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12800 PyObject *resultobj = 0;
12801 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12802 wxString *arg2 = (wxString *) 0 ;
12803 void *argp1 = 0 ;
12804 int res1 = 0 ;
12805 bool temp2 = false ;
12806 PyObject *swig_obj[2] ;
12807
12808 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12809 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12810 if (!SWIG_IsOK(res1)) {
12811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12812 }
12813 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12814 {
12815 arg2 = wxString_in_helper(swig_obj[1]);
12816 if (arg2 == NULL) SWIG_fail;
12817 temp2 = true;
12818 }
12819 if (arg1) (arg1)->facename = *arg2;
12820
12821 resultobj = SWIG_Py_Void();
12822 {
12823 if (temp2)
12824 delete arg2;
12825 }
12826 return resultobj;
12827fail:
12828 {
12829 if (temp2)
12830 delete arg2;
12831 }
12832 return NULL;
d55e5bfc
RD
12833}
12834
12835
1bd55598
RD
12836SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12837 PyObject *resultobj = 0;
12838 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12839 wxString *result = 0 ;
12840 void *argp1 = 0 ;
12841 int res1 = 0 ;
12842 PyObject *swig_obj[1] ;
12843
12844 if (!args) SWIG_fail;
12845 swig_obj[0] = args;
12846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12847 if (!SWIG_IsOK(res1)) {
12848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12849 }
12850 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12851 result = (wxString *)& ((arg1)->facename);
12852 {
12853#if wxUSE_UNICODE
12854 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12855#else
12856 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12857#endif
12858 }
12859 return resultobj;
12860fail:
12861 return NULL;
d55e5bfc
RD
12862}
12863
12864
1bd55598
RD
12865SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12866 PyObject *resultobj = 0;
12867 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12868 wxFontEncoding arg2 ;
12869 void *argp1 = 0 ;
12870 int res1 = 0 ;
12871 int val2 ;
12872 int ecode2 = 0 ;
12873 PyObject *swig_obj[2] ;
12874
12875 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
12876 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12877 if (!SWIG_IsOK(res1)) {
12878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12879 }
12880 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12881 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12882 if (!SWIG_IsOK(ecode2)) {
12883 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12884 }
12885 arg2 = static_cast< wxFontEncoding >(val2);
12886 if (arg1) (arg1)->encoding = arg2;
12887
12888 resultobj = SWIG_Py_Void();
12889 return resultobj;
12890fail:
12891 return NULL;
d55e5bfc
RD
12892}
12893
12894
1bd55598
RD
12895SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12896 PyObject *resultobj = 0;
12897 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12898 wxFontEncoding result;
12899 void *argp1 = 0 ;
12900 int res1 = 0 ;
12901 PyObject *swig_obj[1] ;
12902
12903 if (!args) SWIG_fail;
12904 swig_obj[0] = args;
12905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12906 if (!SWIG_IsOK(res1)) {
12907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12908 }
12909 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12910 result = (wxFontEncoding) ((arg1)->encoding);
12911 resultobj = SWIG_From_int(static_cast< int >(result));
12912 return resultobj;
12913fail:
12914 return NULL;
d07096ad
RD
12915}
12916
12917
1bd55598
RD
12918SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12919 PyObject *resultobj = 0;
12920 wxNativeEncodingInfo *result = 0 ;
12921
12922 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12923 {
12924 PyThreadState* __tstate = wxPyBeginAllowThreads();
12925 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12926 wxPyEndAllowThreads(__tstate);
12927 if (PyErr_Occurred()) SWIG_fail;
12928 }
12929 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12930 return resultobj;
12931fail:
12932 return NULL;
d55e5bfc
RD
12933}
12934
12935
1bd55598
RD
12936SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12937 PyObject *resultobj = 0;
12938 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12939 void *argp1 = 0 ;
12940 int res1 = 0 ;
12941 PyObject *swig_obj[1] ;
12942
12943 if (!args) SWIG_fail;
12944 swig_obj[0] = args;
12945 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
12946 if (!SWIG_IsOK(res1)) {
12947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12948 }
12949 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12950 {
12951 PyThreadState* __tstate = wxPyBeginAllowThreads();
12952 delete arg1;
d55e5bfc 12953
1bd55598
RD
12954 wxPyEndAllowThreads(__tstate);
12955 if (PyErr_Occurred()) SWIG_fail;
12956 }
12957 resultobj = SWIG_Py_Void();
12958 return resultobj;
12959fail:
12960 return NULL;
12961}
12962
12963
12964SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12965 PyObject *resultobj = 0;
12966 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12967 wxString *arg2 = 0 ;
12968 bool result;
12969 void *argp1 = 0 ;
12970 int res1 = 0 ;
12971 bool temp2 = false ;
12972 PyObject * obj0 = 0 ;
12973 PyObject * obj1 = 0 ;
12974 char * kwnames[] = {
12975 (char *) "self",(char *) "s", NULL
12976 };
12977
12978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12980 if (!SWIG_IsOK(res1)) {
12981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12982 }
12983 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12984 {
12985 arg2 = wxString_in_helper(obj1);
12986 if (arg2 == NULL) SWIG_fail;
12987 temp2 = true;
12988 }
12989 {
12990 PyThreadState* __tstate = wxPyBeginAllowThreads();
12991 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12992 wxPyEndAllowThreads(__tstate);
12993 if (PyErr_Occurred()) SWIG_fail;
12994 }
12995 {
12996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12997 }
12998 {
12999 if (temp2)
13000 delete arg2;
13001 }
13002 return resultobj;
13003fail:
13004 {
13005 if (temp2)
13006 delete arg2;
13007 }
13008 return NULL;
d55e5bfc
RD
13009}
13010
13011
1bd55598
RD
13012SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13013 PyObject *resultobj = 0;
13014 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13015 wxString result;
13016 void *argp1 = 0 ;
13017 int res1 = 0 ;
13018 PyObject *swig_obj[1] ;
13019
13020 if (!args) SWIG_fail;
13021 swig_obj[0] = args;
13022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13023 if (!SWIG_IsOK(res1)) {
13024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13025 }
13026 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13027 {
13028 PyThreadState* __tstate = wxPyBeginAllowThreads();
13029 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13030 wxPyEndAllowThreads(__tstate);
13031 if (PyErr_Occurred()) SWIG_fail;
13032 }
13033 {
13034#if wxUSE_UNICODE
13035 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13036#else
13037 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13038#endif
13039 }
13040 return resultobj;
13041fail:
13042 return NULL;
d55e5bfc
RD
13043}
13044
13045
1bd55598
RD
13046SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13047 PyObject *obj;
13048 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13049 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13050 return SWIG_Py_Void();
d55e5bfc
RD
13051}
13052
1bd55598
RD
13053SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13054 return SWIG_Python_InitShadowInstance(args);
13055}
d55e5bfc 13056
1bd55598
RD
13057SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13058 PyObject *resultobj = 0;
13059 wxFontEncoding arg1 ;
13060 wxNativeEncodingInfo *result = 0 ;
13061 int val1 ;
13062 int ecode1 = 0 ;
13063 PyObject * obj0 = 0 ;
13064 char * kwnames[] = {
13065 (char *) "encoding", NULL
13066 };
13067
13068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13069 ecode1 = SWIG_AsVal_int(obj0, &val1);
13070 if (!SWIG_IsOK(ecode1)) {
13071 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13072 }
13073 arg1 = static_cast< wxFontEncoding >(val1);
13074 {
13075 PyThreadState* __tstate = wxPyBeginAllowThreads();
13076 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13077 wxPyEndAllowThreads(__tstate);
13078 if (PyErr_Occurred()) SWIG_fail;
13079 }
13080 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13081 return resultobj;
13082fail:
13083 return NULL;
13084}
13085
13086
13087SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13088 PyObject *resultobj = 0;
13089 wxNativeEncodingInfo *arg1 = 0 ;
13090 bool result;
13091 void *argp1 = 0 ;
13092 int res1 = 0 ;
13093 PyObject * obj0 = 0 ;
13094 char * kwnames[] = {
13095 (char *) "info", NULL
13096 };
13097
13098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13099 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13100 if (!SWIG_IsOK(res1)) {
13101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13102 }
13103 if (!argp1) {
13104 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13105 }
13106 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13107 {
13108 PyThreadState* __tstate = wxPyBeginAllowThreads();
13109 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13110 wxPyEndAllowThreads(__tstate);
13111 if (PyErr_Occurred()) SWIG_fail;
13112 }
13113 {
13114 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13115 }
13116 return resultobj;
13117fail:
13118 return NULL;
d55e5bfc
RD
13119}
13120
13121
1bd55598
RD
13122SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13123 PyObject *resultobj = 0;
13124 wxFontMapper *result = 0 ;
13125
13126 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13127 {
13128 PyThreadState* __tstate = wxPyBeginAllowThreads();
13129 result = (wxFontMapper *)new wxFontMapper();
13130 wxPyEndAllowThreads(__tstate);
13131 if (PyErr_Occurred()) SWIG_fail;
13132 }
13133 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13134 return resultobj;
13135fail:
13136 return NULL;
d55e5bfc
RD
13137}
13138
13139
1bd55598
RD
13140SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13141 PyObject *resultobj = 0;
13142 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13143 void *argp1 = 0 ;
13144 int res1 = 0 ;
13145 PyObject *swig_obj[1] ;
13146
13147 if (!args) SWIG_fail;
13148 swig_obj[0] = args;
13149 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13150 if (!SWIG_IsOK(res1)) {
13151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13152 }
13153 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13154 {
13155 PyThreadState* __tstate = wxPyBeginAllowThreads();
13156 delete arg1;
d55e5bfc 13157
1bd55598
RD
13158 wxPyEndAllowThreads(__tstate);
13159 if (PyErr_Occurred()) SWIG_fail;
13160 }
13161 resultobj = SWIG_Py_Void();
13162 return resultobj;
13163fail:
13164 return NULL;
d55e5bfc
RD
13165}
13166
13167
1bd55598
RD
13168SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13169 PyObject *resultobj = 0;
13170 wxFontMapper *result = 0 ;
13171
13172 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13173 {
13174 PyThreadState* __tstate = wxPyBeginAllowThreads();
13175 result = (wxFontMapper *)wxFontMapper::Get();
13176 wxPyEndAllowThreads(__tstate);
13177 if (PyErr_Occurred()) SWIG_fail;
13178 }
13179 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13180 return resultobj;
13181fail:
13182 return NULL;
13183}
13184
13185
13186SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13187 PyObject *resultobj = 0;
13188 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13189 wxFontMapper *result = 0 ;
13190 void *argp1 = 0 ;
13191 int res1 = 0 ;
13192 PyObject * obj0 = 0 ;
13193 char * kwnames[] = {
13194 (char *) "mapper", NULL
13195 };
13196
13197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13199 if (!SWIG_IsOK(res1)) {
13200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13201 }
13202 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13203 {
13204 PyThreadState* __tstate = wxPyBeginAllowThreads();
13205 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13206 wxPyEndAllowThreads(__tstate);
13207 if (PyErr_Occurred()) SWIG_fail;
13208 }
13209 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13210 return resultobj;
13211fail:
13212 return NULL;
13213}
13214
13215
13216SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13217 PyObject *resultobj = 0;
13218 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13219 wxString *arg2 = 0 ;
13220 bool arg3 = (bool) true ;
13221 wxFontEncoding result;
13222 void *argp1 = 0 ;
13223 int res1 = 0 ;
13224 bool temp2 = false ;
13225 bool val3 ;
13226 int ecode3 = 0 ;
13227 PyObject * obj0 = 0 ;
13228 PyObject * obj1 = 0 ;
13229 PyObject * obj2 = 0 ;
13230 char * kwnames[] = {
13231 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13232 };
13233
13234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13236 if (!SWIG_IsOK(res1)) {
13237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13238 }
13239 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13240 {
13241 arg2 = wxString_in_helper(obj1);
13242 if (arg2 == NULL) SWIG_fail;
13243 temp2 = true;
13244 }
13245 if (obj2) {
13246 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13247 if (!SWIG_IsOK(ecode3)) {
13248 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13249 }
13250 arg3 = static_cast< bool >(val3);
13251 }
13252 {
13253 PyThreadState* __tstate = wxPyBeginAllowThreads();
13254 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13255 wxPyEndAllowThreads(__tstate);
13256 if (PyErr_Occurred()) SWIG_fail;
13257 }
13258 resultobj = SWIG_From_int(static_cast< int >(result));
13259 {
13260 if (temp2)
13261 delete arg2;
13262 }
13263 return resultobj;
13264fail:
13265 {
13266 if (temp2)
13267 delete arg2;
13268 }
13269 return NULL;
d55e5bfc
RD
13270}
13271
13272
1bd55598
RD
13273SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13274 PyObject *resultobj = 0;
13275 size_t result;
13276
13277 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13278 {
13279 PyThreadState* __tstate = wxPyBeginAllowThreads();
13280 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13281 wxPyEndAllowThreads(__tstate);
13282 if (PyErr_Occurred()) SWIG_fail;
13283 }
13284 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13285 return resultobj;
13286fail:
13287 return NULL;
13288}
13289
13290
13291SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13292 PyObject *resultobj = 0;
13293 size_t arg1 ;
13294 wxFontEncoding result;
13295 size_t val1 ;
13296 int ecode1 = 0 ;
13297 PyObject * obj0 = 0 ;
13298 char * kwnames[] = {
13299 (char *) "n", NULL
13300 };
13301
13302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13303 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13304 if (!SWIG_IsOK(ecode1)) {
13305 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13306 }
13307 arg1 = static_cast< size_t >(val1);
13308 {
13309 PyThreadState* __tstate = wxPyBeginAllowThreads();
13310 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13311 wxPyEndAllowThreads(__tstate);
13312 if (PyErr_Occurred()) SWIG_fail;
13313 }
13314 resultobj = SWIG_From_int(static_cast< int >(result));
13315 return resultobj;
13316fail:
13317 return NULL;
13318}
13319
13320
13321SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13322 PyObject *resultobj = 0;
13323 wxFontEncoding arg1 ;
13324 wxString result;
13325 int val1 ;
13326 int ecode1 = 0 ;
13327 PyObject * obj0 = 0 ;
13328 char * kwnames[] = {
13329 (char *) "encoding", NULL
13330 };
13331
13332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13333 ecode1 = SWIG_AsVal_int(obj0, &val1);
13334 if (!SWIG_IsOK(ecode1)) {
13335 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13336 }
13337 arg1 = static_cast< wxFontEncoding >(val1);
13338 {
13339 PyThreadState* __tstate = wxPyBeginAllowThreads();
13340 result = wxFontMapper::GetEncodingName(arg1);
13341 wxPyEndAllowThreads(__tstate);
13342 if (PyErr_Occurred()) SWIG_fail;
13343 }
13344 {
13345#if wxUSE_UNICODE
13346 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13347#else
13348 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13349#endif
13350 }
13351 return resultobj;
13352fail:
13353 return NULL;
d55e5bfc
RD
13354}
13355
13356
1bd55598
RD
13357SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13358 PyObject *resultobj = 0;
13359 wxFontEncoding arg1 ;
13360 wxString result;
13361 int val1 ;
13362 int ecode1 = 0 ;
13363 PyObject * obj0 = 0 ;
13364 char * kwnames[] = {
13365 (char *) "encoding", NULL
13366 };
13367
13368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13369 ecode1 = SWIG_AsVal_int(obj0, &val1);
13370 if (!SWIG_IsOK(ecode1)) {
13371 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13372 }
13373 arg1 = static_cast< wxFontEncoding >(val1);
13374 {
13375 PyThreadState* __tstate = wxPyBeginAllowThreads();
13376 result = wxFontMapper::GetEncodingDescription(arg1);
13377 wxPyEndAllowThreads(__tstate);
13378 if (PyErr_Occurred()) SWIG_fail;
13379 }
13380 {
13381#if wxUSE_UNICODE
13382 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13383#else
13384 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13385#endif
13386 }
13387 return resultobj;
13388fail:
13389 return NULL;
d55e5bfc
RD
13390}
13391
13392
1bd55598
RD
13393SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13394 PyObject *resultobj = 0;
13395 wxString *arg1 = 0 ;
13396 wxFontEncoding result;
13397 bool temp1 = false ;
13398 PyObject * obj0 = 0 ;
13399 char * kwnames[] = {
13400 (char *) "name", NULL
13401 };
13402
13403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13404 {
13405 arg1 = wxString_in_helper(obj0);
13406 if (arg1 == NULL) SWIG_fail;
13407 temp1 = true;
13408 }
13409 {
13410 PyThreadState* __tstate = wxPyBeginAllowThreads();
13411 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13412 wxPyEndAllowThreads(__tstate);
13413 if (PyErr_Occurred()) SWIG_fail;
13414 }
13415 resultobj = SWIG_From_int(static_cast< int >(result));
13416 {
13417 if (temp1)
13418 delete arg1;
13419 }
13420 return resultobj;
13421fail:
13422 {
13423 if (temp1)
13424 delete arg1;
13425 }
13426 return NULL;
d55e5bfc
RD
13427}
13428
13429
1bd55598
RD
13430SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13431 PyObject *resultobj = 0;
13432 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13433 wxString *arg2 = 0 ;
13434 void *argp1 = 0 ;
13435 int res1 = 0 ;
13436 bool temp2 = false ;
13437 PyObject * obj0 = 0 ;
13438 PyObject * obj1 = 0 ;
13439 char * kwnames[] = {
13440 (char *) "self",(char *) "prefix", NULL
13441 };
13442
13443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13445 if (!SWIG_IsOK(res1)) {
13446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13447 }
13448 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13449 {
13450 arg2 = wxString_in_helper(obj1);
13451 if (arg2 == NULL) SWIG_fail;
13452 temp2 = true;
13453 }
13454 {
13455 PyThreadState* __tstate = wxPyBeginAllowThreads();
13456 (arg1)->SetConfigPath((wxString const &)*arg2);
13457 wxPyEndAllowThreads(__tstate);
13458 if (PyErr_Occurred()) SWIG_fail;
13459 }
13460 resultobj = SWIG_Py_Void();
13461 {
13462 if (temp2)
13463 delete arg2;
13464 }
13465 return resultobj;
13466fail:
13467 {
13468 if (temp2)
13469 delete arg2;
13470 }
13471 return NULL;
13472}
13473
13474
13475SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13476 PyObject *resultobj = 0;
13477 wxString result;
13478
13479 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13480 {
13481 PyThreadState* __tstate = wxPyBeginAllowThreads();
13482 result = wxFontMapper::GetDefaultConfigPath();
13483 wxPyEndAllowThreads(__tstate);
13484 if (PyErr_Occurred()) SWIG_fail;
13485 }
13486 {
13487#if wxUSE_UNICODE
13488 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13489#else
13490 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13491#endif
13492 }
13493 return resultobj;
13494fail:
13495 return NULL;
13496}
13497
13498
13499SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13500 PyObject *resultobj = 0;
13501 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13502 wxFontEncoding arg2 ;
13503 wxString const &arg3_defvalue = wxPyEmptyString ;
13504 wxString *arg3 = (wxString *) &arg3_defvalue ;
13505 bool arg4 = (bool) true ;
13506 PyObject *result = 0 ;
13507 void *argp1 = 0 ;
13508 int res1 = 0 ;
13509 int val2 ;
13510 int ecode2 = 0 ;
13511 bool temp3 = false ;
13512 bool val4 ;
13513 int ecode4 = 0 ;
13514 PyObject * obj0 = 0 ;
13515 PyObject * obj1 = 0 ;
13516 PyObject * obj2 = 0 ;
13517 PyObject * obj3 = 0 ;
13518 char * kwnames[] = {
13519 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13520 };
13521
13522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13524 if (!SWIG_IsOK(res1)) {
13525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13526 }
13527 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13528 ecode2 = SWIG_AsVal_int(obj1, &val2);
13529 if (!SWIG_IsOK(ecode2)) {
13530 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13531 }
13532 arg2 = static_cast< wxFontEncoding >(val2);
13533 if (obj2) {
36ed4f51 13534 {
1bd55598
RD
13535 arg3 = wxString_in_helper(obj2);
13536 if (arg3 == NULL) SWIG_fail;
13537 temp3 = true;
36ed4f51 13538 }
1bd55598
RD
13539 }
13540 if (obj3) {
13541 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13542 if (!SWIG_IsOK(ecode4)) {
13543 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13544 }
13545 arg4 = static_cast< bool >(val4);
13546 }
13547 {
13548 PyThreadState* __tstate = wxPyBeginAllowThreads();
13549 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13550 wxPyEndAllowThreads(__tstate);
13551 if (PyErr_Occurred()) SWIG_fail;
13552 }
13553 resultobj = result;
13554 {
13555 if (temp3)
13556 delete arg3;
13557 }
13558 return resultobj;
13559fail:
13560 {
13561 if (temp3)
13562 delete arg3;
13563 }
13564 return NULL;
13565}
13566
13567
13568SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13569 PyObject *resultobj = 0;
13570 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13571 wxFontEncoding arg2 ;
13572 wxString const &arg3_defvalue = wxPyEmptyString ;
13573 wxString *arg3 = (wxString *) &arg3_defvalue ;
13574 bool result;
13575 void *argp1 = 0 ;
13576 int res1 = 0 ;
13577 int val2 ;
13578 int ecode2 = 0 ;
13579 bool temp3 = false ;
13580 PyObject * obj0 = 0 ;
13581 PyObject * obj1 = 0 ;
13582 PyObject * obj2 = 0 ;
13583 char * kwnames[] = {
13584 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13585 };
13586
13587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13589 if (!SWIG_IsOK(res1)) {
13590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13591 }
13592 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13593 ecode2 = SWIG_AsVal_int(obj1, &val2);
13594 if (!SWIG_IsOK(ecode2)) {
13595 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13596 }
13597 arg2 = static_cast< wxFontEncoding >(val2);
13598 if (obj2) {
36ed4f51 13599 {
1bd55598
RD
13600 arg3 = wxString_in_helper(obj2);
13601 if (arg3 == NULL) SWIG_fail;
13602 temp3 = true;
36ed4f51 13603 }
1bd55598
RD
13604 }
13605 {
13606 PyThreadState* __tstate = wxPyBeginAllowThreads();
13607 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13608 wxPyEndAllowThreads(__tstate);
13609 if (PyErr_Occurred()) SWIG_fail;
13610 }
13611 {
13612 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13613 }
13614 {
13615 if (temp3)
13616 delete arg3;
13617 }
13618 return resultobj;
13619fail:
13620 {
13621 if (temp3)
13622 delete arg3;
13623 }
13624 return NULL;
13625}
13626
13627
13628SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13629 PyObject *resultobj = 0;
13630 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13631 wxWindow *arg2 = (wxWindow *) 0 ;
13632 void *argp1 = 0 ;
13633 int res1 = 0 ;
13634 void *argp2 = 0 ;
13635 int res2 = 0 ;
13636 PyObject * obj0 = 0 ;
13637 PyObject * obj1 = 0 ;
13638 char * kwnames[] = {
13639 (char *) "self",(char *) "parent", NULL
13640 };
13641
13642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13644 if (!SWIG_IsOK(res1)) {
13645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13646 }
13647 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13648 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13649 if (!SWIG_IsOK(res2)) {
13650 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13651 }
13652 arg2 = reinterpret_cast< wxWindow * >(argp2);
13653 {
13654 PyThreadState* __tstate = wxPyBeginAllowThreads();
13655 (arg1)->SetDialogParent(arg2);
13656 wxPyEndAllowThreads(__tstate);
13657 if (PyErr_Occurred()) SWIG_fail;
13658 }
13659 resultobj = SWIG_Py_Void();
13660 return resultobj;
13661fail:
13662 return NULL;
13663}
13664
13665
13666SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13667 PyObject *resultobj = 0;
13668 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13669 wxString *arg2 = 0 ;
13670 void *argp1 = 0 ;
13671 int res1 = 0 ;
13672 bool temp2 = false ;
13673 PyObject * obj0 = 0 ;
13674 PyObject * obj1 = 0 ;
13675 char * kwnames[] = {
13676 (char *) "self",(char *) "title", NULL
13677 };
13678
13679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13681 if (!SWIG_IsOK(res1)) {
13682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13683 }
13684 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13685 {
13686 arg2 = wxString_in_helper(obj1);
13687 if (arg2 == NULL) SWIG_fail;
13688 temp2 = true;
13689 }
13690 {
13691 PyThreadState* __tstate = wxPyBeginAllowThreads();
13692 (arg1)->SetDialogTitle((wxString const &)*arg2);
13693 wxPyEndAllowThreads(__tstate);
13694 if (PyErr_Occurred()) SWIG_fail;
13695 }
13696 resultobj = SWIG_Py_Void();
13697 {
13698 if (temp2)
13699 delete arg2;
13700 }
13701 return resultobj;
13702fail:
13703 {
13704 if (temp2)
13705 delete arg2;
13706 }
13707 return NULL;
13708}
13709
13710
13711SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13712 PyObject *obj;
13713 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13714 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13715 return SWIG_Py_Void();
13716}
13717
13718SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13719 return SWIG_Python_InitShadowInstance(args);
13720}
13721
13722SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13723 PyObject *resultobj = 0;
13724 int arg1 ;
13725 int arg2 ;
13726 int arg3 ;
13727 int arg4 ;
13728 bool arg5 = (bool) false ;
13729 wxString const &arg6_defvalue = wxPyEmptyString ;
13730 wxString *arg6 = (wxString *) &arg6_defvalue ;
13731 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13732 wxFont *result = 0 ;
13733 int val1 ;
13734 int ecode1 = 0 ;
13735 int val2 ;
13736 int ecode2 = 0 ;
13737 int val3 ;
13738 int ecode3 = 0 ;
13739 int val4 ;
13740 int ecode4 = 0 ;
13741 bool val5 ;
13742 int ecode5 = 0 ;
13743 bool temp6 = false ;
13744 int val7 ;
13745 int ecode7 = 0 ;
13746 PyObject * obj0 = 0 ;
13747 PyObject * obj1 = 0 ;
13748 PyObject * obj2 = 0 ;
13749 PyObject * obj3 = 0 ;
13750 PyObject * obj4 = 0 ;
13751 PyObject * obj5 = 0 ;
13752 PyObject * obj6 = 0 ;
13753 char * kwnames[] = {
13754 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13755 };
13756
13757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13758 ecode1 = SWIG_AsVal_int(obj0, &val1);
13759 if (!SWIG_IsOK(ecode1)) {
13760 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13761 }
13762 arg1 = static_cast< int >(val1);
13763 ecode2 = SWIG_AsVal_int(obj1, &val2);
13764 if (!SWIG_IsOK(ecode2)) {
13765 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13766 }
13767 arg2 = static_cast< int >(val2);
13768 ecode3 = SWIG_AsVal_int(obj2, &val3);
13769 if (!SWIG_IsOK(ecode3)) {
13770 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13771 }
13772 arg3 = static_cast< int >(val3);
13773 ecode4 = SWIG_AsVal_int(obj3, &val4);
13774 if (!SWIG_IsOK(ecode4)) {
13775 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13776 }
13777 arg4 = static_cast< int >(val4);
13778 if (obj4) {
13779 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13780 if (!SWIG_IsOK(ecode5)) {
13781 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13782 }
13783 arg5 = static_cast< bool >(val5);
13784 }
13785 if (obj5) {
d55e5bfc 13786 {
1bd55598
RD
13787 arg6 = wxString_in_helper(obj5);
13788 if (arg6 == NULL) SWIG_fail;
13789 temp6 = true;
d55e5bfc 13790 }
1bd55598
RD
13791 }
13792 if (obj6) {
13793 ecode7 = SWIG_AsVal_int(obj6, &val7);
13794 if (!SWIG_IsOK(ecode7)) {
13795 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13796 }
13797 arg7 = static_cast< wxFontEncoding >(val7);
13798 }
13799 {
13800 if (!wxPyCheckForApp()) SWIG_fail;
13801 PyThreadState* __tstate = wxPyBeginAllowThreads();
13802 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13803 wxPyEndAllowThreads(__tstate);
13804 if (PyErr_Occurred()) SWIG_fail;
13805 }
13806 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13807 {
13808 if (temp6)
13809 delete arg6;
13810 }
13811 return resultobj;
13812fail:
13813 {
13814 if (temp6)
13815 delete arg6;
13816 }
13817 return NULL;
d55e5bfc
RD
13818}
13819
13820
1bd55598
RD
13821SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13822 PyObject *resultobj = 0;
13823 wxFont *arg1 = (wxFont *) 0 ;
13824 void *argp1 = 0 ;
13825 int res1 = 0 ;
13826 PyObject *swig_obj[1] ;
13827
13828 if (!args) SWIG_fail;
13829 swig_obj[0] = args;
13830 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13831 if (!SWIG_IsOK(res1)) {
13832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13833 }
13834 arg1 = reinterpret_cast< wxFont * >(argp1);
13835 {
13836 PyThreadState* __tstate = wxPyBeginAllowThreads();
13837 delete arg1;
d55e5bfc 13838
1bd55598
RD
13839 wxPyEndAllowThreads(__tstate);
13840 if (PyErr_Occurred()) SWIG_fail;
13841 }
13842 resultobj = SWIG_Py_Void();
13843 return resultobj;
13844fail:
13845 return NULL;
13846}
13847
13848
13849SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13850 PyObject *resultobj = 0;
13851 wxNativeFontInfo *arg1 = 0 ;
13852 wxFont *result = 0 ;
13853 void *argp1 = 0 ;
13854 int res1 = 0 ;
13855 PyObject * obj0 = 0 ;
13856 char * kwnames[] = {
13857 (char *) "info", NULL
13858 };
13859
13860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13861 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13862 if (!SWIG_IsOK(res1)) {
13863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13864 }
13865 if (!argp1) {
13866 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13867 }
13868 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13869 {
13870 if (!wxPyCheckForApp()) SWIG_fail;
13871 PyThreadState* __tstate = wxPyBeginAllowThreads();
13872 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
13873 wxPyEndAllowThreads(__tstate);
13874 if (PyErr_Occurred()) SWIG_fail;
13875 }
13876 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13877 return resultobj;
13878fail:
13879 return NULL;
d55e5bfc
RD
13880}
13881
13882
1bd55598
RD
13883SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13884 PyObject *resultobj = 0;
13885 wxString *arg1 = 0 ;
13886 wxFont *result = 0 ;
13887 bool temp1 = false ;
13888 PyObject * obj0 = 0 ;
13889 char * kwnames[] = {
13890 (char *) "info", NULL
13891 };
13892
13893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13894 {
13895 arg1 = wxString_in_helper(obj0);
13896 if (arg1 == NULL) SWIG_fail;
13897 temp1 = true;
13898 }
13899 {
13900 if (!wxPyCheckForApp()) SWIG_fail;
13901 PyThreadState* __tstate = wxPyBeginAllowThreads();
13902 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13903 wxPyEndAllowThreads(__tstate);
13904 if (PyErr_Occurred()) SWIG_fail;
13905 }
13906 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13907 {
13908 if (temp1)
13909 delete arg1;
13910 }
13911 return resultobj;
13912fail:
13913 {
13914 if (temp1)
13915 delete arg1;
13916 }
13917 return NULL;
13918}
13919
13920
13921SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13922 PyObject *resultobj = 0;
13923 int arg1 ;
13924 wxFontFamily arg2 ;
13925 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13926 wxString const &arg4_defvalue = wxPyEmptyString ;
13927 wxString *arg4 = (wxString *) &arg4_defvalue ;
13928 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13929 wxFont *result = 0 ;
13930 int val1 ;
13931 int ecode1 = 0 ;
13932 int val2 ;
13933 int ecode2 = 0 ;
13934 int val3 ;
13935 int ecode3 = 0 ;
13936 bool temp4 = false ;
13937 int val5 ;
13938 int ecode5 = 0 ;
13939 PyObject * obj0 = 0 ;
13940 PyObject * obj1 = 0 ;
13941 PyObject * obj2 = 0 ;
13942 PyObject * obj3 = 0 ;
13943 PyObject * obj4 = 0 ;
13944 char * kwnames[] = {
13945 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13946 };
13947
13948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13949 ecode1 = SWIG_AsVal_int(obj0, &val1);
13950 if (!SWIG_IsOK(ecode1)) {
13951 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
13952 }
13953 arg1 = static_cast< int >(val1);
13954 ecode2 = SWIG_AsVal_int(obj1, &val2);
13955 if (!SWIG_IsOK(ecode2)) {
13956 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
13957 }
13958 arg2 = static_cast< wxFontFamily >(val2);
13959 if (obj2) {
13960 ecode3 = SWIG_AsVal_int(obj2, &val3);
13961 if (!SWIG_IsOK(ecode3)) {
13962 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
13963 }
13964 arg3 = static_cast< int >(val3);
13965 }
13966 if (obj3) {
36ed4f51 13967 {
1bd55598
RD
13968 arg4 = wxString_in_helper(obj3);
13969 if (arg4 == NULL) SWIG_fail;
13970 temp4 = true;
36ed4f51 13971 }
1bd55598
RD
13972 }
13973 if (obj4) {
13974 ecode5 = SWIG_AsVal_int(obj4, &val5);
13975 if (!SWIG_IsOK(ecode5)) {
13976 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13977 }
13978 arg5 = static_cast< wxFontEncoding >(val5);
13979 }
13980 {
13981 if (!wxPyCheckForApp()) SWIG_fail;
13982 PyThreadState* __tstate = wxPyBeginAllowThreads();
13983 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13984 wxPyEndAllowThreads(__tstate);
13985 if (PyErr_Occurred()) SWIG_fail;
13986 }
13987 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13988 {
13989 if (temp4)
13990 delete arg4;
13991 }
13992 return resultobj;
13993fail:
13994 {
13995 if (temp4)
13996 delete arg4;
13997 }
13998 return NULL;
13999}
14000
14001
14002SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14003 PyObject *resultobj = 0;
14004 wxSize *arg1 = 0 ;
14005 int arg2 ;
14006 int arg3 ;
14007 int arg4 ;
14008 bool arg5 = (bool) false ;
14009 wxString const &arg6_defvalue = wxEmptyString ;
14010 wxString *arg6 = (wxString *) &arg6_defvalue ;
14011 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14012 wxFont *result = 0 ;
14013 wxSize temp1 ;
14014 int val2 ;
14015 int ecode2 = 0 ;
14016 int val3 ;
14017 int ecode3 = 0 ;
14018 int val4 ;
14019 int ecode4 = 0 ;
14020 bool val5 ;
14021 int ecode5 = 0 ;
14022 bool temp6 = false ;
14023 int val7 ;
14024 int ecode7 = 0 ;
14025 PyObject * obj0 = 0 ;
14026 PyObject * obj1 = 0 ;
14027 PyObject * obj2 = 0 ;
14028 PyObject * obj3 = 0 ;
14029 PyObject * obj4 = 0 ;
14030 PyObject * obj5 = 0 ;
14031 PyObject * obj6 = 0 ;
14032 char * kwnames[] = {
14033 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14034 };
14035
14036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14037 {
14038 arg1 = &temp1;
14039 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14040 }
14041 ecode2 = SWIG_AsVal_int(obj1, &val2);
14042 if (!SWIG_IsOK(ecode2)) {
14043 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14044 }
14045 arg2 = static_cast< int >(val2);
14046 ecode3 = SWIG_AsVal_int(obj2, &val3);
14047 if (!SWIG_IsOK(ecode3)) {
14048 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14049 }
14050 arg3 = static_cast< int >(val3);
14051 ecode4 = SWIG_AsVal_int(obj3, &val4);
14052 if (!SWIG_IsOK(ecode4)) {
14053 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14054 }
14055 arg4 = static_cast< int >(val4);
14056 if (obj4) {
14057 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14058 if (!SWIG_IsOK(ecode5)) {
14059 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14060 }
14061 arg5 = static_cast< bool >(val5);
14062 }
14063 if (obj5) {
d55e5bfc 14064 {
1bd55598
RD
14065 arg6 = wxString_in_helper(obj5);
14066 if (arg6 == NULL) SWIG_fail;
14067 temp6 = true;
d55e5bfc 14068 }
1bd55598
RD
14069 }
14070 if (obj6) {
14071 ecode7 = SWIG_AsVal_int(obj6, &val7);
14072 if (!SWIG_IsOK(ecode7)) {
14073 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14074 }
14075 arg7 = static_cast< wxFontEncoding >(val7);
14076 }
14077 {
14078 if (!wxPyCheckForApp()) SWIG_fail;
14079 PyThreadState* __tstate = wxPyBeginAllowThreads();
14080 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14081 wxPyEndAllowThreads(__tstate);
14082 if (PyErr_Occurred()) SWIG_fail;
14083 }
14084 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14085 {
14086 if (temp6)
14087 delete arg6;
14088 }
14089 return resultobj;
14090fail:
14091 {
14092 if (temp6)
14093 delete arg6;
14094 }
14095 return NULL;
14096}
14097
14098
14099SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14100 PyObject *resultobj = 0;
14101 wxSize *arg1 = 0 ;
14102 wxFontFamily arg2 ;
14103 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14104 wxString const &arg4_defvalue = wxEmptyString ;
14105 wxString *arg4 = (wxString *) &arg4_defvalue ;
14106 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14107 wxFont *result = 0 ;
14108 wxSize temp1 ;
14109 int val2 ;
14110 int ecode2 = 0 ;
14111 int val3 ;
14112 int ecode3 = 0 ;
14113 bool temp4 = false ;
14114 int val5 ;
14115 int ecode5 = 0 ;
14116 PyObject * obj0 = 0 ;
14117 PyObject * obj1 = 0 ;
14118 PyObject * obj2 = 0 ;
14119 PyObject * obj3 = 0 ;
14120 PyObject * obj4 = 0 ;
14121 char * kwnames[] = {
14122 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14123 };
14124
14125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14126 {
14127 arg1 = &temp1;
14128 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14129 }
14130 ecode2 = SWIG_AsVal_int(obj1, &val2);
14131 if (!SWIG_IsOK(ecode2)) {
14132 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14133 }
14134 arg2 = static_cast< wxFontFamily >(val2);
14135 if (obj2) {
14136 ecode3 = SWIG_AsVal_int(obj2, &val3);
14137 if (!SWIG_IsOK(ecode3)) {
14138 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14139 }
14140 arg3 = static_cast< int >(val3);
14141 }
14142 if (obj3) {
36ed4f51 14143 {
1bd55598
RD
14144 arg4 = wxString_in_helper(obj3);
14145 if (arg4 == NULL) SWIG_fail;
14146 temp4 = true;
36ed4f51 14147 }
1bd55598
RD
14148 }
14149 if (obj4) {
14150 ecode5 = SWIG_AsVal_int(obj4, &val5);
14151 if (!SWIG_IsOK(ecode5)) {
14152 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14153 }
14154 arg5 = static_cast< wxFontEncoding >(val5);
14155 }
14156 {
14157 if (!wxPyCheckForApp()) SWIG_fail;
14158 PyThreadState* __tstate = wxPyBeginAllowThreads();
14159 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14160 wxPyEndAllowThreads(__tstate);
14161 if (PyErr_Occurred()) SWIG_fail;
14162 }
14163 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14164 {
14165 if (temp4)
14166 delete arg4;
14167 }
14168 return resultobj;
14169fail:
14170 {
14171 if (temp4)
14172 delete arg4;
14173 }
14174 return NULL;
d55e5bfc
RD
14175}
14176
14177
b39fe951 14178SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
14179 PyObject *resultobj = 0;
14180 wxFont *arg1 = (wxFont *) 0 ;
14181 bool result;
14182 void *argp1 = 0 ;
14183 int res1 = 0 ;
14184 PyObject *swig_obj[1] ;
14185
14186 if (!args) SWIG_fail;
14187 swig_obj[0] = args;
14188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14189 if (!SWIG_IsOK(res1)) {
b39fe951 14190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
1bd55598
RD
14191 }
14192 arg1 = reinterpret_cast< wxFont * >(argp1);
14193 {
14194 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 14195 result = (bool)((wxFont const *)arg1)->IsOk();
1bd55598
RD
14196 wxPyEndAllowThreads(__tstate);
14197 if (PyErr_Occurred()) SWIG_fail;
14198 }
14199 {
14200 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14201 }
14202 return resultobj;
14203fail:
14204 return NULL;
14205}
14206
14207
14208SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14209 PyObject *resultobj = 0;
14210 wxFont *arg1 = (wxFont *) 0 ;
14211 wxFont *arg2 = (wxFont *) 0 ;
14212 bool result;
14213 void *argp1 = 0 ;
14214 int res1 = 0 ;
14215 void *argp2 = 0 ;
14216 int res2 = 0 ;
14217 PyObject * obj0 = 0 ;
14218 PyObject * obj1 = 0 ;
14219 char * kwnames[] = {
14220 (char *) "self",(char *) "other", NULL
14221 };
14222
14223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14225 if (!SWIG_IsOK(res1)) {
14226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14227 }
14228 arg1 = reinterpret_cast< wxFont * >(argp1);
14229 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14230 if (!SWIG_IsOK(res2)) {
14231 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14232 }
14233 arg2 = reinterpret_cast< wxFont * >(argp2);
14234 {
14235 PyThreadState* __tstate = wxPyBeginAllowThreads();
14236 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14237 wxPyEndAllowThreads(__tstate);
14238 if (PyErr_Occurred()) SWIG_fail;
14239 }
14240 {
14241 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14242 }
14243 return resultobj;
14244fail:
14245 return NULL;
14246}
14247
14248
14249SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14250 PyObject *resultobj = 0;
14251 wxFont *arg1 = (wxFont *) 0 ;
14252 wxFont *arg2 = (wxFont *) 0 ;
14253 bool result;
14254 void *argp1 = 0 ;
14255 int res1 = 0 ;
14256 void *argp2 = 0 ;
14257 int res2 = 0 ;
14258 PyObject * obj0 = 0 ;
14259 PyObject * obj1 = 0 ;
14260 char * kwnames[] = {
14261 (char *) "self",(char *) "other", NULL
14262 };
14263
14264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14266 if (!SWIG_IsOK(res1)) {
14267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14268 }
14269 arg1 = reinterpret_cast< wxFont * >(argp1);
14270 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14271 if (!SWIG_IsOK(res2)) {
14272 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14273 }
14274 arg2 = reinterpret_cast< wxFont * >(argp2);
14275 {
14276 PyThreadState* __tstate = wxPyBeginAllowThreads();
14277 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14278 wxPyEndAllowThreads(__tstate);
14279 if (PyErr_Occurred()) SWIG_fail;
14280 }
14281 {
14282 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14283 }
14284 return resultobj;
14285fail:
14286 return NULL;
d55e5bfc
RD
14287}
14288
14289
1bd55598
RD
14290SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14291 PyObject *resultobj = 0;
14292 wxFont *arg1 = (wxFont *) 0 ;
14293 int result;
14294 void *argp1 = 0 ;
14295 int res1 = 0 ;
14296 PyObject *swig_obj[1] ;
14297
14298 if (!args) SWIG_fail;
14299 swig_obj[0] = args;
14300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14301 if (!SWIG_IsOK(res1)) {
14302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14303 }
14304 arg1 = reinterpret_cast< wxFont * >(argp1);
14305 {
14306 PyThreadState* __tstate = wxPyBeginAllowThreads();
14307 result = (int)((wxFont const *)arg1)->GetPointSize();
14308 wxPyEndAllowThreads(__tstate);
14309 if (PyErr_Occurred()) SWIG_fail;
14310 }
14311 resultobj = SWIG_From_int(static_cast< int >(result));
14312 return resultobj;
14313fail:
14314 return NULL;
d55e5bfc
RD
14315}
14316
14317
1bd55598
RD
14318SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14319 PyObject *resultobj = 0;
14320 wxFont *arg1 = (wxFont *) 0 ;
14321 wxSize result;
14322 void *argp1 = 0 ;
14323 int res1 = 0 ;
14324 PyObject *swig_obj[1] ;
14325
14326 if (!args) SWIG_fail;
14327 swig_obj[0] = args;
14328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14329 if (!SWIG_IsOK(res1)) {
14330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14331 }
14332 arg1 = reinterpret_cast< wxFont * >(argp1);
14333 {
14334 PyThreadState* __tstate = wxPyBeginAllowThreads();
14335 result = ((wxFont const *)arg1)->GetPixelSize();
14336 wxPyEndAllowThreads(__tstate);
14337 if (PyErr_Occurred()) SWIG_fail;
14338 }
14339 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14340 return resultobj;
14341fail:
14342 return NULL;
d55e5bfc
RD
14343}
14344
14345
1bd55598
RD
14346SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14347 PyObject *resultobj = 0;
14348 wxFont *arg1 = (wxFont *) 0 ;
14349 bool result;
14350 void *argp1 = 0 ;
14351 int res1 = 0 ;
14352 PyObject *swig_obj[1] ;
14353
14354 if (!args) SWIG_fail;
14355 swig_obj[0] = args;
14356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14357 if (!SWIG_IsOK(res1)) {
14358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14359 }
14360 arg1 = reinterpret_cast< wxFont * >(argp1);
14361 {
14362 PyThreadState* __tstate = wxPyBeginAllowThreads();
14363 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14364 wxPyEndAllowThreads(__tstate);
14365 if (PyErr_Occurred()) SWIG_fail;
14366 }
14367 {
14368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14369 }
14370 return resultobj;
14371fail:
14372 return NULL;
d55e5bfc
RD
14373}
14374
14375
1bd55598
RD
14376SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14377 PyObject *resultobj = 0;
14378 wxFont *arg1 = (wxFont *) 0 ;
14379 int result;
14380 void *argp1 = 0 ;
14381 int res1 = 0 ;
14382 PyObject *swig_obj[1] ;
14383
14384 if (!args) SWIG_fail;
14385 swig_obj[0] = args;
14386 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14387 if (!SWIG_IsOK(res1)) {
14388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14389 }
14390 arg1 = reinterpret_cast< wxFont * >(argp1);
14391 {
14392 PyThreadState* __tstate = wxPyBeginAllowThreads();
14393 result = (int)((wxFont const *)arg1)->GetFamily();
14394 wxPyEndAllowThreads(__tstate);
14395 if (PyErr_Occurred()) SWIG_fail;
14396 }
14397 resultobj = SWIG_From_int(static_cast< int >(result));
14398 return resultobj;
14399fail:
14400 return NULL;
d55e5bfc
RD
14401}
14402
14403
1bd55598
RD
14404SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14405 PyObject *resultobj = 0;
14406 wxFont *arg1 = (wxFont *) 0 ;
14407 int result;
14408 void *argp1 = 0 ;
14409 int res1 = 0 ;
14410 PyObject *swig_obj[1] ;
14411
14412 if (!args) SWIG_fail;
14413 swig_obj[0] = args;
14414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14415 if (!SWIG_IsOK(res1)) {
14416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14417 }
14418 arg1 = reinterpret_cast< wxFont * >(argp1);
14419 {
14420 PyThreadState* __tstate = wxPyBeginAllowThreads();
14421 result = (int)((wxFont const *)arg1)->GetStyle();
14422 wxPyEndAllowThreads(__tstate);
14423 if (PyErr_Occurred()) SWIG_fail;
14424 }
14425 resultobj = SWIG_From_int(static_cast< int >(result));
14426 return resultobj;
14427fail:
14428 return NULL;
d55e5bfc
RD
14429}
14430
14431
1bd55598
RD
14432SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14433 PyObject *resultobj = 0;
14434 wxFont *arg1 = (wxFont *) 0 ;
14435 int result;
14436 void *argp1 = 0 ;
14437 int res1 = 0 ;
14438 PyObject *swig_obj[1] ;
14439
14440 if (!args) SWIG_fail;
14441 swig_obj[0] = args;
14442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14443 if (!SWIG_IsOK(res1)) {
14444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14445 }
14446 arg1 = reinterpret_cast< wxFont * >(argp1);
14447 {
14448 PyThreadState* __tstate = wxPyBeginAllowThreads();
14449 result = (int)((wxFont const *)arg1)->GetWeight();
14450 wxPyEndAllowThreads(__tstate);
14451 if (PyErr_Occurred()) SWIG_fail;
14452 }
14453 resultobj = SWIG_From_int(static_cast< int >(result));
14454 return resultobj;
14455fail:
14456 return NULL;
d55e5bfc
RD
14457}
14458
14459
1bd55598
RD
14460SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14461 PyObject *resultobj = 0;
14462 wxFont *arg1 = (wxFont *) 0 ;
14463 bool result;
14464 void *argp1 = 0 ;
14465 int res1 = 0 ;
14466 PyObject *swig_obj[1] ;
14467
14468 if (!args) SWIG_fail;
14469 swig_obj[0] = args;
14470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14471 if (!SWIG_IsOK(res1)) {
14472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14473 }
14474 arg1 = reinterpret_cast< wxFont * >(argp1);
14475 {
14476 PyThreadState* __tstate = wxPyBeginAllowThreads();
14477 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14478 wxPyEndAllowThreads(__tstate);
14479 if (PyErr_Occurred()) SWIG_fail;
14480 }
14481 {
14482 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14483 }
14484 return resultobj;
14485fail:
14486 return NULL;
d55e5bfc
RD
14487}
14488
14489
1bd55598
RD
14490SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14491 PyObject *resultobj = 0;
14492 wxFont *arg1 = (wxFont *) 0 ;
14493 wxString result;
14494 void *argp1 = 0 ;
14495 int res1 = 0 ;
14496 PyObject *swig_obj[1] ;
14497
14498 if (!args) SWIG_fail;
14499 swig_obj[0] = args;
14500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14501 if (!SWIG_IsOK(res1)) {
14502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14503 }
14504 arg1 = reinterpret_cast< wxFont * >(argp1);
14505 {
14506 PyThreadState* __tstate = wxPyBeginAllowThreads();
14507 result = ((wxFont const *)arg1)->GetFaceName();
14508 wxPyEndAllowThreads(__tstate);
14509 if (PyErr_Occurred()) SWIG_fail;
14510 }
14511 {
14512#if wxUSE_UNICODE
14513 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14514#else
14515 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14516#endif
14517 }
14518 return resultobj;
14519fail:
14520 return NULL;
d55e5bfc
RD
14521}
14522
14523
1bd55598
RD
14524SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14525 PyObject *resultobj = 0;
14526 wxFont *arg1 = (wxFont *) 0 ;
14527 wxFontEncoding result;
14528 void *argp1 = 0 ;
14529 int res1 = 0 ;
14530 PyObject *swig_obj[1] ;
14531
14532 if (!args) SWIG_fail;
14533 swig_obj[0] = args;
14534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14535 if (!SWIG_IsOK(res1)) {
14536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14537 }
14538 arg1 = reinterpret_cast< wxFont * >(argp1);
14539 {
14540 PyThreadState* __tstate = wxPyBeginAllowThreads();
14541 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14542 wxPyEndAllowThreads(__tstate);
14543 if (PyErr_Occurred()) SWIG_fail;
14544 }
14545 resultobj = SWIG_From_int(static_cast< int >(result));
14546 return resultobj;
14547fail:
14548 return NULL;
d55e5bfc
RD
14549}
14550
14551
1bd55598
RD
14552SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14553 PyObject *resultobj = 0;
14554 wxFont *arg1 = (wxFont *) 0 ;
14555 wxNativeFontInfo *result = 0 ;
14556 void *argp1 = 0 ;
14557 int res1 = 0 ;
14558 PyObject *swig_obj[1] ;
14559
14560 if (!args) SWIG_fail;
14561 swig_obj[0] = args;
14562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14563 if (!SWIG_IsOK(res1)) {
14564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14565 }
14566 arg1 = reinterpret_cast< wxFont * >(argp1);
14567 {
14568 PyThreadState* __tstate = wxPyBeginAllowThreads();
14569 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14570 wxPyEndAllowThreads(__tstate);
14571 if (PyErr_Occurred()) SWIG_fail;
14572 }
14573 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14574 return resultobj;
14575fail:
14576 return NULL;
d55e5bfc
RD
14577}
14578
14579
1bd55598
RD
14580SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14581 PyObject *resultobj = 0;
14582 wxFont *arg1 = (wxFont *) 0 ;
14583 bool result;
14584 void *argp1 = 0 ;
14585 int res1 = 0 ;
14586 PyObject *swig_obj[1] ;
14587
14588 if (!args) SWIG_fail;
14589 swig_obj[0] = args;
14590 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14591 if (!SWIG_IsOK(res1)) {
14592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14593 }
14594 arg1 = reinterpret_cast< wxFont * >(argp1);
14595 {
14596 PyThreadState* __tstate = wxPyBeginAllowThreads();
14597 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14598 wxPyEndAllowThreads(__tstate);
14599 if (PyErr_Occurred()) SWIG_fail;
14600 }
14601 {
14602 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14603 }
14604 return resultobj;
14605fail:
14606 return NULL;
d55e5bfc
RD
14607}
14608
14609
1bd55598
RD
14610SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14611 PyObject *resultobj = 0;
14612 wxFont *arg1 = (wxFont *) 0 ;
14613 wxString result;
14614 void *argp1 = 0 ;
14615 int res1 = 0 ;
14616 PyObject *swig_obj[1] ;
14617
14618 if (!args) SWIG_fail;
14619 swig_obj[0] = args;
14620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14621 if (!SWIG_IsOK(res1)) {
14622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14623 }
14624 arg1 = reinterpret_cast< wxFont * >(argp1);
14625 {
14626 PyThreadState* __tstate = wxPyBeginAllowThreads();
14627 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14628 wxPyEndAllowThreads(__tstate);
14629 if (PyErr_Occurred()) SWIG_fail;
14630 }
14631 {
14632#if wxUSE_UNICODE
14633 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14634#else
14635 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14636#endif
14637 }
14638 return resultobj;
14639fail:
14640 return NULL;
d55e5bfc
RD
14641}
14642
14643
1bd55598
RD
14644SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14645 PyObject *resultobj = 0;
14646 wxFont *arg1 = (wxFont *) 0 ;
14647 wxString result;
14648 void *argp1 = 0 ;
14649 int res1 = 0 ;
14650 PyObject *swig_obj[1] ;
14651
14652 if (!args) SWIG_fail;
14653 swig_obj[0] = args;
14654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14655 if (!SWIG_IsOK(res1)) {
14656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14657 }
14658 arg1 = reinterpret_cast< wxFont * >(argp1);
14659 {
14660 PyThreadState* __tstate = wxPyBeginAllowThreads();
14661 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14662 wxPyEndAllowThreads(__tstate);
14663 if (PyErr_Occurred()) SWIG_fail;
14664 }
14665 {
14666#if wxUSE_UNICODE
14667 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14668#else
14669 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14670#endif
14671 }
14672 return resultobj;
14673fail:
14674 return NULL;
14675}
14676
14677
14678SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14679 PyObject *resultobj = 0;
14680 wxFont *arg1 = (wxFont *) 0 ;
14681 int arg2 ;
14682 void *argp1 = 0 ;
14683 int res1 = 0 ;
14684 int val2 ;
14685 int ecode2 = 0 ;
14686 PyObject * obj0 = 0 ;
14687 PyObject * obj1 = 0 ;
14688 char * kwnames[] = {
14689 (char *) "self",(char *) "pointSize", NULL
14690 };
14691
14692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14694 if (!SWIG_IsOK(res1)) {
14695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14696 }
14697 arg1 = reinterpret_cast< wxFont * >(argp1);
14698 ecode2 = SWIG_AsVal_int(obj1, &val2);
14699 if (!SWIG_IsOK(ecode2)) {
14700 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14701 }
14702 arg2 = static_cast< int >(val2);
14703 {
14704 PyThreadState* __tstate = wxPyBeginAllowThreads();
14705 (arg1)->SetPointSize(arg2);
14706 wxPyEndAllowThreads(__tstate);
14707 if (PyErr_Occurred()) SWIG_fail;
14708 }
14709 resultobj = SWIG_Py_Void();
14710 return resultobj;
14711fail:
14712 return NULL;
14713}
14714
14715
14716SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14717 PyObject *resultobj = 0;
14718 wxFont *arg1 = (wxFont *) 0 ;
14719 wxSize *arg2 = 0 ;
14720 void *argp1 = 0 ;
14721 int res1 = 0 ;
14722 wxSize temp2 ;
14723 PyObject * obj0 = 0 ;
14724 PyObject * obj1 = 0 ;
14725 char * kwnames[] = {
14726 (char *) "self",(char *) "pixelSize", NULL
14727 };
14728
14729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14731 if (!SWIG_IsOK(res1)) {
14732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14733 }
14734 arg1 = reinterpret_cast< wxFont * >(argp1);
14735 {
14736 arg2 = &temp2;
14737 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14738 }
14739 {
14740 PyThreadState* __tstate = wxPyBeginAllowThreads();
14741 (arg1)->SetPixelSize((wxSize const &)*arg2);
14742 wxPyEndAllowThreads(__tstate);
14743 if (PyErr_Occurred()) SWIG_fail;
14744 }
14745 resultobj = SWIG_Py_Void();
14746 return resultobj;
14747fail:
14748 return NULL;
14749}
14750
14751
14752SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14753 PyObject *resultobj = 0;
14754 wxFont *arg1 = (wxFont *) 0 ;
14755 int arg2 ;
14756 void *argp1 = 0 ;
14757 int res1 = 0 ;
14758 int val2 ;
14759 int ecode2 = 0 ;
14760 PyObject * obj0 = 0 ;
14761 PyObject * obj1 = 0 ;
14762 char * kwnames[] = {
14763 (char *) "self",(char *) "family", NULL
14764 };
14765
14766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14768 if (!SWIG_IsOK(res1)) {
14769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14770 }
14771 arg1 = reinterpret_cast< wxFont * >(argp1);
14772 ecode2 = SWIG_AsVal_int(obj1, &val2);
14773 if (!SWIG_IsOK(ecode2)) {
14774 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14775 }
14776 arg2 = static_cast< int >(val2);
14777 {
14778 PyThreadState* __tstate = wxPyBeginAllowThreads();
14779 (arg1)->SetFamily(arg2);
14780 wxPyEndAllowThreads(__tstate);
14781 if (PyErr_Occurred()) SWIG_fail;
14782 }
14783 resultobj = SWIG_Py_Void();
14784 return resultobj;
14785fail:
14786 return NULL;
14787}
14788
14789
14790SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14791 PyObject *resultobj = 0;
14792 wxFont *arg1 = (wxFont *) 0 ;
14793 int arg2 ;
14794 void *argp1 = 0 ;
14795 int res1 = 0 ;
14796 int val2 ;
14797 int ecode2 = 0 ;
14798 PyObject * obj0 = 0 ;
14799 PyObject * obj1 = 0 ;
14800 char * kwnames[] = {
14801 (char *) "self",(char *) "style", NULL
14802 };
14803
14804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14806 if (!SWIG_IsOK(res1)) {
14807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14808 }
14809 arg1 = reinterpret_cast< wxFont * >(argp1);
14810 ecode2 = SWIG_AsVal_int(obj1, &val2);
14811 if (!SWIG_IsOK(ecode2)) {
14812 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14813 }
14814 arg2 = static_cast< int >(val2);
14815 {
14816 PyThreadState* __tstate = wxPyBeginAllowThreads();
14817 (arg1)->SetStyle(arg2);
14818 wxPyEndAllowThreads(__tstate);
14819 if (PyErr_Occurred()) SWIG_fail;
14820 }
14821 resultobj = SWIG_Py_Void();
14822 return resultobj;
14823fail:
14824 return NULL;
14825}
14826
14827
14828SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14829 PyObject *resultobj = 0;
14830 wxFont *arg1 = (wxFont *) 0 ;
14831 int arg2 ;
14832 void *argp1 = 0 ;
14833 int res1 = 0 ;
14834 int val2 ;
14835 int ecode2 = 0 ;
14836 PyObject * obj0 = 0 ;
14837 PyObject * obj1 = 0 ;
14838 char * kwnames[] = {
14839 (char *) "self",(char *) "weight", NULL
14840 };
14841
14842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14844 if (!SWIG_IsOK(res1)) {
14845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14846 }
14847 arg1 = reinterpret_cast< wxFont * >(argp1);
14848 ecode2 = SWIG_AsVal_int(obj1, &val2);
14849 if (!SWIG_IsOK(ecode2)) {
14850 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14851 }
14852 arg2 = static_cast< int >(val2);
14853 {
14854 PyThreadState* __tstate = wxPyBeginAllowThreads();
14855 (arg1)->SetWeight(arg2);
14856 wxPyEndAllowThreads(__tstate);
14857 if (PyErr_Occurred()) SWIG_fail;
14858 }
14859 resultobj = SWIG_Py_Void();
14860 return resultobj;
14861fail:
14862 return NULL;
14863}
14864
14865
14866SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14867 PyObject *resultobj = 0;
14868 wxFont *arg1 = (wxFont *) 0 ;
14869 wxString *arg2 = 0 ;
704eda0c 14870 bool result;
1bd55598
RD
14871 void *argp1 = 0 ;
14872 int res1 = 0 ;
14873 bool temp2 = false ;
14874 PyObject * obj0 = 0 ;
14875 PyObject * obj1 = 0 ;
14876 char * kwnames[] = {
14877 (char *) "self",(char *) "faceName", NULL
14878 };
14879
14880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14882 if (!SWIG_IsOK(res1)) {
14883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14884 }
14885 arg1 = reinterpret_cast< wxFont * >(argp1);
14886 {
14887 arg2 = wxString_in_helper(obj1);
14888 if (arg2 == NULL) SWIG_fail;
14889 temp2 = true;
14890 }
14891 {
14892 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 14893 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
1bd55598
RD
14894 wxPyEndAllowThreads(__tstate);
14895 if (PyErr_Occurred()) SWIG_fail;
14896 }
704eda0c
RD
14897 {
14898 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14899 }
1bd55598
RD
14900 {
14901 if (temp2)
14902 delete arg2;
14903 }
14904 return resultobj;
14905fail:
14906 {
14907 if (temp2)
14908 delete arg2;
14909 }
14910 return NULL;
14911}
14912
14913
14914SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14915 PyObject *resultobj = 0;
14916 wxFont *arg1 = (wxFont *) 0 ;
14917 bool arg2 ;
14918 void *argp1 = 0 ;
14919 int res1 = 0 ;
14920 bool val2 ;
14921 int ecode2 = 0 ;
14922 PyObject * obj0 = 0 ;
14923 PyObject * obj1 = 0 ;
14924 char * kwnames[] = {
14925 (char *) "self",(char *) "underlined", NULL
14926 };
14927
14928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14930 if (!SWIG_IsOK(res1)) {
14931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14932 }
14933 arg1 = reinterpret_cast< wxFont * >(argp1);
14934 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14935 if (!SWIG_IsOK(ecode2)) {
14936 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14937 }
14938 arg2 = static_cast< bool >(val2);
14939 {
14940 PyThreadState* __tstate = wxPyBeginAllowThreads();
14941 (arg1)->SetUnderlined(arg2);
14942 wxPyEndAllowThreads(__tstate);
14943 if (PyErr_Occurred()) SWIG_fail;
14944 }
14945 resultobj = SWIG_Py_Void();
14946 return resultobj;
14947fail:
14948 return NULL;
14949}
14950
14951
14952SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14953 PyObject *resultobj = 0;
14954 wxFont *arg1 = (wxFont *) 0 ;
14955 wxFontEncoding arg2 ;
14956 void *argp1 = 0 ;
14957 int res1 = 0 ;
14958 int val2 ;
14959 int ecode2 = 0 ;
14960 PyObject * obj0 = 0 ;
14961 PyObject * obj1 = 0 ;
14962 char * kwnames[] = {
14963 (char *) "self",(char *) "encoding", NULL
14964 };
14965
14966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
14967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14968 if (!SWIG_IsOK(res1)) {
14969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
14970 }
14971 arg1 = reinterpret_cast< wxFont * >(argp1);
14972 ecode2 = SWIG_AsVal_int(obj1, &val2);
14973 if (!SWIG_IsOK(ecode2)) {
14974 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14975 }
14976 arg2 = static_cast< wxFontEncoding >(val2);
14977 {
14978 PyThreadState* __tstate = wxPyBeginAllowThreads();
14979 (arg1)->SetEncoding(arg2);
14980 wxPyEndAllowThreads(__tstate);
14981 if (PyErr_Occurred()) SWIG_fail;
14982 }
14983 resultobj = SWIG_Py_Void();
14984 return resultobj;
14985fail:
14986 return NULL;
14987}
14988
14989
14990SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14991 PyObject *resultobj = 0;
14992 wxFont *arg1 = (wxFont *) 0 ;
14993 wxNativeFontInfo *arg2 = 0 ;
14994 void *argp1 = 0 ;
14995 int res1 = 0 ;
14996 void *argp2 = 0 ;
14997 int res2 = 0 ;
14998 PyObject * obj0 = 0 ;
14999 PyObject * obj1 = 0 ;
15000 char * kwnames[] = {
15001 (char *) "self",(char *) "info", NULL
15002 };
15003
15004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15006 if (!SWIG_IsOK(res1)) {
15007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15008 }
15009 arg1 = reinterpret_cast< wxFont * >(argp1);
15010 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15011 if (!SWIG_IsOK(res2)) {
15012 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15013 }
15014 if (!argp2) {
15015 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15016 }
15017 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15018 {
15019 PyThreadState* __tstate = wxPyBeginAllowThreads();
15020 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15021 wxPyEndAllowThreads(__tstate);
15022 if (PyErr_Occurred()) SWIG_fail;
15023 }
15024 resultobj = SWIG_Py_Void();
15025 return resultobj;
15026fail:
15027 return NULL;
15028}
15029
15030
15031SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15032 PyObject *resultobj = 0;
15033 wxFont *arg1 = (wxFont *) 0 ;
15034 wxString *arg2 = 0 ;
704eda0c 15035 bool result;
1bd55598
RD
15036 void *argp1 = 0 ;
15037 int res1 = 0 ;
15038 bool temp2 = false ;
15039 PyObject * obj0 = 0 ;
15040 PyObject * obj1 = 0 ;
15041 char * kwnames[] = {
15042 (char *) "self",(char *) "info", NULL
15043 };
15044
15045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15047 if (!SWIG_IsOK(res1)) {
15048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15049 }
15050 arg1 = reinterpret_cast< wxFont * >(argp1);
15051 {
15052 arg2 = wxString_in_helper(obj1);
15053 if (arg2 == NULL) SWIG_fail;
15054 temp2 = true;
15055 }
15056 {
15057 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15058 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
1bd55598
RD
15059 wxPyEndAllowThreads(__tstate);
15060 if (PyErr_Occurred()) SWIG_fail;
15061 }
704eda0c
RD
15062 {
15063 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15064 }
1bd55598
RD
15065 {
15066 if (temp2)
15067 delete arg2;
15068 }
15069 return resultobj;
15070fail:
15071 {
15072 if (temp2)
15073 delete arg2;
15074 }
15075 return NULL;
d55e5bfc
RD
15076}
15077
15078
1bd55598
RD
15079SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15080 PyObject *resultobj = 0;
15081 wxFont *arg1 = (wxFont *) 0 ;
15082 wxString *arg2 = 0 ;
704eda0c 15083 bool result;
1bd55598
RD
15084 void *argp1 = 0 ;
15085 int res1 = 0 ;
15086 bool temp2 = false ;
15087 PyObject * obj0 = 0 ;
15088 PyObject * obj1 = 0 ;
15089 char * kwnames[] = {
15090 (char *) "self",(char *) "info", NULL
15091 };
15092
15093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15095 if (!SWIG_IsOK(res1)) {
15096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15097 }
15098 arg1 = reinterpret_cast< wxFont * >(argp1);
15099 {
15100 arg2 = wxString_in_helper(obj1);
15101 if (arg2 == NULL) SWIG_fail;
15102 temp2 = true;
15103 }
15104 {
15105 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15106 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
1bd55598
RD
15107 wxPyEndAllowThreads(__tstate);
15108 if (PyErr_Occurred()) SWIG_fail;
15109 }
704eda0c
RD
15110 {
15111 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15112 }
1bd55598
RD
15113 {
15114 if (temp2)
15115 delete arg2;
15116 }
15117 return resultobj;
15118fail:
15119 {
15120 if (temp2)
15121 delete arg2;
15122 }
15123 return NULL;
d55e5bfc
RD
15124}
15125
15126
1bd55598
RD
15127SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15128 PyObject *resultobj = 0;
15129 wxFont *arg1 = (wxFont *) 0 ;
15130 wxString result;
15131 void *argp1 = 0 ;
15132 int res1 = 0 ;
15133 PyObject *swig_obj[1] ;
15134
15135 if (!args) SWIG_fail;
15136 swig_obj[0] = args;
15137 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15138 if (!SWIG_IsOK(res1)) {
15139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15140 }
15141 arg1 = reinterpret_cast< wxFont * >(argp1);
15142 {
15143 PyThreadState* __tstate = wxPyBeginAllowThreads();
15144 result = ((wxFont const *)arg1)->GetFamilyString();
15145 wxPyEndAllowThreads(__tstate);
15146 if (PyErr_Occurred()) SWIG_fail;
15147 }
15148 {
15149#if wxUSE_UNICODE
15150 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15151#else
15152 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15153#endif
15154 }
15155 return resultobj;
15156fail:
15157 return NULL;
d55e5bfc
RD
15158}
15159
15160
1bd55598
RD
15161SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15162 PyObject *resultobj = 0;
15163 wxFont *arg1 = (wxFont *) 0 ;
15164 wxString result;
15165 void *argp1 = 0 ;
15166 int res1 = 0 ;
15167 PyObject *swig_obj[1] ;
15168
15169 if (!args) SWIG_fail;
15170 swig_obj[0] = args;
15171 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15172 if (!SWIG_IsOK(res1)) {
15173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15174 }
15175 arg1 = reinterpret_cast< wxFont * >(argp1);
15176 {
15177 PyThreadState* __tstate = wxPyBeginAllowThreads();
15178 result = ((wxFont const *)arg1)->GetStyleString();
15179 wxPyEndAllowThreads(__tstate);
15180 if (PyErr_Occurred()) SWIG_fail;
15181 }
15182 {
15183#if wxUSE_UNICODE
15184 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15185#else
15186 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15187#endif
15188 }
15189 return resultobj;
15190fail:
15191 return NULL;
d55e5bfc
RD
15192}
15193
15194
1bd55598
RD
15195SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15196 PyObject *resultobj = 0;
15197 wxFont *arg1 = (wxFont *) 0 ;
15198 wxString result;
15199 void *argp1 = 0 ;
15200 int res1 = 0 ;
15201 PyObject *swig_obj[1] ;
15202
15203 if (!args) SWIG_fail;
15204 swig_obj[0] = args;
15205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15206 if (!SWIG_IsOK(res1)) {
15207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15208 }
15209 arg1 = reinterpret_cast< wxFont * >(argp1);
15210 {
15211 PyThreadState* __tstate = wxPyBeginAllowThreads();
15212 result = ((wxFont const *)arg1)->GetWeightString();
15213 wxPyEndAllowThreads(__tstate);
15214 if (PyErr_Occurred()) SWIG_fail;
15215 }
15216 {
15217#if wxUSE_UNICODE
15218 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15219#else
15220 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15221#endif
15222 }
15223 return resultobj;
15224fail:
15225 return NULL;
15226}
15227
15228
15229SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15230 PyObject *resultobj = 0;
15231 wxFont *arg1 = (wxFont *) 0 ;
15232 bool arg2 = (bool) true ;
15233 void *argp1 = 0 ;
15234 int res1 = 0 ;
15235 bool val2 ;
15236 int ecode2 = 0 ;
15237 PyObject * obj0 = 0 ;
15238 PyObject * obj1 = 0 ;
15239 char * kwnames[] = {
15240 (char *) "self",(char *) "no", NULL
15241 };
15242
15243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15245 if (!SWIG_IsOK(res1)) {
15246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15247 }
15248 arg1 = reinterpret_cast< wxFont * >(argp1);
15249 if (obj1) {
15250 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15251 if (!SWIG_IsOK(ecode2)) {
15252 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15253 }
15254 arg2 = static_cast< bool >(val2);
15255 }
15256 {
15257 PyThreadState* __tstate = wxPyBeginAllowThreads();
15258 (arg1)->SetNoAntiAliasing(arg2);
15259 wxPyEndAllowThreads(__tstate);
15260 if (PyErr_Occurred()) SWIG_fail;
15261 }
15262 resultobj = SWIG_Py_Void();
15263 return resultobj;
15264fail:
15265 return NULL;
d55e5bfc
RD
15266}
15267
15268
1bd55598
RD
15269SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15270 PyObject *resultobj = 0;
15271 wxFont *arg1 = (wxFont *) 0 ;
15272 bool result;
15273 void *argp1 = 0 ;
15274 int res1 = 0 ;
15275 PyObject *swig_obj[1] ;
15276
15277 if (!args) SWIG_fail;
15278 swig_obj[0] = args;
15279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15280 if (!SWIG_IsOK(res1)) {
15281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15282 }
15283 arg1 = reinterpret_cast< wxFont * >(argp1);
15284 {
15285 PyThreadState* __tstate = wxPyBeginAllowThreads();
15286 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15287 wxPyEndAllowThreads(__tstate);
15288 if (PyErr_Occurred()) SWIG_fail;
15289 }
15290 {
15291 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15292 }
15293 return resultobj;
15294fail:
15295 return NULL;
d55e5bfc
RD
15296}
15297
15298
1bd55598
RD
15299SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15300 PyObject *resultobj = 0;
15301 wxFontEncoding result;
15302
15303 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15304 {
15305 if (!wxPyCheckForApp()) SWIG_fail;
15306 PyThreadState* __tstate = wxPyBeginAllowThreads();
15307 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15308 wxPyEndAllowThreads(__tstate);
15309 if (PyErr_Occurred()) SWIG_fail;
15310 }
15311 resultobj = SWIG_From_int(static_cast< int >(result));
15312 return resultobj;
15313fail:
15314 return NULL;
d55e5bfc
RD
15315}
15316
15317
1bd55598
RD
15318SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15319 PyObject *resultobj = 0;
15320 wxFontEncoding arg1 ;
15321 int val1 ;
15322 int ecode1 = 0 ;
15323 PyObject * obj0 = 0 ;
15324 char * kwnames[] = {
15325 (char *) "encoding", NULL
15326 };
15327
15328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15329 ecode1 = SWIG_AsVal_int(obj0, &val1);
15330 if (!SWIG_IsOK(ecode1)) {
15331 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15332 }
15333 arg1 = static_cast< wxFontEncoding >(val1);
15334 {
15335 if (!wxPyCheckForApp()) SWIG_fail;
15336 PyThreadState* __tstate = wxPyBeginAllowThreads();
15337 wxFont::SetDefaultEncoding(arg1);
15338 wxPyEndAllowThreads(__tstate);
15339 if (PyErr_Occurred()) SWIG_fail;
15340 }
15341 resultobj = SWIG_Py_Void();
15342 return resultobj;
15343fail:
15344 return NULL;
d55e5bfc
RD
15345}
15346
15347
1bd55598
RD
15348SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15349 PyObject *obj;
15350 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15351 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15352 return SWIG_Py_Void();
d55e5bfc 15353}
d55e5bfc 15354
1bd55598
RD
15355SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15356 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
15357}
15358
1bd55598
RD
15359SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15360 PyObject *resultobj = 0;
15361 wxPyFontEnumerator *result = 0 ;
15362
15363 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15364 {
15365 if (!wxPyCheckForApp()) SWIG_fail;
15366 PyThreadState* __tstate = wxPyBeginAllowThreads();
15367 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15368 wxPyEndAllowThreads(__tstate);
15369 if (PyErr_Occurred()) SWIG_fail;
15370 }
15371 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15372 return resultobj;
15373fail:
15374 return NULL;
d55e5bfc
RD
15375}
15376
15377
1bd55598
RD
15378SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15379 PyObject *resultobj = 0;
15380 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15381 void *argp1 = 0 ;
15382 int res1 = 0 ;
15383 PyObject *swig_obj[1] ;
15384
15385 if (!args) SWIG_fail;
15386 swig_obj[0] = args;
15387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15388 if (!SWIG_IsOK(res1)) {
15389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15390 }
15391 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15392 {
15393 PyThreadState* __tstate = wxPyBeginAllowThreads();
15394 delete arg1;
d55e5bfc 15395
1bd55598
RD
15396 wxPyEndAllowThreads(__tstate);
15397 if (PyErr_Occurred()) SWIG_fail;
15398 }
15399 resultobj = SWIG_Py_Void();
15400 return resultobj;
15401fail:
15402 return NULL;
15403}
15404
15405
15406SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15407 PyObject *resultobj = 0;
15408 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15409 PyObject *arg2 = (PyObject *) 0 ;
15410 PyObject *arg3 = (PyObject *) 0 ;
15411 bool arg4 ;
15412 void *argp1 = 0 ;
15413 int res1 = 0 ;
15414 bool val4 ;
15415 int ecode4 = 0 ;
15416 PyObject * obj0 = 0 ;
15417 PyObject * obj1 = 0 ;
15418 PyObject * obj2 = 0 ;
15419 PyObject * obj3 = 0 ;
15420 char * kwnames[] = {
15421 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15422 };
15423
15424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15426 if (!SWIG_IsOK(res1)) {
15427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15428 }
15429 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15430 arg2 = obj1;
15431 arg3 = obj2;
15432 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15433 if (!SWIG_IsOK(ecode4)) {
15434 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
15435 }
15436 arg4 = static_cast< bool >(val4);
15437 {
15438 PyThreadState* __tstate = wxPyBeginAllowThreads();
15439 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15440 wxPyEndAllowThreads(__tstate);
15441 if (PyErr_Occurred()) SWIG_fail;
15442 }
15443 resultobj = SWIG_Py_Void();
15444 return resultobj;
15445fail:
15446 return NULL;
15447}
15448
15449
15450SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15451 PyObject *resultobj = 0;
15452 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15453 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15454 bool arg3 = (bool) false ;
15455 bool result;
15456 void *argp1 = 0 ;
15457 int res1 = 0 ;
15458 int val2 ;
15459 int ecode2 = 0 ;
15460 bool val3 ;
15461 int ecode3 = 0 ;
15462 PyObject * obj0 = 0 ;
15463 PyObject * obj1 = 0 ;
15464 PyObject * obj2 = 0 ;
15465 char * kwnames[] = {
15466 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15467 };
15468
15469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15471 if (!SWIG_IsOK(res1)) {
15472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15473 }
15474 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15475 if (obj1) {
15476 ecode2 = SWIG_AsVal_int(obj1, &val2);
15477 if (!SWIG_IsOK(ecode2)) {
15478 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15479 }
15480 arg2 = static_cast< wxFontEncoding >(val2);
15481 }
15482 if (obj2) {
15483 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15484 if (!SWIG_IsOK(ecode3)) {
15485 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15486 }
15487 arg3 = static_cast< bool >(val3);
15488 }
15489 {
15490 PyThreadState* __tstate = wxPyBeginAllowThreads();
15491 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15492 wxPyEndAllowThreads(__tstate);
15493 if (PyErr_Occurred()) SWIG_fail;
15494 }
15495 {
15496 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15497 }
15498 return resultobj;
15499fail:
15500 return NULL;
15501}
15502
15503
15504SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15505 PyObject *resultobj = 0;
15506 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15507 wxString const &arg2_defvalue = wxPyEmptyString ;
15508 wxString *arg2 = (wxString *) &arg2_defvalue ;
15509 bool result;
15510 void *argp1 = 0 ;
15511 int res1 = 0 ;
15512 bool temp2 = false ;
15513 PyObject * obj0 = 0 ;
15514 PyObject * obj1 = 0 ;
15515 char * kwnames[] = {
15516 (char *) "self",(char *) "facename", NULL
15517 };
15518
15519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15521 if (!SWIG_IsOK(res1)) {
15522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15523 }
15524 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15525 if (obj1) {
36ed4f51 15526 {
1bd55598
RD
15527 arg2 = wxString_in_helper(obj1);
15528 if (arg2 == NULL) SWIG_fail;
15529 temp2 = true;
36ed4f51 15530 }
1bd55598
RD
15531 }
15532 {
15533 PyThreadState* __tstate = wxPyBeginAllowThreads();
15534 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15535 wxPyEndAllowThreads(__tstate);
15536 if (PyErr_Occurred()) SWIG_fail;
15537 }
15538 {
15539 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15540 }
15541 {
15542 if (temp2)
15543 delete arg2;
15544 }
15545 return resultobj;
15546fail:
15547 {
15548 if (temp2)
15549 delete arg2;
15550 }
15551 return NULL;
d55e5bfc
RD
15552}
15553
15554
1bd55598
RD
15555SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15556 PyObject *resultobj = 0;
1bd55598 15557 PyObject *result = 0 ;
1bd55598 15558
704eda0c 15559 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
1bd55598
RD
15560 {
15561 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15562 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
1bd55598
RD
15563 wxPyEndAllowThreads(__tstate);
15564 if (PyErr_Occurred()) SWIG_fail;
15565 }
15566 resultobj = result;
15567 return resultobj;
15568fail:
15569 return NULL;
d55e5bfc
RD
15570}
15571
15572
1bd55598
RD
15573SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15574 PyObject *resultobj = 0;
1bd55598 15575 PyObject *result = 0 ;
1bd55598 15576
704eda0c 15577 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
1bd55598
RD
15578 {
15579 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15580 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
1bd55598
RD
15581 wxPyEndAllowThreads(__tstate);
15582 if (PyErr_Occurred()) SWIG_fail;
15583 }
15584 resultobj = result;
15585 return resultobj;
15586fail:
15587 return NULL;
d55e5bfc
RD
15588}
15589
15590
704eda0c
RD
15591SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15592 PyObject *resultobj = 0;
15593 wxString *arg1 = 0 ;
15594 bool result;
15595 bool temp1 = false ;
15596 PyObject * obj0 = 0 ;
15597 char * kwnames[] = {
15598 (char *) "str", NULL
15599 };
15600
15601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15602 {
15603 arg1 = wxString_in_helper(obj0);
15604 if (arg1 == NULL) SWIG_fail;
15605 temp1 = true;
15606 }
15607 {
15608 PyThreadState* __tstate = wxPyBeginAllowThreads();
15609 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15610 wxPyEndAllowThreads(__tstate);
15611 if (PyErr_Occurred()) SWIG_fail;
15612 }
15613 {
15614 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15615 }
15616 {
15617 if (temp1)
15618 delete arg1;
15619 }
15620 return resultobj;
15621fail:
15622 {
15623 if (temp1)
15624 delete arg1;
15625 }
15626 return NULL;
15627}
15628
15629
1bd55598
RD
15630SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15631 PyObject *obj;
15632 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15633 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15634 return SWIG_Py_Void();
d55e5bfc
RD
15635}
15636
1bd55598
RD
15637SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15638 return SWIG_Python_InitShadowInstance(args);
15639}
d55e5bfc 15640
1bd55598
RD
15641SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15642 PyObject *resultobj = 0;
15643 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15644 int arg2 ;
15645 void *argp1 = 0 ;
15646 int res1 = 0 ;
15647 int val2 ;
15648 int ecode2 = 0 ;
15649 PyObject *swig_obj[2] ;
15650
15651 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15652 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15653 if (!SWIG_IsOK(res1)) {
15654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15655 }
15656 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15657 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15658 if (!SWIG_IsOK(ecode2)) {
15659 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15660 }
15661 arg2 = static_cast< int >(val2);
15662 if (arg1) (arg1)->Language = arg2;
15663
15664 resultobj = SWIG_Py_Void();
15665 return resultobj;
15666fail:
15667 return NULL;
d55e5bfc
RD
15668}
15669
15670
1bd55598
RD
15671SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15672 PyObject *resultobj = 0;
15673 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15674 int result;
15675 void *argp1 = 0 ;
15676 int res1 = 0 ;
15677 PyObject *swig_obj[1] ;
15678
15679 if (!args) SWIG_fail;
15680 swig_obj[0] = args;
15681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15682 if (!SWIG_IsOK(res1)) {
15683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15684 }
15685 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15686 result = (int) ((arg1)->Language);
15687 resultobj = SWIG_From_int(static_cast< int >(result));
15688 return resultobj;
15689fail:
15690 return NULL;
15691}
15692
15693
15694SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15695 PyObject *resultobj = 0;
15696 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15697 wxString *arg2 = (wxString *) 0 ;
15698 void *argp1 = 0 ;
15699 int res1 = 0 ;
15700 bool temp2 = false ;
15701 PyObject *swig_obj[2] ;
15702
15703 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15705 if (!SWIG_IsOK(res1)) {
15706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15707 }
15708 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15709 {
15710 arg2 = wxString_in_helper(swig_obj[1]);
15711 if (arg2 == NULL) SWIG_fail;
15712 temp2 = true;
15713 }
15714 if (arg1) (arg1)->CanonicalName = *arg2;
15715
15716 resultobj = SWIG_Py_Void();
15717 {
15718 if (temp2)
15719 delete arg2;
15720 }
15721 return resultobj;
15722fail:
15723 {
15724 if (temp2)
15725 delete arg2;
15726 }
15727 return NULL;
d55e5bfc
RD
15728}
15729
15730
1bd55598
RD
15731SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15732 PyObject *resultobj = 0;
15733 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15734 wxString *result = 0 ;
15735 void *argp1 = 0 ;
15736 int res1 = 0 ;
15737 PyObject *swig_obj[1] ;
15738
15739 if (!args) SWIG_fail;
15740 swig_obj[0] = args;
15741 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15742 if (!SWIG_IsOK(res1)) {
15743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15744 }
15745 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15746 result = (wxString *)& ((arg1)->CanonicalName);
15747 {
15748#if wxUSE_UNICODE
15749 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15750#else
15751 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15752#endif
15753 }
15754 return resultobj;
15755fail:
15756 return NULL;
d55e5bfc
RD
15757}
15758
15759
1bd55598
RD
15760SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15761 PyObject *resultobj = 0;
15762 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15763 wxString *arg2 = (wxString *) 0 ;
15764 void *argp1 = 0 ;
15765 int res1 = 0 ;
15766 bool temp2 = false ;
15767 PyObject *swig_obj[2] ;
15768
15769 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15770 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15771 if (!SWIG_IsOK(res1)) {
15772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15773 }
15774 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15775 {
15776 arg2 = wxString_in_helper(swig_obj[1]);
15777 if (arg2 == NULL) SWIG_fail;
15778 temp2 = true;
15779 }
15780 if (arg1) (arg1)->Description = *arg2;
15781
15782 resultobj = SWIG_Py_Void();
15783 {
15784 if (temp2)
15785 delete arg2;
15786 }
15787 return resultobj;
15788fail:
15789 {
15790 if (temp2)
15791 delete arg2;
15792 }
15793 return NULL;
d55e5bfc
RD
15794}
15795
15796
1bd55598
RD
15797SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15798 PyObject *resultobj = 0;
15799 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15800 wxString *result = 0 ;
15801 void *argp1 = 0 ;
15802 int res1 = 0 ;
15803 PyObject *swig_obj[1] ;
15804
15805 if (!args) SWIG_fail;
15806 swig_obj[0] = args;
15807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15808 if (!SWIG_IsOK(res1)) {
15809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15810 }
15811 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15812 result = (wxString *)& ((arg1)->Description);
15813 {
15814#if wxUSE_UNICODE
15815 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15816#else
15817 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15818#endif
15819 }
15820 return resultobj;
15821fail:
15822 return NULL;
15823}
15824
15825
15826SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15827 PyObject *obj;
15828 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15829 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15830 return SWIG_Py_Void();
15831}
15832
15833SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15834 PyObject *resultobj = 0;
15835 int arg1 = (int) -1 ;
15836 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15837 wxLocale *result = 0 ;
15838 int val1 ;
15839 int ecode1 = 0 ;
15840 int val2 ;
15841 int ecode2 = 0 ;
15842 PyObject * obj0 = 0 ;
15843 PyObject * obj1 = 0 ;
15844 char * kwnames[] = {
15845 (char *) "language",(char *) "flags", NULL
15846 };
15847
15848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15849 if (obj0) {
15850 ecode1 = SWIG_AsVal_int(obj0, &val1);
15851 if (!SWIG_IsOK(ecode1)) {
15852 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15853 }
15854 arg1 = static_cast< int >(val1);
15855 }
15856 if (obj1) {
15857 ecode2 = SWIG_AsVal_int(obj1, &val2);
15858 if (!SWIG_IsOK(ecode2)) {
15859 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15860 }
15861 arg2 = static_cast< int >(val2);
15862 }
15863 {
15864 PyThreadState* __tstate = wxPyBeginAllowThreads();
15865 result = (wxLocale *)new_wxLocale(arg1,arg2);
15866 wxPyEndAllowThreads(__tstate);
15867 if (PyErr_Occurred()) SWIG_fail;
15868 }
15869 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15870 return resultobj;
15871fail:
15872 return NULL;
d55e5bfc
RD
15873}
15874
15875
1bd55598
RD
15876SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15877 PyObject *resultobj = 0;
15878 wxLocale *arg1 = (wxLocale *) 0 ;
15879 void *argp1 = 0 ;
15880 int res1 = 0 ;
15881 PyObject *swig_obj[1] ;
15882
15883 if (!args) SWIG_fail;
15884 swig_obj[0] = args;
15885 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15886 if (!SWIG_IsOK(res1)) {
15887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15888 }
15889 arg1 = reinterpret_cast< wxLocale * >(argp1);
15890 {
15891 PyThreadState* __tstate = wxPyBeginAllowThreads();
15892 delete arg1;
d55e5bfc 15893
1bd55598
RD
15894 wxPyEndAllowThreads(__tstate);
15895 if (PyErr_Occurred()) SWIG_fail;
15896 }
15897 resultobj = SWIG_Py_Void();
15898 return resultobj;
15899fail:
15900 return NULL;
15901}
15902
15903
15904SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15905 PyObject *resultobj = 0;
15906 wxLocale *arg1 = (wxLocale *) 0 ;
15907 wxString *arg2 = 0 ;
15908 wxString const &arg3_defvalue = wxPyEmptyString ;
15909 wxString *arg3 = (wxString *) &arg3_defvalue ;
15910 wxString const &arg4_defvalue = wxPyEmptyString ;
15911 wxString *arg4 = (wxString *) &arg4_defvalue ;
15912 bool arg5 = (bool) true ;
15913 bool arg6 = (bool) false ;
15914 bool result;
15915 void *argp1 = 0 ;
15916 int res1 = 0 ;
15917 bool temp2 = false ;
15918 bool temp3 = false ;
15919 bool temp4 = false ;
15920 bool val5 ;
15921 int ecode5 = 0 ;
15922 bool val6 ;
15923 int ecode6 = 0 ;
15924 PyObject * obj0 = 0 ;
15925 PyObject * obj1 = 0 ;
15926 PyObject * obj2 = 0 ;
15927 PyObject * obj3 = 0 ;
15928 PyObject * obj4 = 0 ;
15929 PyObject * obj5 = 0 ;
15930 char * kwnames[] = {
15931 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15932 };
15933
15934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15936 if (!SWIG_IsOK(res1)) {
15937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15938 }
15939 arg1 = reinterpret_cast< wxLocale * >(argp1);
15940 {
15941 arg2 = wxString_in_helper(obj1);
15942 if (arg2 == NULL) SWIG_fail;
15943 temp2 = true;
15944 }
15945 if (obj2) {
d55e5bfc 15946 {
1bd55598
RD
15947 arg3 = wxString_in_helper(obj2);
15948 if (arg3 == NULL) SWIG_fail;
15949 temp3 = true;
d55e5bfc 15950 }
1bd55598
RD
15951 }
15952 if (obj3) {
36ed4f51 15953 {
1bd55598
RD
15954 arg4 = wxString_in_helper(obj3);
15955 if (arg4 == NULL) SWIG_fail;
15956 temp4 = true;
36ed4f51 15957 }
1bd55598
RD
15958 }
15959 if (obj4) {
15960 ecode5 = SWIG_AsVal_bool(obj4, &val5);
15961 if (!SWIG_IsOK(ecode5)) {
15962 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
15963 }
15964 arg5 = static_cast< bool >(val5);
15965 }
15966 if (obj5) {
15967 ecode6 = SWIG_AsVal_bool(obj5, &val6);
15968 if (!SWIG_IsOK(ecode6)) {
15969 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
15970 }
15971 arg6 = static_cast< bool >(val6);
15972 }
15973 {
15974 PyThreadState* __tstate = wxPyBeginAllowThreads();
15975 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
15976 wxPyEndAllowThreads(__tstate);
15977 if (PyErr_Occurred()) SWIG_fail;
15978 }
15979 {
15980 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15981 }
15982 {
15983 if (temp2)
15984 delete arg2;
15985 }
15986 {
15987 if (temp3)
15988 delete arg3;
15989 }
15990 {
15991 if (temp4)
15992 delete arg4;
15993 }
15994 return resultobj;
15995fail:
15996 {
15997 if (temp2)
15998 delete arg2;
15999 }
16000 {
16001 if (temp3)
16002 delete arg3;
16003 }
16004 {
16005 if (temp4)
16006 delete arg4;
16007 }
16008 return NULL;
16009}
16010
16011
16012SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16013 PyObject *resultobj = 0;
16014 wxLocale *arg1 = (wxLocale *) 0 ;
16015 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16016 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16017 bool result;
16018 void *argp1 = 0 ;
16019 int res1 = 0 ;
16020 int val2 ;
16021 int ecode2 = 0 ;
16022 int val3 ;
16023 int ecode3 = 0 ;
16024 PyObject * obj0 = 0 ;
16025 PyObject * obj1 = 0 ;
16026 PyObject * obj2 = 0 ;
16027 char * kwnames[] = {
16028 (char *) "self",(char *) "language",(char *) "flags", NULL
16029 };
16030
16031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16033 if (!SWIG_IsOK(res1)) {
16034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16035 }
16036 arg1 = reinterpret_cast< wxLocale * >(argp1);
16037 if (obj1) {
16038 ecode2 = SWIG_AsVal_int(obj1, &val2);
16039 if (!SWIG_IsOK(ecode2)) {
16040 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16041 }
16042 arg2 = static_cast< int >(val2);
16043 }
16044 if (obj2) {
16045 ecode3 = SWIG_AsVal_int(obj2, &val3);
16046 if (!SWIG_IsOK(ecode3)) {
16047 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16048 }
16049 arg3 = static_cast< int >(val3);
16050 }
16051 {
16052 PyThreadState* __tstate = wxPyBeginAllowThreads();
16053 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16054 wxPyEndAllowThreads(__tstate);
16055 if (PyErr_Occurred()) SWIG_fail;
16056 }
16057 {
16058 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16059 }
16060 return resultobj;
16061fail:
16062 return NULL;
d55e5bfc
RD
16063}
16064
16065
1bd55598
RD
16066SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16067 PyObject *resultobj = 0;
16068 int result;
16069
16070 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16071 {
16072 PyThreadState* __tstate = wxPyBeginAllowThreads();
16073 result = (int)wxLocale::GetSystemLanguage();
16074 wxPyEndAllowThreads(__tstate);
16075 if (PyErr_Occurred()) SWIG_fail;
16076 }
16077 resultobj = SWIG_From_int(static_cast< int >(result));
16078 return resultobj;
16079fail:
16080 return NULL;
d55e5bfc
RD
16081}
16082
16083
1bd55598
RD
16084SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16085 PyObject *resultobj = 0;
16086 wxFontEncoding result;
16087
16088 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16089 {
16090 PyThreadState* __tstate = wxPyBeginAllowThreads();
16091 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16092 wxPyEndAllowThreads(__tstate);
16093 if (PyErr_Occurred()) SWIG_fail;
16094 }
16095 resultobj = SWIG_From_int(static_cast< int >(result));
16096 return resultobj;
16097fail:
16098 return NULL;
d55e5bfc
RD
16099}
16100
16101
1bd55598
RD
16102SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16103 PyObject *resultobj = 0;
16104 wxString result;
16105
16106 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16107 {
16108 PyThreadState* __tstate = wxPyBeginAllowThreads();
16109 result = wxLocale::GetSystemEncodingName();
16110 wxPyEndAllowThreads(__tstate);
16111 if (PyErr_Occurred()) SWIG_fail;
16112 }
16113 {
16114#if wxUSE_UNICODE
16115 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16116#else
16117 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16118#endif
16119 }
16120 return resultobj;
16121fail:
16122 return NULL;
d55e5bfc
RD
16123}
16124
16125
1bd55598
RD
16126SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16127 PyObject *resultobj = 0;
16128 wxLocale *arg1 = (wxLocale *) 0 ;
16129 bool result;
16130 void *argp1 = 0 ;
16131 int res1 = 0 ;
16132 PyObject *swig_obj[1] ;
16133
16134 if (!args) SWIG_fail;
16135 swig_obj[0] = args;
16136 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16137 if (!SWIG_IsOK(res1)) {
16138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16139 }
16140 arg1 = reinterpret_cast< wxLocale * >(argp1);
16141 {
16142 PyThreadState* __tstate = wxPyBeginAllowThreads();
16143 result = (bool)((wxLocale const *)arg1)->IsOk();
16144 wxPyEndAllowThreads(__tstate);
16145 if (PyErr_Occurred()) SWIG_fail;
16146 }
16147 {
16148 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16149 }
16150 return resultobj;
16151fail:
16152 return NULL;
d55e5bfc
RD
16153}
16154
16155
1bd55598
RD
16156SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16157 PyObject *resultobj = 0;
16158 wxLocale *arg1 = (wxLocale *) 0 ;
16159 wxString result;
16160 void *argp1 = 0 ;
16161 int res1 = 0 ;
16162 PyObject *swig_obj[1] ;
16163
16164 if (!args) SWIG_fail;
16165 swig_obj[0] = args;
16166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16167 if (!SWIG_IsOK(res1)) {
16168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16169 }
16170 arg1 = reinterpret_cast< wxLocale * >(argp1);
16171 {
16172 PyThreadState* __tstate = wxPyBeginAllowThreads();
16173 result = ((wxLocale const *)arg1)->GetLocale();
16174 wxPyEndAllowThreads(__tstate);
16175 if (PyErr_Occurred()) SWIG_fail;
16176 }
16177 {
16178#if wxUSE_UNICODE
16179 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16180#else
16181 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16182#endif
16183 }
16184 return resultobj;
16185fail:
16186 return NULL;
d55e5bfc
RD
16187}
16188
16189
1bd55598
RD
16190SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16191 PyObject *resultobj = 0;
16192 wxLocale *arg1 = (wxLocale *) 0 ;
16193 int result;
16194 void *argp1 = 0 ;
16195 int res1 = 0 ;
16196 PyObject *swig_obj[1] ;
16197
16198 if (!args) SWIG_fail;
16199 swig_obj[0] = args;
16200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16201 if (!SWIG_IsOK(res1)) {
16202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16203 }
16204 arg1 = reinterpret_cast< wxLocale * >(argp1);
16205 {
16206 PyThreadState* __tstate = wxPyBeginAllowThreads();
16207 result = (int)((wxLocale const *)arg1)->GetLanguage();
16208 wxPyEndAllowThreads(__tstate);
16209 if (PyErr_Occurred()) SWIG_fail;
16210 }
16211 resultobj = SWIG_From_int(static_cast< int >(result));
16212 return resultobj;
16213fail:
16214 return NULL;
d55e5bfc
RD
16215}
16216
16217
1bd55598
RD
16218SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16219 PyObject *resultobj = 0;
16220 wxLocale *arg1 = (wxLocale *) 0 ;
16221 wxString result;
16222 void *argp1 = 0 ;
16223 int res1 = 0 ;
16224 PyObject *swig_obj[1] ;
16225
16226 if (!args) SWIG_fail;
16227 swig_obj[0] = args;
16228 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16229 if (!SWIG_IsOK(res1)) {
16230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16231 }
16232 arg1 = reinterpret_cast< wxLocale * >(argp1);
16233 {
16234 PyThreadState* __tstate = wxPyBeginAllowThreads();
16235 result = ((wxLocale const *)arg1)->GetSysName();
16236 wxPyEndAllowThreads(__tstate);
16237 if (PyErr_Occurred()) SWIG_fail;
16238 }
16239 {
36ed4f51 16240#if wxUSE_UNICODE
1bd55598 16241 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 16242#else
1bd55598 16243 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 16244#endif
1bd55598
RD
16245 }
16246 return resultobj;
16247fail:
16248 return NULL;
d55e5bfc
RD
16249}
16250
16251
1bd55598
RD
16252SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16253 PyObject *resultobj = 0;
16254 wxLocale *arg1 = (wxLocale *) 0 ;
16255 wxString result;
16256 void *argp1 = 0 ;
16257 int res1 = 0 ;
16258 PyObject *swig_obj[1] ;
16259
16260 if (!args) SWIG_fail;
16261 swig_obj[0] = args;
16262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16263 if (!SWIG_IsOK(res1)) {
16264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16265 }
16266 arg1 = reinterpret_cast< wxLocale * >(argp1);
16267 {
16268 PyThreadState* __tstate = wxPyBeginAllowThreads();
16269 result = ((wxLocale const *)arg1)->GetCanonicalName();
16270 wxPyEndAllowThreads(__tstate);
16271 if (PyErr_Occurred()) SWIG_fail;
16272 }
16273 {
16274#if wxUSE_UNICODE
16275 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16276#else
16277 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16278#endif
16279 }
16280 return resultobj;
16281fail:
16282 return NULL;
d55e5bfc
RD
16283}
16284
16285
1bd55598
RD
16286SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16287 PyObject *resultobj = 0;
16288 wxString *arg1 = 0 ;
16289 bool temp1 = false ;
16290 PyObject * obj0 = 0 ;
16291 char * kwnames[] = {
16292 (char *) "prefix", NULL
16293 };
16294
16295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16296 {
16297 arg1 = wxString_in_helper(obj0);
16298 if (arg1 == NULL) SWIG_fail;
16299 temp1 = true;
16300 }
16301 {
16302 PyThreadState* __tstate = wxPyBeginAllowThreads();
16303 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16304 wxPyEndAllowThreads(__tstate);
16305 if (PyErr_Occurred()) SWIG_fail;
16306 }
16307 resultobj = SWIG_Py_Void();
16308 {
16309 if (temp1)
16310 delete arg1;
16311 }
16312 return resultobj;
16313fail:
16314 {
16315 if (temp1)
16316 delete arg1;
16317 }
16318 return NULL;
16319}
16320
16321
16322SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16323 PyObject *resultobj = 0;
16324 wxLocale *arg1 = (wxLocale *) 0 ;
16325 wxString *arg2 = 0 ;
16326 bool result;
16327 void *argp1 = 0 ;
16328 int res1 = 0 ;
16329 bool temp2 = false ;
16330 PyObject * obj0 = 0 ;
16331 PyObject * obj1 = 0 ;
16332 char * kwnames[] = {
16333 (char *) "self",(char *) "szDomain", NULL
16334 };
16335
16336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16338 if (!SWIG_IsOK(res1)) {
16339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16340 }
16341 arg1 = reinterpret_cast< wxLocale * >(argp1);
16342 {
16343 arg2 = wxString_in_helper(obj1);
16344 if (arg2 == NULL) SWIG_fail;
16345 temp2 = true;
16346 }
16347 {
16348 PyThreadState* __tstate = wxPyBeginAllowThreads();
16349 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16350 wxPyEndAllowThreads(__tstate);
16351 if (PyErr_Occurred()) SWIG_fail;
16352 }
16353 {
16354 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16355 }
16356 {
16357 if (temp2)
16358 delete arg2;
16359 }
16360 return resultobj;
16361fail:
16362 {
16363 if (temp2)
16364 delete arg2;
16365 }
16366 return NULL;
16367}
16368
16369
33d6fd3b
RD
16370SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16371 PyObject *resultobj = 0;
16372 int arg1 ;
16373 bool result;
16374 int val1 ;
16375 int ecode1 = 0 ;
16376 PyObject * obj0 = 0 ;
16377 char * kwnames[] = {
16378 (char *) "lang", NULL
16379 };
16380
16381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16382 ecode1 = SWIG_AsVal_int(obj0, &val1);
16383 if (!SWIG_IsOK(ecode1)) {
16384 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16385 }
16386 arg1 = static_cast< int >(val1);
16387 {
16388 PyThreadState* __tstate = wxPyBeginAllowThreads();
16389 result = (bool)wxLocale::IsAvailable(arg1);
16390 wxPyEndAllowThreads(__tstate);
16391 if (PyErr_Occurred()) SWIG_fail;
16392 }
16393 {
16394 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16395 }
16396 return resultobj;
16397fail:
16398 return NULL;
16399}
16400
16401
1bd55598
RD
16402SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16403 PyObject *resultobj = 0;
16404 wxLocale *arg1 = (wxLocale *) 0 ;
16405 wxString *arg2 = 0 ;
16406 bool result;
16407 void *argp1 = 0 ;
16408 int res1 = 0 ;
16409 bool temp2 = false ;
16410 PyObject * obj0 = 0 ;
16411 PyObject * obj1 = 0 ;
16412 char * kwnames[] = {
16413 (char *) "self",(char *) "szDomain", NULL
16414 };
16415
16416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16418 if (!SWIG_IsOK(res1)) {
16419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16420 }
16421 arg1 = reinterpret_cast< wxLocale * >(argp1);
16422 {
16423 arg2 = wxString_in_helper(obj1);
16424 if (arg2 == NULL) SWIG_fail;
16425 temp2 = true;
16426 }
16427 {
16428 PyThreadState* __tstate = wxPyBeginAllowThreads();
16429 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16430 wxPyEndAllowThreads(__tstate);
16431 if (PyErr_Occurred()) SWIG_fail;
16432 }
16433 {
16434 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16435 }
16436 {
16437 if (temp2)
16438 delete arg2;
16439 }
16440 return resultobj;
16441fail:
16442 {
16443 if (temp2)
16444 delete arg2;
16445 }
16446 return NULL;
d55e5bfc
RD
16447}
16448
16449
1bd55598
RD
16450SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16451 PyObject *resultobj = 0;
16452 int arg1 ;
16453 wxLanguageInfo *result = 0 ;
16454 int val1 ;
16455 int ecode1 = 0 ;
16456 PyObject * obj0 = 0 ;
16457 char * kwnames[] = {
16458 (char *) "lang", NULL
16459 };
16460
16461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16462 ecode1 = SWIG_AsVal_int(obj0, &val1);
16463 if (!SWIG_IsOK(ecode1)) {
16464 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16465 }
16466 arg1 = static_cast< int >(val1);
16467 {
16468 PyThreadState* __tstate = wxPyBeginAllowThreads();
16469 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16470 wxPyEndAllowThreads(__tstate);
16471 if (PyErr_Occurred()) SWIG_fail;
16472 }
16473 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16474 return resultobj;
16475fail:
16476 return NULL;
16477}
16478
16479
16480SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16481 PyObject *resultobj = 0;
16482 int arg1 ;
16483 wxString result;
16484 int val1 ;
16485 int ecode1 = 0 ;
16486 PyObject * obj0 = 0 ;
16487 char * kwnames[] = {
16488 (char *) "lang", NULL
16489 };
16490
16491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16492 ecode1 = SWIG_AsVal_int(obj0, &val1);
16493 if (!SWIG_IsOK(ecode1)) {
16494 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16495 }
16496 arg1 = static_cast< int >(val1);
16497 {
16498 PyThreadState* __tstate = wxPyBeginAllowThreads();
16499 result = wxLocale::GetLanguageName(arg1);
16500 wxPyEndAllowThreads(__tstate);
16501 if (PyErr_Occurred()) SWIG_fail;
16502 }
16503 {
16504#if wxUSE_UNICODE
16505 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16506#else
16507 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16508#endif
16509 }
16510 return resultobj;
16511fail:
16512 return NULL;
d55e5bfc
RD
16513}
16514
16515
1bd55598
RD
16516SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16517 PyObject *resultobj = 0;
16518 wxString *arg1 = 0 ;
16519 wxLanguageInfo *result = 0 ;
16520 bool temp1 = false ;
16521 PyObject * obj0 = 0 ;
16522 char * kwnames[] = {
16523 (char *) "locale", NULL
16524 };
16525
16526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16527 {
16528 arg1 = wxString_in_helper(obj0);
16529 if (arg1 == NULL) SWIG_fail;
16530 temp1 = true;
16531 }
16532 {
16533 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3
RD
16534 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16535 wxPyEndAllowThreads(__tstate);
16536 if (PyErr_Occurred()) SWIG_fail;
16537 }
16538 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16539 {
16540 if (temp1)
16541 delete arg1;
16542 }
16543 return resultobj;
16544fail:
16545 {
16546 if (temp1)
16547 delete arg1;
16548 }
16549 return NULL;
16550}
16551
16552
16553SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16554 PyObject *resultobj = 0;
16555 wxLanguageInfo *arg1 = 0 ;
16556 void *argp1 = 0 ;
16557 int res1 = 0 ;
16558 PyObject * obj0 = 0 ;
16559 char * kwnames[] = {
16560 (char *) "info", NULL
16561 };
16562
16563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16564 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16565 if (!SWIG_IsOK(res1)) {
16566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16567 }
16568 if (!argp1) {
16569 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16570 }
16571 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16572 {
16573 PyThreadState* __tstate = wxPyBeginAllowThreads();
16574 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16575 wxPyEndAllowThreads(__tstate);
16576 if (PyErr_Occurred()) SWIG_fail;
16577 }
16578 resultobj = SWIG_Py_Void();
16579 return resultobj;
16580fail:
16581 return NULL;
16582}
16583
16584
16585SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16586 PyObject *resultobj = 0;
16587 wxLocale *arg1 = (wxLocale *) 0 ;
16588 wxString *arg2 = 0 ;
16589 wxString const &arg3_defvalue = wxPyEmptyString ;
16590 wxString *arg3 = (wxString *) &arg3_defvalue ;
16591 wxString result;
16592 void *argp1 = 0 ;
16593 int res1 = 0 ;
16594 bool temp2 = false ;
16595 bool temp3 = false ;
16596 PyObject * obj0 = 0 ;
16597 PyObject * obj1 = 0 ;
16598 PyObject * obj2 = 0 ;
16599 char * kwnames[] = {
16600 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16601 };
16602
16603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16605 if (!SWIG_IsOK(res1)) {
16606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16607 }
16608 arg1 = reinterpret_cast< wxLocale * >(argp1);
16609 {
16610 arg2 = wxString_in_helper(obj1);
16611 if (arg2 == NULL) SWIG_fail;
16612 temp2 = true;
16613 }
16614 if (obj2) {
16615 {
16616 arg3 = wxString_in_helper(obj2);
16617 if (arg3 == NULL) SWIG_fail;
16618 temp3 = true;
16619 }
16620 }
16621 {
16622 PyThreadState* __tstate = wxPyBeginAllowThreads();
16623 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16624 wxPyEndAllowThreads(__tstate);
16625 if (PyErr_Occurred()) SWIG_fail;
16626 }
16627 {
16628#if wxUSE_UNICODE
16629 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16630#else
16631 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16632#endif
16633 }
16634 {
16635 if (temp2)
16636 delete arg2;
16637 }
16638 {
16639 if (temp3)
16640 delete arg3;
16641 }
16642 return resultobj;
16643fail:
16644 {
16645 if (temp2)
16646 delete arg2;
16647 }
16648 {
16649 if (temp3)
16650 delete arg3;
16651 }
16652 return NULL;
16653}
16654
16655
16656SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16657 PyObject *resultobj = 0;
16658 wxLocale *arg1 = (wxLocale *) 0 ;
16659 wxString *result = 0 ;
16660 void *argp1 = 0 ;
16661 int res1 = 0 ;
16662 PyObject *swig_obj[1] ;
16663
16664 if (!args) SWIG_fail;
16665 swig_obj[0] = args;
16666 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16667 if (!SWIG_IsOK(res1)) {
16668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16669 }
16670 arg1 = reinterpret_cast< wxLocale * >(argp1);
16671 {
16672 PyThreadState* __tstate = wxPyBeginAllowThreads();
16673 {
16674 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16675 result = (wxString *) &_result_ref;
16676 }
16677 wxPyEndAllowThreads(__tstate);
16678 if (PyErr_Occurred()) SWIG_fail;
16679 }
16680 {
16681#if wxUSE_UNICODE
16682 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16683#else
16684 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16685#endif
16686 }
16687 return resultobj;
16688fail:
16689 return NULL;
16690}
16691
16692
16693SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16694 PyObject *obj;
16695 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16696 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16697 return SWIG_Py_Void();
16698}
16699
16700SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16701 return SWIG_Python_InitShadowInstance(args);
16702}
16703
16704SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16705 PyObject *resultobj = 0;
16706 int arg1 = (int) -1 ;
16707 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16708 wxPyLocale *result = 0 ;
16709 int val1 ;
16710 int ecode1 = 0 ;
16711 int val2 ;
16712 int ecode2 = 0 ;
16713 PyObject * obj0 = 0 ;
16714 PyObject * obj1 = 0 ;
16715 char * kwnames[] = {
16716 (char *) "language",(char *) "flags", NULL
16717 };
16718
16719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16720 if (obj0) {
16721 ecode1 = SWIG_AsVal_int(obj0, &val1);
16722 if (!SWIG_IsOK(ecode1)) {
16723 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16724 }
16725 arg1 = static_cast< int >(val1);
16726 }
16727 if (obj1) {
16728 ecode2 = SWIG_AsVal_int(obj1, &val2);
16729 if (!SWIG_IsOK(ecode2)) {
16730 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16731 }
16732 arg2 = static_cast< int >(val2);
16733 }
16734 {
16735 PyThreadState* __tstate = wxPyBeginAllowThreads();
16736 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16737 wxPyEndAllowThreads(__tstate);
16738 if (PyErr_Occurred()) SWIG_fail;
16739 }
16740 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16741 return resultobj;
16742fail:
16743 return NULL;
16744}
16745
16746
16747SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16748 PyObject *resultobj = 0;
16749 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16750 void *argp1 = 0 ;
16751 int res1 = 0 ;
16752 PyObject *swig_obj[1] ;
16753
16754 if (!args) SWIG_fail;
16755 swig_obj[0] = args;
16756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16757 if (!SWIG_IsOK(res1)) {
16758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16759 }
16760 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16761 {
16762 PyThreadState* __tstate = wxPyBeginAllowThreads();
16763 delete arg1;
16764
1bd55598
RD
16765 wxPyEndAllowThreads(__tstate);
16766 if (PyErr_Occurred()) SWIG_fail;
16767 }
fc46b7f3 16768 resultobj = SWIG_Py_Void();
1bd55598
RD
16769 return resultobj;
16770fail:
1bd55598 16771 return NULL;
d55e5bfc
RD
16772}
16773
16774
fc46b7f3 16775SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16776 PyObject *resultobj = 0;
fc46b7f3
RD
16777 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16778 PyObject *arg2 = (PyObject *) 0 ;
16779 PyObject *arg3 = (PyObject *) 0 ;
1bd55598
RD
16780 void *argp1 = 0 ;
16781 int res1 = 0 ;
16782 PyObject * obj0 = 0 ;
fc46b7f3
RD
16783 PyObject * obj1 = 0 ;
16784 PyObject * obj2 = 0 ;
1bd55598 16785 char * kwnames[] = {
fc46b7f3 16786 (char *) "self",(char *) "self",(char *) "_class", NULL
1bd55598
RD
16787 };
16788
fc46b7f3
RD
16789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16791 if (!SWIG_IsOK(res1)) {
fc46b7f3 16792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
1bd55598 16793 }
fc46b7f3
RD
16794 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16795 arg2 = obj1;
16796 arg3 = obj2;
1bd55598
RD
16797 {
16798 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16799 (arg1)->_setCallbackInfo(arg2,arg3);
1bd55598
RD
16800 wxPyEndAllowThreads(__tstate);
16801 if (PyErr_Occurred()) SWIG_fail;
16802 }
16803 resultobj = SWIG_Py_Void();
16804 return resultobj;
16805fail:
16806 return NULL;
16807}
16808
16809
fc46b7f3 16810SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16811 PyObject *resultobj = 0;
fc46b7f3
RD
16812 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16813 wxChar *arg2 = (wxChar *) 0 ;
16814 wxChar *arg3 = (wxChar *) NULL ;
16815 wxChar *result = 0 ;
1bd55598
RD
16816 void *argp1 = 0 ;
16817 int res1 = 0 ;
fc46b7f3
RD
16818 void *argp2 = 0 ;
16819 int res2 = 0 ;
16820 void *argp3 = 0 ;
16821 int res3 = 0 ;
1bd55598
RD
16822 PyObject * obj0 = 0 ;
16823 PyObject * obj1 = 0 ;
16824 PyObject * obj2 = 0 ;
16825 char * kwnames[] = {
16826 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16827 };
16828
fc46b7f3
RD
16829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16831 if (!SWIG_IsOK(res1)) {
fc46b7f3 16832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
1bd55598 16833 }
fc46b7f3
RD
16834 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16835 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16836 if (!SWIG_IsOK(res2)) {
16837 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
1bd55598 16838 }
fc46b7f3 16839 arg2 = reinterpret_cast< wxChar * >(argp2);
1bd55598 16840 if (obj2) {
fc46b7f3
RD
16841 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16842 if (!SWIG_IsOK(res3)) {
16843 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
d55e5bfc 16844 }
fc46b7f3 16845 arg3 = reinterpret_cast< wxChar * >(argp3);
1bd55598
RD
16846 }
16847 {
16848 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16849 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
1bd55598
RD
16850 wxPyEndAllowThreads(__tstate);
16851 if (PyErr_Occurred()) SWIG_fail;
16852 }
fc46b7f3 16853 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
1bd55598
RD
16854 return resultobj;
16855fail:
1bd55598 16856 return NULL;
d55e5bfc
RD
16857}
16858
16859
fc46b7f3 16860SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16861 PyObject *resultobj = 0;
fc46b7f3
RD
16862 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16863 wxChar *arg2 = (wxChar *) 0 ;
16864 wxChar *arg3 = (wxChar *) 0 ;
16865 size_t arg4 ;
16866 wxChar *arg5 = (wxChar *) NULL ;
16867 wxChar *result = 0 ;
1bd55598
RD
16868 void *argp1 = 0 ;
16869 int res1 = 0 ;
fc46b7f3
RD
16870 void *argp2 = 0 ;
16871 int res2 = 0 ;
16872 void *argp3 = 0 ;
16873 int res3 = 0 ;
16874 size_t val4 ;
16875 int ecode4 = 0 ;
16876 void *argp5 = 0 ;
16877 int res5 = 0 ;
16878 PyObject * obj0 = 0 ;
16879 PyObject * obj1 = 0 ;
16880 PyObject * obj2 = 0 ;
16881 PyObject * obj3 = 0 ;
16882 PyObject * obj4 = 0 ;
16883 char * kwnames[] = {
16884 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
16885 };
1bd55598 16886
fc46b7f3
RD
16887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16889 if (!SWIG_IsOK(res1)) {
fc46b7f3
RD
16890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16891 }
16892 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16893 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16894 if (!SWIG_IsOK(res2)) {
16895 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
16896 }
16897 arg2 = reinterpret_cast< wxChar * >(argp2);
16898 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16899 if (!SWIG_IsOK(res3)) {
16900 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
16901 }
16902 arg3 = reinterpret_cast< wxChar * >(argp3);
16903 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16904 if (!SWIG_IsOK(ecode4)) {
16905 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16906 }
16907 arg4 = static_cast< size_t >(val4);
16908 if (obj4) {
16909 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
16910 if (!SWIG_IsOK(res5)) {
16911 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
16912 }
16913 arg5 = reinterpret_cast< wxChar * >(argp5);
1bd55598 16914 }
1bd55598
RD
16915 {
16916 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16917 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
1bd55598
RD
16918 wxPyEndAllowThreads(__tstate);
16919 if (PyErr_Occurred()) SWIG_fail;
16920 }
fc46b7f3 16921 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
1bd55598
RD
16922 return resultobj;
16923fail:
16924 return NULL;
d55e5bfc
RD
16925}
16926
16927
fc46b7f3 16928SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
16929 PyObject *obj;
16930 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 16931 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
1bd55598 16932 return SWIG_Py_Void();
d55e5bfc
RD
16933}
16934
fc46b7f3 16935SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 16936 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
16937}
16938
1bd55598
RD
16939SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16940 PyObject *resultobj = 0;
16941 wxLocale *result = 0 ;
16942
16943 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
16944 {
16945 PyThreadState* __tstate = wxPyBeginAllowThreads();
16946 result = (wxLocale *)wxGetLocale();
16947 wxPyEndAllowThreads(__tstate);
16948 if (PyErr_Occurred()) SWIG_fail;
16949 }
16950 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
16951 return resultobj;
16952fail:
16953 return NULL;
d55e5bfc
RD
16954}
16955
16956
1bd55598
RD
16957SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16958 PyObject *resultobj = 0;
16959 wxString *arg1 = 0 ;
16960 wxString result;
16961 bool temp1 = false ;
16962
16963 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
16964 {
16965 arg1 = wxString_in_helper(swig_obj[0]);
16966 if (arg1 == NULL) SWIG_fail;
16967 temp1 = true;
16968 }
16969 {
16970 PyThreadState* __tstate = wxPyBeginAllowThreads();
16971 result = wxGetTranslation((wxString const &)*arg1);
16972 wxPyEndAllowThreads(__tstate);
16973 if (PyErr_Occurred()) SWIG_fail;
16974 }
16975 {
36ed4f51 16976#if wxUSE_UNICODE
1bd55598 16977 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 16978#else
1bd55598 16979 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 16980#endif
1bd55598
RD
16981 }
16982 {
16983 if (temp1)
16984 delete arg1;
16985 }
16986 return resultobj;
16987fail:
16988 {
16989 if (temp1)
16990 delete arg1;
16991 }
16992 return NULL;
5e483524
RD
16993}
16994
16995
1bd55598 16996SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
fc46b7f3
RD
16997 PyObject *resultobj = 0;
16998 wxString *arg1 = 0 ;
16999 wxString *arg2 = 0 ;
17000 wxString result;
17001 bool temp1 = false ;
17002 bool temp2 = false ;
17003
17004 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17005 {
17006 arg1 = wxString_in_helper(swig_obj[0]);
17007 if (arg1 == NULL) SWIG_fail;
17008 temp1 = true;
17009 }
17010 {
17011 arg2 = wxString_in_helper(swig_obj[1]);
17012 if (arg2 == NULL) SWIG_fail;
17013 temp2 = true;
17014 }
17015 {
17016 PyThreadState* __tstate = wxPyBeginAllowThreads();
17017 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17018 wxPyEndAllowThreads(__tstate);
17019 if (PyErr_Occurred()) SWIG_fail;
17020 }
17021 {
17022#if wxUSE_UNICODE
17023 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17024#else
17025 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17026#endif
17027 }
17028 {
17029 if (temp1)
17030 delete arg1;
17031 }
17032 {
17033 if (temp2)
17034 delete arg2;
17035 }
17036 return resultobj;
17037fail:
17038 {
17039 if (temp1)
17040 delete arg1;
17041 }
17042 {
17043 if (temp2)
17044 delete arg2;
17045 }
17046 return NULL;
17047}
17048
17049
17050SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
1bd55598
RD
17051 PyObject *resultobj = 0;
17052 wxString *arg1 = 0 ;
17053 wxString *arg2 = 0 ;
17054 size_t arg3 ;
17055 wxString result;
17056 bool temp1 = false ;
17057 bool temp2 = false ;
17058 size_t val3 ;
17059 int ecode3 = 0 ;
17060
17061 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17062 {
17063 arg1 = wxString_in_helper(swig_obj[0]);
17064 if (arg1 == NULL) SWIG_fail;
17065 temp1 = true;
17066 }
17067 {
17068 arg2 = wxString_in_helper(swig_obj[1]);
17069 if (arg2 == NULL) SWIG_fail;
17070 temp2 = true;
17071 }
17072 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17073 if (!SWIG_IsOK(ecode3)) {
17074 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17075 }
17076 arg3 = static_cast< size_t >(val3);
17077 {
17078 PyThreadState* __tstate = wxPyBeginAllowThreads();
17079 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17080 wxPyEndAllowThreads(__tstate);
17081 if (PyErr_Occurred()) SWIG_fail;
17082 }
17083 {
36ed4f51 17084#if wxUSE_UNICODE
1bd55598 17085 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 17086#else
1bd55598 17087 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 17088#endif
1bd55598
RD
17089 }
17090 {
17091 if (temp1)
17092 delete arg1;
17093 }
17094 {
17095 if (temp2)
17096 delete arg2;
17097 }
17098 return resultobj;
17099fail:
17100 {
17101 if (temp1)
17102 delete arg1;
17103 }
17104 {
17105 if (temp2)
17106 delete arg2;
17107 }
17108 return NULL;
d55e5bfc
RD
17109}
17110
17111
fc46b7f3
RD
17112SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17113 PyObject *resultobj = 0;
17114 wxString *arg1 = 0 ;
17115 wxString *arg2 = 0 ;
17116 size_t arg3 ;
17117 wxString *arg4 = 0 ;
17118 wxString result;
17119 bool temp1 = false ;
17120 bool temp2 = false ;
17121 size_t val3 ;
17122 int ecode3 = 0 ;
17123 bool temp4 = false ;
17124
17125 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17126 {
17127 arg1 = wxString_in_helper(swig_obj[0]);
17128 if (arg1 == NULL) SWIG_fail;
17129 temp1 = true;
17130 }
17131 {
17132 arg2 = wxString_in_helper(swig_obj[1]);
17133 if (arg2 == NULL) SWIG_fail;
17134 temp2 = true;
17135 }
17136 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17137 if (!SWIG_IsOK(ecode3)) {
17138 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17139 }
17140 arg3 = static_cast< size_t >(val3);
17141 {
17142 arg4 = wxString_in_helper(swig_obj[3]);
17143 if (arg4 == NULL) SWIG_fail;
17144 temp4 = true;
17145 }
17146 {
17147 PyThreadState* __tstate = wxPyBeginAllowThreads();
17148 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17149 wxPyEndAllowThreads(__tstate);
17150 if (PyErr_Occurred()) SWIG_fail;
17151 }
17152 {
17153#if wxUSE_UNICODE
17154 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17155#else
17156 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17157#endif
17158 }
17159 {
17160 if (temp1)
17161 delete arg1;
17162 }
17163 {
17164 if (temp2)
17165 delete arg2;
17166 }
17167 {
17168 if (temp4)
17169 delete arg4;
17170 }
17171 return resultobj;
17172fail:
17173 {
17174 if (temp1)
17175 delete arg1;
17176 }
17177 {
17178 if (temp2)
17179 delete arg2;
17180 }
17181 {
17182 if (temp4)
17183 delete arg4;
17184 }
17185 return NULL;
17186}
17187
17188
1bd55598
RD
17189SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17190 int argc;
fc46b7f3 17191 PyObject *argv[5];
1bd55598 17192
fc46b7f3 17193 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
1bd55598
RD
17194 --argc;
17195 if (argc == 1) {
17196 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17197 }
fc46b7f3 17198 if (argc == 2) {
1bd55598
RD
17199 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17200 }
fc46b7f3
RD
17201 if (argc == 3) {
17202 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17203 }
17204 if (argc == 4) {
17205 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17206 }
1bd55598
RD
17207
17208fail:
17209 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17210 return NULL;
d55e5bfc
RD
17211}
17212
17213
1bd55598
RD
17214SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17215 PyObject *resultobj = 0;
17216 wxEncodingConverter *result = 0 ;
17217
17218 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17219 {
17220 PyThreadState* __tstate = wxPyBeginAllowThreads();
17221 result = (wxEncodingConverter *)new wxEncodingConverter();
17222 wxPyEndAllowThreads(__tstate);
17223 if (PyErr_Occurred()) SWIG_fail;
17224 }
17225 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17226 return resultobj;
17227fail:
17228 return NULL;
d55e5bfc
RD
17229}
17230
17231
1bd55598
RD
17232SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17233 PyObject *resultobj = 0;
17234 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17235 void *argp1 = 0 ;
17236 int res1 = 0 ;
17237 PyObject *swig_obj[1] ;
17238
17239 if (!args) SWIG_fail;
17240 swig_obj[0] = args;
17241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17242 if (!SWIG_IsOK(res1)) {
17243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17244 }
17245 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17246 {
17247 PyThreadState* __tstate = wxPyBeginAllowThreads();
17248 delete arg1;
d55e5bfc 17249
1bd55598
RD
17250 wxPyEndAllowThreads(__tstate);
17251 if (PyErr_Occurred()) SWIG_fail;
17252 }
17253 resultobj = SWIG_Py_Void();
17254 return resultobj;
17255fail:
17256 return NULL;
17257}
17258
17259
17260SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17261 PyObject *resultobj = 0;
17262 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17263 wxFontEncoding arg2 ;
17264 wxFontEncoding arg3 ;
17265 int arg4 = (int) wxCONVERT_STRICT ;
17266 bool result;
17267 void *argp1 = 0 ;
17268 int res1 = 0 ;
17269 int val2 ;
17270 int ecode2 = 0 ;
17271 int val3 ;
17272 int ecode3 = 0 ;
17273 int val4 ;
17274 int ecode4 = 0 ;
17275 PyObject * obj0 = 0 ;
17276 PyObject * obj1 = 0 ;
17277 PyObject * obj2 = 0 ;
17278 PyObject * obj3 = 0 ;
17279 char * kwnames[] = {
17280 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17281 };
17282
17283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17285 if (!SWIG_IsOK(res1)) {
17286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17287 }
17288 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17289 ecode2 = SWIG_AsVal_int(obj1, &val2);
17290 if (!SWIG_IsOK(ecode2)) {
17291 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17292 }
17293 arg2 = static_cast< wxFontEncoding >(val2);
17294 ecode3 = SWIG_AsVal_int(obj2, &val3);
17295 if (!SWIG_IsOK(ecode3)) {
17296 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17297 }
17298 arg3 = static_cast< wxFontEncoding >(val3);
17299 if (obj3) {
17300 ecode4 = SWIG_AsVal_int(obj3, &val4);
17301 if (!SWIG_IsOK(ecode4)) {
17302 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17303 }
17304 arg4 = static_cast< int >(val4);
17305 }
17306 {
17307 PyThreadState* __tstate = wxPyBeginAllowThreads();
17308 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17309 wxPyEndAllowThreads(__tstate);
17310 if (PyErr_Occurred()) SWIG_fail;
17311 }
17312 {
17313 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17314 }
17315 return resultobj;
17316fail:
17317 return NULL;
17318}
17319
17320
17321SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17322 PyObject *resultobj = 0;
17323 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17324 wxString *arg2 = 0 ;
17325 wxString result;
17326 void *argp1 = 0 ;
17327 int res1 = 0 ;
17328 bool temp2 = false ;
17329 PyObject * obj0 = 0 ;
17330 PyObject * obj1 = 0 ;
17331 char * kwnames[] = {
17332 (char *) "self",(char *) "input", NULL
17333 };
17334
17335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17337 if (!SWIG_IsOK(res1)) {
17338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17339 }
17340 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17341 {
17342 arg2 = wxString_in_helper(obj1);
17343 if (arg2 == NULL) SWIG_fail;
17344 temp2 = true;
17345 }
17346 {
17347 PyThreadState* __tstate = wxPyBeginAllowThreads();
17348 result = (arg1)->Convert((wxString const &)*arg2);
17349 wxPyEndAllowThreads(__tstate);
17350 if (PyErr_Occurred()) SWIG_fail;
17351 }
17352 {
d55e5bfc 17353#if wxUSE_UNICODE
1bd55598 17354 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 17355#else
1bd55598 17356 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 17357#endif
1bd55598
RD
17358 }
17359 {
17360 if (temp2)
17361 delete arg2;
17362 }
17363 return resultobj;
17364fail:
17365 {
17366 if (temp2)
17367 delete arg2;
17368 }
17369 return NULL;
17370}
17371
17372
17373SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17374 PyObject *resultobj = 0;
17375 wxFontEncoding arg1 ;
17376 int arg2 = (int) wxPLATFORM_CURRENT ;
17377 wxFontEncodingArray result;
17378 int val1 ;
17379 int ecode1 = 0 ;
17380 int val2 ;
17381 int ecode2 = 0 ;
17382 PyObject * obj0 = 0 ;
17383 PyObject * obj1 = 0 ;
17384 char * kwnames[] = {
17385 (char *) "enc",(char *) "platform", NULL
17386 };
17387
17388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17389 ecode1 = SWIG_AsVal_int(obj0, &val1);
17390 if (!SWIG_IsOK(ecode1)) {
17391 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17392 }
17393 arg1 = static_cast< wxFontEncoding >(val1);
17394 if (obj1) {
17395 ecode2 = SWIG_AsVal_int(obj1, &val2);
17396 if (!SWIG_IsOK(ecode2)) {
17397 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17398 }
17399 arg2 = static_cast< int >(val2);
17400 }
17401 {
17402 PyThreadState* __tstate = wxPyBeginAllowThreads();
17403 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17404 wxPyEndAllowThreads(__tstate);
17405 if (PyErr_Occurred()) SWIG_fail;
17406 }
17407 {
17408 resultobj = PyList_New(0);
17409 for (size_t i=0; i < (&result)->GetCount(); i++) {
17410 PyObject* number = PyInt_FromLong((&result)->Item(i));
17411 PyList_Append(resultobj, number);
17412 Py_DECREF(number);
d55e5bfc 17413 }
1bd55598
RD
17414 }
17415 return resultobj;
17416fail:
17417 return NULL;
d55e5bfc
RD
17418}
17419
17420
1bd55598
RD
17421SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17422 PyObject *resultobj = 0;
17423 wxFontEncoding arg1 ;
17424 wxFontEncodingArray result;
17425 int val1 ;
17426 int ecode1 = 0 ;
17427 PyObject * obj0 = 0 ;
17428 char * kwnames[] = {
17429 (char *) "enc", NULL
17430 };
17431
17432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17433 ecode1 = SWIG_AsVal_int(obj0, &val1);
17434 if (!SWIG_IsOK(ecode1)) {
17435 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17436 }
17437 arg1 = static_cast< wxFontEncoding >(val1);
17438 {
17439 PyThreadState* __tstate = wxPyBeginAllowThreads();
17440 result = wxEncodingConverter::GetAllEquivalents(arg1);
17441 wxPyEndAllowThreads(__tstate);
17442 if (PyErr_Occurred()) SWIG_fail;
17443 }
17444 {
17445 resultobj = PyList_New(0);
17446 for (size_t i=0; i < (&result)->GetCount(); i++) {
17447 PyObject* number = PyInt_FromLong((&result)->Item(i));
17448 PyList_Append(resultobj, number);
17449 Py_DECREF(number);
d55e5bfc 17450 }
1bd55598
RD
17451 }
17452 return resultobj;
17453fail:
17454 return NULL;
17455}
17456
17457
17458SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17459 PyObject *resultobj = 0;
17460 wxFontEncoding arg1 ;
17461 wxFontEncoding arg2 ;
17462 bool result;
17463 int val1 ;
17464 int ecode1 = 0 ;
17465 int val2 ;
17466 int ecode2 = 0 ;
17467 PyObject * obj0 = 0 ;
17468 PyObject * obj1 = 0 ;
17469 char * kwnames[] = {
17470 (char *) "encIn",(char *) "encOut", NULL
17471 };
17472
17473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17474 ecode1 = SWIG_AsVal_int(obj0, &val1);
17475 if (!SWIG_IsOK(ecode1)) {
17476 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17477 }
17478 arg1 = static_cast< wxFontEncoding >(val1);
17479 ecode2 = SWIG_AsVal_int(obj1, &val2);
17480 if (!SWIG_IsOK(ecode2)) {
17481 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17482 }
17483 arg2 = static_cast< wxFontEncoding >(val2);
17484 {
17485 PyThreadState* __tstate = wxPyBeginAllowThreads();
17486 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17487 wxPyEndAllowThreads(__tstate);
17488 if (PyErr_Occurred()) SWIG_fail;
17489 }
17490 {
17491 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17492 }
17493 return resultobj;
17494fail:
17495 return NULL;
d55e5bfc
RD
17496}
17497
17498
1bd55598
RD
17499SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17500 PyObject *obj;
17501 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17502 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17503 return SWIG_Py_Void();
d55e5bfc
RD
17504}
17505
1bd55598
RD
17506SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17507 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
17508}
17509
1bd55598
RD
17510SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17511 PyObject *resultobj = 0;
17512 wxDC *arg1 = (wxDC *) 0 ;
17513 void *argp1 = 0 ;
17514 int res1 = 0 ;
17515 PyObject *swig_obj[1] ;
17516
17517 if (!args) SWIG_fail;
17518 swig_obj[0] = args;
17519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17520 if (!SWIG_IsOK(res1)) {
17521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17522 }
17523 arg1 = reinterpret_cast< wxDC * >(argp1);
17524 {
17525 PyThreadState* __tstate = wxPyBeginAllowThreads();
17526 delete arg1;
d55e5bfc 17527
1bd55598
RD
17528 wxPyEndAllowThreads(__tstate);
17529 if (PyErr_Occurred()) SWIG_fail;
17530 }
17531 resultobj = SWIG_Py_Void();
17532 return resultobj;
17533fail:
17534 return NULL;
17535}
17536
17537
17538SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17539 PyObject *resultobj = 0;
17540 wxDC *arg1 = (wxDC *) 0 ;
17541 int arg2 ;
17542 int arg3 ;
17543 wxColour *arg4 = 0 ;
17544 int arg5 = (int) wxFLOOD_SURFACE ;
17545 bool result;
17546 void *argp1 = 0 ;
17547 int res1 = 0 ;
17548 int val2 ;
17549 int ecode2 = 0 ;
17550 int val3 ;
17551 int ecode3 = 0 ;
17552 wxColour temp4 ;
17553 int val5 ;
17554 int ecode5 = 0 ;
17555 PyObject * obj0 = 0 ;
17556 PyObject * obj1 = 0 ;
17557 PyObject * obj2 = 0 ;
17558 PyObject * obj3 = 0 ;
17559 PyObject * obj4 = 0 ;
17560 char * kwnames[] = {
17561 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17562 };
17563
17564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17566 if (!SWIG_IsOK(res1)) {
17567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17568 }
17569 arg1 = reinterpret_cast< wxDC * >(argp1);
17570 ecode2 = SWIG_AsVal_int(obj1, &val2);
17571 if (!SWIG_IsOK(ecode2)) {
17572 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17573 }
17574 arg2 = static_cast< int >(val2);
17575 ecode3 = SWIG_AsVal_int(obj2, &val3);
17576 if (!SWIG_IsOK(ecode3)) {
17577 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17578 }
17579 arg3 = static_cast< int >(val3);
17580 {
17581 arg4 = &temp4;
17582 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17583 }
17584 if (obj4) {
17585 ecode5 = SWIG_AsVal_int(obj4, &val5);
17586 if (!SWIG_IsOK(ecode5)) {
17587 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17588 }
17589 arg5 = static_cast< int >(val5);
17590 }
17591 {
17592 PyThreadState* __tstate = wxPyBeginAllowThreads();
17593 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17594 wxPyEndAllowThreads(__tstate);
17595 if (PyErr_Occurred()) SWIG_fail;
17596 }
17597 {
17598 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17599 }
17600 return resultobj;
17601fail:
17602 return NULL;
17603}
17604
17605
17606SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17607 PyObject *resultobj = 0;
17608 wxDC *arg1 = (wxDC *) 0 ;
17609 wxPoint *arg2 = 0 ;
17610 wxColour *arg3 = 0 ;
17611 int arg4 = (int) wxFLOOD_SURFACE ;
17612 bool result;
17613 void *argp1 = 0 ;
17614 int res1 = 0 ;
17615 wxPoint temp2 ;
17616 wxColour temp3 ;
17617 int val4 ;
17618 int ecode4 = 0 ;
17619 PyObject * obj0 = 0 ;
17620 PyObject * obj1 = 0 ;
17621 PyObject * obj2 = 0 ;
17622 PyObject * obj3 = 0 ;
17623 char * kwnames[] = {
17624 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17625 };
17626
17627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17629 if (!SWIG_IsOK(res1)) {
17630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17631 }
17632 arg1 = reinterpret_cast< wxDC * >(argp1);
17633 {
17634 arg2 = &temp2;
17635 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17636 }
17637 {
17638 arg3 = &temp3;
17639 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17640 }
17641 if (obj3) {
17642 ecode4 = SWIG_AsVal_int(obj3, &val4);
17643 if (!SWIG_IsOK(ecode4)) {
17644 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17645 }
17646 arg4 = static_cast< int >(val4);
17647 }
17648 {
17649 PyThreadState* __tstate = wxPyBeginAllowThreads();
17650 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17651 wxPyEndAllowThreads(__tstate);
17652 if (PyErr_Occurred()) SWIG_fail;
17653 }
17654 {
17655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17656 }
17657 return resultobj;
17658fail:
17659 return NULL;
17660}
17661
17662
17663SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17664 PyObject *resultobj = 0;
17665 wxDC *arg1 = (wxDC *) 0 ;
17666 wxRect *arg2 = 0 ;
17667 wxColour *arg3 = 0 ;
17668 wxColour *arg4 = 0 ;
17669 wxPoint *arg5 = 0 ;
17670 void *argp1 = 0 ;
17671 int res1 = 0 ;
17672 wxRect temp2 ;
17673 wxColour temp3 ;
17674 wxColour temp4 ;
17675 wxPoint temp5 ;
17676 PyObject * obj0 = 0 ;
17677 PyObject * obj1 = 0 ;
17678 PyObject * obj2 = 0 ;
17679 PyObject * obj3 = 0 ;
17680 PyObject * obj4 = 0 ;
17681 char * kwnames[] = {
17682 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17683 };
17684
17685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17687 if (!SWIG_IsOK(res1)) {
17688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17689 }
17690 arg1 = reinterpret_cast< wxDC * >(argp1);
17691 {
17692 arg2 = &temp2;
17693 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17694 }
17695 {
17696 arg3 = &temp3;
17697 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17698 }
17699 {
17700 arg4 = &temp4;
17701 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17702 }
17703 {
17704 arg5 = &temp5;
17705 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17706 }
17707 {
17708 PyThreadState* __tstate = wxPyBeginAllowThreads();
17709 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17710 wxPyEndAllowThreads(__tstate);
17711 if (PyErr_Occurred()) SWIG_fail;
17712 }
17713 resultobj = SWIG_Py_Void();
17714 return resultobj;
17715fail:
17716 return NULL;
17717}
17718
17719
17720SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17721 PyObject *resultobj = 0;
17722 wxDC *arg1 = (wxDC *) 0 ;
17723 wxRect *arg2 = 0 ;
17724 wxColour *arg3 = 0 ;
17725 wxColour *arg4 = 0 ;
17726 wxDirection arg5 = (wxDirection) wxEAST ;
17727 void *argp1 = 0 ;
17728 int res1 = 0 ;
17729 wxRect temp2 ;
17730 wxColour temp3 ;
17731 wxColour temp4 ;
17732 int val5 ;
17733 int ecode5 = 0 ;
17734 PyObject * obj0 = 0 ;
17735 PyObject * obj1 = 0 ;
17736 PyObject * obj2 = 0 ;
17737 PyObject * obj3 = 0 ;
17738 PyObject * obj4 = 0 ;
17739 char * kwnames[] = {
17740 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17741 };
17742
17743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17745 if (!SWIG_IsOK(res1)) {
17746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17747 }
17748 arg1 = reinterpret_cast< wxDC * >(argp1);
17749 {
17750 arg2 = &temp2;
17751 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17752 }
17753 {
17754 arg3 = &temp3;
17755 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17756 }
17757 {
17758 arg4 = &temp4;
17759 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17760 }
17761 if (obj4) {
17762 ecode5 = SWIG_AsVal_int(obj4, &val5);
17763 if (!SWIG_IsOK(ecode5)) {
17764 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17765 }
17766 arg5 = static_cast< wxDirection >(val5);
17767 }
17768 {
17769 PyThreadState* __tstate = wxPyBeginAllowThreads();
17770 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17771 wxPyEndAllowThreads(__tstate);
17772 if (PyErr_Occurred()) SWIG_fail;
17773 }
17774 resultobj = SWIG_Py_Void();
17775 return resultobj;
17776fail:
17777 return NULL;
17778}
17779
17780
17781SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17782 PyObject *resultobj = 0;
17783 wxDC *arg1 = (wxDC *) 0 ;
17784 int arg2 ;
17785 int arg3 ;
17786 wxColour result;
17787 void *argp1 = 0 ;
17788 int res1 = 0 ;
17789 int val2 ;
17790 int ecode2 = 0 ;
17791 int val3 ;
17792 int ecode3 = 0 ;
17793 PyObject * obj0 = 0 ;
17794 PyObject * obj1 = 0 ;
17795 PyObject * obj2 = 0 ;
17796 char * kwnames[] = {
17797 (char *) "self",(char *) "x",(char *) "y", NULL
17798 };
17799
17800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17802 if (!SWIG_IsOK(res1)) {
17803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17804 }
17805 arg1 = reinterpret_cast< wxDC * >(argp1);
17806 ecode2 = SWIG_AsVal_int(obj1, &val2);
17807 if (!SWIG_IsOK(ecode2)) {
17808 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17809 }
17810 arg2 = static_cast< int >(val2);
17811 ecode3 = SWIG_AsVal_int(obj2, &val3);
17812 if (!SWIG_IsOK(ecode3)) {
17813 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17814 }
17815 arg3 = static_cast< int >(val3);
17816 {
17817 PyThreadState* __tstate = wxPyBeginAllowThreads();
17818 result = wxDC_GetPixel(arg1,arg2,arg3);
17819 wxPyEndAllowThreads(__tstate);
17820 if (PyErr_Occurred()) SWIG_fail;
17821 }
17822 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17823 return resultobj;
17824fail:
17825 return NULL;
17826}
17827
17828
17829SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17830 PyObject *resultobj = 0;
17831 wxDC *arg1 = (wxDC *) 0 ;
17832 wxPoint *arg2 = 0 ;
17833 wxColour result;
17834 void *argp1 = 0 ;
17835 int res1 = 0 ;
17836 wxPoint temp2 ;
17837 PyObject * obj0 = 0 ;
17838 PyObject * obj1 = 0 ;
17839 char * kwnames[] = {
17840 (char *) "self",(char *) "pt", NULL
17841 };
17842
17843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17845 if (!SWIG_IsOK(res1)) {
17846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17847 }
17848 arg1 = reinterpret_cast< wxDC * >(argp1);
17849 {
17850 arg2 = &temp2;
17851 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17852 }
17853 {
17854 PyThreadState* __tstate = wxPyBeginAllowThreads();
17855 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17856 wxPyEndAllowThreads(__tstate);
17857 if (PyErr_Occurred()) SWIG_fail;
17858 }
17859 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17860 return resultobj;
17861fail:
17862 return NULL;
17863}
17864
17865
17866SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17867 PyObject *resultobj = 0;
17868 wxDC *arg1 = (wxDC *) 0 ;
17869 int arg2 ;
17870 int arg3 ;
17871 int arg4 ;
17872 int arg5 ;
17873 void *argp1 = 0 ;
17874 int res1 = 0 ;
17875 int val2 ;
17876 int ecode2 = 0 ;
17877 int val3 ;
17878 int ecode3 = 0 ;
17879 int val4 ;
17880 int ecode4 = 0 ;
17881 int val5 ;
17882 int ecode5 = 0 ;
17883 PyObject * obj0 = 0 ;
17884 PyObject * obj1 = 0 ;
17885 PyObject * obj2 = 0 ;
17886 PyObject * obj3 = 0 ;
17887 PyObject * obj4 = 0 ;
17888 char * kwnames[] = {
17889 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17890 };
17891
17892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17894 if (!SWIG_IsOK(res1)) {
17895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17896 }
17897 arg1 = reinterpret_cast< wxDC * >(argp1);
17898 ecode2 = SWIG_AsVal_int(obj1, &val2);
17899 if (!SWIG_IsOK(ecode2)) {
17900 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17901 }
17902 arg2 = static_cast< int >(val2);
17903 ecode3 = SWIG_AsVal_int(obj2, &val3);
17904 if (!SWIG_IsOK(ecode3)) {
17905 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
17906 }
17907 arg3 = static_cast< int >(val3);
17908 ecode4 = SWIG_AsVal_int(obj3, &val4);
17909 if (!SWIG_IsOK(ecode4)) {
17910 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
17911 }
17912 arg4 = static_cast< int >(val4);
17913 ecode5 = SWIG_AsVal_int(obj4, &val5);
17914 if (!SWIG_IsOK(ecode5)) {
17915 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
17916 }
17917 arg5 = static_cast< int >(val5);
17918 {
17919 PyThreadState* __tstate = wxPyBeginAllowThreads();
17920 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
17921 wxPyEndAllowThreads(__tstate);
17922 if (PyErr_Occurred()) SWIG_fail;
17923 }
17924 resultobj = SWIG_Py_Void();
17925 return resultobj;
17926fail:
17927 return NULL;
17928}
17929
17930
17931SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17932 PyObject *resultobj = 0;
17933 wxDC *arg1 = (wxDC *) 0 ;
17934 wxPoint *arg2 = 0 ;
17935 wxPoint *arg3 = 0 ;
17936 void *argp1 = 0 ;
17937 int res1 = 0 ;
17938 wxPoint temp2 ;
17939 wxPoint temp3 ;
17940 PyObject * obj0 = 0 ;
17941 PyObject * obj1 = 0 ;
17942 PyObject * obj2 = 0 ;
17943 char * kwnames[] = {
17944 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
17945 };
17946
17947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17949 if (!SWIG_IsOK(res1)) {
17950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
17951 }
17952 arg1 = reinterpret_cast< wxDC * >(argp1);
17953 {
17954 arg2 = &temp2;
17955 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17956 }
17957 {
17958 arg3 = &temp3;
17959 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17960 }
17961 {
17962 PyThreadState* __tstate = wxPyBeginAllowThreads();
17963 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
17964 wxPyEndAllowThreads(__tstate);
17965 if (PyErr_Occurred()) SWIG_fail;
17966 }
17967 resultobj = SWIG_Py_Void();
17968 return resultobj;
17969fail:
17970 return NULL;
17971}
17972
17973
17974SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17975 PyObject *resultobj = 0;
17976 wxDC *arg1 = (wxDC *) 0 ;
17977 int arg2 ;
17978 int arg3 ;
17979 void *argp1 = 0 ;
17980 int res1 = 0 ;
17981 int val2 ;
17982 int ecode2 = 0 ;
17983 int val3 ;
17984 int ecode3 = 0 ;
17985 PyObject * obj0 = 0 ;
17986 PyObject * obj1 = 0 ;
17987 PyObject * obj2 = 0 ;
17988 char * kwnames[] = {
17989 (char *) "self",(char *) "x",(char *) "y", NULL
17990 };
17991
17992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17994 if (!SWIG_IsOK(res1)) {
17995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
17996 }
17997 arg1 = reinterpret_cast< wxDC * >(argp1);
17998 ecode2 = SWIG_AsVal_int(obj1, &val2);
17999 if (!SWIG_IsOK(ecode2)) {
18000 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18001 }
18002 arg2 = static_cast< int >(val2);
18003 ecode3 = SWIG_AsVal_int(obj2, &val3);
18004 if (!SWIG_IsOK(ecode3)) {
18005 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18006 }
18007 arg3 = static_cast< int >(val3);
18008 {
18009 PyThreadState* __tstate = wxPyBeginAllowThreads();
18010 (arg1)->CrossHair(arg2,arg3);
18011 wxPyEndAllowThreads(__tstate);
18012 if (PyErr_Occurred()) SWIG_fail;
18013 }
18014 resultobj = SWIG_Py_Void();
18015 return resultobj;
18016fail:
18017 return NULL;
18018}
18019
18020
18021SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18022 PyObject *resultobj = 0;
18023 wxDC *arg1 = (wxDC *) 0 ;
18024 wxPoint *arg2 = 0 ;
18025 void *argp1 = 0 ;
18026 int res1 = 0 ;
18027 wxPoint temp2 ;
18028 PyObject * obj0 = 0 ;
18029 PyObject * obj1 = 0 ;
18030 char * kwnames[] = {
18031 (char *) "self",(char *) "pt", NULL
18032 };
18033
18034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18036 if (!SWIG_IsOK(res1)) {
18037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18038 }
18039 arg1 = reinterpret_cast< wxDC * >(argp1);
18040 {
18041 arg2 = &temp2;
18042 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18043 }
18044 {
18045 PyThreadState* __tstate = wxPyBeginAllowThreads();
18046 (arg1)->CrossHair((wxPoint const &)*arg2);
18047 wxPyEndAllowThreads(__tstate);
18048 if (PyErr_Occurred()) SWIG_fail;
18049 }
18050 resultobj = SWIG_Py_Void();
18051 return resultobj;
18052fail:
18053 return NULL;
18054}
18055
18056
18057SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18058 PyObject *resultobj = 0;
18059 wxDC *arg1 = (wxDC *) 0 ;
18060 int arg2 ;
18061 int arg3 ;
18062 int arg4 ;
18063 int arg5 ;
18064 int arg6 ;
18065 int arg7 ;
18066 void *argp1 = 0 ;
18067 int res1 = 0 ;
18068 int val2 ;
18069 int ecode2 = 0 ;
18070 int val3 ;
18071 int ecode3 = 0 ;
18072 int val4 ;
18073 int ecode4 = 0 ;
18074 int val5 ;
18075 int ecode5 = 0 ;
18076 int val6 ;
18077 int ecode6 = 0 ;
18078 int val7 ;
18079 int ecode7 = 0 ;
18080 PyObject * obj0 = 0 ;
18081 PyObject * obj1 = 0 ;
18082 PyObject * obj2 = 0 ;
18083 PyObject * obj3 = 0 ;
18084 PyObject * obj4 = 0 ;
18085 PyObject * obj5 = 0 ;
18086 PyObject * obj6 = 0 ;
18087 char * kwnames[] = {
18088 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18089 };
18090
18091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18093 if (!SWIG_IsOK(res1)) {
18094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18095 }
18096 arg1 = reinterpret_cast< wxDC * >(argp1);
18097 ecode2 = SWIG_AsVal_int(obj1, &val2);
18098 if (!SWIG_IsOK(ecode2)) {
18099 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18100 }
18101 arg2 = static_cast< int >(val2);
18102 ecode3 = SWIG_AsVal_int(obj2, &val3);
18103 if (!SWIG_IsOK(ecode3)) {
18104 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18105 }
18106 arg3 = static_cast< int >(val3);
18107 ecode4 = SWIG_AsVal_int(obj3, &val4);
18108 if (!SWIG_IsOK(ecode4)) {
18109 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18110 }
18111 arg4 = static_cast< int >(val4);
18112 ecode5 = SWIG_AsVal_int(obj4, &val5);
18113 if (!SWIG_IsOK(ecode5)) {
18114 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18115 }
18116 arg5 = static_cast< int >(val5);
18117 ecode6 = SWIG_AsVal_int(obj5, &val6);
18118 if (!SWIG_IsOK(ecode6)) {
18119 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18120 }
18121 arg6 = static_cast< int >(val6);
18122 ecode7 = SWIG_AsVal_int(obj6, &val7);
18123 if (!SWIG_IsOK(ecode7)) {
18124 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18125 }
18126 arg7 = static_cast< int >(val7);
18127 {
18128 PyThreadState* __tstate = wxPyBeginAllowThreads();
18129 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18130 wxPyEndAllowThreads(__tstate);
18131 if (PyErr_Occurred()) SWIG_fail;
18132 }
18133 resultobj = SWIG_Py_Void();
18134 return resultobj;
18135fail:
18136 return NULL;
18137}
18138
18139
18140SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18141 PyObject *resultobj = 0;
18142 wxDC *arg1 = (wxDC *) 0 ;
18143 wxPoint *arg2 = 0 ;
18144 wxPoint *arg3 = 0 ;
18145 wxPoint *arg4 = 0 ;
18146 void *argp1 = 0 ;
18147 int res1 = 0 ;
18148 wxPoint temp2 ;
18149 wxPoint temp3 ;
18150 wxPoint temp4 ;
18151 PyObject * obj0 = 0 ;
18152 PyObject * obj1 = 0 ;
18153 PyObject * obj2 = 0 ;
18154 PyObject * obj3 = 0 ;
18155 char * kwnames[] = {
18156 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18157 };
18158
18159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18161 if (!SWIG_IsOK(res1)) {
18162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18163 }
18164 arg1 = reinterpret_cast< wxDC * >(argp1);
18165 {
18166 arg2 = &temp2;
18167 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18168 }
18169 {
18170 arg3 = &temp3;
18171 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18172 }
18173 {
18174 arg4 = &temp4;
18175 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18176 }
18177 {
18178 PyThreadState* __tstate = wxPyBeginAllowThreads();
18179 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18180 wxPyEndAllowThreads(__tstate);
18181 if (PyErr_Occurred()) SWIG_fail;
18182 }
18183 resultobj = SWIG_Py_Void();
18184 return resultobj;
18185fail:
18186 return NULL;
18187}
18188
18189
18190SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18191 PyObject *resultobj = 0;
18192 wxDC *arg1 = (wxDC *) 0 ;
18193 int arg2 ;
18194 int arg3 ;
18195 int arg4 ;
18196 int arg5 ;
18197 void *argp1 = 0 ;
18198 int res1 = 0 ;
18199 int val2 ;
18200 int ecode2 = 0 ;
18201 int val3 ;
18202 int ecode3 = 0 ;
18203 int val4 ;
18204 int ecode4 = 0 ;
18205 int val5 ;
18206 int ecode5 = 0 ;
18207 PyObject * obj0 = 0 ;
18208 PyObject * obj1 = 0 ;
18209 PyObject * obj2 = 0 ;
18210 PyObject * obj3 = 0 ;
18211 PyObject * obj4 = 0 ;
18212 char * kwnames[] = {
18213 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18214 };
18215
18216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18218 if (!SWIG_IsOK(res1)) {
18219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18220 }
18221 arg1 = reinterpret_cast< wxDC * >(argp1);
18222 ecode2 = SWIG_AsVal_int(obj1, &val2);
18223 if (!SWIG_IsOK(ecode2)) {
18224 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18225 }
18226 arg2 = static_cast< int >(val2);
18227 ecode3 = SWIG_AsVal_int(obj2, &val3);
18228 if (!SWIG_IsOK(ecode3)) {
18229 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18230 }
18231 arg3 = static_cast< int >(val3);
18232 ecode4 = SWIG_AsVal_int(obj3, &val4);
18233 if (!SWIG_IsOK(ecode4)) {
18234 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18235 }
18236 arg4 = static_cast< int >(val4);
18237 ecode5 = SWIG_AsVal_int(obj4, &val5);
18238 if (!SWIG_IsOK(ecode5)) {
18239 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18240 }
18241 arg5 = static_cast< int >(val5);
18242 {
18243 PyThreadState* __tstate = wxPyBeginAllowThreads();
18244 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18245 wxPyEndAllowThreads(__tstate);
18246 if (PyErr_Occurred()) SWIG_fail;
18247 }
18248 resultobj = SWIG_Py_Void();
18249 return resultobj;
18250fail:
18251 return NULL;
18252}
18253
18254
18255SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18256 PyObject *resultobj = 0;
18257 wxDC *arg1 = (wxDC *) 0 ;
18258 wxRect *arg2 = 0 ;
18259 void *argp1 = 0 ;
18260 int res1 = 0 ;
18261 wxRect temp2 ;
18262 PyObject * obj0 = 0 ;
18263 PyObject * obj1 = 0 ;
18264 char * kwnames[] = {
18265 (char *) "self",(char *) "rect", NULL
18266 };
18267
18268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18270 if (!SWIG_IsOK(res1)) {
18271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18272 }
18273 arg1 = reinterpret_cast< wxDC * >(argp1);
18274 {
18275 arg2 = &temp2;
18276 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18277 }
18278 {
18279 PyThreadState* __tstate = wxPyBeginAllowThreads();
18280 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18281 wxPyEndAllowThreads(__tstate);
18282 if (PyErr_Occurred()) SWIG_fail;
18283 }
18284 resultobj = SWIG_Py_Void();
18285 return resultobj;
18286fail:
18287 return NULL;
18288}
18289
18290
18291SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18292 PyObject *resultobj = 0;
18293 wxDC *arg1 = (wxDC *) 0 ;
18294 int arg2 ;
18295 int arg3 ;
18296 int arg4 ;
18297 int arg5 ;
18298 double arg6 ;
18299 double arg7 ;
18300 void *argp1 = 0 ;
18301 int res1 = 0 ;
18302 int val2 ;
18303 int ecode2 = 0 ;
18304 int val3 ;
18305 int ecode3 = 0 ;
18306 int val4 ;
18307 int ecode4 = 0 ;
18308 int val5 ;
18309 int ecode5 = 0 ;
18310 double val6 ;
18311 int ecode6 = 0 ;
18312 double val7 ;
18313 int ecode7 = 0 ;
18314 PyObject * obj0 = 0 ;
18315 PyObject * obj1 = 0 ;
18316 PyObject * obj2 = 0 ;
18317 PyObject * obj3 = 0 ;
18318 PyObject * obj4 = 0 ;
18319 PyObject * obj5 = 0 ;
18320 PyObject * obj6 = 0 ;
18321 char * kwnames[] = {
18322 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18323 };
18324
18325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18327 if (!SWIG_IsOK(res1)) {
18328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18329 }
18330 arg1 = reinterpret_cast< wxDC * >(argp1);
18331 ecode2 = SWIG_AsVal_int(obj1, &val2);
18332 if (!SWIG_IsOK(ecode2)) {
18333 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18334 }
18335 arg2 = static_cast< int >(val2);
18336 ecode3 = SWIG_AsVal_int(obj2, &val3);
18337 if (!SWIG_IsOK(ecode3)) {
18338 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18339 }
18340 arg3 = static_cast< int >(val3);
18341 ecode4 = SWIG_AsVal_int(obj3, &val4);
18342 if (!SWIG_IsOK(ecode4)) {
18343 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18344 }
18345 arg4 = static_cast< int >(val4);
18346 ecode5 = SWIG_AsVal_int(obj4, &val5);
18347 if (!SWIG_IsOK(ecode5)) {
18348 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18349 }
18350 arg5 = static_cast< int >(val5);
18351 ecode6 = SWIG_AsVal_double(obj5, &val6);
18352 if (!SWIG_IsOK(ecode6)) {
18353 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18354 }
18355 arg6 = static_cast< double >(val6);
18356 ecode7 = SWIG_AsVal_double(obj6, &val7);
18357 if (!SWIG_IsOK(ecode7)) {
18358 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18359 }
18360 arg7 = static_cast< double >(val7);
18361 {
18362 PyThreadState* __tstate = wxPyBeginAllowThreads();
18363 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18364 wxPyEndAllowThreads(__tstate);
18365 if (PyErr_Occurred()) SWIG_fail;
18366 }
18367 resultobj = SWIG_Py_Void();
18368 return resultobj;
18369fail:
18370 return NULL;
18371}
18372
18373
18374SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18375 PyObject *resultobj = 0;
18376 wxDC *arg1 = (wxDC *) 0 ;
18377 wxPoint *arg2 = 0 ;
18378 wxSize *arg3 = 0 ;
18379 double arg4 ;
18380 double arg5 ;
18381 void *argp1 = 0 ;
18382 int res1 = 0 ;
18383 wxPoint temp2 ;
18384 wxSize temp3 ;
18385 double val4 ;
18386 int ecode4 = 0 ;
18387 double val5 ;
18388 int ecode5 = 0 ;
18389 PyObject * obj0 = 0 ;
18390 PyObject * obj1 = 0 ;
18391 PyObject * obj2 = 0 ;
18392 PyObject * obj3 = 0 ;
18393 PyObject * obj4 = 0 ;
18394 char * kwnames[] = {
18395 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18396 };
18397
18398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18400 if (!SWIG_IsOK(res1)) {
18401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18402 }
18403 arg1 = reinterpret_cast< wxDC * >(argp1);
18404 {
18405 arg2 = &temp2;
18406 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18407 }
18408 {
18409 arg3 = &temp3;
18410 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18411 }
18412 ecode4 = SWIG_AsVal_double(obj3, &val4);
18413 if (!SWIG_IsOK(ecode4)) {
18414 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18415 }
18416 arg4 = static_cast< double >(val4);
18417 ecode5 = SWIG_AsVal_double(obj4, &val5);
18418 if (!SWIG_IsOK(ecode5)) {
18419 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18420 }
18421 arg5 = static_cast< double >(val5);
18422 {
18423 PyThreadState* __tstate = wxPyBeginAllowThreads();
18424 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18425 wxPyEndAllowThreads(__tstate);
18426 if (PyErr_Occurred()) SWIG_fail;
18427 }
18428 resultobj = SWIG_Py_Void();
18429 return resultobj;
18430fail:
18431 return NULL;
18432}
18433
18434
18435SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18436 PyObject *resultobj = 0;
18437 wxDC *arg1 = (wxDC *) 0 ;
18438 int arg2 ;
18439 int arg3 ;
18440 void *argp1 = 0 ;
18441 int res1 = 0 ;
18442 int val2 ;
18443 int ecode2 = 0 ;
18444 int val3 ;
18445 int ecode3 = 0 ;
18446 PyObject * obj0 = 0 ;
18447 PyObject * obj1 = 0 ;
18448 PyObject * obj2 = 0 ;
18449 char * kwnames[] = {
18450 (char *) "self",(char *) "x",(char *) "y", NULL
18451 };
18452
18453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18455 if (!SWIG_IsOK(res1)) {
18456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18457 }
18458 arg1 = reinterpret_cast< wxDC * >(argp1);
18459 ecode2 = SWIG_AsVal_int(obj1, &val2);
18460 if (!SWIG_IsOK(ecode2)) {
18461 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18462 }
18463 arg2 = static_cast< int >(val2);
18464 ecode3 = SWIG_AsVal_int(obj2, &val3);
18465 if (!SWIG_IsOK(ecode3)) {
18466 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18467 }
18468 arg3 = static_cast< int >(val3);
18469 {
18470 PyThreadState* __tstate = wxPyBeginAllowThreads();
18471 (arg1)->DrawPoint(arg2,arg3);
18472 wxPyEndAllowThreads(__tstate);
18473 if (PyErr_Occurred()) SWIG_fail;
18474 }
18475 resultobj = SWIG_Py_Void();
18476 return resultobj;
18477fail:
18478 return NULL;
18479}
18480
18481
18482SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18483 PyObject *resultobj = 0;
18484 wxDC *arg1 = (wxDC *) 0 ;
18485 wxPoint *arg2 = 0 ;
18486 void *argp1 = 0 ;
18487 int res1 = 0 ;
18488 wxPoint temp2 ;
18489 PyObject * obj0 = 0 ;
18490 PyObject * obj1 = 0 ;
18491 char * kwnames[] = {
18492 (char *) "self",(char *) "pt", NULL
18493 };
18494
18495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18497 if (!SWIG_IsOK(res1)) {
18498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18499 }
18500 arg1 = reinterpret_cast< wxDC * >(argp1);
18501 {
18502 arg2 = &temp2;
18503 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18504 }
18505 {
18506 PyThreadState* __tstate = wxPyBeginAllowThreads();
18507 (arg1)->DrawPoint((wxPoint const &)*arg2);
18508 wxPyEndAllowThreads(__tstate);
18509 if (PyErr_Occurred()) SWIG_fail;
18510 }
18511 resultobj = SWIG_Py_Void();
18512 return resultobj;
18513fail:
18514 return NULL;
18515}
18516
18517
18518SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18519 PyObject *resultobj = 0;
18520 wxDC *arg1 = (wxDC *) 0 ;
18521 int arg2 ;
18522 int arg3 ;
18523 int arg4 ;
18524 int arg5 ;
18525 void *argp1 = 0 ;
18526 int res1 = 0 ;
18527 int val2 ;
18528 int ecode2 = 0 ;
18529 int val3 ;
18530 int ecode3 = 0 ;
18531 int val4 ;
18532 int ecode4 = 0 ;
18533 int val5 ;
18534 int ecode5 = 0 ;
18535 PyObject * obj0 = 0 ;
18536 PyObject * obj1 = 0 ;
18537 PyObject * obj2 = 0 ;
18538 PyObject * obj3 = 0 ;
18539 PyObject * obj4 = 0 ;
18540 char * kwnames[] = {
18541 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18542 };
18543
18544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18546 if (!SWIG_IsOK(res1)) {
18547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18548 }
18549 arg1 = reinterpret_cast< wxDC * >(argp1);
18550 ecode2 = SWIG_AsVal_int(obj1, &val2);
18551 if (!SWIG_IsOK(ecode2)) {
18552 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18553 }
18554 arg2 = static_cast< int >(val2);
18555 ecode3 = SWIG_AsVal_int(obj2, &val3);
18556 if (!SWIG_IsOK(ecode3)) {
18557 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18558 }
18559 arg3 = static_cast< int >(val3);
18560 ecode4 = SWIG_AsVal_int(obj3, &val4);
18561 if (!SWIG_IsOK(ecode4)) {
18562 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18563 }
18564 arg4 = static_cast< int >(val4);
18565 ecode5 = SWIG_AsVal_int(obj4, &val5);
18566 if (!SWIG_IsOK(ecode5)) {
18567 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18568 }
18569 arg5 = static_cast< int >(val5);
18570 {
18571 PyThreadState* __tstate = wxPyBeginAllowThreads();
18572 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18573 wxPyEndAllowThreads(__tstate);
18574 if (PyErr_Occurred()) SWIG_fail;
18575 }
18576 resultobj = SWIG_Py_Void();
18577 return resultobj;
18578fail:
18579 return NULL;
18580}
18581
18582
18583SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18584 PyObject *resultobj = 0;
18585 wxDC *arg1 = (wxDC *) 0 ;
18586 wxRect *arg2 = 0 ;
18587 void *argp1 = 0 ;
18588 int res1 = 0 ;
18589 wxRect temp2 ;
18590 PyObject * obj0 = 0 ;
18591 PyObject * obj1 = 0 ;
18592 char * kwnames[] = {
18593 (char *) "self",(char *) "rect", NULL
18594 };
18595
18596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18598 if (!SWIG_IsOK(res1)) {
18599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18600 }
18601 arg1 = reinterpret_cast< wxDC * >(argp1);
18602 {
18603 arg2 = &temp2;
18604 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18605 }
18606 {
18607 PyThreadState* __tstate = wxPyBeginAllowThreads();
18608 (arg1)->DrawRectangle((wxRect const &)*arg2);
18609 wxPyEndAllowThreads(__tstate);
18610 if (PyErr_Occurred()) SWIG_fail;
18611 }
18612 resultobj = SWIG_Py_Void();
18613 return resultobj;
18614fail:
18615 return NULL;
18616}
18617
18618
18619SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18620 PyObject *resultobj = 0;
18621 wxDC *arg1 = (wxDC *) 0 ;
18622 wxPoint *arg2 = 0 ;
18623 wxSize *arg3 = 0 ;
18624 void *argp1 = 0 ;
18625 int res1 = 0 ;
18626 wxPoint temp2 ;
18627 wxSize temp3 ;
18628 PyObject * obj0 = 0 ;
18629 PyObject * obj1 = 0 ;
18630 PyObject * obj2 = 0 ;
18631 char * kwnames[] = {
18632 (char *) "self",(char *) "pt",(char *) "sz", NULL
18633 };
18634
18635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18637 if (!SWIG_IsOK(res1)) {
18638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18639 }
18640 arg1 = reinterpret_cast< wxDC * >(argp1);
18641 {
18642 arg2 = &temp2;
18643 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18644 }
18645 {
18646 arg3 = &temp3;
18647 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18648 }
18649 {
18650 PyThreadState* __tstate = wxPyBeginAllowThreads();
18651 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18652 wxPyEndAllowThreads(__tstate);
18653 if (PyErr_Occurred()) SWIG_fail;
18654 }
18655 resultobj = SWIG_Py_Void();
18656 return resultobj;
18657fail:
18658 return NULL;
18659}
18660
18661
18662SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18663 PyObject *resultobj = 0;
18664 wxDC *arg1 = (wxDC *) 0 ;
18665 int arg2 ;
18666 int arg3 ;
18667 int arg4 ;
18668 int arg5 ;
18669 double arg6 ;
18670 void *argp1 = 0 ;
18671 int res1 = 0 ;
18672 int val2 ;
18673 int ecode2 = 0 ;
18674 int val3 ;
18675 int ecode3 = 0 ;
18676 int val4 ;
18677 int ecode4 = 0 ;
18678 int val5 ;
18679 int ecode5 = 0 ;
18680 double val6 ;
18681 int ecode6 = 0 ;
18682 PyObject * obj0 = 0 ;
18683 PyObject * obj1 = 0 ;
18684 PyObject * obj2 = 0 ;
18685 PyObject * obj3 = 0 ;
18686 PyObject * obj4 = 0 ;
18687 PyObject * obj5 = 0 ;
18688 char * kwnames[] = {
18689 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18690 };
18691
18692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18694 if (!SWIG_IsOK(res1)) {
18695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18696 }
18697 arg1 = reinterpret_cast< wxDC * >(argp1);
18698 ecode2 = SWIG_AsVal_int(obj1, &val2);
18699 if (!SWIG_IsOK(ecode2)) {
18700 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18701 }
18702 arg2 = static_cast< int >(val2);
18703 ecode3 = SWIG_AsVal_int(obj2, &val3);
18704 if (!SWIG_IsOK(ecode3)) {
18705 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18706 }
18707 arg3 = static_cast< int >(val3);
18708 ecode4 = SWIG_AsVal_int(obj3, &val4);
18709 if (!SWIG_IsOK(ecode4)) {
18710 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18711 }
18712 arg4 = static_cast< int >(val4);
18713 ecode5 = SWIG_AsVal_int(obj4, &val5);
18714 if (!SWIG_IsOK(ecode5)) {
18715 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18716 }
18717 arg5 = static_cast< int >(val5);
18718 ecode6 = SWIG_AsVal_double(obj5, &val6);
18719 if (!SWIG_IsOK(ecode6)) {
18720 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18721 }
18722 arg6 = static_cast< double >(val6);
18723 {
18724 PyThreadState* __tstate = wxPyBeginAllowThreads();
18725 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18726 wxPyEndAllowThreads(__tstate);
18727 if (PyErr_Occurred()) SWIG_fail;
18728 }
18729 resultobj = SWIG_Py_Void();
18730 return resultobj;
18731fail:
18732 return NULL;
18733}
18734
18735
18736SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18737 PyObject *resultobj = 0;
18738 wxDC *arg1 = (wxDC *) 0 ;
18739 wxRect *arg2 = 0 ;
18740 double arg3 ;
18741 void *argp1 = 0 ;
18742 int res1 = 0 ;
18743 wxRect temp2 ;
18744 double val3 ;
18745 int ecode3 = 0 ;
18746 PyObject * obj0 = 0 ;
18747 PyObject * obj1 = 0 ;
18748 PyObject * obj2 = 0 ;
18749 char * kwnames[] = {
18750 (char *) "self",(char *) "r",(char *) "radius", NULL
18751 };
18752
18753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18755 if (!SWIG_IsOK(res1)) {
18756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18757 }
18758 arg1 = reinterpret_cast< wxDC * >(argp1);
18759 {
18760 arg2 = &temp2;
18761 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18762 }
18763 ecode3 = SWIG_AsVal_double(obj2, &val3);
18764 if (!SWIG_IsOK(ecode3)) {
18765 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18766 }
18767 arg3 = static_cast< double >(val3);
18768 {
18769 PyThreadState* __tstate = wxPyBeginAllowThreads();
18770 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18771 wxPyEndAllowThreads(__tstate);
18772 if (PyErr_Occurred()) SWIG_fail;
18773 }
18774 resultobj = SWIG_Py_Void();
18775 return resultobj;
18776fail:
18777 return NULL;
18778}
18779
18780
18781SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18782 PyObject *resultobj = 0;
18783 wxDC *arg1 = (wxDC *) 0 ;
18784 wxPoint *arg2 = 0 ;
18785 wxSize *arg3 = 0 ;
18786 double arg4 ;
18787 void *argp1 = 0 ;
18788 int res1 = 0 ;
18789 wxPoint temp2 ;
18790 wxSize temp3 ;
18791 double val4 ;
18792 int ecode4 = 0 ;
18793 PyObject * obj0 = 0 ;
18794 PyObject * obj1 = 0 ;
18795 PyObject * obj2 = 0 ;
18796 PyObject * obj3 = 0 ;
18797 char * kwnames[] = {
18798 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18799 };
18800
18801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18803 if (!SWIG_IsOK(res1)) {
18804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18805 }
18806 arg1 = reinterpret_cast< wxDC * >(argp1);
18807 {
18808 arg2 = &temp2;
18809 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18810 }
18811 {
18812 arg3 = &temp3;
18813 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18814 }
18815 ecode4 = SWIG_AsVal_double(obj3, &val4);
18816 if (!SWIG_IsOK(ecode4)) {
18817 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18818 }
18819 arg4 = static_cast< double >(val4);
18820 {
18821 PyThreadState* __tstate = wxPyBeginAllowThreads();
18822 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18823 wxPyEndAllowThreads(__tstate);
18824 if (PyErr_Occurred()) SWIG_fail;
18825 }
18826 resultobj = SWIG_Py_Void();
18827 return resultobj;
18828fail:
18829 return NULL;
18830}
18831
18832
18833SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18834 PyObject *resultobj = 0;
18835 wxDC *arg1 = (wxDC *) 0 ;
18836 int arg2 ;
18837 int arg3 ;
18838 int arg4 ;
18839 void *argp1 = 0 ;
18840 int res1 = 0 ;
18841 int val2 ;
18842 int ecode2 = 0 ;
18843 int val3 ;
18844 int ecode3 = 0 ;
18845 int val4 ;
18846 int ecode4 = 0 ;
18847 PyObject * obj0 = 0 ;
18848 PyObject * obj1 = 0 ;
18849 PyObject * obj2 = 0 ;
18850 PyObject * obj3 = 0 ;
18851 char * kwnames[] = {
18852 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18853 };
18854
18855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18857 if (!SWIG_IsOK(res1)) {
18858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18859 }
18860 arg1 = reinterpret_cast< wxDC * >(argp1);
18861 ecode2 = SWIG_AsVal_int(obj1, &val2);
18862 if (!SWIG_IsOK(ecode2)) {
18863 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18864 }
18865 arg2 = static_cast< int >(val2);
18866 ecode3 = SWIG_AsVal_int(obj2, &val3);
18867 if (!SWIG_IsOK(ecode3)) {
18868 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18869 }
18870 arg3 = static_cast< int >(val3);
18871 ecode4 = SWIG_AsVal_int(obj3, &val4);
18872 if (!SWIG_IsOK(ecode4)) {
18873 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18874 }
18875 arg4 = static_cast< int >(val4);
18876 {
18877 PyThreadState* __tstate = wxPyBeginAllowThreads();
18878 (arg1)->DrawCircle(arg2,arg3,arg4);
18879 wxPyEndAllowThreads(__tstate);
18880 if (PyErr_Occurred()) SWIG_fail;
18881 }
18882 resultobj = SWIG_Py_Void();
18883 return resultobj;
18884fail:
18885 return NULL;
18886}
18887
18888
18889SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18890 PyObject *resultobj = 0;
18891 wxDC *arg1 = (wxDC *) 0 ;
18892 wxPoint *arg2 = 0 ;
18893 int arg3 ;
18894 void *argp1 = 0 ;
18895 int res1 = 0 ;
18896 wxPoint temp2 ;
18897 int val3 ;
18898 int ecode3 = 0 ;
18899 PyObject * obj0 = 0 ;
18900 PyObject * obj1 = 0 ;
18901 PyObject * obj2 = 0 ;
18902 char * kwnames[] = {
18903 (char *) "self",(char *) "pt",(char *) "radius", NULL
18904 };
18905
18906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18908 if (!SWIG_IsOK(res1)) {
18909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18910 }
18911 arg1 = reinterpret_cast< wxDC * >(argp1);
18912 {
18913 arg2 = &temp2;
18914 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18915 }
18916 ecode3 = SWIG_AsVal_int(obj2, &val3);
18917 if (!SWIG_IsOK(ecode3)) {
18918 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
18919 }
18920 arg3 = static_cast< int >(val3);
18921 {
18922 PyThreadState* __tstate = wxPyBeginAllowThreads();
18923 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
18924 wxPyEndAllowThreads(__tstate);
18925 if (PyErr_Occurred()) SWIG_fail;
18926 }
18927 resultobj = SWIG_Py_Void();
18928 return resultobj;
18929fail:
18930 return NULL;
18931}
18932
18933
18934SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18935 PyObject *resultobj = 0;
18936 wxDC *arg1 = (wxDC *) 0 ;
18937 int arg2 ;
18938 int arg3 ;
18939 int arg4 ;
18940 int arg5 ;
18941 void *argp1 = 0 ;
18942 int res1 = 0 ;
18943 int val2 ;
18944 int ecode2 = 0 ;
18945 int val3 ;
18946 int ecode3 = 0 ;
18947 int val4 ;
18948 int ecode4 = 0 ;
18949 int val5 ;
18950 int ecode5 = 0 ;
18951 PyObject * obj0 = 0 ;
18952 PyObject * obj1 = 0 ;
18953 PyObject * obj2 = 0 ;
18954 PyObject * obj3 = 0 ;
18955 PyObject * obj4 = 0 ;
18956 char * kwnames[] = {
18957 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18958 };
18959
18960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18962 if (!SWIG_IsOK(res1)) {
18963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
18964 }
18965 arg1 = reinterpret_cast< wxDC * >(argp1);
18966 ecode2 = SWIG_AsVal_int(obj1, &val2);
18967 if (!SWIG_IsOK(ecode2)) {
18968 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
18969 }
18970 arg2 = static_cast< int >(val2);
18971 ecode3 = SWIG_AsVal_int(obj2, &val3);
18972 if (!SWIG_IsOK(ecode3)) {
18973 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
18974 }
18975 arg3 = static_cast< int >(val3);
18976 ecode4 = SWIG_AsVal_int(obj3, &val4);
18977 if (!SWIG_IsOK(ecode4)) {
18978 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
18979 }
18980 arg4 = static_cast< int >(val4);
18981 ecode5 = SWIG_AsVal_int(obj4, &val5);
18982 if (!SWIG_IsOK(ecode5)) {
18983 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
18984 }
18985 arg5 = static_cast< int >(val5);
18986 {
18987 PyThreadState* __tstate = wxPyBeginAllowThreads();
18988 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
18989 wxPyEndAllowThreads(__tstate);
18990 if (PyErr_Occurred()) SWIG_fail;
18991 }
18992 resultobj = SWIG_Py_Void();
18993 return resultobj;
18994fail:
18995 return NULL;
18996}
18997
18998
18999SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19000 PyObject *resultobj = 0;
19001 wxDC *arg1 = (wxDC *) 0 ;
19002 wxRect *arg2 = 0 ;
19003 void *argp1 = 0 ;
19004 int res1 = 0 ;
19005 wxRect temp2 ;
19006 PyObject * obj0 = 0 ;
19007 PyObject * obj1 = 0 ;
19008 char * kwnames[] = {
19009 (char *) "self",(char *) "rect", NULL
19010 };
19011
19012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19014 if (!SWIG_IsOK(res1)) {
19015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19016 }
19017 arg1 = reinterpret_cast< wxDC * >(argp1);
19018 {
19019 arg2 = &temp2;
19020 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19021 }
19022 {
19023 PyThreadState* __tstate = wxPyBeginAllowThreads();
19024 (arg1)->DrawEllipse((wxRect const &)*arg2);
19025 wxPyEndAllowThreads(__tstate);
19026 if (PyErr_Occurred()) SWIG_fail;
19027 }
19028 resultobj = SWIG_Py_Void();
19029 return resultobj;
19030fail:
19031 return NULL;
19032}
19033
19034
19035SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19036 PyObject *resultobj = 0;
19037 wxDC *arg1 = (wxDC *) 0 ;
19038 wxPoint *arg2 = 0 ;
19039 wxSize *arg3 = 0 ;
19040 void *argp1 = 0 ;
19041 int res1 = 0 ;
19042 wxPoint temp2 ;
19043 wxSize temp3 ;
19044 PyObject * obj0 = 0 ;
19045 PyObject * obj1 = 0 ;
19046 PyObject * obj2 = 0 ;
19047 char * kwnames[] = {
19048 (char *) "self",(char *) "pt",(char *) "sz", NULL
19049 };
19050
19051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19053 if (!SWIG_IsOK(res1)) {
19054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19055 }
19056 arg1 = reinterpret_cast< wxDC * >(argp1);
19057 {
19058 arg2 = &temp2;
19059 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19060 }
19061 {
19062 arg3 = &temp3;
19063 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19064 }
19065 {
19066 PyThreadState* __tstate = wxPyBeginAllowThreads();
19067 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19068 wxPyEndAllowThreads(__tstate);
19069 if (PyErr_Occurred()) SWIG_fail;
19070 }
19071 resultobj = SWIG_Py_Void();
19072 return resultobj;
19073fail:
19074 return NULL;
19075}
19076
19077
19078SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19079 PyObject *resultobj = 0;
19080 wxDC *arg1 = (wxDC *) 0 ;
19081 wxIcon *arg2 = 0 ;
19082 int arg3 ;
19083 int arg4 ;
19084 void *argp1 = 0 ;
19085 int res1 = 0 ;
19086 void *argp2 = 0 ;
19087 int res2 = 0 ;
19088 int val3 ;
19089 int ecode3 = 0 ;
19090 int val4 ;
19091 int ecode4 = 0 ;
19092 PyObject * obj0 = 0 ;
19093 PyObject * obj1 = 0 ;
19094 PyObject * obj2 = 0 ;
19095 PyObject * obj3 = 0 ;
19096 char * kwnames[] = {
19097 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19098 };
19099
19100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19102 if (!SWIG_IsOK(res1)) {
19103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19104 }
19105 arg1 = reinterpret_cast< wxDC * >(argp1);
19106 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19107 if (!SWIG_IsOK(res2)) {
19108 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19109 }
19110 if (!argp2) {
19111 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19112 }
19113 arg2 = reinterpret_cast< wxIcon * >(argp2);
19114 ecode3 = SWIG_AsVal_int(obj2, &val3);
19115 if (!SWIG_IsOK(ecode3)) {
19116 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19117 }
19118 arg3 = static_cast< int >(val3);
19119 ecode4 = SWIG_AsVal_int(obj3, &val4);
19120 if (!SWIG_IsOK(ecode4)) {
19121 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19122 }
19123 arg4 = static_cast< int >(val4);
19124 {
19125 PyThreadState* __tstate = wxPyBeginAllowThreads();
19126 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19127 wxPyEndAllowThreads(__tstate);
19128 if (PyErr_Occurred()) SWIG_fail;
19129 }
19130 resultobj = SWIG_Py_Void();
19131 return resultobj;
19132fail:
19133 return NULL;
19134}
19135
19136
19137SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19138 PyObject *resultobj = 0;
19139 wxDC *arg1 = (wxDC *) 0 ;
19140 wxIcon *arg2 = 0 ;
19141 wxPoint *arg3 = 0 ;
19142 void *argp1 = 0 ;
19143 int res1 = 0 ;
19144 void *argp2 = 0 ;
19145 int res2 = 0 ;
19146 wxPoint temp3 ;
19147 PyObject * obj0 = 0 ;
19148 PyObject * obj1 = 0 ;
19149 PyObject * obj2 = 0 ;
19150 char * kwnames[] = {
19151 (char *) "self",(char *) "icon",(char *) "pt", NULL
19152 };
19153
19154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19156 if (!SWIG_IsOK(res1)) {
19157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19158 }
19159 arg1 = reinterpret_cast< wxDC * >(argp1);
19160 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19161 if (!SWIG_IsOK(res2)) {
19162 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19163 }
19164 if (!argp2) {
19165 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19166 }
19167 arg2 = reinterpret_cast< wxIcon * >(argp2);
19168 {
19169 arg3 = &temp3;
19170 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19171 }
19172 {
19173 PyThreadState* __tstate = wxPyBeginAllowThreads();
19174 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19175 wxPyEndAllowThreads(__tstate);
19176 if (PyErr_Occurred()) SWIG_fail;
19177 }
19178 resultobj = SWIG_Py_Void();
19179 return resultobj;
19180fail:
19181 return NULL;
19182}
19183
19184
19185SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19186 PyObject *resultobj = 0;
19187 wxDC *arg1 = (wxDC *) 0 ;
19188 wxBitmap *arg2 = 0 ;
19189 int arg3 ;
19190 int arg4 ;
19191 bool arg5 = (bool) false ;
19192 void *argp1 = 0 ;
19193 int res1 = 0 ;
19194 void *argp2 = 0 ;
19195 int res2 = 0 ;
19196 int val3 ;
19197 int ecode3 = 0 ;
19198 int val4 ;
19199 int ecode4 = 0 ;
19200 bool val5 ;
19201 int ecode5 = 0 ;
19202 PyObject * obj0 = 0 ;
19203 PyObject * obj1 = 0 ;
19204 PyObject * obj2 = 0 ;
19205 PyObject * obj3 = 0 ;
19206 PyObject * obj4 = 0 ;
19207 char * kwnames[] = {
19208 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19209 };
19210
19211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19213 if (!SWIG_IsOK(res1)) {
19214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19215 }
19216 arg1 = reinterpret_cast< wxDC * >(argp1);
19217 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19218 if (!SWIG_IsOK(res2)) {
19219 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19220 }
19221 if (!argp2) {
19222 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19223 }
19224 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19225 ecode3 = SWIG_AsVal_int(obj2, &val3);
19226 if (!SWIG_IsOK(ecode3)) {
19227 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19228 }
19229 arg3 = static_cast< int >(val3);
19230 ecode4 = SWIG_AsVal_int(obj3, &val4);
19231 if (!SWIG_IsOK(ecode4)) {
19232 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19233 }
19234 arg4 = static_cast< int >(val4);
19235 if (obj4) {
19236 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19237 if (!SWIG_IsOK(ecode5)) {
19238 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19239 }
19240 arg5 = static_cast< bool >(val5);
19241 }
19242 {
19243 PyThreadState* __tstate = wxPyBeginAllowThreads();
19244 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19245 wxPyEndAllowThreads(__tstate);
19246 if (PyErr_Occurred()) SWIG_fail;
19247 }
19248 resultobj = SWIG_Py_Void();
19249 return resultobj;
19250fail:
19251 return NULL;
19252}
19253
19254
19255SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19256 PyObject *resultobj = 0;
19257 wxDC *arg1 = (wxDC *) 0 ;
19258 wxBitmap *arg2 = 0 ;
19259 wxPoint *arg3 = 0 ;
19260 bool arg4 = (bool) false ;
19261 void *argp1 = 0 ;
19262 int res1 = 0 ;
19263 void *argp2 = 0 ;
19264 int res2 = 0 ;
19265 wxPoint temp3 ;
19266 bool val4 ;
19267 int ecode4 = 0 ;
19268 PyObject * obj0 = 0 ;
19269 PyObject * obj1 = 0 ;
19270 PyObject * obj2 = 0 ;
19271 PyObject * obj3 = 0 ;
19272 char * kwnames[] = {
19273 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19274 };
19275
19276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19278 if (!SWIG_IsOK(res1)) {
19279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19280 }
19281 arg1 = reinterpret_cast< wxDC * >(argp1);
19282 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19283 if (!SWIG_IsOK(res2)) {
19284 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19285 }
19286 if (!argp2) {
19287 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19288 }
19289 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19290 {
19291 arg3 = &temp3;
19292 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19293 }
19294 if (obj3) {
19295 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19296 if (!SWIG_IsOK(ecode4)) {
19297 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19298 }
19299 arg4 = static_cast< bool >(val4);
19300 }
19301 {
19302 PyThreadState* __tstate = wxPyBeginAllowThreads();
19303 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19304 wxPyEndAllowThreads(__tstate);
19305 if (PyErr_Occurred()) SWIG_fail;
19306 }
19307 resultobj = SWIG_Py_Void();
19308 return resultobj;
19309fail:
19310 return NULL;
19311}
19312
19313
19314SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19315 PyObject *resultobj = 0;
19316 wxDC *arg1 = (wxDC *) 0 ;
19317 wxString *arg2 = 0 ;
19318 int arg3 ;
19319 int arg4 ;
19320 void *argp1 = 0 ;
19321 int res1 = 0 ;
19322 bool temp2 = false ;
19323 int val3 ;
19324 int ecode3 = 0 ;
19325 int val4 ;
19326 int ecode4 = 0 ;
19327 PyObject * obj0 = 0 ;
19328 PyObject * obj1 = 0 ;
19329 PyObject * obj2 = 0 ;
19330 PyObject * obj3 = 0 ;
19331 char * kwnames[] = {
19332 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19333 };
19334
19335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19337 if (!SWIG_IsOK(res1)) {
19338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19339 }
19340 arg1 = reinterpret_cast< wxDC * >(argp1);
19341 {
19342 arg2 = wxString_in_helper(obj1);
19343 if (arg2 == NULL) SWIG_fail;
19344 temp2 = true;
19345 }
19346 ecode3 = SWIG_AsVal_int(obj2, &val3);
19347 if (!SWIG_IsOK(ecode3)) {
19348 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19349 }
19350 arg3 = static_cast< int >(val3);
19351 ecode4 = SWIG_AsVal_int(obj3, &val4);
19352 if (!SWIG_IsOK(ecode4)) {
19353 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19354 }
19355 arg4 = static_cast< int >(val4);
19356 {
19357 PyThreadState* __tstate = wxPyBeginAllowThreads();
19358 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19359 wxPyEndAllowThreads(__tstate);
19360 if (PyErr_Occurred()) SWIG_fail;
19361 }
19362 resultobj = SWIG_Py_Void();
19363 {
19364 if (temp2)
19365 delete arg2;
19366 }
19367 return resultobj;
19368fail:
19369 {
19370 if (temp2)
19371 delete arg2;
19372 }
19373 return NULL;
19374}
19375
19376
19377SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19378 PyObject *resultobj = 0;
19379 wxDC *arg1 = (wxDC *) 0 ;
19380 wxString *arg2 = 0 ;
19381 wxPoint *arg3 = 0 ;
19382 void *argp1 = 0 ;
19383 int res1 = 0 ;
19384 bool temp2 = false ;
19385 wxPoint temp3 ;
19386 PyObject * obj0 = 0 ;
19387 PyObject * obj1 = 0 ;
19388 PyObject * obj2 = 0 ;
19389 char * kwnames[] = {
19390 (char *) "self",(char *) "text",(char *) "pt", NULL
19391 };
19392
19393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19395 if (!SWIG_IsOK(res1)) {
19396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19397 }
19398 arg1 = reinterpret_cast< wxDC * >(argp1);
19399 {
19400 arg2 = wxString_in_helper(obj1);
19401 if (arg2 == NULL) SWIG_fail;
19402 temp2 = true;
19403 }
19404 {
19405 arg3 = &temp3;
19406 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19407 }
19408 {
19409 PyThreadState* __tstate = wxPyBeginAllowThreads();
19410 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19411 wxPyEndAllowThreads(__tstate);
19412 if (PyErr_Occurred()) SWIG_fail;
19413 }
19414 resultobj = SWIG_Py_Void();
19415 {
19416 if (temp2)
19417 delete arg2;
19418 }
19419 return resultobj;
19420fail:
19421 {
19422 if (temp2)
19423 delete arg2;
19424 }
19425 return NULL;
19426}
19427
19428
19429SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19430 PyObject *resultobj = 0;
19431 wxDC *arg1 = (wxDC *) 0 ;
19432 wxString *arg2 = 0 ;
19433 int arg3 ;
19434 int arg4 ;
19435 double arg5 ;
19436 void *argp1 = 0 ;
19437 int res1 = 0 ;
19438 bool temp2 = false ;
19439 int val3 ;
19440 int ecode3 = 0 ;
19441 int val4 ;
19442 int ecode4 = 0 ;
19443 double val5 ;
19444 int ecode5 = 0 ;
19445 PyObject * obj0 = 0 ;
19446 PyObject * obj1 = 0 ;
19447 PyObject * obj2 = 0 ;
19448 PyObject * obj3 = 0 ;
19449 PyObject * obj4 = 0 ;
19450 char * kwnames[] = {
19451 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19452 };
19453
19454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19456 if (!SWIG_IsOK(res1)) {
19457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19458 }
19459 arg1 = reinterpret_cast< wxDC * >(argp1);
19460 {
19461 arg2 = wxString_in_helper(obj1);
19462 if (arg2 == NULL) SWIG_fail;
19463 temp2 = true;
19464 }
19465 ecode3 = SWIG_AsVal_int(obj2, &val3);
19466 if (!SWIG_IsOK(ecode3)) {
19467 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19468 }
19469 arg3 = static_cast< int >(val3);
19470 ecode4 = SWIG_AsVal_int(obj3, &val4);
19471 if (!SWIG_IsOK(ecode4)) {
19472 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19473 }
19474 arg4 = static_cast< int >(val4);
19475 ecode5 = SWIG_AsVal_double(obj4, &val5);
19476 if (!SWIG_IsOK(ecode5)) {
19477 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19478 }
19479 arg5 = static_cast< double >(val5);
19480 {
19481 PyThreadState* __tstate = wxPyBeginAllowThreads();
19482 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19483 wxPyEndAllowThreads(__tstate);
19484 if (PyErr_Occurred()) SWIG_fail;
19485 }
19486 resultobj = SWIG_Py_Void();
19487 {
19488 if (temp2)
19489 delete arg2;
19490 }
19491 return resultobj;
19492fail:
19493 {
19494 if (temp2)
19495 delete arg2;
19496 }
19497 return NULL;
19498}
19499
19500
19501SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19502 PyObject *resultobj = 0;
19503 wxDC *arg1 = (wxDC *) 0 ;
19504 wxString *arg2 = 0 ;
19505 wxPoint *arg3 = 0 ;
19506 double arg4 ;
19507 void *argp1 = 0 ;
19508 int res1 = 0 ;
19509 bool temp2 = false ;
19510 wxPoint temp3 ;
19511 double val4 ;
19512 int ecode4 = 0 ;
19513 PyObject * obj0 = 0 ;
19514 PyObject * obj1 = 0 ;
19515 PyObject * obj2 = 0 ;
19516 PyObject * obj3 = 0 ;
19517 char * kwnames[] = {
19518 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19519 };
19520
19521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19523 if (!SWIG_IsOK(res1)) {
19524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19525 }
19526 arg1 = reinterpret_cast< wxDC * >(argp1);
19527 {
19528 arg2 = wxString_in_helper(obj1);
19529 if (arg2 == NULL) SWIG_fail;
19530 temp2 = true;
19531 }
19532 {
19533 arg3 = &temp3;
19534 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19535 }
19536 ecode4 = SWIG_AsVal_double(obj3, &val4);
19537 if (!SWIG_IsOK(ecode4)) {
19538 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19539 }
19540 arg4 = static_cast< double >(val4);
19541 {
19542 PyThreadState* __tstate = wxPyBeginAllowThreads();
19543 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19544 wxPyEndAllowThreads(__tstate);
19545 if (PyErr_Occurred()) SWIG_fail;
19546 }
19547 resultobj = SWIG_Py_Void();
19548 {
19549 if (temp2)
19550 delete arg2;
19551 }
19552 return resultobj;
19553fail:
19554 {
19555 if (temp2)
19556 delete arg2;
19557 }
19558 return NULL;
19559}
19560
19561
19562SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19563 PyObject *resultobj = 0;
19564 wxDC *arg1 = (wxDC *) 0 ;
19565 int arg2 ;
19566 int arg3 ;
19567 int arg4 ;
19568 int arg5 ;
19569 wxDC *arg6 = (wxDC *) 0 ;
19570 int arg7 ;
19571 int arg8 ;
19572 int arg9 = (int) wxCOPY ;
19573 bool arg10 = (bool) false ;
19574 int arg11 = (int) -1 ;
19575 int arg12 = (int) -1 ;
19576 bool result;
19577 void *argp1 = 0 ;
19578 int res1 = 0 ;
19579 int val2 ;
19580 int ecode2 = 0 ;
19581 int val3 ;
19582 int ecode3 = 0 ;
19583 int val4 ;
19584 int ecode4 = 0 ;
19585 int val5 ;
19586 int ecode5 = 0 ;
19587 void *argp6 = 0 ;
19588 int res6 = 0 ;
19589 int val7 ;
19590 int ecode7 = 0 ;
19591 int val8 ;
19592 int ecode8 = 0 ;
19593 int val9 ;
19594 int ecode9 = 0 ;
19595 bool val10 ;
19596 int ecode10 = 0 ;
19597 int val11 ;
19598 int ecode11 = 0 ;
19599 int val12 ;
19600 int ecode12 = 0 ;
19601 PyObject * obj0 = 0 ;
19602 PyObject * obj1 = 0 ;
19603 PyObject * obj2 = 0 ;
19604 PyObject * obj3 = 0 ;
19605 PyObject * obj4 = 0 ;
19606 PyObject * obj5 = 0 ;
19607 PyObject * obj6 = 0 ;
19608 PyObject * obj7 = 0 ;
19609 PyObject * obj8 = 0 ;
19610 PyObject * obj9 = 0 ;
19611 PyObject * obj10 = 0 ;
19612 PyObject * obj11 = 0 ;
19613 char * kwnames[] = {
19614 (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
19615 };
19616
19617 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;
19618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19619 if (!SWIG_IsOK(res1)) {
19620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19621 }
19622 arg1 = reinterpret_cast< wxDC * >(argp1);
19623 ecode2 = SWIG_AsVal_int(obj1, &val2);
19624 if (!SWIG_IsOK(ecode2)) {
19625 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19626 }
19627 arg2 = static_cast< int >(val2);
19628 ecode3 = SWIG_AsVal_int(obj2, &val3);
19629 if (!SWIG_IsOK(ecode3)) {
19630 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19631 }
19632 arg3 = static_cast< int >(val3);
19633 ecode4 = SWIG_AsVal_int(obj3, &val4);
19634 if (!SWIG_IsOK(ecode4)) {
19635 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19636 }
19637 arg4 = static_cast< int >(val4);
19638 ecode5 = SWIG_AsVal_int(obj4, &val5);
19639 if (!SWIG_IsOK(ecode5)) {
19640 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19641 }
19642 arg5 = static_cast< int >(val5);
19643 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19644 if (!SWIG_IsOK(res6)) {
19645 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19646 }
19647 arg6 = reinterpret_cast< wxDC * >(argp6);
19648 ecode7 = SWIG_AsVal_int(obj6, &val7);
19649 if (!SWIG_IsOK(ecode7)) {
19650 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19651 }
19652 arg7 = static_cast< int >(val7);
19653 ecode8 = SWIG_AsVal_int(obj7, &val8);
19654 if (!SWIG_IsOK(ecode8)) {
19655 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19656 }
19657 arg8 = static_cast< int >(val8);
19658 if (obj8) {
19659 ecode9 = SWIG_AsVal_int(obj8, &val9);
19660 if (!SWIG_IsOK(ecode9)) {
19661 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19662 }
19663 arg9 = static_cast< int >(val9);
19664 }
19665 if (obj9) {
19666 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19667 if (!SWIG_IsOK(ecode10)) {
19668 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19669 }
19670 arg10 = static_cast< bool >(val10);
19671 }
19672 if (obj10) {
19673 ecode11 = SWIG_AsVal_int(obj10, &val11);
19674 if (!SWIG_IsOK(ecode11)) {
19675 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19676 }
19677 arg11 = static_cast< int >(val11);
19678 }
19679 if (obj11) {
19680 ecode12 = SWIG_AsVal_int(obj11, &val12);
19681 if (!SWIG_IsOK(ecode12)) {
19682 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19683 }
19684 arg12 = static_cast< int >(val12);
19685 }
19686 {
19687 PyThreadState* __tstate = wxPyBeginAllowThreads();
19688 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19689 wxPyEndAllowThreads(__tstate);
19690 if (PyErr_Occurred()) SWIG_fail;
19691 }
19692 {
19693 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19694 }
19695 return resultobj;
19696fail:
19697 return NULL;
19698}
19699
19700
19701SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19702 PyObject *resultobj = 0;
19703 wxDC *arg1 = (wxDC *) 0 ;
19704 wxPoint *arg2 = 0 ;
19705 wxSize *arg3 = 0 ;
19706 wxDC *arg4 = (wxDC *) 0 ;
19707 wxPoint *arg5 = 0 ;
19708 int arg6 = (int) wxCOPY ;
19709 bool arg7 = (bool) false ;
19710 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19711 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19712 bool result;
19713 void *argp1 = 0 ;
19714 int res1 = 0 ;
19715 wxPoint temp2 ;
19716 wxSize temp3 ;
19717 void *argp4 = 0 ;
19718 int res4 = 0 ;
19719 wxPoint temp5 ;
19720 int val6 ;
19721 int ecode6 = 0 ;
19722 bool val7 ;
19723 int ecode7 = 0 ;
19724 wxPoint temp8 ;
19725 PyObject * obj0 = 0 ;
19726 PyObject * obj1 = 0 ;
19727 PyObject * obj2 = 0 ;
19728 PyObject * obj3 = 0 ;
19729 PyObject * obj4 = 0 ;
19730 PyObject * obj5 = 0 ;
19731 PyObject * obj6 = 0 ;
19732 PyObject * obj7 = 0 ;
19733 char * kwnames[] = {
19734 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19735 };
19736
19737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19739 if (!SWIG_IsOK(res1)) {
19740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19741 }
19742 arg1 = reinterpret_cast< wxDC * >(argp1);
19743 {
19744 arg2 = &temp2;
19745 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19746 }
19747 {
19748 arg3 = &temp3;
19749 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19750 }
19751 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19752 if (!SWIG_IsOK(res4)) {
19753 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19754 }
19755 arg4 = reinterpret_cast< wxDC * >(argp4);
19756 {
19757 arg5 = &temp5;
19758 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19759 }
19760 if (obj5) {
19761 ecode6 = SWIG_AsVal_int(obj5, &val6);
19762 if (!SWIG_IsOK(ecode6)) {
19763 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19764 }
19765 arg6 = static_cast< int >(val6);
19766 }
19767 if (obj6) {
19768 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19769 if (!SWIG_IsOK(ecode7)) {
19770 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19771 }
19772 arg7 = static_cast< bool >(val7);
19773 }
19774 if (obj7) {
36ed4f51 19775 {
1bd55598
RD
19776 arg8 = &temp8;
19777 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
36ed4f51 19778 }
1bd55598
RD
19779 }
19780 {
19781 PyThreadState* __tstate = wxPyBeginAllowThreads();
19782 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19783 wxPyEndAllowThreads(__tstate);
19784 if (PyErr_Occurred()) SWIG_fail;
19785 }
19786 {
19787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19788 }
19789 return resultobj;
19790fail:
19791 return NULL;
19792}
19793
19794
8f514ab4
RD
19795SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19796 PyObject *resultobj = 0;
19797 wxDC *arg1 = (wxDC *) 0 ;
19798 wxRect *arg2 = (wxRect *) NULL ;
19799 SwigValueWrapper<wxBitmap > result;
19800 void *argp1 = 0 ;
19801 int res1 = 0 ;
19802 void *argp2 = 0 ;
19803 int res2 = 0 ;
19804 PyObject * obj0 = 0 ;
19805 PyObject * obj1 = 0 ;
19806 char * kwnames[] = {
19807 (char *) "self",(char *) "subrect", NULL
19808 };
19809
19810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
19811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19812 if (!SWIG_IsOK(res1)) {
19813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
19814 }
19815 arg1 = reinterpret_cast< wxDC * >(argp1);
19816 if (obj1) {
19817 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
19818 if (!SWIG_IsOK(res2)) {
19819 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'");
19820 }
19821 arg2 = reinterpret_cast< wxRect * >(argp2);
19822 }
19823 {
19824 PyThreadState* __tstate = wxPyBeginAllowThreads();
19825 result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2);
19826 wxPyEndAllowThreads(__tstate);
19827 if (PyErr_Occurred()) SWIG_fail;
19828 }
19829 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
19830 return resultobj;
19831fail:
19832 return NULL;
19833}
19834
19835
1bd55598
RD
19836SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19837 PyObject *resultobj = 0;
19838 wxDC *arg1 = (wxDC *) 0 ;
19839 int arg2 ;
19840 int arg3 ;
19841 int arg4 ;
19842 int arg5 ;
19843 void *argp1 = 0 ;
19844 int res1 = 0 ;
19845 int val2 ;
19846 int ecode2 = 0 ;
19847 int val3 ;
19848 int ecode3 = 0 ;
19849 int val4 ;
19850 int ecode4 = 0 ;
19851 int val5 ;
19852 int ecode5 = 0 ;
19853 PyObject * obj0 = 0 ;
19854 PyObject * obj1 = 0 ;
19855 PyObject * obj2 = 0 ;
19856 PyObject * obj3 = 0 ;
19857 PyObject * obj4 = 0 ;
19858 char * kwnames[] = {
19859 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19860 };
19861
19862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19864 if (!SWIG_IsOK(res1)) {
19865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19866 }
19867 arg1 = reinterpret_cast< wxDC * >(argp1);
19868 ecode2 = SWIG_AsVal_int(obj1, &val2);
19869 if (!SWIG_IsOK(ecode2)) {
19870 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19871 }
19872 arg2 = static_cast< int >(val2);
19873 ecode3 = SWIG_AsVal_int(obj2, &val3);
19874 if (!SWIG_IsOK(ecode3)) {
19875 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19876 }
19877 arg3 = static_cast< int >(val3);
19878 ecode4 = SWIG_AsVal_int(obj3, &val4);
19879 if (!SWIG_IsOK(ecode4)) {
19880 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19881 }
19882 arg4 = static_cast< int >(val4);
19883 ecode5 = SWIG_AsVal_int(obj4, &val5);
19884 if (!SWIG_IsOK(ecode5)) {
19885 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19886 }
19887 arg5 = static_cast< int >(val5);
19888 {
19889 PyThreadState* __tstate = wxPyBeginAllowThreads();
19890 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
19891 wxPyEndAllowThreads(__tstate);
19892 if (PyErr_Occurred()) SWIG_fail;
19893 }
19894 resultobj = SWIG_Py_Void();
19895 return resultobj;
19896fail:
19897 return NULL;
19898}
19899
19900
19901SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19902 PyObject *resultobj = 0;
19903 wxDC *arg1 = (wxDC *) 0 ;
19904 wxPoint *arg2 = 0 ;
19905 wxSize *arg3 = 0 ;
19906 void *argp1 = 0 ;
19907 int res1 = 0 ;
19908 wxPoint temp2 ;
19909 wxSize temp3 ;
19910 PyObject * obj0 = 0 ;
19911 PyObject * obj1 = 0 ;
19912 PyObject * obj2 = 0 ;
19913 char * kwnames[] = {
19914 (char *) "self",(char *) "pt",(char *) "sz", NULL
19915 };
19916
19917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19919 if (!SWIG_IsOK(res1)) {
19920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19921 }
19922 arg1 = reinterpret_cast< wxDC * >(argp1);
19923 {
19924 arg2 = &temp2;
19925 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19926 }
19927 {
19928 arg3 = &temp3;
19929 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19930 }
19931 {
19932 PyThreadState* __tstate = wxPyBeginAllowThreads();
19933 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
19934 wxPyEndAllowThreads(__tstate);
19935 if (PyErr_Occurred()) SWIG_fail;
19936 }
19937 resultobj = SWIG_Py_Void();
19938 return resultobj;
19939fail:
19940 return NULL;
19941}
19942
19943
19944SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19945 PyObject *resultobj = 0;
19946 wxDC *arg1 = (wxDC *) 0 ;
19947 wxRegion *arg2 = 0 ;
19948 void *argp1 = 0 ;
19949 int res1 = 0 ;
19950 void *argp2 = 0 ;
19951 int res2 = 0 ;
19952 PyObject * obj0 = 0 ;
19953 PyObject * obj1 = 0 ;
19954 char * kwnames[] = {
19955 (char *) "self",(char *) "region", NULL
19956 };
19957
19958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
19959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19960 if (!SWIG_IsOK(res1)) {
19961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19962 }
19963 arg1 = reinterpret_cast< wxDC * >(argp1);
19964 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
19965 if (!SWIG_IsOK(res2)) {
19966 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19967 }
19968 if (!argp2) {
19969 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19970 }
19971 arg2 = reinterpret_cast< wxRegion * >(argp2);
19972 {
19973 PyThreadState* __tstate = wxPyBeginAllowThreads();
19974 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
19975 wxPyEndAllowThreads(__tstate);
19976 if (PyErr_Occurred()) SWIG_fail;
19977 }
19978 resultobj = SWIG_Py_Void();
19979 return resultobj;
19980fail:
19981 return NULL;
19982}
19983
19984
19985SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19986 PyObject *resultobj = 0;
19987 wxDC *arg1 = (wxDC *) 0 ;
19988 wxRect *arg2 = 0 ;
19989 void *argp1 = 0 ;
19990 int res1 = 0 ;
19991 wxRect temp2 ;
19992 PyObject * obj0 = 0 ;
19993 PyObject * obj1 = 0 ;
19994 char * kwnames[] = {
19995 (char *) "self",(char *) "rect", NULL
19996 };
19997
19998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
19999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20000 if (!SWIG_IsOK(res1)) {
20001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20002 }
20003 arg1 = reinterpret_cast< wxDC * >(argp1);
20004 {
20005 arg2 = &temp2;
20006 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20007 }
20008 {
20009 PyThreadState* __tstate = wxPyBeginAllowThreads();
20010 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20011 wxPyEndAllowThreads(__tstate);
20012 if (PyErr_Occurred()) SWIG_fail;
20013 }
20014 resultobj = SWIG_Py_Void();
20015 return resultobj;
20016fail:
20017 return NULL;
20018}
20019
20020
20021SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20022 PyObject *resultobj = 0;
20023 wxDC *arg1 = (wxDC *) 0 ;
20024 int arg2 ;
20025 wxPoint *arg3 = (wxPoint *) 0 ;
20026 int arg4 = (int) 0 ;
20027 int arg5 = (int) 0 ;
20028 void *argp1 = 0 ;
20029 int res1 = 0 ;
20030 int val4 ;
20031 int ecode4 = 0 ;
20032 int val5 ;
20033 int ecode5 = 0 ;
20034 PyObject * obj0 = 0 ;
20035 PyObject * obj1 = 0 ;
20036 PyObject * obj2 = 0 ;
20037 PyObject * obj3 = 0 ;
20038 char * kwnames[] = {
20039 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20040 };
20041
20042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20044 if (!SWIG_IsOK(res1)) {
20045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20046 }
20047 arg1 = reinterpret_cast< wxDC * >(argp1);
20048 {
20049 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20050 if (arg3 == NULL) SWIG_fail;
20051 }
20052 if (obj2) {
20053 ecode4 = SWIG_AsVal_int(obj2, &val4);
20054 if (!SWIG_IsOK(ecode4)) {
20055 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20056 }
20057 arg4 = static_cast< int >(val4);
20058 }
20059 if (obj3) {
20060 ecode5 = SWIG_AsVal_int(obj3, &val5);
20061 if (!SWIG_IsOK(ecode5)) {
20062 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20063 }
20064 arg5 = static_cast< int >(val5);
20065 }
20066 {
20067 PyThreadState* __tstate = wxPyBeginAllowThreads();
20068 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20069 wxPyEndAllowThreads(__tstate);
20070 if (PyErr_Occurred()) SWIG_fail;
20071 }
20072 resultobj = SWIG_Py_Void();
20073 {
20074 if (arg3) delete [] arg3;
20075 }
20076 return resultobj;
20077fail:
20078 {
20079 if (arg3) delete [] arg3;
20080 }
20081 return NULL;
20082}
20083
20084
20085SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20086 PyObject *resultobj = 0;
20087 wxDC *arg1 = (wxDC *) 0 ;
20088 int arg2 ;
20089 wxPoint *arg3 = (wxPoint *) 0 ;
20090 int arg4 = (int) 0 ;
20091 int arg5 = (int) 0 ;
20092 int arg6 = (int) wxODDEVEN_RULE ;
20093 void *argp1 = 0 ;
20094 int res1 = 0 ;
20095 int val4 ;
20096 int ecode4 = 0 ;
20097 int val5 ;
20098 int ecode5 = 0 ;
20099 int val6 ;
20100 int ecode6 = 0 ;
20101 PyObject * obj0 = 0 ;
20102 PyObject * obj1 = 0 ;
20103 PyObject * obj2 = 0 ;
20104 PyObject * obj3 = 0 ;
20105 PyObject * obj4 = 0 ;
20106 char * kwnames[] = {
20107 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20108 };
20109
20110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20112 if (!SWIG_IsOK(res1)) {
20113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20114 }
20115 arg1 = reinterpret_cast< wxDC * >(argp1);
20116 {
20117 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20118 if (arg3 == NULL) SWIG_fail;
20119 }
20120 if (obj2) {
20121 ecode4 = SWIG_AsVal_int(obj2, &val4);
20122 if (!SWIG_IsOK(ecode4)) {
20123 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20124 }
20125 arg4 = static_cast< int >(val4);
20126 }
20127 if (obj3) {
20128 ecode5 = SWIG_AsVal_int(obj3, &val5);
20129 if (!SWIG_IsOK(ecode5)) {
20130 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20131 }
20132 arg5 = static_cast< int >(val5);
20133 }
20134 if (obj4) {
20135 ecode6 = SWIG_AsVal_int(obj4, &val6);
20136 if (!SWIG_IsOK(ecode6)) {
20137 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20138 }
20139 arg6 = static_cast< int >(val6);
20140 }
20141 {
20142 PyThreadState* __tstate = wxPyBeginAllowThreads();
20143 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20144 wxPyEndAllowThreads(__tstate);
20145 if (PyErr_Occurred()) SWIG_fail;
20146 }
20147 resultobj = SWIG_Py_Void();
20148 {
20149 if (arg3) delete [] arg3;
20150 }
20151 return resultobj;
20152fail:
20153 {
20154 if (arg3) delete [] arg3;
20155 }
20156 return NULL;
20157}
20158
20159
20160SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20161 PyObject *resultobj = 0;
20162 wxDC *arg1 = (wxDC *) 0 ;
20163 wxString *arg2 = 0 ;
20164 wxRect *arg3 = 0 ;
20165 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20166 int arg5 = (int) -1 ;
20167 void *argp1 = 0 ;
20168 int res1 = 0 ;
20169 bool temp2 = false ;
20170 wxRect temp3 ;
20171 int val4 ;
20172 int ecode4 = 0 ;
20173 int val5 ;
20174 int ecode5 = 0 ;
20175 PyObject * obj0 = 0 ;
20176 PyObject * obj1 = 0 ;
20177 PyObject * obj2 = 0 ;
20178 PyObject * obj3 = 0 ;
20179 PyObject * obj4 = 0 ;
20180 char * kwnames[] = {
20181 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20182 };
20183
20184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20186 if (!SWIG_IsOK(res1)) {
20187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20188 }
20189 arg1 = reinterpret_cast< wxDC * >(argp1);
20190 {
20191 arg2 = wxString_in_helper(obj1);
20192 if (arg2 == NULL) SWIG_fail;
20193 temp2 = true;
20194 }
20195 {
20196 arg3 = &temp3;
20197 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20198 }
20199 if (obj3) {
20200 ecode4 = SWIG_AsVal_int(obj3, &val4);
20201 if (!SWIG_IsOK(ecode4)) {
20202 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20203 }
20204 arg4 = static_cast< int >(val4);
20205 }
20206 if (obj4) {
20207 ecode5 = SWIG_AsVal_int(obj4, &val5);
20208 if (!SWIG_IsOK(ecode5)) {
20209 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20210 }
20211 arg5 = static_cast< int >(val5);
20212 }
20213 {
20214 PyThreadState* __tstate = wxPyBeginAllowThreads();
20215 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20216 wxPyEndAllowThreads(__tstate);
20217 if (PyErr_Occurred()) SWIG_fail;
20218 }
20219 resultobj = SWIG_Py_Void();
20220 {
20221 if (temp2)
20222 delete arg2;
20223 }
20224 return resultobj;
20225fail:
20226 {
20227 if (temp2)
20228 delete arg2;
20229 }
20230 return NULL;
20231}
20232
20233
20234SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20235 PyObject *resultobj = 0;
20236 wxDC *arg1 = (wxDC *) 0 ;
20237 wxString *arg2 = 0 ;
20238 wxBitmap *arg3 = 0 ;
20239 wxRect *arg4 = 0 ;
20240 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20241 int arg6 = (int) -1 ;
20242 wxRect result;
20243 void *argp1 = 0 ;
20244 int res1 = 0 ;
20245 bool temp2 = false ;
20246 void *argp3 = 0 ;
20247 int res3 = 0 ;
20248 wxRect temp4 ;
20249 int val5 ;
20250 int ecode5 = 0 ;
20251 int val6 ;
20252 int ecode6 = 0 ;
20253 PyObject * obj0 = 0 ;
20254 PyObject * obj1 = 0 ;
20255 PyObject * obj2 = 0 ;
20256 PyObject * obj3 = 0 ;
20257 PyObject * obj4 = 0 ;
20258 PyObject * obj5 = 0 ;
20259 char * kwnames[] = {
20260 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20261 };
20262
20263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20265 if (!SWIG_IsOK(res1)) {
20266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20267 }
20268 arg1 = reinterpret_cast< wxDC * >(argp1);
20269 {
20270 arg2 = wxString_in_helper(obj1);
20271 if (arg2 == NULL) SWIG_fail;
20272 temp2 = true;
20273 }
20274 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20275 if (!SWIG_IsOK(res3)) {
20276 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20277 }
20278 if (!argp3) {
20279 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20280 }
20281 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20282 {
20283 arg4 = &temp4;
20284 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20285 }
20286 if (obj4) {
20287 ecode5 = SWIG_AsVal_int(obj4, &val5);
20288 if (!SWIG_IsOK(ecode5)) {
20289 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20290 }
20291 arg5 = static_cast< int >(val5);
20292 }
20293 if (obj5) {
20294 ecode6 = SWIG_AsVal_int(obj5, &val6);
20295 if (!SWIG_IsOK(ecode6)) {
20296 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20297 }
20298 arg6 = static_cast< int >(val6);
20299 }
20300 {
20301 PyThreadState* __tstate = wxPyBeginAllowThreads();
20302 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20303 wxPyEndAllowThreads(__tstate);
20304 if (PyErr_Occurred()) SWIG_fail;
20305 }
20306 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20307 {
20308 if (temp2)
20309 delete arg2;
20310 }
20311 return resultobj;
20312fail:
20313 {
20314 if (temp2)
20315 delete arg2;
20316 }
20317 return NULL;
20318}
20319
20320
20321SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20322 PyObject *resultobj = 0;
20323 wxDC *arg1 = (wxDC *) 0 ;
20324 int arg2 ;
20325 wxPoint *arg3 = (wxPoint *) 0 ;
20326 void *argp1 = 0 ;
20327 int res1 = 0 ;
20328 PyObject * obj0 = 0 ;
20329 PyObject * obj1 = 0 ;
20330 char * kwnames[] = {
20331 (char *) "self",(char *) "points", NULL
20332 };
20333
20334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20336 if (!SWIG_IsOK(res1)) {
20337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20338 }
20339 arg1 = reinterpret_cast< wxDC * >(argp1);
20340 {
20341 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20342 if (arg3 == NULL) SWIG_fail;
20343 }
20344 {
20345 PyThreadState* __tstate = wxPyBeginAllowThreads();
20346 (arg1)->DrawSpline(arg2,arg3);
20347 wxPyEndAllowThreads(__tstate);
20348 if (PyErr_Occurred()) SWIG_fail;
20349 }
20350 resultobj = SWIG_Py_Void();
20351 {
20352 if (arg3) delete [] arg3;
20353 }
20354 return resultobj;
20355fail:
20356 {
20357 if (arg3) delete [] arg3;
20358 }
20359 return NULL;
20360}
20361
20362
20363SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20364 PyObject *resultobj = 0;
20365 wxDC *arg1 = (wxDC *) 0 ;
20366 void *argp1 = 0 ;
20367 int res1 = 0 ;
20368 PyObject *swig_obj[1] ;
20369
20370 if (!args) SWIG_fail;
20371 swig_obj[0] = args;
20372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20373 if (!SWIG_IsOK(res1)) {
20374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20375 }
20376 arg1 = reinterpret_cast< wxDC * >(argp1);
20377 {
20378 PyThreadState* __tstate = wxPyBeginAllowThreads();
20379 (arg1)->Clear();
20380 wxPyEndAllowThreads(__tstate);
20381 if (PyErr_Occurred()) SWIG_fail;
20382 }
20383 resultobj = SWIG_Py_Void();
20384 return resultobj;
20385fail:
20386 return NULL;
20387}
20388
20389
20390SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20391 PyObject *resultobj = 0;
20392 wxDC *arg1 = (wxDC *) 0 ;
20393 wxString *arg2 = 0 ;
20394 bool result;
20395 void *argp1 = 0 ;
20396 int res1 = 0 ;
20397 bool temp2 = false ;
20398 PyObject * obj0 = 0 ;
20399 PyObject * obj1 = 0 ;
20400 char * kwnames[] = {
20401 (char *) "self",(char *) "message", NULL
20402 };
20403
20404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20406 if (!SWIG_IsOK(res1)) {
20407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20408 }
20409 arg1 = reinterpret_cast< wxDC * >(argp1);
20410 {
20411 arg2 = wxString_in_helper(obj1);
20412 if (arg2 == NULL) SWIG_fail;
20413 temp2 = true;
20414 }
20415 {
20416 PyThreadState* __tstate = wxPyBeginAllowThreads();
20417 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20418 wxPyEndAllowThreads(__tstate);
20419 if (PyErr_Occurred()) SWIG_fail;
20420 }
20421 {
20422 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20423 }
20424 {
20425 if (temp2)
20426 delete arg2;
20427 }
20428 return resultobj;
20429fail:
20430 {
20431 if (temp2)
20432 delete arg2;
20433 }
20434 return NULL;
20435}
20436
20437
20438SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20439 PyObject *resultobj = 0;
20440 wxDC *arg1 = (wxDC *) 0 ;
20441 void *argp1 = 0 ;
20442 int res1 = 0 ;
20443 PyObject *swig_obj[1] ;
20444
20445 if (!args) SWIG_fail;
20446 swig_obj[0] = args;
20447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20448 if (!SWIG_IsOK(res1)) {
20449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20450 }
20451 arg1 = reinterpret_cast< wxDC * >(argp1);
20452 {
20453 PyThreadState* __tstate = wxPyBeginAllowThreads();
20454 (arg1)->EndDoc();
20455 wxPyEndAllowThreads(__tstate);
20456 if (PyErr_Occurred()) SWIG_fail;
20457 }
20458 resultobj = SWIG_Py_Void();
20459 return resultobj;
20460fail:
20461 return NULL;
20462}
20463
20464
20465SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20466 PyObject *resultobj = 0;
20467 wxDC *arg1 = (wxDC *) 0 ;
20468 void *argp1 = 0 ;
20469 int res1 = 0 ;
20470 PyObject *swig_obj[1] ;
20471
20472 if (!args) SWIG_fail;
20473 swig_obj[0] = args;
20474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20475 if (!SWIG_IsOK(res1)) {
20476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20477 }
20478 arg1 = reinterpret_cast< wxDC * >(argp1);
20479 {
20480 PyThreadState* __tstate = wxPyBeginAllowThreads();
20481 (arg1)->StartPage();
20482 wxPyEndAllowThreads(__tstate);
20483 if (PyErr_Occurred()) SWIG_fail;
20484 }
20485 resultobj = SWIG_Py_Void();
20486 return resultobj;
20487fail:
20488 return NULL;
20489}
20490
20491
20492SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20493 PyObject *resultobj = 0;
20494 wxDC *arg1 = (wxDC *) 0 ;
20495 void *argp1 = 0 ;
20496 int res1 = 0 ;
20497 PyObject *swig_obj[1] ;
20498
20499 if (!args) SWIG_fail;
20500 swig_obj[0] = args;
20501 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20502 if (!SWIG_IsOK(res1)) {
20503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20504 }
20505 arg1 = reinterpret_cast< wxDC * >(argp1);
20506 {
20507 PyThreadState* __tstate = wxPyBeginAllowThreads();
20508 (arg1)->EndPage();
20509 wxPyEndAllowThreads(__tstate);
20510 if (PyErr_Occurred()) SWIG_fail;
20511 }
20512 resultobj = SWIG_Py_Void();
20513 return resultobj;
20514fail:
20515 return NULL;
20516}
20517
20518
20519SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20520 PyObject *resultobj = 0;
20521 wxDC *arg1 = (wxDC *) 0 ;
20522 wxFont *arg2 = 0 ;
20523 void *argp1 = 0 ;
20524 int res1 = 0 ;
20525 void *argp2 = 0 ;
20526 int res2 = 0 ;
20527 PyObject * obj0 = 0 ;
20528 PyObject * obj1 = 0 ;
20529 char * kwnames[] = {
20530 (char *) "self",(char *) "font", NULL
20531 };
20532
20533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20535 if (!SWIG_IsOK(res1)) {
20536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20537 }
20538 arg1 = reinterpret_cast< wxDC * >(argp1);
20539 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20540 if (!SWIG_IsOK(res2)) {
20541 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20542 }
20543 if (!argp2) {
20544 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20545 }
20546 arg2 = reinterpret_cast< wxFont * >(argp2);
20547 {
20548 PyThreadState* __tstate = wxPyBeginAllowThreads();
20549 (arg1)->SetFont((wxFont const &)*arg2);
20550 wxPyEndAllowThreads(__tstate);
20551 if (PyErr_Occurred()) SWIG_fail;
20552 }
20553 resultobj = SWIG_Py_Void();
20554 return resultobj;
20555fail:
20556 return NULL;
20557}
20558
20559
20560SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20561 PyObject *resultobj = 0;
20562 wxDC *arg1 = (wxDC *) 0 ;
20563 wxPen *arg2 = 0 ;
20564 void *argp1 = 0 ;
20565 int res1 = 0 ;
20566 void *argp2 = 0 ;
20567 int res2 = 0 ;
20568 PyObject * obj0 = 0 ;
20569 PyObject * obj1 = 0 ;
20570 char * kwnames[] = {
20571 (char *) "self",(char *) "pen", NULL
20572 };
20573
20574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20576 if (!SWIG_IsOK(res1)) {
20577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20578 }
20579 arg1 = reinterpret_cast< wxDC * >(argp1);
20580 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20581 if (!SWIG_IsOK(res2)) {
20582 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20583 }
20584 if (!argp2) {
20585 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20586 }
20587 arg2 = reinterpret_cast< wxPen * >(argp2);
20588 {
20589 PyThreadState* __tstate = wxPyBeginAllowThreads();
20590 (arg1)->SetPen((wxPen const &)*arg2);
20591 wxPyEndAllowThreads(__tstate);
20592 if (PyErr_Occurred()) SWIG_fail;
20593 }
20594 resultobj = SWIG_Py_Void();
20595 return resultobj;
20596fail:
20597 return NULL;
20598}
20599
20600
20601SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20602 PyObject *resultobj = 0;
20603 wxDC *arg1 = (wxDC *) 0 ;
20604 wxBrush *arg2 = 0 ;
20605 void *argp1 = 0 ;
20606 int res1 = 0 ;
20607 void *argp2 = 0 ;
20608 int res2 = 0 ;
20609 PyObject * obj0 = 0 ;
20610 PyObject * obj1 = 0 ;
20611 char * kwnames[] = {
20612 (char *) "self",(char *) "brush", NULL
20613 };
20614
20615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20617 if (!SWIG_IsOK(res1)) {
20618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20619 }
20620 arg1 = reinterpret_cast< wxDC * >(argp1);
20621 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20622 if (!SWIG_IsOK(res2)) {
20623 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20624 }
20625 if (!argp2) {
20626 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20627 }
20628 arg2 = reinterpret_cast< wxBrush * >(argp2);
20629 {
20630 PyThreadState* __tstate = wxPyBeginAllowThreads();
20631 (arg1)->SetBrush((wxBrush const &)*arg2);
20632 wxPyEndAllowThreads(__tstate);
20633 if (PyErr_Occurred()) SWIG_fail;
20634 }
20635 resultobj = SWIG_Py_Void();
20636 return resultobj;
20637fail:
20638 return NULL;
20639}
20640
20641
20642SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20643 PyObject *resultobj = 0;
20644 wxDC *arg1 = (wxDC *) 0 ;
20645 wxBrush *arg2 = 0 ;
20646 void *argp1 = 0 ;
20647 int res1 = 0 ;
20648 void *argp2 = 0 ;
20649 int res2 = 0 ;
20650 PyObject * obj0 = 0 ;
20651 PyObject * obj1 = 0 ;
20652 char * kwnames[] = {
20653 (char *) "self",(char *) "brush", NULL
20654 };
20655
20656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20658 if (!SWIG_IsOK(res1)) {
20659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20660 }
20661 arg1 = reinterpret_cast< wxDC * >(argp1);
20662 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20663 if (!SWIG_IsOK(res2)) {
20664 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20665 }
20666 if (!argp2) {
20667 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20668 }
20669 arg2 = reinterpret_cast< wxBrush * >(argp2);
20670 {
20671 PyThreadState* __tstate = wxPyBeginAllowThreads();
20672 (arg1)->SetBackground((wxBrush const &)*arg2);
20673 wxPyEndAllowThreads(__tstate);
20674 if (PyErr_Occurred()) SWIG_fail;
20675 }
20676 resultobj = SWIG_Py_Void();
20677 return resultobj;
20678fail:
20679 return NULL;
20680}
20681
20682
20683SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20684 PyObject *resultobj = 0;
20685 wxDC *arg1 = (wxDC *) 0 ;
20686 int arg2 ;
20687 void *argp1 = 0 ;
20688 int res1 = 0 ;
20689 int val2 ;
20690 int ecode2 = 0 ;
20691 PyObject * obj0 = 0 ;
20692 PyObject * obj1 = 0 ;
20693 char * kwnames[] = {
20694 (char *) "self",(char *) "mode", NULL
20695 };
20696
20697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20699 if (!SWIG_IsOK(res1)) {
20700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20701 }
20702 arg1 = reinterpret_cast< wxDC * >(argp1);
20703 ecode2 = SWIG_AsVal_int(obj1, &val2);
20704 if (!SWIG_IsOK(ecode2)) {
20705 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20706 }
20707 arg2 = static_cast< int >(val2);
20708 {
20709 PyThreadState* __tstate = wxPyBeginAllowThreads();
20710 (arg1)->SetBackgroundMode(arg2);
20711 wxPyEndAllowThreads(__tstate);
20712 if (PyErr_Occurred()) SWIG_fail;
20713 }
20714 resultobj = SWIG_Py_Void();
20715 return resultobj;
20716fail:
20717 return NULL;
20718}
20719
20720
20721SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20722 PyObject *resultobj = 0;
20723 wxDC *arg1 = (wxDC *) 0 ;
20724 wxPalette *arg2 = 0 ;
20725 void *argp1 = 0 ;
20726 int res1 = 0 ;
20727 void *argp2 = 0 ;
20728 int res2 = 0 ;
20729 PyObject * obj0 = 0 ;
20730 PyObject * obj1 = 0 ;
20731 char * kwnames[] = {
20732 (char *) "self",(char *) "palette", NULL
20733 };
20734
20735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20737 if (!SWIG_IsOK(res1)) {
20738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20739 }
20740 arg1 = reinterpret_cast< wxDC * >(argp1);
20741 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20742 if (!SWIG_IsOK(res2)) {
20743 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20744 }
20745 if (!argp2) {
20746 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20747 }
20748 arg2 = reinterpret_cast< wxPalette * >(argp2);
20749 {
20750 PyThreadState* __tstate = wxPyBeginAllowThreads();
20751 (arg1)->SetPalette((wxPalette const &)*arg2);
20752 wxPyEndAllowThreads(__tstate);
20753 if (PyErr_Occurred()) SWIG_fail;
20754 }
20755 resultobj = SWIG_Py_Void();
20756 return resultobj;
20757fail:
20758 return NULL;
20759}
20760
20761
20762SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20763 PyObject *resultobj = 0;
20764 wxDC *arg1 = (wxDC *) 0 ;
20765 void *argp1 = 0 ;
20766 int res1 = 0 ;
20767 PyObject *swig_obj[1] ;
20768
20769 if (!args) SWIG_fail;
20770 swig_obj[0] = args;
20771 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20772 if (!SWIG_IsOK(res1)) {
20773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20774 }
20775 arg1 = reinterpret_cast< wxDC * >(argp1);
20776 {
20777 PyThreadState* __tstate = wxPyBeginAllowThreads();
20778 (arg1)->DestroyClippingRegion();
20779 wxPyEndAllowThreads(__tstate);
20780 if (PyErr_Occurred()) SWIG_fail;
20781 }
20782 resultobj = SWIG_Py_Void();
20783 return resultobj;
20784fail:
20785 return NULL;
20786}
20787
20788
20789SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20790 PyObject *resultobj = 0;
20791 wxDC *arg1 = (wxDC *) 0 ;
20792 int *arg2 = (int *) 0 ;
20793 int *arg3 = (int *) 0 ;
20794 int *arg4 = (int *) 0 ;
20795 int *arg5 = (int *) 0 ;
20796 void *argp1 = 0 ;
20797 int res1 = 0 ;
20798 int temp2 ;
20799 int res2 = SWIG_TMPOBJ ;
20800 int temp3 ;
20801 int res3 = SWIG_TMPOBJ ;
20802 int temp4 ;
20803 int res4 = SWIG_TMPOBJ ;
20804 int temp5 ;
20805 int res5 = SWIG_TMPOBJ ;
20806 PyObject *swig_obj[1] ;
20807
20808 arg2 = &temp2;
20809 arg3 = &temp3;
20810 arg4 = &temp4;
20811 arg5 = &temp5;
20812 if (!args) SWIG_fail;
20813 swig_obj[0] = args;
20814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20815 if (!SWIG_IsOK(res1)) {
20816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20817 }
20818 arg1 = reinterpret_cast< wxDC * >(argp1);
20819 {
20820 PyThreadState* __tstate = wxPyBeginAllowThreads();
20821 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20822 wxPyEndAllowThreads(__tstate);
20823 if (PyErr_Occurred()) SWIG_fail;
20824 }
20825 resultobj = SWIG_Py_Void();
20826 if (SWIG_IsTmpObj(res2)) {
20827 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20828 } else {
20829 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20830 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20831 }
20832 if (SWIG_IsTmpObj(res3)) {
20833 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20834 } else {
20835 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20836 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20837 }
20838 if (SWIG_IsTmpObj(res4)) {
20839 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20840 } else {
20841 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20842 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20843 }
20844 if (SWIG_IsTmpObj(res5)) {
20845 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20846 } else {
20847 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20848 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20849 }
20850 return resultobj;
20851fail:
20852 return NULL;
20853}
20854
20855
20856SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20857 PyObject *resultobj = 0;
20858 wxDC *arg1 = (wxDC *) 0 ;
20859 wxRect result;
20860 void *argp1 = 0 ;
20861 int res1 = 0 ;
20862 PyObject *swig_obj[1] ;
20863
20864 if (!args) SWIG_fail;
20865 swig_obj[0] = args;
20866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20867 if (!SWIG_IsOK(res1)) {
20868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20869 }
20870 arg1 = reinterpret_cast< wxDC * >(argp1);
20871 {
20872 PyThreadState* __tstate = wxPyBeginAllowThreads();
20873 result = wxDC_GetClippingRect(arg1);
20874 wxPyEndAllowThreads(__tstate);
20875 if (PyErr_Occurred()) SWIG_fail;
20876 }
20877 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20878 return resultobj;
20879fail:
20880 return NULL;
20881}
20882
20883
20884SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20885 PyObject *resultobj = 0;
20886 wxDC *arg1 = (wxDC *) 0 ;
20887 int result;
20888 void *argp1 = 0 ;
20889 int res1 = 0 ;
20890 PyObject *swig_obj[1] ;
20891
20892 if (!args) SWIG_fail;
20893 swig_obj[0] = args;
20894 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20895 if (!SWIG_IsOK(res1)) {
20896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20897 }
20898 arg1 = reinterpret_cast< wxDC * >(argp1);
20899 {
20900 PyThreadState* __tstate = wxPyBeginAllowThreads();
20901 result = (int)((wxDC const *)arg1)->GetCharHeight();
20902 wxPyEndAllowThreads(__tstate);
20903 if (PyErr_Occurred()) SWIG_fail;
20904 }
20905 resultobj = SWIG_From_int(static_cast< int >(result));
20906 return resultobj;
20907fail:
20908 return NULL;
20909}
20910
20911
20912SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20913 PyObject *resultobj = 0;
20914 wxDC *arg1 = (wxDC *) 0 ;
20915 int result;
20916 void *argp1 = 0 ;
20917 int res1 = 0 ;
20918 PyObject *swig_obj[1] ;
20919
20920 if (!args) SWIG_fail;
20921 swig_obj[0] = args;
20922 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20923 if (!SWIG_IsOK(res1)) {
20924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
20925 }
20926 arg1 = reinterpret_cast< wxDC * >(argp1);
20927 {
20928 PyThreadState* __tstate = wxPyBeginAllowThreads();
20929 result = (int)((wxDC const *)arg1)->GetCharWidth();
20930 wxPyEndAllowThreads(__tstate);
20931 if (PyErr_Occurred()) SWIG_fail;
20932 }
20933 resultobj = SWIG_From_int(static_cast< int >(result));
20934 return resultobj;
20935fail:
20936 return NULL;
20937}
20938
20939
20940SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20941 PyObject *resultobj = 0;
20942 wxDC *arg1 = (wxDC *) 0 ;
20943 wxString *arg2 = 0 ;
20944 int *arg3 = (int *) 0 ;
20945 int *arg4 = (int *) 0 ;
20946 void *argp1 = 0 ;
20947 int res1 = 0 ;
20948 bool temp2 = false ;
20949 int temp3 ;
20950 int res3 = SWIG_TMPOBJ ;
20951 int temp4 ;
20952 int res4 = SWIG_TMPOBJ ;
20953 PyObject * obj0 = 0 ;
20954 PyObject * obj1 = 0 ;
20955 char * kwnames[] = {
20956 (char *) "self",(char *) "string", NULL
20957 };
20958
20959 arg3 = &temp3;
20960 arg4 = &temp4;
20961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
20962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20963 if (!SWIG_IsOK(res1)) {
20964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20965 }
20966 arg1 = reinterpret_cast< wxDC * >(argp1);
20967 {
20968 arg2 = wxString_in_helper(obj1);
20969 if (arg2 == NULL) SWIG_fail;
20970 temp2 = true;
20971 }
20972 {
20973 PyThreadState* __tstate = wxPyBeginAllowThreads();
20974 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
20975 wxPyEndAllowThreads(__tstate);
20976 if (PyErr_Occurred()) SWIG_fail;
20977 }
20978 resultobj = SWIG_Py_Void();
20979 if (SWIG_IsTmpObj(res3)) {
20980 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20981 } else {
20982 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20983 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20984 }
20985 if (SWIG_IsTmpObj(res4)) {
20986 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20987 } else {
20988 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20989 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20990 }
20991 {
20992 if (temp2)
20993 delete arg2;
20994 }
20995 return resultobj;
20996fail:
20997 {
20998 if (temp2)
20999 delete arg2;
21000 }
21001 return NULL;
21002}
21003
21004
21005SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21006 PyObject *resultobj = 0;
21007 wxDC *arg1 = (wxDC *) 0 ;
21008 wxString *arg2 = 0 ;
21009 int *arg3 = (int *) 0 ;
21010 int *arg4 = (int *) 0 ;
21011 int *arg5 = (int *) 0 ;
21012 int *arg6 = (int *) 0 ;
21013 wxFont *arg7 = (wxFont *) NULL ;
21014 void *argp1 = 0 ;
21015 int res1 = 0 ;
21016 bool temp2 = false ;
21017 int temp3 ;
21018 int res3 = SWIG_TMPOBJ ;
21019 int temp4 ;
21020 int res4 = SWIG_TMPOBJ ;
21021 int temp5 ;
21022 int res5 = SWIG_TMPOBJ ;
21023 int temp6 ;
21024 int res6 = SWIG_TMPOBJ ;
21025 void *argp7 = 0 ;
21026 int res7 = 0 ;
21027 PyObject * obj0 = 0 ;
21028 PyObject * obj1 = 0 ;
21029 PyObject * obj2 = 0 ;
21030 char * kwnames[] = {
21031 (char *) "self",(char *) "string",(char *) "font", NULL
21032 };
21033
21034 arg3 = &temp3;
21035 arg4 = &temp4;
21036 arg5 = &temp5;
21037 arg6 = &temp6;
21038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21040 if (!SWIG_IsOK(res1)) {
21041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21042 }
21043 arg1 = reinterpret_cast< wxDC * >(argp1);
21044 {
21045 arg2 = wxString_in_helper(obj1);
21046 if (arg2 == NULL) SWIG_fail;
21047 temp2 = true;
21048 }
21049 if (obj2) {
21050 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21051 if (!SWIG_IsOK(res7)) {
21052 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
36ed4f51 21053 }
1bd55598
RD
21054 arg7 = reinterpret_cast< wxFont * >(argp7);
21055 }
21056 {
21057 PyThreadState* __tstate = wxPyBeginAllowThreads();
21058 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21059 wxPyEndAllowThreads(__tstate);
21060 if (PyErr_Occurred()) SWIG_fail;
21061 }
21062 resultobj = SWIG_Py_Void();
21063 if (SWIG_IsTmpObj(res3)) {
21064 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21065 } else {
21066 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21067 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21068 }
21069 if (SWIG_IsTmpObj(res4)) {
21070 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21071 } else {
21072 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21073 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21074 }
21075 if (SWIG_IsTmpObj(res5)) {
21076 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21077 } else {
21078 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21079 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21080 }
21081 if (SWIG_IsTmpObj(res6)) {
21082 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21083 } else {
21084 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21085 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21086 }
21087 {
21088 if (temp2)
21089 delete arg2;
21090 }
21091 return resultobj;
21092fail:
21093 {
21094 if (temp2)
21095 delete arg2;
21096 }
21097 return NULL;
21098}
21099
21100
21101SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21102 PyObject *resultobj = 0;
21103 wxDC *arg1 = (wxDC *) 0 ;
21104 wxString *arg2 = 0 ;
21105 int *arg3 = (int *) 0 ;
21106 int *arg4 = (int *) 0 ;
21107 int *arg5 = (int *) 0 ;
21108 wxFont *arg6 = (wxFont *) NULL ;
21109 void *argp1 = 0 ;
21110 int res1 = 0 ;
21111 bool temp2 = false ;
21112 int temp3 ;
21113 int res3 = SWIG_TMPOBJ ;
21114 int temp4 ;
21115 int res4 = SWIG_TMPOBJ ;
21116 int temp5 ;
21117 int res5 = SWIG_TMPOBJ ;
21118 void *argp6 = 0 ;
21119 int res6 = 0 ;
21120 PyObject * obj0 = 0 ;
21121 PyObject * obj1 = 0 ;
21122 PyObject * obj2 = 0 ;
21123 char * kwnames[] = {
21124 (char *) "self",(char *) "text",(char *) "font", NULL
21125 };
21126
21127 arg3 = &temp3;
21128 arg4 = &temp4;
21129 arg5 = &temp5;
21130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21132 if (!SWIG_IsOK(res1)) {
21133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21134 }
21135 arg1 = reinterpret_cast< wxDC * >(argp1);
21136 {
21137 arg2 = wxString_in_helper(obj1);
21138 if (arg2 == NULL) SWIG_fail;
21139 temp2 = true;
21140 }
21141 if (obj2) {
21142 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21143 if (!SWIG_IsOK(res6)) {
21144 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
36ed4f51 21145 }
1bd55598
RD
21146 arg6 = reinterpret_cast< wxFont * >(argp6);
21147 }
21148 {
21149 PyThreadState* __tstate = wxPyBeginAllowThreads();
21150 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21151 wxPyEndAllowThreads(__tstate);
21152 if (PyErr_Occurred()) SWIG_fail;
21153 }
21154 resultobj = SWIG_Py_Void();
21155 if (SWIG_IsTmpObj(res3)) {
21156 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21157 } else {
21158 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21159 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21160 }
21161 if (SWIG_IsTmpObj(res4)) {
21162 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21163 } else {
21164 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21165 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21166 }
21167 if (SWIG_IsTmpObj(res5)) {
21168 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21169 } else {
21170 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21171 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21172 }
21173 {
21174 if (temp2)
21175 delete arg2;
21176 }
21177 return resultobj;
21178fail:
21179 {
21180 if (temp2)
21181 delete arg2;
21182 }
21183 return NULL;
21184}
21185
21186
21187SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21188 PyObject *resultobj = 0;
21189 wxDC *arg1 = (wxDC *) 0 ;
21190 wxString *arg2 = 0 ;
21191 wxArrayInt result;
21192 void *argp1 = 0 ;
21193 int res1 = 0 ;
21194 bool temp2 = false ;
21195 PyObject * obj0 = 0 ;
21196 PyObject * obj1 = 0 ;
21197 char * kwnames[] = {
21198 (char *) "self",(char *) "text", NULL
21199 };
21200
21201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21203 if (!SWIG_IsOK(res1)) {
21204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21205 }
21206 arg1 = reinterpret_cast< wxDC * >(argp1);
21207 {
21208 arg2 = wxString_in_helper(obj1);
21209 if (arg2 == NULL) SWIG_fail;
21210 temp2 = true;
21211 }
21212 {
21213 PyThreadState* __tstate = wxPyBeginAllowThreads();
21214 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21215 wxPyEndAllowThreads(__tstate);
21216 if (PyErr_Occurred()) SWIG_fail;
21217 }
21218 {
b39fe951 21219 resultobj = wxArrayInt2PyList_helper(result);
1bd55598
RD
21220 }
21221 {
21222 if (temp2)
21223 delete arg2;
21224 }
21225 return resultobj;
21226fail:
21227 {
21228 if (temp2)
21229 delete arg2;
21230 }
21231 return NULL;
21232}
21233
21234
21235SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21236 PyObject *resultobj = 0;
21237 wxDC *arg1 = (wxDC *) 0 ;
21238 wxSize result;
21239 void *argp1 = 0 ;
21240 int res1 = 0 ;
21241 PyObject *swig_obj[1] ;
21242
21243 if (!args) SWIG_fail;
21244 swig_obj[0] = args;
21245 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21246 if (!SWIG_IsOK(res1)) {
21247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21248 }
21249 arg1 = reinterpret_cast< wxDC * >(argp1);
21250 {
21251 PyThreadState* __tstate = wxPyBeginAllowThreads();
21252 result = (arg1)->GetSize();
21253 wxPyEndAllowThreads(__tstate);
21254 if (PyErr_Occurred()) SWIG_fail;
21255 }
21256 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21257 return resultobj;
21258fail:
21259 return NULL;
21260}
21261
21262
21263SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21264 PyObject *resultobj = 0;
21265 wxDC *arg1 = (wxDC *) 0 ;
21266 int *arg2 = (int *) 0 ;
21267 int *arg3 = (int *) 0 ;
21268 void *argp1 = 0 ;
21269 int res1 = 0 ;
21270 int temp2 ;
21271 int res2 = SWIG_TMPOBJ ;
21272 int temp3 ;
21273 int res3 = SWIG_TMPOBJ ;
21274 PyObject *swig_obj[1] ;
21275
21276 arg2 = &temp2;
21277 arg3 = &temp3;
21278 if (!args) SWIG_fail;
21279 swig_obj[0] = args;
21280 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21281 if (!SWIG_IsOK(res1)) {
21282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21283 }
21284 arg1 = reinterpret_cast< wxDC * >(argp1);
21285 {
21286 PyThreadState* __tstate = wxPyBeginAllowThreads();
21287 (arg1)->GetSize(arg2,arg3);
21288 wxPyEndAllowThreads(__tstate);
21289 if (PyErr_Occurred()) SWIG_fail;
21290 }
21291 resultobj = SWIG_Py_Void();
21292 if (SWIG_IsTmpObj(res2)) {
21293 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21294 } else {
21295 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21296 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21297 }
21298 if (SWIG_IsTmpObj(res3)) {
21299 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21300 } else {
21301 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21302 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21303 }
21304 return resultobj;
21305fail:
21306 return NULL;
21307}
21308
21309
21310SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21311 PyObject *resultobj = 0;
21312 wxDC *arg1 = (wxDC *) 0 ;
21313 wxSize result;
21314 void *argp1 = 0 ;
21315 int res1 = 0 ;
21316 PyObject *swig_obj[1] ;
21317
21318 if (!args) SWIG_fail;
21319 swig_obj[0] = args;
21320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21321 if (!SWIG_IsOK(res1)) {
21322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21323 }
21324 arg1 = reinterpret_cast< wxDC * >(argp1);
21325 {
21326 PyThreadState* __tstate = wxPyBeginAllowThreads();
21327 result = ((wxDC const *)arg1)->GetSizeMM();
21328 wxPyEndAllowThreads(__tstate);
21329 if (PyErr_Occurred()) SWIG_fail;
21330 }
21331 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21332 return resultobj;
21333fail:
21334 return NULL;
21335}
21336
21337
21338SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21339 PyObject *resultobj = 0;
21340 wxDC *arg1 = (wxDC *) 0 ;
21341 int *arg2 = (int *) 0 ;
21342 int *arg3 = (int *) 0 ;
21343 void *argp1 = 0 ;
21344 int res1 = 0 ;
21345 int temp2 ;
21346 int res2 = SWIG_TMPOBJ ;
21347 int temp3 ;
21348 int res3 = SWIG_TMPOBJ ;
21349 PyObject *swig_obj[1] ;
21350
21351 arg2 = &temp2;
21352 arg3 = &temp3;
21353 if (!args) SWIG_fail;
21354 swig_obj[0] = args;
21355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21356 if (!SWIG_IsOK(res1)) {
21357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21358 }
21359 arg1 = reinterpret_cast< wxDC * >(argp1);
21360 {
21361 PyThreadState* __tstate = wxPyBeginAllowThreads();
21362 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21363 wxPyEndAllowThreads(__tstate);
21364 if (PyErr_Occurred()) SWIG_fail;
21365 }
21366 resultobj = SWIG_Py_Void();
21367 if (SWIG_IsTmpObj(res2)) {
21368 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21369 } else {
21370 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21371 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21372 }
21373 if (SWIG_IsTmpObj(res3)) {
21374 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21375 } else {
21376 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21377 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21378 }
21379 return resultobj;
21380fail:
21381 return NULL;
21382}
21383
21384
21385SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21386 PyObject *resultobj = 0;
21387 wxDC *arg1 = (wxDC *) 0 ;
21388 int arg2 ;
21389 int result;
21390 void *argp1 = 0 ;
21391 int res1 = 0 ;
21392 int val2 ;
21393 int ecode2 = 0 ;
21394 PyObject * obj0 = 0 ;
21395 PyObject * obj1 = 0 ;
21396 char * kwnames[] = {
21397 (char *) "self",(char *) "x", NULL
21398 };
21399
21400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21402 if (!SWIG_IsOK(res1)) {
21403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21404 }
21405 arg1 = reinterpret_cast< wxDC * >(argp1);
21406 ecode2 = SWIG_AsVal_int(obj1, &val2);
21407 if (!SWIG_IsOK(ecode2)) {
21408 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21409 }
21410 arg2 = static_cast< int >(val2);
21411 {
21412 PyThreadState* __tstate = wxPyBeginAllowThreads();
21413 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21414 wxPyEndAllowThreads(__tstate);
21415 if (PyErr_Occurred()) SWIG_fail;
21416 }
21417 resultobj = SWIG_From_int(static_cast< int >(result));
21418 return resultobj;
21419fail:
21420 return NULL;
21421}
21422
21423
21424SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21425 PyObject *resultobj = 0;
21426 wxDC *arg1 = (wxDC *) 0 ;
21427 int arg2 ;
21428 int result;
21429 void *argp1 = 0 ;
21430 int res1 = 0 ;
21431 int val2 ;
21432 int ecode2 = 0 ;
21433 PyObject * obj0 = 0 ;
21434 PyObject * obj1 = 0 ;
21435 char * kwnames[] = {
21436 (char *) "self",(char *) "y", NULL
21437 };
21438
21439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21441 if (!SWIG_IsOK(res1)) {
21442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21443 }
21444 arg1 = reinterpret_cast< wxDC * >(argp1);
21445 ecode2 = SWIG_AsVal_int(obj1, &val2);
21446 if (!SWIG_IsOK(ecode2)) {
21447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21448 }
21449 arg2 = static_cast< int >(val2);
21450 {
21451 PyThreadState* __tstate = wxPyBeginAllowThreads();
21452 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21453 wxPyEndAllowThreads(__tstate);
21454 if (PyErr_Occurred()) SWIG_fail;
21455 }
21456 resultobj = SWIG_From_int(static_cast< int >(result));
21457 return resultobj;
21458fail:
21459 return NULL;
21460}
21461
21462
21463SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21464 PyObject *resultobj = 0;
21465 wxDC *arg1 = (wxDC *) 0 ;
21466 int arg2 ;
21467 int result;
21468 void *argp1 = 0 ;
21469 int res1 = 0 ;
21470 int val2 ;
21471 int ecode2 = 0 ;
21472 PyObject * obj0 = 0 ;
21473 PyObject * obj1 = 0 ;
21474 char * kwnames[] = {
21475 (char *) "self",(char *) "x", NULL
21476 };
21477
21478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21480 if (!SWIG_IsOK(res1)) {
21481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21482 }
21483 arg1 = reinterpret_cast< wxDC * >(argp1);
21484 ecode2 = SWIG_AsVal_int(obj1, &val2);
21485 if (!SWIG_IsOK(ecode2)) {
21486 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21487 }
21488 arg2 = static_cast< int >(val2);
21489 {
21490 PyThreadState* __tstate = wxPyBeginAllowThreads();
21491 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21492 wxPyEndAllowThreads(__tstate);
21493 if (PyErr_Occurred()) SWIG_fail;
21494 }
21495 resultobj = SWIG_From_int(static_cast< int >(result));
21496 return resultobj;
21497fail:
21498 return NULL;
21499}
21500
21501
21502SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21503 PyObject *resultobj = 0;
21504 wxDC *arg1 = (wxDC *) 0 ;
21505 int arg2 ;
21506 int result;
21507 void *argp1 = 0 ;
21508 int res1 = 0 ;
21509 int val2 ;
21510 int ecode2 = 0 ;
21511 PyObject * obj0 = 0 ;
21512 PyObject * obj1 = 0 ;
21513 char * kwnames[] = {
21514 (char *) "self",(char *) "y", NULL
21515 };
21516
21517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21519 if (!SWIG_IsOK(res1)) {
21520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21521 }
21522 arg1 = reinterpret_cast< wxDC * >(argp1);
21523 ecode2 = SWIG_AsVal_int(obj1, &val2);
21524 if (!SWIG_IsOK(ecode2)) {
21525 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21526 }
21527 arg2 = static_cast< int >(val2);
21528 {
21529 PyThreadState* __tstate = wxPyBeginAllowThreads();
21530 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21531 wxPyEndAllowThreads(__tstate);
21532 if (PyErr_Occurred()) SWIG_fail;
21533 }
21534 resultobj = SWIG_From_int(static_cast< int >(result));
21535 return resultobj;
21536fail:
21537 return NULL;
21538}
21539
21540
21541SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21542 PyObject *resultobj = 0;
21543 wxDC *arg1 = (wxDC *) 0 ;
21544 int arg2 ;
21545 int result;
21546 void *argp1 = 0 ;
21547 int res1 = 0 ;
21548 int val2 ;
21549 int ecode2 = 0 ;
21550 PyObject * obj0 = 0 ;
21551 PyObject * obj1 = 0 ;
21552 char * kwnames[] = {
21553 (char *) "self",(char *) "x", NULL
21554 };
21555
21556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21558 if (!SWIG_IsOK(res1)) {
21559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21560 }
21561 arg1 = reinterpret_cast< wxDC * >(argp1);
21562 ecode2 = SWIG_AsVal_int(obj1, &val2);
21563 if (!SWIG_IsOK(ecode2)) {
21564 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21565 }
21566 arg2 = static_cast< int >(val2);
21567 {
21568 PyThreadState* __tstate = wxPyBeginAllowThreads();
21569 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21570 wxPyEndAllowThreads(__tstate);
21571 if (PyErr_Occurred()) SWIG_fail;
21572 }
21573 resultobj = SWIG_From_int(static_cast< int >(result));
21574 return resultobj;
21575fail:
21576 return NULL;
21577}
21578
21579
21580SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21581 PyObject *resultobj = 0;
21582 wxDC *arg1 = (wxDC *) 0 ;
21583 int arg2 ;
21584 int result;
21585 void *argp1 = 0 ;
21586 int res1 = 0 ;
21587 int val2 ;
21588 int ecode2 = 0 ;
21589 PyObject * obj0 = 0 ;
21590 PyObject * obj1 = 0 ;
21591 char * kwnames[] = {
21592 (char *) "self",(char *) "y", NULL
21593 };
21594
21595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21597 if (!SWIG_IsOK(res1)) {
21598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21599 }
21600 arg1 = reinterpret_cast< wxDC * >(argp1);
21601 ecode2 = SWIG_AsVal_int(obj1, &val2);
21602 if (!SWIG_IsOK(ecode2)) {
21603 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21604 }
21605 arg2 = static_cast< int >(val2);
21606 {
21607 PyThreadState* __tstate = wxPyBeginAllowThreads();
21608 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21609 wxPyEndAllowThreads(__tstate);
21610 if (PyErr_Occurred()) SWIG_fail;
21611 }
21612 resultobj = SWIG_From_int(static_cast< int >(result));
21613 return resultobj;
21614fail:
21615 return NULL;
21616}
21617
21618
21619SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21620 PyObject *resultobj = 0;
21621 wxDC *arg1 = (wxDC *) 0 ;
21622 int arg2 ;
21623 int result;
21624 void *argp1 = 0 ;
21625 int res1 = 0 ;
21626 int val2 ;
21627 int ecode2 = 0 ;
21628 PyObject * obj0 = 0 ;
21629 PyObject * obj1 = 0 ;
21630 char * kwnames[] = {
21631 (char *) "self",(char *) "x", NULL
21632 };
21633
21634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21636 if (!SWIG_IsOK(res1)) {
21637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21638 }
21639 arg1 = reinterpret_cast< wxDC * >(argp1);
21640 ecode2 = SWIG_AsVal_int(obj1, &val2);
21641 if (!SWIG_IsOK(ecode2)) {
21642 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21643 }
21644 arg2 = static_cast< int >(val2);
21645 {
21646 PyThreadState* __tstate = wxPyBeginAllowThreads();
21647 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21648 wxPyEndAllowThreads(__tstate);
21649 if (PyErr_Occurred()) SWIG_fail;
21650 }
21651 resultobj = SWIG_From_int(static_cast< int >(result));
21652 return resultobj;
21653fail:
21654 return NULL;
21655}
21656
21657
21658SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21659 PyObject *resultobj = 0;
21660 wxDC *arg1 = (wxDC *) 0 ;
21661 int arg2 ;
21662 int result;
21663 void *argp1 = 0 ;
21664 int res1 = 0 ;
21665 int val2 ;
21666 int ecode2 = 0 ;
21667 PyObject * obj0 = 0 ;
21668 PyObject * obj1 = 0 ;
21669 char * kwnames[] = {
21670 (char *) "self",(char *) "y", NULL
21671 };
21672
21673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21675 if (!SWIG_IsOK(res1)) {
21676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21677 }
21678 arg1 = reinterpret_cast< wxDC * >(argp1);
21679 ecode2 = SWIG_AsVal_int(obj1, &val2);
21680 if (!SWIG_IsOK(ecode2)) {
21681 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21682 }
21683 arg2 = static_cast< int >(val2);
21684 {
21685 PyThreadState* __tstate = wxPyBeginAllowThreads();
21686 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21687 wxPyEndAllowThreads(__tstate);
21688 if (PyErr_Occurred()) SWIG_fail;
21689 }
21690 resultobj = SWIG_From_int(static_cast< int >(result));
21691 return resultobj;
21692fail:
21693 return NULL;
21694}
21695
21696
21697SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21698 PyObject *resultobj = 0;
21699 wxDC *arg1 = (wxDC *) 0 ;
21700 bool result;
21701 void *argp1 = 0 ;
21702 int res1 = 0 ;
21703 PyObject *swig_obj[1] ;
21704
21705 if (!args) SWIG_fail;
21706 swig_obj[0] = args;
21707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21708 if (!SWIG_IsOK(res1)) {
21709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21710 }
21711 arg1 = reinterpret_cast< wxDC * >(argp1);
21712 {
21713 PyThreadState* __tstate = wxPyBeginAllowThreads();
21714 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21715 wxPyEndAllowThreads(__tstate);
21716 if (PyErr_Occurred()) SWIG_fail;
21717 }
21718 {
21719 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21720 }
21721 return resultobj;
21722fail:
21723 return NULL;
21724}
21725
21726
21727SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21728 PyObject *resultobj = 0;
21729 wxDC *arg1 = (wxDC *) 0 ;
21730 bool result;
21731 void *argp1 = 0 ;
21732 int res1 = 0 ;
21733 PyObject *swig_obj[1] ;
21734
21735 if (!args) SWIG_fail;
21736 swig_obj[0] = args;
21737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21738 if (!SWIG_IsOK(res1)) {
21739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21740 }
21741 arg1 = reinterpret_cast< wxDC * >(argp1);
21742 {
21743 PyThreadState* __tstate = wxPyBeginAllowThreads();
21744 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21745 wxPyEndAllowThreads(__tstate);
21746 if (PyErr_Occurred()) SWIG_fail;
21747 }
21748 {
21749 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21750 }
21751 return resultobj;
21752fail:
21753 return NULL;
21754}
21755
21756
21757SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21758 PyObject *resultobj = 0;
21759 wxDC *arg1 = (wxDC *) 0 ;
21760 int result;
21761 void *argp1 = 0 ;
21762 int res1 = 0 ;
21763 PyObject *swig_obj[1] ;
21764
21765 if (!args) SWIG_fail;
21766 swig_obj[0] = args;
21767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21768 if (!SWIG_IsOK(res1)) {
21769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21770 }
21771 arg1 = reinterpret_cast< wxDC * >(argp1);
21772 {
21773 PyThreadState* __tstate = wxPyBeginAllowThreads();
21774 result = (int)((wxDC const *)arg1)->GetDepth();
21775 wxPyEndAllowThreads(__tstate);
21776 if (PyErr_Occurred()) SWIG_fail;
21777 }
21778 resultobj = SWIG_From_int(static_cast< int >(result));
21779 return resultobj;
21780fail:
21781 return NULL;
21782}
21783
21784
21785SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21786 PyObject *resultobj = 0;
21787 wxDC *arg1 = (wxDC *) 0 ;
21788 wxSize result;
21789 void *argp1 = 0 ;
21790 int res1 = 0 ;
21791 PyObject *swig_obj[1] ;
21792
21793 if (!args) SWIG_fail;
21794 swig_obj[0] = args;
21795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21796 if (!SWIG_IsOK(res1)) {
21797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21798 }
21799 arg1 = reinterpret_cast< wxDC * >(argp1);
21800 {
21801 PyThreadState* __tstate = wxPyBeginAllowThreads();
21802 result = ((wxDC const *)arg1)->GetPPI();
21803 wxPyEndAllowThreads(__tstate);
21804 if (PyErr_Occurred()) SWIG_fail;
21805 }
21806 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21807 return resultobj;
21808fail:
21809 return NULL;
21810}
21811
21812
b39fe951 21813SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
21814 PyObject *resultobj = 0;
21815 wxDC *arg1 = (wxDC *) 0 ;
21816 bool result;
21817 void *argp1 = 0 ;
21818 int res1 = 0 ;
21819 PyObject *swig_obj[1] ;
21820
21821 if (!args) SWIG_fail;
21822 swig_obj[0] = args;
21823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21824 if (!SWIG_IsOK(res1)) {
b39fe951 21825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
1bd55598
RD
21826 }
21827 arg1 = reinterpret_cast< wxDC * >(argp1);
21828 {
21829 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 21830 result = (bool)((wxDC const *)arg1)->IsOk();
1bd55598
RD
21831 wxPyEndAllowThreads(__tstate);
21832 if (PyErr_Occurred()) SWIG_fail;
21833 }
21834 {
21835 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21836 }
21837 return resultobj;
21838fail:
21839 return NULL;
21840}
21841
21842
21843SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21844 PyObject *resultobj = 0;
21845 wxDC *arg1 = (wxDC *) 0 ;
21846 int result;
21847 void *argp1 = 0 ;
21848 int res1 = 0 ;
21849 PyObject *swig_obj[1] ;
21850
21851 if (!args) SWIG_fail;
21852 swig_obj[0] = args;
21853 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21854 if (!SWIG_IsOK(res1)) {
21855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21856 }
21857 arg1 = reinterpret_cast< wxDC * >(argp1);
21858 {
21859 PyThreadState* __tstate = wxPyBeginAllowThreads();
21860 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21861 wxPyEndAllowThreads(__tstate);
21862 if (PyErr_Occurred()) SWIG_fail;
21863 }
21864 resultobj = SWIG_From_int(static_cast< int >(result));
21865 return resultobj;
21866fail:
21867 return NULL;
21868}
21869
21870
21871SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21872 PyObject *resultobj = 0;
21873 wxDC *arg1 = (wxDC *) 0 ;
21874 wxBrush *result = 0 ;
21875 void *argp1 = 0 ;
21876 int res1 = 0 ;
21877 PyObject *swig_obj[1] ;
21878
21879 if (!args) SWIG_fail;
21880 swig_obj[0] = args;
21881 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21882 if (!SWIG_IsOK(res1)) {
21883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21884 }
21885 arg1 = reinterpret_cast< wxDC * >(argp1);
21886 {
21887 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21888 {
1bd55598
RD
21889 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21890 result = (wxBrush *) &_result_ref;
36ed4f51 21891 }
1bd55598
RD
21892 wxPyEndAllowThreads(__tstate);
21893 if (PyErr_Occurred()) SWIG_fail;
21894 }
21895 {
21896 wxBrush* resultptr = new wxBrush(*result);
21897 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21898 }
21899 return resultobj;
21900fail:
21901 return NULL;
21902}
21903
21904
21905SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21906 PyObject *resultobj = 0;
21907 wxDC *arg1 = (wxDC *) 0 ;
21908 wxBrush *result = 0 ;
21909 void *argp1 = 0 ;
21910 int res1 = 0 ;
21911 PyObject *swig_obj[1] ;
21912
21913 if (!args) SWIG_fail;
21914 swig_obj[0] = args;
21915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21916 if (!SWIG_IsOK(res1)) {
21917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
21918 }
21919 arg1 = reinterpret_cast< wxDC * >(argp1);
21920 {
21921 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21922 {
1bd55598
RD
21923 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
21924 result = (wxBrush *) &_result_ref;
36ed4f51 21925 }
1bd55598
RD
21926 wxPyEndAllowThreads(__tstate);
21927 if (PyErr_Occurred()) SWIG_fail;
21928 }
21929 {
21930 wxBrush* resultptr = new wxBrush(*result);
21931 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21932 }
21933 return resultobj;
21934fail:
21935 return NULL;
21936}
21937
21938
21939SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21940 PyObject *resultobj = 0;
21941 wxDC *arg1 = (wxDC *) 0 ;
21942 wxFont *result = 0 ;
21943 void *argp1 = 0 ;
21944 int res1 = 0 ;
21945 PyObject *swig_obj[1] ;
21946
21947 if (!args) SWIG_fail;
21948 swig_obj[0] = args;
21949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21950 if (!SWIG_IsOK(res1)) {
21951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
21952 }
21953 arg1 = reinterpret_cast< wxDC * >(argp1);
21954 {
21955 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21956 {
1bd55598
RD
21957 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
21958 result = (wxFont *) &_result_ref;
36ed4f51 21959 }
1bd55598
RD
21960 wxPyEndAllowThreads(__tstate);
21961 if (PyErr_Occurred()) SWIG_fail;
21962 }
21963 {
21964 wxFont* resultptr = new wxFont(*result);
21965 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
21966 }
21967 return resultobj;
21968fail:
21969 return NULL;
21970}
21971
21972
21973SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21974 PyObject *resultobj = 0;
21975 wxDC *arg1 = (wxDC *) 0 ;
21976 wxPen *result = 0 ;
21977 void *argp1 = 0 ;
21978 int res1 = 0 ;
21979 PyObject *swig_obj[1] ;
21980
21981 if (!args) SWIG_fail;
21982 swig_obj[0] = args;
21983 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21984 if (!SWIG_IsOK(res1)) {
21985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
21986 }
21987 arg1 = reinterpret_cast< wxDC * >(argp1);
21988 {
21989 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21990 {
1bd55598
RD
21991 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
21992 result = (wxPen *) &_result_ref;
36ed4f51 21993 }
1bd55598
RD
21994 wxPyEndAllowThreads(__tstate);
21995 if (PyErr_Occurred()) SWIG_fail;
21996 }
21997 {
21998 wxPen* resultptr = new wxPen(*result);
21999 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22000 }
22001 return resultobj;
22002fail:
22003 return NULL;
22004}
22005
22006
22007SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22008 PyObject *resultobj = 0;
22009 wxDC *arg1 = (wxDC *) 0 ;
22010 wxColour *result = 0 ;
22011 void *argp1 = 0 ;
22012 int res1 = 0 ;
22013 PyObject *swig_obj[1] ;
22014
22015 if (!args) SWIG_fail;
22016 swig_obj[0] = args;
22017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22018 if (!SWIG_IsOK(res1)) {
22019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22020 }
22021 arg1 = reinterpret_cast< wxDC * >(argp1);
22022 {
22023 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 22024 {
1bd55598
RD
22025 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22026 result = (wxColour *) &_result_ref;
36ed4f51 22027 }
1bd55598
RD
22028 wxPyEndAllowThreads(__tstate);
22029 if (PyErr_Occurred()) SWIG_fail;
22030 }
22031 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22032 return resultobj;
22033fail:
22034 return NULL;
22035}
22036
22037
22038SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22039 PyObject *resultobj = 0;
22040 wxDC *arg1 = (wxDC *) 0 ;
22041 wxColour *result = 0 ;
22042 void *argp1 = 0 ;
22043 int res1 = 0 ;
22044 PyObject *swig_obj[1] ;
22045
22046 if (!args) SWIG_fail;
22047 swig_obj[0] = args;
22048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22049 if (!SWIG_IsOK(res1)) {
22050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22051 }
22052 arg1 = reinterpret_cast< wxDC * >(argp1);
22053 {
22054 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 22055 {
1bd55598
RD
22056 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22057 result = (wxColour *) &_result_ref;
36ed4f51 22058 }
1bd55598
RD
22059 wxPyEndAllowThreads(__tstate);
22060 if (PyErr_Occurred()) SWIG_fail;
22061 }
22062 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22063 return resultobj;
22064fail:
22065 return NULL;
22066}
22067
22068
22069SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22070 PyObject *resultobj = 0;
22071 wxDC *arg1 = (wxDC *) 0 ;
22072 wxColour *arg2 = 0 ;
22073 void *argp1 = 0 ;
22074 int res1 = 0 ;
22075 wxColour temp2 ;
22076 PyObject * obj0 = 0 ;
22077 PyObject * obj1 = 0 ;
22078 char * kwnames[] = {
22079 (char *) "self",(char *) "colour", NULL
22080 };
22081
22082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22084 if (!SWIG_IsOK(res1)) {
22085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22086 }
22087 arg1 = reinterpret_cast< wxDC * >(argp1);
22088 {
22089 arg2 = &temp2;
22090 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22091 }
22092 {
22093 PyThreadState* __tstate = wxPyBeginAllowThreads();
22094 (arg1)->SetTextForeground((wxColour const &)*arg2);
22095 wxPyEndAllowThreads(__tstate);
22096 if (PyErr_Occurred()) SWIG_fail;
22097 }
22098 resultobj = SWIG_Py_Void();
22099 return resultobj;
22100fail:
22101 return NULL;
22102}
22103
22104
22105SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22106 PyObject *resultobj = 0;
22107 wxDC *arg1 = (wxDC *) 0 ;
22108 wxColour *arg2 = 0 ;
22109 void *argp1 = 0 ;
22110 int res1 = 0 ;
22111 wxColour temp2 ;
22112 PyObject * obj0 = 0 ;
22113 PyObject * obj1 = 0 ;
22114 char * kwnames[] = {
22115 (char *) "self",(char *) "colour", NULL
22116 };
22117
22118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22120 if (!SWIG_IsOK(res1)) {
22121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22122 }
22123 arg1 = reinterpret_cast< wxDC * >(argp1);
22124 {
22125 arg2 = &temp2;
22126 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22127 }
22128 {
22129 PyThreadState* __tstate = wxPyBeginAllowThreads();
22130 (arg1)->SetTextBackground((wxColour const &)*arg2);
22131 wxPyEndAllowThreads(__tstate);
22132 if (PyErr_Occurred()) SWIG_fail;
22133 }
22134 resultobj = SWIG_Py_Void();
22135 return resultobj;
22136fail:
22137 return NULL;
22138}
22139
22140
22141SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22142 PyObject *resultobj = 0;
22143 wxDC *arg1 = (wxDC *) 0 ;
22144 int result;
22145 void *argp1 = 0 ;
22146 int res1 = 0 ;
22147 PyObject *swig_obj[1] ;
22148
22149 if (!args) SWIG_fail;
22150 swig_obj[0] = args;
22151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22152 if (!SWIG_IsOK(res1)) {
22153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22154 }
22155 arg1 = reinterpret_cast< wxDC * >(argp1);
22156 {
22157 PyThreadState* __tstate = wxPyBeginAllowThreads();
22158 result = (int)((wxDC const *)arg1)->GetMapMode();
22159 wxPyEndAllowThreads(__tstate);
22160 if (PyErr_Occurred()) SWIG_fail;
22161 }
22162 resultobj = SWIG_From_int(static_cast< int >(result));
22163 return resultobj;
22164fail:
22165 return NULL;
22166}
22167
22168
22169SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22170 PyObject *resultobj = 0;
22171 wxDC *arg1 = (wxDC *) 0 ;
22172 int arg2 ;
22173 void *argp1 = 0 ;
22174 int res1 = 0 ;
22175 int val2 ;
22176 int ecode2 = 0 ;
22177 PyObject * obj0 = 0 ;
22178 PyObject * obj1 = 0 ;
22179 char * kwnames[] = {
22180 (char *) "self",(char *) "mode", NULL
22181 };
22182
22183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22185 if (!SWIG_IsOK(res1)) {
22186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22187 }
22188 arg1 = reinterpret_cast< wxDC * >(argp1);
22189 ecode2 = SWIG_AsVal_int(obj1, &val2);
22190 if (!SWIG_IsOK(ecode2)) {
22191 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22192 }
22193 arg2 = static_cast< int >(val2);
22194 {
22195 PyThreadState* __tstate = wxPyBeginAllowThreads();
22196 (arg1)->SetMapMode(arg2);
22197 wxPyEndAllowThreads(__tstate);
22198 if (PyErr_Occurred()) SWIG_fail;
22199 }
22200 resultobj = SWIG_Py_Void();
22201 return resultobj;
22202fail:
22203 return NULL;
22204}
22205
22206
22207SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22208 PyObject *resultobj = 0;
22209 wxDC *arg1 = (wxDC *) 0 ;
22210 double *arg2 = (double *) 0 ;
22211 double *arg3 = (double *) 0 ;
22212 void *argp1 = 0 ;
22213 int res1 = 0 ;
22214 double temp2 ;
22215 int res2 = SWIG_TMPOBJ ;
22216 double temp3 ;
22217 int res3 = SWIG_TMPOBJ ;
22218 PyObject *swig_obj[1] ;
22219
22220 arg2 = &temp2;
22221 arg3 = &temp3;
22222 if (!args) SWIG_fail;
22223 swig_obj[0] = args;
22224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22225 if (!SWIG_IsOK(res1)) {
22226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22227 }
22228 arg1 = reinterpret_cast< wxDC * >(argp1);
22229 {
22230 PyThreadState* __tstate = wxPyBeginAllowThreads();
22231 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22232 wxPyEndAllowThreads(__tstate);
22233 if (PyErr_Occurred()) SWIG_fail;
22234 }
22235 resultobj = SWIG_Py_Void();
22236 if (SWIG_IsTmpObj(res2)) {
22237 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22238 } else {
22239 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22240 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22241 }
22242 if (SWIG_IsTmpObj(res3)) {
22243 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22244 } else {
22245 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22246 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22247 }
22248 return resultobj;
22249fail:
22250 return NULL;
22251}
22252
22253
22254SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22255 PyObject *resultobj = 0;
22256 wxDC *arg1 = (wxDC *) 0 ;
22257 double arg2 ;
22258 double arg3 ;
22259 void *argp1 = 0 ;
22260 int res1 = 0 ;
22261 double val2 ;
22262 int ecode2 = 0 ;
22263 double val3 ;
22264 int ecode3 = 0 ;
22265 PyObject * obj0 = 0 ;
22266 PyObject * obj1 = 0 ;
22267 PyObject * obj2 = 0 ;
22268 char * kwnames[] = {
22269 (char *) "self",(char *) "x",(char *) "y", NULL
22270 };
22271
22272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22274 if (!SWIG_IsOK(res1)) {
22275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22276 }
22277 arg1 = reinterpret_cast< wxDC * >(argp1);
22278 ecode2 = SWIG_AsVal_double(obj1, &val2);
22279 if (!SWIG_IsOK(ecode2)) {
22280 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22281 }
22282 arg2 = static_cast< double >(val2);
22283 ecode3 = SWIG_AsVal_double(obj2, &val3);
22284 if (!SWIG_IsOK(ecode3)) {
22285 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22286 }
22287 arg3 = static_cast< double >(val3);
22288 {
22289 PyThreadState* __tstate = wxPyBeginAllowThreads();
22290 (arg1)->SetUserScale(arg2,arg3);
22291 wxPyEndAllowThreads(__tstate);
22292 if (PyErr_Occurred()) SWIG_fail;
22293 }
22294 resultobj = SWIG_Py_Void();
22295 return resultobj;
22296fail:
22297 return NULL;
22298}
22299
22300
22301SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22302 PyObject *resultobj = 0;
22303 wxDC *arg1 = (wxDC *) 0 ;
22304 double *arg2 = (double *) 0 ;
22305 double *arg3 = (double *) 0 ;
22306 void *argp1 = 0 ;
22307 int res1 = 0 ;
22308 double temp2 ;
22309 int res2 = SWIG_TMPOBJ ;
22310 double temp3 ;
22311 int res3 = SWIG_TMPOBJ ;
22312 PyObject *swig_obj[1] ;
22313
22314 arg2 = &temp2;
22315 arg3 = &temp3;
22316 if (!args) SWIG_fail;
22317 swig_obj[0] = args;
22318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22319 if (!SWIG_IsOK(res1)) {
22320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22321 }
22322 arg1 = reinterpret_cast< wxDC * >(argp1);
22323 {
22324 PyThreadState* __tstate = wxPyBeginAllowThreads();
22325 (arg1)->GetLogicalScale(arg2,arg3);
22326 wxPyEndAllowThreads(__tstate);
22327 if (PyErr_Occurred()) SWIG_fail;
22328 }
22329 resultobj = SWIG_Py_Void();
22330 if (SWIG_IsTmpObj(res2)) {
22331 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22332 } else {
22333 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22334 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22335 }
22336 if (SWIG_IsTmpObj(res3)) {
22337 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22338 } else {
22339 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22340 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22341 }
22342 return resultobj;
22343fail:
22344 return NULL;
22345}
22346
22347
22348SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22349 PyObject *resultobj = 0;
22350 wxDC *arg1 = (wxDC *) 0 ;
22351 double arg2 ;
22352 double arg3 ;
22353 void *argp1 = 0 ;
22354 int res1 = 0 ;
22355 double val2 ;
22356 int ecode2 = 0 ;
22357 double val3 ;
22358 int ecode3 = 0 ;
22359 PyObject * obj0 = 0 ;
22360 PyObject * obj1 = 0 ;
22361 PyObject * obj2 = 0 ;
22362 char * kwnames[] = {
22363 (char *) "self",(char *) "x",(char *) "y", NULL
22364 };
22365
22366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22368 if (!SWIG_IsOK(res1)) {
22369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22370 }
22371 arg1 = reinterpret_cast< wxDC * >(argp1);
22372 ecode2 = SWIG_AsVal_double(obj1, &val2);
22373 if (!SWIG_IsOK(ecode2)) {
22374 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22375 }
22376 arg2 = static_cast< double >(val2);
22377 ecode3 = SWIG_AsVal_double(obj2, &val3);
22378 if (!SWIG_IsOK(ecode3)) {
22379 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22380 }
22381 arg3 = static_cast< double >(val3);
22382 {
22383 PyThreadState* __tstate = wxPyBeginAllowThreads();
22384 (arg1)->SetLogicalScale(arg2,arg3);
22385 wxPyEndAllowThreads(__tstate);
22386 if (PyErr_Occurred()) SWIG_fail;
22387 }
22388 resultobj = SWIG_Py_Void();
22389 return resultobj;
22390fail:
22391 return NULL;
22392}
22393
22394
22395SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22396 PyObject *resultobj = 0;
22397 wxDC *arg1 = (wxDC *) 0 ;
22398 wxPoint result;
22399 void *argp1 = 0 ;
22400 int res1 = 0 ;
22401 PyObject *swig_obj[1] ;
22402
22403 if (!args) SWIG_fail;
22404 swig_obj[0] = args;
22405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22406 if (!SWIG_IsOK(res1)) {
22407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22408 }
22409 arg1 = reinterpret_cast< wxDC * >(argp1);
22410 {
22411 PyThreadState* __tstate = wxPyBeginAllowThreads();
22412 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22413 wxPyEndAllowThreads(__tstate);
22414 if (PyErr_Occurred()) SWIG_fail;
22415 }
22416 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22417 return resultobj;
22418fail:
22419 return NULL;
22420}
22421
22422
22423SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22424 PyObject *resultobj = 0;
22425 wxDC *arg1 = (wxDC *) 0 ;
22426 int *arg2 = (int *) 0 ;
22427 int *arg3 = (int *) 0 ;
22428 void *argp1 = 0 ;
22429 int res1 = 0 ;
22430 int temp2 ;
22431 int res2 = SWIG_TMPOBJ ;
22432 int temp3 ;
22433 int res3 = SWIG_TMPOBJ ;
22434 PyObject *swig_obj[1] ;
22435
22436 arg2 = &temp2;
22437 arg3 = &temp3;
22438 if (!args) SWIG_fail;
22439 swig_obj[0] = args;
22440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22441 if (!SWIG_IsOK(res1)) {
22442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22443 }
22444 arg1 = reinterpret_cast< wxDC * >(argp1);
22445 {
22446 PyThreadState* __tstate = wxPyBeginAllowThreads();
22447 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22448 wxPyEndAllowThreads(__tstate);
22449 if (PyErr_Occurred()) SWIG_fail;
22450 }
22451 resultobj = SWIG_Py_Void();
22452 if (SWIG_IsTmpObj(res2)) {
22453 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22454 } else {
22455 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22456 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22457 }
22458 if (SWIG_IsTmpObj(res3)) {
22459 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22460 } else {
22461 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22462 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22463 }
22464 return resultobj;
22465fail:
22466 return NULL;
22467}
22468
22469
22470SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22471 PyObject *resultobj = 0;
22472 wxDC *arg1 = (wxDC *) 0 ;
22473 int arg2 ;
22474 int arg3 ;
22475 void *argp1 = 0 ;
22476 int res1 = 0 ;
22477 int val2 ;
22478 int ecode2 = 0 ;
22479 int val3 ;
22480 int ecode3 = 0 ;
22481 PyObject * obj0 = 0 ;
22482 PyObject * obj1 = 0 ;
22483 PyObject * obj2 = 0 ;
22484 char * kwnames[] = {
22485 (char *) "self",(char *) "x",(char *) "y", NULL
22486 };
22487
22488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22490 if (!SWIG_IsOK(res1)) {
22491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22492 }
22493 arg1 = reinterpret_cast< wxDC * >(argp1);
22494 ecode2 = SWIG_AsVal_int(obj1, &val2);
22495 if (!SWIG_IsOK(ecode2)) {
22496 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22497 }
22498 arg2 = static_cast< int >(val2);
22499 ecode3 = SWIG_AsVal_int(obj2, &val3);
22500 if (!SWIG_IsOK(ecode3)) {
22501 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22502 }
22503 arg3 = static_cast< int >(val3);
22504 {
22505 PyThreadState* __tstate = wxPyBeginAllowThreads();
22506 (arg1)->SetLogicalOrigin(arg2,arg3);
22507 wxPyEndAllowThreads(__tstate);
22508 if (PyErr_Occurred()) SWIG_fail;
22509 }
22510 resultobj = SWIG_Py_Void();
22511 return resultobj;
22512fail:
22513 return NULL;
22514}
22515
22516
22517SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22518 PyObject *resultobj = 0;
22519 wxDC *arg1 = (wxDC *) 0 ;
22520 wxPoint *arg2 = 0 ;
22521 void *argp1 = 0 ;
22522 int res1 = 0 ;
22523 wxPoint temp2 ;
22524 PyObject * obj0 = 0 ;
22525 PyObject * obj1 = 0 ;
22526 char * kwnames[] = {
22527 (char *) "self",(char *) "point", NULL
22528 };
22529
22530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22532 if (!SWIG_IsOK(res1)) {
22533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22534 }
22535 arg1 = reinterpret_cast< wxDC * >(argp1);
22536 {
22537 arg2 = &temp2;
22538 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22539 }
22540 {
22541 PyThreadState* __tstate = wxPyBeginAllowThreads();
22542 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22543 wxPyEndAllowThreads(__tstate);
22544 if (PyErr_Occurred()) SWIG_fail;
22545 }
22546 resultobj = SWIG_Py_Void();
22547 return resultobj;
22548fail:
22549 return NULL;
22550}
22551
22552
22553SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22554 PyObject *resultobj = 0;
22555 wxDC *arg1 = (wxDC *) 0 ;
22556 wxPoint result;
22557 void *argp1 = 0 ;
22558 int res1 = 0 ;
22559 PyObject *swig_obj[1] ;
22560
22561 if (!args) SWIG_fail;
22562 swig_obj[0] = args;
22563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22564 if (!SWIG_IsOK(res1)) {
22565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22566 }
22567 arg1 = reinterpret_cast< wxDC * >(argp1);
22568 {
22569 PyThreadState* __tstate = wxPyBeginAllowThreads();
22570 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22571 wxPyEndAllowThreads(__tstate);
22572 if (PyErr_Occurred()) SWIG_fail;
22573 }
22574 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22575 return resultobj;
22576fail:
22577 return NULL;
22578}
22579
22580
22581SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22582 PyObject *resultobj = 0;
22583 wxDC *arg1 = (wxDC *) 0 ;
22584 int *arg2 = (int *) 0 ;
22585 int *arg3 = (int *) 0 ;
22586 void *argp1 = 0 ;
22587 int res1 = 0 ;
22588 int temp2 ;
22589 int res2 = SWIG_TMPOBJ ;
22590 int temp3 ;
22591 int res3 = SWIG_TMPOBJ ;
22592 PyObject *swig_obj[1] ;
22593
22594 arg2 = &temp2;
22595 arg3 = &temp3;
22596 if (!args) SWIG_fail;
22597 swig_obj[0] = args;
22598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22599 if (!SWIG_IsOK(res1)) {
22600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22601 }
22602 arg1 = reinterpret_cast< wxDC * >(argp1);
22603 {
22604 PyThreadState* __tstate = wxPyBeginAllowThreads();
22605 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22606 wxPyEndAllowThreads(__tstate);
22607 if (PyErr_Occurred()) SWIG_fail;
22608 }
22609 resultobj = SWIG_Py_Void();
22610 if (SWIG_IsTmpObj(res2)) {
22611 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22612 } else {
22613 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22614 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22615 }
22616 if (SWIG_IsTmpObj(res3)) {
22617 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22618 } else {
22619 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22620 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22621 }
22622 return resultobj;
22623fail:
22624 return NULL;
22625}
22626
22627
22628SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22629 PyObject *resultobj = 0;
22630 wxDC *arg1 = (wxDC *) 0 ;
22631 int arg2 ;
22632 int arg3 ;
22633 void *argp1 = 0 ;
22634 int res1 = 0 ;
22635 int val2 ;
22636 int ecode2 = 0 ;
22637 int val3 ;
22638 int ecode3 = 0 ;
22639 PyObject * obj0 = 0 ;
22640 PyObject * obj1 = 0 ;
22641 PyObject * obj2 = 0 ;
22642 char * kwnames[] = {
22643 (char *) "self",(char *) "x",(char *) "y", NULL
22644 };
22645
22646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22648 if (!SWIG_IsOK(res1)) {
22649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22650 }
22651 arg1 = reinterpret_cast< wxDC * >(argp1);
22652 ecode2 = SWIG_AsVal_int(obj1, &val2);
22653 if (!SWIG_IsOK(ecode2)) {
22654 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22655 }
22656 arg2 = static_cast< int >(val2);
22657 ecode3 = SWIG_AsVal_int(obj2, &val3);
22658 if (!SWIG_IsOK(ecode3)) {
22659 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22660 }
22661 arg3 = static_cast< int >(val3);
22662 {
22663 PyThreadState* __tstate = wxPyBeginAllowThreads();
22664 (arg1)->SetDeviceOrigin(arg2,arg3);
22665 wxPyEndAllowThreads(__tstate);
22666 if (PyErr_Occurred()) SWIG_fail;
22667 }
22668 resultobj = SWIG_Py_Void();
22669 return resultobj;
22670fail:
22671 return NULL;
22672}
22673
22674
22675SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22676 PyObject *resultobj = 0;
22677 wxDC *arg1 = (wxDC *) 0 ;
22678 wxPoint *arg2 = 0 ;
22679 void *argp1 = 0 ;
22680 int res1 = 0 ;
22681 wxPoint temp2 ;
22682 PyObject * obj0 = 0 ;
22683 PyObject * obj1 = 0 ;
22684 char * kwnames[] = {
22685 (char *) "self",(char *) "point", NULL
22686 };
22687
22688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22690 if (!SWIG_IsOK(res1)) {
22691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22692 }
22693 arg1 = reinterpret_cast< wxDC * >(argp1);
22694 {
22695 arg2 = &temp2;
22696 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22697 }
22698 {
22699 PyThreadState* __tstate = wxPyBeginAllowThreads();
22700 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22701 wxPyEndAllowThreads(__tstate);
22702 if (PyErr_Occurred()) SWIG_fail;
22703 }
22704 resultobj = SWIG_Py_Void();
22705 return resultobj;
22706fail:
22707 return NULL;
22708}
22709
22710
22711SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22712 PyObject *resultobj = 0;
22713 wxDC *arg1 = (wxDC *) 0 ;
22714 bool arg2 ;
22715 bool arg3 ;
22716 void *argp1 = 0 ;
22717 int res1 = 0 ;
22718 bool val2 ;
22719 int ecode2 = 0 ;
22720 bool val3 ;
22721 int ecode3 = 0 ;
22722 PyObject * obj0 = 0 ;
22723 PyObject * obj1 = 0 ;
22724 PyObject * obj2 = 0 ;
22725 char * kwnames[] = {
22726 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22727 };
22728
22729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22731 if (!SWIG_IsOK(res1)) {
22732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22733 }
22734 arg1 = reinterpret_cast< wxDC * >(argp1);
22735 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22736 if (!SWIG_IsOK(ecode2)) {
22737 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22738 }
22739 arg2 = static_cast< bool >(val2);
22740 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22741 if (!SWIG_IsOK(ecode3)) {
22742 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22743 }
22744 arg3 = static_cast< bool >(val3);
22745 {
22746 PyThreadState* __tstate = wxPyBeginAllowThreads();
22747 (arg1)->SetAxisOrientation(arg2,arg3);
22748 wxPyEndAllowThreads(__tstate);
22749 if (PyErr_Occurred()) SWIG_fail;
22750 }
22751 resultobj = SWIG_Py_Void();
22752 return resultobj;
22753fail:
22754 return NULL;
22755}
22756
22757
22758SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22759 PyObject *resultobj = 0;
22760 wxDC *arg1 = (wxDC *) 0 ;
22761 int result;
22762 void *argp1 = 0 ;
22763 int res1 = 0 ;
22764 PyObject *swig_obj[1] ;
22765
22766 if (!args) SWIG_fail;
22767 swig_obj[0] = args;
22768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22769 if (!SWIG_IsOK(res1)) {
22770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22771 }
22772 arg1 = reinterpret_cast< wxDC * >(argp1);
22773 {
22774 PyThreadState* __tstate = wxPyBeginAllowThreads();
22775 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22776 wxPyEndAllowThreads(__tstate);
22777 if (PyErr_Occurred()) SWIG_fail;
22778 }
22779 resultobj = SWIG_From_int(static_cast< int >(result));
22780 return resultobj;
22781fail:
22782 return NULL;
22783}
22784
22785
22786SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22787 PyObject *resultobj = 0;
22788 wxDC *arg1 = (wxDC *) 0 ;
22789 int arg2 ;
22790 void *argp1 = 0 ;
22791 int res1 = 0 ;
22792 int val2 ;
22793 int ecode2 = 0 ;
22794 PyObject * obj0 = 0 ;
22795 PyObject * obj1 = 0 ;
22796 char * kwnames[] = {
22797 (char *) "self",(char *) "function", NULL
22798 };
22799
22800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22802 if (!SWIG_IsOK(res1)) {
22803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22804 }
22805 arg1 = reinterpret_cast< wxDC * >(argp1);
22806 ecode2 = SWIG_AsVal_int(obj1, &val2);
22807 if (!SWIG_IsOK(ecode2)) {
22808 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22809 }
22810 arg2 = static_cast< int >(val2);
22811 {
22812 PyThreadState* __tstate = wxPyBeginAllowThreads();
22813 (arg1)->SetLogicalFunction(arg2);
22814 wxPyEndAllowThreads(__tstate);
22815 if (PyErr_Occurred()) SWIG_fail;
22816 }
22817 resultobj = SWIG_Py_Void();
22818 return resultobj;
22819fail:
22820 return NULL;
22821}
22822
22823
22824SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22825 PyObject *resultobj = 0;
22826 wxDC *arg1 = (wxDC *) 0 ;
22827 void *argp1 = 0 ;
22828 int res1 = 0 ;
22829 PyObject *swig_obj[1] ;
22830
22831 if (!args) SWIG_fail;
22832 swig_obj[0] = args;
22833 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22834 if (!SWIG_IsOK(res1)) {
22835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22836 }
22837 arg1 = reinterpret_cast< wxDC * >(argp1);
22838 {
22839 PyThreadState* __tstate = wxPyBeginAllowThreads();
22840 (arg1)->ComputeScaleAndOrigin();
22841 wxPyEndAllowThreads(__tstate);
22842 if (PyErr_Occurred()) SWIG_fail;
22843 }
22844 resultobj = SWIG_Py_Void();
22845 return resultobj;
22846fail:
22847 return NULL;
22848}
22849
22850
22851SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22852 PyObject *resultobj = 0;
22853 wxDC *arg1 = (wxDC *) 0 ;
22854 int arg2 ;
22855 int arg3 ;
22856 void *argp1 = 0 ;
22857 int res1 = 0 ;
22858 int val2 ;
22859 int ecode2 = 0 ;
22860 int val3 ;
22861 int ecode3 = 0 ;
22862 PyObject * obj0 = 0 ;
22863 PyObject * obj1 = 0 ;
22864 PyObject * obj2 = 0 ;
22865 char * kwnames[] = {
22866 (char *) "self",(char *) "x",(char *) "y", NULL
22867 };
22868
22869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22871 if (!SWIG_IsOK(res1)) {
22872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22873 }
22874 arg1 = reinterpret_cast< wxDC * >(argp1);
22875 ecode2 = SWIG_AsVal_int(obj1, &val2);
22876 if (!SWIG_IsOK(ecode2)) {
22877 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22878 }
22879 arg2 = static_cast< int >(val2);
22880 ecode3 = SWIG_AsVal_int(obj2, &val3);
22881 if (!SWIG_IsOK(ecode3)) {
22882 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22883 }
22884 arg3 = static_cast< int >(val3);
22885 {
22886 PyThreadState* __tstate = wxPyBeginAllowThreads();
22887 (arg1)->CalcBoundingBox(arg2,arg3);
22888 wxPyEndAllowThreads(__tstate);
22889 if (PyErr_Occurred()) SWIG_fail;
22890 }
22891 resultobj = SWIG_Py_Void();
22892 return resultobj;
22893fail:
22894 return NULL;
22895}
22896
22897
22898SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22899 PyObject *resultobj = 0;
22900 wxDC *arg1 = (wxDC *) 0 ;
22901 wxPoint *arg2 = 0 ;
22902 void *argp1 = 0 ;
22903 int res1 = 0 ;
22904 wxPoint temp2 ;
22905 PyObject * obj0 = 0 ;
22906 PyObject * obj1 = 0 ;
22907 char * kwnames[] = {
22908 (char *) "self",(char *) "point", NULL
22909 };
22910
22911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22913 if (!SWIG_IsOK(res1)) {
22914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22915 }
22916 arg1 = reinterpret_cast< wxDC * >(argp1);
22917 {
22918 arg2 = &temp2;
22919 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22920 }
22921 {
22922 PyThreadState* __tstate = wxPyBeginAllowThreads();
22923 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
22924 wxPyEndAllowThreads(__tstate);
22925 if (PyErr_Occurred()) SWIG_fail;
22926 }
22927 resultobj = SWIG_Py_Void();
22928 return resultobj;
22929fail:
22930 return NULL;
22931}
22932
22933
22934SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22935 PyObject *resultobj = 0;
22936 wxDC *arg1 = (wxDC *) 0 ;
22937 void *argp1 = 0 ;
22938 int res1 = 0 ;
22939 PyObject *swig_obj[1] ;
22940
22941 if (!args) SWIG_fail;
22942 swig_obj[0] = args;
22943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22944 if (!SWIG_IsOK(res1)) {
22945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22946 }
22947 arg1 = reinterpret_cast< wxDC * >(argp1);
22948 {
22949 PyThreadState* __tstate = wxPyBeginAllowThreads();
22950 (arg1)->ResetBoundingBox();
22951 wxPyEndAllowThreads(__tstate);
22952 if (PyErr_Occurred()) SWIG_fail;
22953 }
22954 resultobj = SWIG_Py_Void();
22955 return resultobj;
22956fail:
22957 return NULL;
22958}
22959
22960
22961SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22962 PyObject *resultobj = 0;
22963 wxDC *arg1 = (wxDC *) 0 ;
22964 int result;
22965 void *argp1 = 0 ;
22966 int res1 = 0 ;
22967 PyObject *swig_obj[1] ;
22968
22969 if (!args) SWIG_fail;
22970 swig_obj[0] = args;
22971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22972 if (!SWIG_IsOK(res1)) {
22973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
22974 }
22975 arg1 = reinterpret_cast< wxDC * >(argp1);
22976 {
22977 PyThreadState* __tstate = wxPyBeginAllowThreads();
22978 result = (int)((wxDC const *)arg1)->MinX();
22979 wxPyEndAllowThreads(__tstate);
22980 if (PyErr_Occurred()) SWIG_fail;
22981 }
22982 resultobj = SWIG_From_int(static_cast< int >(result));
22983 return resultobj;
22984fail:
22985 return NULL;
22986}
22987
22988
22989SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22990 PyObject *resultobj = 0;
22991 wxDC *arg1 = (wxDC *) 0 ;
22992 int result;
22993 void *argp1 = 0 ;
22994 int res1 = 0 ;
22995 PyObject *swig_obj[1] ;
22996
22997 if (!args) SWIG_fail;
22998 swig_obj[0] = args;
22999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23000 if (!SWIG_IsOK(res1)) {
23001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23002 }
23003 arg1 = reinterpret_cast< wxDC * >(argp1);
23004 {
23005 PyThreadState* __tstate = wxPyBeginAllowThreads();
23006 result = (int)((wxDC const *)arg1)->MaxX();
23007 wxPyEndAllowThreads(__tstate);
23008 if (PyErr_Occurred()) SWIG_fail;
23009 }
23010 resultobj = SWIG_From_int(static_cast< int >(result));
23011 return resultobj;
23012fail:
23013 return NULL;
23014}
23015
23016
23017SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23018 PyObject *resultobj = 0;
23019 wxDC *arg1 = (wxDC *) 0 ;
23020 int result;
23021 void *argp1 = 0 ;
23022 int res1 = 0 ;
23023 PyObject *swig_obj[1] ;
23024
23025 if (!args) SWIG_fail;
23026 swig_obj[0] = args;
23027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23028 if (!SWIG_IsOK(res1)) {
23029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23030 }
23031 arg1 = reinterpret_cast< wxDC * >(argp1);
23032 {
23033 PyThreadState* __tstate = wxPyBeginAllowThreads();
23034 result = (int)((wxDC const *)arg1)->MinY();
23035 wxPyEndAllowThreads(__tstate);
23036 if (PyErr_Occurred()) SWIG_fail;
23037 }
23038 resultobj = SWIG_From_int(static_cast< int >(result));
23039 return resultobj;
23040fail:
23041 return NULL;
23042}
23043
23044
23045SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23046 PyObject *resultobj = 0;
23047 wxDC *arg1 = (wxDC *) 0 ;
23048 int result;
23049 void *argp1 = 0 ;
23050 int res1 = 0 ;
23051 PyObject *swig_obj[1] ;
23052
23053 if (!args) SWIG_fail;
23054 swig_obj[0] = args;
23055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23056 if (!SWIG_IsOK(res1)) {
23057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23058 }
23059 arg1 = reinterpret_cast< wxDC * >(argp1);
23060 {
23061 PyThreadState* __tstate = wxPyBeginAllowThreads();
23062 result = (int)((wxDC const *)arg1)->MaxY();
23063 wxPyEndAllowThreads(__tstate);
23064 if (PyErr_Occurred()) SWIG_fail;
23065 }
23066 resultobj = SWIG_From_int(static_cast< int >(result));
23067 return resultobj;
23068fail:
23069 return NULL;
23070}
23071
23072
23073SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23074 PyObject *resultobj = 0;
23075 wxDC *arg1 = (wxDC *) 0 ;
23076 int *arg2 = (int *) 0 ;
23077 int *arg3 = (int *) 0 ;
23078 int *arg4 = (int *) 0 ;
23079 int *arg5 = (int *) 0 ;
23080 void *argp1 = 0 ;
23081 int res1 = 0 ;
23082 int temp2 ;
23083 int res2 = SWIG_TMPOBJ ;
23084 int temp3 ;
23085 int res3 = SWIG_TMPOBJ ;
23086 int temp4 ;
23087 int res4 = SWIG_TMPOBJ ;
23088 int temp5 ;
23089 int res5 = SWIG_TMPOBJ ;
23090 PyObject *swig_obj[1] ;
23091
23092 arg2 = &temp2;
23093 arg3 = &temp3;
23094 arg4 = &temp4;
23095 arg5 = &temp5;
23096 if (!args) SWIG_fail;
23097 swig_obj[0] = args;
23098 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23099 if (!SWIG_IsOK(res1)) {
23100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23101 }
23102 arg1 = reinterpret_cast< wxDC * >(argp1);
23103 {
23104 PyThreadState* __tstate = wxPyBeginAllowThreads();
23105 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23106 wxPyEndAllowThreads(__tstate);
23107 if (PyErr_Occurred()) SWIG_fail;
23108 }
23109 resultobj = SWIG_Py_Void();
23110 if (SWIG_IsTmpObj(res2)) {
23111 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23112 } else {
23113 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23114 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23115 }
23116 if (SWIG_IsTmpObj(res3)) {
23117 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23118 } else {
23119 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23120 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23121 }
23122 if (SWIG_IsTmpObj(res4)) {
23123 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23124 } else {
23125 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23126 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23127 }
23128 if (SWIG_IsTmpObj(res5)) {
23129 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23130 } else {
23131 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23132 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23133 }
23134 return resultobj;
23135fail:
23136 return NULL;
23137}
23138
23139
b39fe951
RD
23140SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23141 PyObject *resultobj = 0;
23142 wxDC *arg1 = (wxDC *) 0 ;
23143 wxLayoutDirection result;
23144 void *argp1 = 0 ;
23145 int res1 = 0 ;
23146 PyObject *swig_obj[1] ;
23147
23148 if (!args) SWIG_fail;
23149 swig_obj[0] = args;
23150 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23151 if (!SWIG_IsOK(res1)) {
23152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
23153 }
23154 arg1 = reinterpret_cast< wxDC * >(argp1);
23155 {
23156 PyThreadState* __tstate = wxPyBeginAllowThreads();
23157 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
23158 wxPyEndAllowThreads(__tstate);
23159 if (PyErr_Occurred()) SWIG_fail;
23160 }
23161 resultobj = SWIG_From_int(static_cast< int >(result));
23162 return resultobj;
23163fail:
23164 return NULL;
23165}
23166
23167
23168SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23169 PyObject *resultobj = 0;
23170 wxDC *arg1 = (wxDC *) 0 ;
23171 wxLayoutDirection arg2 ;
23172 void *argp1 = 0 ;
23173 int res1 = 0 ;
23174 int val2 ;
23175 int ecode2 = 0 ;
23176 PyObject * obj0 = 0 ;
23177 PyObject * obj1 = 0 ;
23178 char * kwnames[] = {
23179 (char *) "self",(char *) "dir", NULL
23180 };
23181
23182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23184 if (!SWIG_IsOK(res1)) {
23185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23186 }
23187 arg1 = reinterpret_cast< wxDC * >(argp1);
23188 ecode2 = SWIG_AsVal_int(obj1, &val2);
23189 if (!SWIG_IsOK(ecode2)) {
23190 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23191 }
23192 arg2 = static_cast< wxLayoutDirection >(val2);
23193 {
23194 PyThreadState* __tstate = wxPyBeginAllowThreads();
23195 (arg1)->SetLayoutDirection(arg2);
23196 wxPyEndAllowThreads(__tstate);
23197 if (PyErr_Occurred()) SWIG_fail;
23198 }
23199 resultobj = SWIG_Py_Void();
23200 return resultobj;
23201fail:
23202 return NULL;
23203}
23204
23205
1bd55598
RD
23206SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23207 PyObject *resultobj = 0;
23208 wxDC *arg1 = (wxDC *) 0 ;
23209 PyObject *arg2 = (PyObject *) 0 ;
23210 PyObject *arg3 = (PyObject *) 0 ;
23211 PyObject *arg4 = (PyObject *) 0 ;
23212 PyObject *result = 0 ;
23213 void *argp1 = 0 ;
23214 int res1 = 0 ;
23215 PyObject * obj0 = 0 ;
23216 PyObject * obj1 = 0 ;
23217 PyObject * obj2 = 0 ;
23218 PyObject * obj3 = 0 ;
23219 char * kwnames[] = {
23220 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23221 };
23222
23223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23225 if (!SWIG_IsOK(res1)) {
23226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23227 }
23228 arg1 = reinterpret_cast< wxDC * >(argp1);
23229 arg2 = obj1;
23230 arg3 = obj2;
23231 arg4 = obj3;
23232 {
23233 PyThreadState* __tstate = wxPyBeginAllowThreads();
23234 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23235 wxPyEndAllowThreads(__tstate);
23236 if (PyErr_Occurred()) SWIG_fail;
23237 }
23238 resultobj = result;
23239 return resultobj;
23240fail:
23241 return NULL;
23242}
23243
23244
23245SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23246 PyObject *resultobj = 0;
23247 wxDC *arg1 = (wxDC *) 0 ;
23248 PyObject *arg2 = (PyObject *) 0 ;
23249 PyObject *arg3 = (PyObject *) 0 ;
23250 PyObject *arg4 = (PyObject *) 0 ;
23251 PyObject *result = 0 ;
23252 void *argp1 = 0 ;
23253 int res1 = 0 ;
23254 PyObject * obj0 = 0 ;
23255 PyObject * obj1 = 0 ;
23256 PyObject * obj2 = 0 ;
23257 PyObject * obj3 = 0 ;
23258 char * kwnames[] = {
23259 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23260 };
23261
23262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23264 if (!SWIG_IsOK(res1)) {
23265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23266 }
23267 arg1 = reinterpret_cast< wxDC * >(argp1);
23268 arg2 = obj1;
23269 arg3 = obj2;
23270 arg4 = obj3;
23271 {
23272 PyThreadState* __tstate = wxPyBeginAllowThreads();
23273 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23274 wxPyEndAllowThreads(__tstate);
23275 if (PyErr_Occurred()) SWIG_fail;
23276 }
23277 resultobj = result;
23278 return resultobj;
23279fail:
23280 return NULL;
23281}
23282
23283
23284SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23285 PyObject *resultobj = 0;
23286 wxDC *arg1 = (wxDC *) 0 ;
23287 PyObject *arg2 = (PyObject *) 0 ;
23288 PyObject *arg3 = (PyObject *) 0 ;
23289 PyObject *arg4 = (PyObject *) 0 ;
23290 PyObject *result = 0 ;
23291 void *argp1 = 0 ;
23292 int res1 = 0 ;
23293 PyObject * obj0 = 0 ;
23294 PyObject * obj1 = 0 ;
23295 PyObject * obj2 = 0 ;
23296 PyObject * obj3 = 0 ;
23297 char * kwnames[] = {
23298 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23299 };
23300
23301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23303 if (!SWIG_IsOK(res1)) {
23304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
23305 }
23306 arg1 = reinterpret_cast< wxDC * >(argp1);
23307 arg2 = obj1;
23308 arg3 = obj2;
23309 arg4 = obj3;
23310 {
23311 PyThreadState* __tstate = wxPyBeginAllowThreads();
23312 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
23313 wxPyEndAllowThreads(__tstate);
23314 if (PyErr_Occurred()) SWIG_fail;
23315 }
23316 resultobj = result;
23317 return resultobj;
23318fail:
23319 return NULL;
23320}
23321
23322
23323SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23324 PyObject *resultobj = 0;
23325 wxDC *arg1 = (wxDC *) 0 ;
23326 PyObject *arg2 = (PyObject *) 0 ;
23327 PyObject *arg3 = (PyObject *) 0 ;
23328 PyObject *arg4 = (PyObject *) 0 ;
23329 PyObject *result = 0 ;
23330 void *argp1 = 0 ;
23331 int res1 = 0 ;
23332 PyObject * obj0 = 0 ;
23333 PyObject * obj1 = 0 ;
23334 PyObject * obj2 = 0 ;
23335 PyObject * obj3 = 0 ;
23336 char * kwnames[] = {
23337 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23338 };
23339
23340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23342 if (!SWIG_IsOK(res1)) {
23343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23344 }
23345 arg1 = reinterpret_cast< wxDC * >(argp1);
23346 arg2 = obj1;
23347 arg3 = obj2;
23348 arg4 = obj3;
23349 {
23350 PyThreadState* __tstate = wxPyBeginAllowThreads();
23351 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23352 wxPyEndAllowThreads(__tstate);
23353 if (PyErr_Occurred()) SWIG_fail;
23354 }
23355 resultobj = result;
23356 return resultobj;
23357fail:
23358 return NULL;
23359}
23360
23361
23362SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23363 PyObject *resultobj = 0;
23364 wxDC *arg1 = (wxDC *) 0 ;
23365 PyObject *arg2 = (PyObject *) 0 ;
23366 PyObject *arg3 = (PyObject *) 0 ;
23367 PyObject *arg4 = (PyObject *) 0 ;
23368 PyObject *result = 0 ;
23369 void *argp1 = 0 ;
23370 int res1 = 0 ;
23371 PyObject * obj0 = 0 ;
23372 PyObject * obj1 = 0 ;
23373 PyObject * obj2 = 0 ;
23374 PyObject * obj3 = 0 ;
23375 char * kwnames[] = {
23376 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23377 };
23378
23379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23381 if (!SWIG_IsOK(res1)) {
23382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23383 }
23384 arg1 = reinterpret_cast< wxDC * >(argp1);
23385 arg2 = obj1;
23386 arg3 = obj2;
23387 arg4 = obj3;
23388 {
23389 PyThreadState* __tstate = wxPyBeginAllowThreads();
23390 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23391 wxPyEndAllowThreads(__tstate);
23392 if (PyErr_Occurred()) SWIG_fail;
23393 }
23394 resultobj = result;
23395 return resultobj;
23396fail:
23397 return NULL;
23398}
23399
23400
23401SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23402 PyObject *resultobj = 0;
23403 wxDC *arg1 = (wxDC *) 0 ;
23404 PyObject *arg2 = (PyObject *) 0 ;
23405 PyObject *arg3 = (PyObject *) 0 ;
23406 PyObject *arg4 = (PyObject *) 0 ;
23407 PyObject *arg5 = (PyObject *) 0 ;
23408 PyObject *result = 0 ;
23409 void *argp1 = 0 ;
23410 int res1 = 0 ;
23411 PyObject * obj0 = 0 ;
23412 PyObject * obj1 = 0 ;
23413 PyObject * obj2 = 0 ;
23414 PyObject * obj3 = 0 ;
23415 PyObject * obj4 = 0 ;
23416 char * kwnames[] = {
23417 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23418 };
23419
23420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23422 if (!SWIG_IsOK(res1)) {
23423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23424 }
23425 arg1 = reinterpret_cast< wxDC * >(argp1);
23426 arg2 = obj1;
23427 arg3 = obj2;
23428 arg4 = obj3;
23429 arg5 = obj4;
23430 {
23431 PyThreadState* __tstate = wxPyBeginAllowThreads();
23432 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23433 wxPyEndAllowThreads(__tstate);
23434 if (PyErr_Occurred()) SWIG_fail;
23435 }
23436 resultobj = result;
23437 return resultobj;
23438fail:
23439 return NULL;
23440}
23441
23442
23443SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23444 PyObject *obj;
23445 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23446 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23447 return SWIG_Py_Void();
23448}
23449
70d7cb34
RD
23450SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23451 PyObject *resultobj = 0;
23452 wxDC *arg1 = 0 ;
23453 wxColour *arg2 = 0 ;
23454 wxDCTextColourChanger *result = 0 ;
23455 void *argp1 = 0 ;
23456 int res1 = 0 ;
23457 wxColour temp2 ;
23458 PyObject * obj0 = 0 ;
23459 PyObject * obj1 = 0 ;
23460 char * kwnames[] = {
23461 (char *) "dc",(char *) "col", NULL
23462 };
23463
23464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23465 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23466 if (!SWIG_IsOK(res1)) {
23467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23468 }
23469 if (!argp1) {
23470 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23471 }
23472 arg1 = reinterpret_cast< wxDC * >(argp1);
23473 {
23474 arg2 = &temp2;
23475 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23476 }
23477 {
23478 PyThreadState* __tstate = wxPyBeginAllowThreads();
23479 result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2);
23480 wxPyEndAllowThreads(__tstate);
23481 if (PyErr_Occurred()) SWIG_fail;
23482 }
23483 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 );
23484 return resultobj;
23485fail:
23486 return NULL;
23487}
23488
23489
23490SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23491 PyObject *resultobj = 0;
23492 wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ;
23493 void *argp1 = 0 ;
23494 int res1 = 0 ;
23495 PyObject *swig_obj[1] ;
23496
23497 if (!args) SWIG_fail;
23498 swig_obj[0] = args;
23499 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 );
23500 if (!SWIG_IsOK(res1)) {
23501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'");
23502 }
23503 arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1);
23504 {
23505 PyThreadState* __tstate = wxPyBeginAllowThreads();
23506 delete arg1;
23507
23508 wxPyEndAllowThreads(__tstate);
23509 if (PyErr_Occurred()) SWIG_fail;
23510 }
23511 resultobj = SWIG_Py_Void();
23512 return resultobj;
23513fail:
23514 return NULL;
23515}
23516
23517
23518SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23519 PyObject *obj;
23520 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23521 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj));
23522 return SWIG_Py_Void();
23523}
23524
23525SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23526 return SWIG_Python_InitShadowInstance(args);
23527}
23528
23529SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23530 PyObject *resultobj = 0;
23531 wxDC *arg1 = 0 ;
23532 wxPen *arg2 = 0 ;
23533 wxDCPenChanger *result = 0 ;
23534 void *argp1 = 0 ;
23535 int res1 = 0 ;
23536 void *argp2 = 0 ;
23537 int res2 = 0 ;
23538 PyObject * obj0 = 0 ;
23539 PyObject * obj1 = 0 ;
23540 char * kwnames[] = {
23541 (char *) "dc",(char *) "pen", NULL
23542 };
23543
23544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23545 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23546 if (!SWIG_IsOK(res1)) {
23547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23548 }
23549 if (!argp1) {
23550 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23551 }
23552 arg1 = reinterpret_cast< wxDC * >(argp1);
23553 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
23554 if (!SWIG_IsOK(res2)) {
23555 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23556 }
23557 if (!argp2) {
23558 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23559 }
23560 arg2 = reinterpret_cast< wxPen * >(argp2);
23561 {
23562 PyThreadState* __tstate = wxPyBeginAllowThreads();
23563 result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2);
23564 wxPyEndAllowThreads(__tstate);
23565 if (PyErr_Occurred()) SWIG_fail;
23566 }
23567 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 );
23568 return resultobj;
23569fail:
23570 return NULL;
23571}
23572
23573
23574SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23575 PyObject *resultobj = 0;
23576 wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ;
23577 void *argp1 = 0 ;
23578 int res1 = 0 ;
23579 PyObject *swig_obj[1] ;
23580
23581 if (!args) SWIG_fail;
23582 swig_obj[0] = args;
23583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 );
23584 if (!SWIG_IsOK(res1)) {
23585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'");
23586 }
23587 arg1 = reinterpret_cast< wxDCPenChanger * >(argp1);
23588 {
23589 PyThreadState* __tstate = wxPyBeginAllowThreads();
23590 delete arg1;
23591
23592 wxPyEndAllowThreads(__tstate);
23593 if (PyErr_Occurred()) SWIG_fail;
23594 }
23595 resultobj = SWIG_Py_Void();
23596 return resultobj;
23597fail:
23598 return NULL;
23599}
23600
23601
23602SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23603 PyObject *obj;
23604 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23605 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj));
23606 return SWIG_Py_Void();
23607}
23608
23609SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23610 return SWIG_Python_InitShadowInstance(args);
23611}
23612
23613SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23614 PyObject *resultobj = 0;
23615 wxDC *arg1 = 0 ;
23616 wxBrush *arg2 = 0 ;
23617 wxDCBrushChanger *result = 0 ;
23618 void *argp1 = 0 ;
23619 int res1 = 0 ;
23620 void *argp2 = 0 ;
23621 int res2 = 0 ;
23622 PyObject * obj0 = 0 ;
23623 PyObject * obj1 = 0 ;
23624 char * kwnames[] = {
23625 (char *) "dc",(char *) "brush", NULL
23626 };
23627
23628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23629 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23630 if (!SWIG_IsOK(res1)) {
23631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23632 }
23633 if (!argp1) {
23634 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23635 }
23636 arg1 = reinterpret_cast< wxDC * >(argp1);
23637 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
23638 if (!SWIG_IsOK(res2)) {
23639 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23640 }
23641 if (!argp2) {
23642 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23643 }
23644 arg2 = reinterpret_cast< wxBrush * >(argp2);
23645 {
23646 PyThreadState* __tstate = wxPyBeginAllowThreads();
23647 result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2);
23648 wxPyEndAllowThreads(__tstate);
23649 if (PyErr_Occurred()) SWIG_fail;
23650 }
23651 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 );
23652 return resultobj;
23653fail:
23654 return NULL;
23655}
23656
23657
23658SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23659 PyObject *resultobj = 0;
23660 wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ;
23661 void *argp1 = 0 ;
23662 int res1 = 0 ;
23663 PyObject *swig_obj[1] ;
23664
23665 if (!args) SWIG_fail;
23666 swig_obj[0] = args;
23667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 );
23668 if (!SWIG_IsOK(res1)) {
23669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'");
23670 }
23671 arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1);
23672 {
23673 PyThreadState* __tstate = wxPyBeginAllowThreads();
23674 delete arg1;
23675
23676 wxPyEndAllowThreads(__tstate);
23677 if (PyErr_Occurred()) SWIG_fail;
23678 }
23679 resultobj = SWIG_Py_Void();
23680 return resultobj;
23681fail:
23682 return NULL;
23683}
23684
23685
23686SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23687 PyObject *obj;
23688 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23689 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj));
23690 return SWIG_Py_Void();
23691}
23692
23693SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23694 return SWIG_Python_InitShadowInstance(args);
23695}
23696
23697SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23698 PyObject *resultobj = 0;
23699 wxDC *arg1 = 0 ;
23700 wxRegion *arg2 = 0 ;
23701 wxDCClipper *result = 0 ;
23702 void *argp1 = 0 ;
23703 int res1 = 0 ;
23704 void *argp2 = 0 ;
23705 int res2 = 0 ;
23706
23707 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23708 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23709 if (!SWIG_IsOK(res1)) {
23710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23711 }
23712 if (!argp1) {
23713 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23714 }
23715 arg1 = reinterpret_cast< wxDC * >(argp1);
23716 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
23717 if (!SWIG_IsOK(res2)) {
23718 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23719 }
23720 if (!argp2) {
23721 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23722 }
23723 arg2 = reinterpret_cast< wxRegion * >(argp2);
23724 {
23725 PyThreadState* __tstate = wxPyBeginAllowThreads();
23726 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2);
23727 wxPyEndAllowThreads(__tstate);
23728 if (PyErr_Occurred()) SWIG_fail;
23729 }
23730 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23731 return resultobj;
23732fail:
23733 return NULL;
23734}
23735
23736
23737SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23738 PyObject *resultobj = 0;
23739 wxDC *arg1 = 0 ;
23740 wxRect *arg2 = 0 ;
23741 wxDCClipper *result = 0 ;
23742 void *argp1 = 0 ;
23743 int res1 = 0 ;
23744 wxRect temp2 ;
23745
23746 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23747 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23748 if (!SWIG_IsOK(res1)) {
23749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23750 }
23751 if (!argp1) {
23752 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23753 }
23754 arg1 = reinterpret_cast< wxDC * >(argp1);
23755 {
23756 arg2 = &temp2;
23757 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
23758 }
23759 {
23760 PyThreadState* __tstate = wxPyBeginAllowThreads();
23761 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2);
23762 wxPyEndAllowThreads(__tstate);
23763 if (PyErr_Occurred()) SWIG_fail;
23764 }
23765 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23766 return resultobj;
23767fail:
23768 return NULL;
23769}
23770
23771
23772SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23773 PyObject *resultobj = 0;
23774 wxDC *arg1 = 0 ;
23775 int arg2 ;
23776 int arg3 ;
23777 int arg4 ;
23778 int arg5 ;
23779 wxDCClipper *result = 0 ;
23780 void *argp1 = 0 ;
23781 int res1 = 0 ;
23782 int val2 ;
23783 int ecode2 = 0 ;
23784 int val3 ;
23785 int ecode3 = 0 ;
23786 int val4 ;
23787 int ecode4 = 0 ;
23788 int val5 ;
23789 int ecode5 = 0 ;
23790
23791 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
23792 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23793 if (!SWIG_IsOK(res1)) {
23794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23795 }
23796 if (!argp1) {
23797 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23798 }
23799 arg1 = reinterpret_cast< wxDC * >(argp1);
23800 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
23801 if (!SWIG_IsOK(ecode2)) {
23802 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'");
23803 }
23804 arg2 = static_cast< int >(val2);
23805 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23806 if (!SWIG_IsOK(ecode3)) {
23807 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'");
23808 }
23809 arg3 = static_cast< int >(val3);
23810 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
23811 if (!SWIG_IsOK(ecode4)) {
23812 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'");
23813 }
23814 arg4 = static_cast< int >(val4);
23815 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
23816 if (!SWIG_IsOK(ecode5)) {
23817 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'");
23818 }
23819 arg5 = static_cast< int >(val5);
23820 {
23821 PyThreadState* __tstate = wxPyBeginAllowThreads();
23822 result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5);
23823 wxPyEndAllowThreads(__tstate);
23824 if (PyErr_Occurred()) SWIG_fail;
23825 }
23826 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23827 return resultobj;
23828fail:
23829 return NULL;
23830}
23831
23832
23833SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) {
23834 int argc;
23835 PyObject *argv[6];
23836
23837 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail;
23838 --argc;
23839 if (argc == 2) {
23840 int _v = 0;
23841 {
23842 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0);
23843 _v = SWIG_CheckState(res);
23844 }
23845 if (!_v) goto check_1;
23846 return _wrap_new_DCClipper__SWIG_0(self, argc, argv);
23847 }
23848check_1:
23849
23850 if (argc == 2) {
23851 return _wrap_new_DCClipper__SWIG_1(self, argc, argv);
23852 }
23853 if (argc == 5) {
23854 return _wrap_new_DCClipper__SWIG_2(self, argc, argv);
23855 }
23856
23857fail:
23858 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'");
23859 return NULL;
23860}
23861
23862
23863SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23864 PyObject *resultobj = 0;
23865 wxDCClipper *arg1 = (wxDCClipper *) 0 ;
23866 void *argp1 = 0 ;
23867 int res1 = 0 ;
23868 PyObject *swig_obj[1] ;
23869
23870 if (!args) SWIG_fail;
23871 swig_obj[0] = args;
23872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 );
23873 if (!SWIG_IsOK(res1)) {
23874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'");
23875 }
23876 arg1 = reinterpret_cast< wxDCClipper * >(argp1);
23877 {
23878 PyThreadState* __tstate = wxPyBeginAllowThreads();
23879 delete arg1;
23880
23881 wxPyEndAllowThreads(__tstate);
23882 if (PyErr_Occurred()) SWIG_fail;
23883 }
23884 resultobj = SWIG_Py_Void();
23885 return resultobj;
23886fail:
23887 return NULL;
23888}
23889
23890
23891SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23892 PyObject *obj;
23893 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23894 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj));
23895 return SWIG_Py_Void();
23896}
23897
23898SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23899 return SWIG_Python_InitShadowInstance(args);
23900}
23901
8e99bda9 23902SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 23903 PyObject *resultobj = 0;
8f514ab4 23904 wxBitmap &arg1_defvalue = wxNullBitmap ;
8e99bda9 23905 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
1bd55598 23906 wxMemoryDC *result = 0 ;
8e99bda9
RD
23907 void *argp1 = 0 ;
23908 int res1 = 0 ;
23909 PyObject * obj0 = 0 ;
23910 char * kwnames[] = {
23911 (char *) "bitmap", NULL
23912 };
1bd55598 23913
8e99bda9
RD
23914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
23915 if (obj0) {
8f514ab4 23916 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 );
8e99bda9 23917 if (!SWIG_IsOK(res1)) {
8f514ab4 23918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
8e99bda9
RD
23919 }
23920 if (!argp1) {
8f514ab4 23921 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
8e99bda9
RD
23922 }
23923 arg1 = reinterpret_cast< wxBitmap * >(argp1);
23924 }
1bd55598
RD
23925 {
23926 if (!wxPyCheckForApp()) SWIG_fail;
23927 PyThreadState* __tstate = wxPyBeginAllowThreads();
8f514ab4 23928 result = (wxMemoryDC *)new wxMemoryDC(*arg1);
1bd55598
RD
23929 wxPyEndAllowThreads(__tstate);
23930 if (PyErr_Occurred()) SWIG_fail;
23931 }
23932 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
23933 return resultobj;
23934fail:
23935 return NULL;
23936}
23937
23938
23939SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23940 PyObject *resultobj = 0;
23941 wxDC *arg1 = (wxDC *) 0 ;
23942 wxMemoryDC *result = 0 ;
23943 void *argp1 = 0 ;
23944 int res1 = 0 ;
23945 PyObject * obj0 = 0 ;
23946 char * kwnames[] = {
23947 (char *) "oldDC", NULL
23948 };
23949
23950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
23951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23952 if (!SWIG_IsOK(res1)) {
23953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
23954 }
23955 arg1 = reinterpret_cast< wxDC * >(argp1);
23956 {
23957 if (!wxPyCheckForApp()) SWIG_fail;
23958 PyThreadState* __tstate = wxPyBeginAllowThreads();
23959 result = (wxMemoryDC *)new wxMemoryDC(arg1);
23960 wxPyEndAllowThreads(__tstate);
23961 if (PyErr_Occurred()) SWIG_fail;
23962 }
23963 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
23964 return resultobj;
23965fail:
23966 return NULL;
23967}
23968
23969
23970SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23971 PyObject *resultobj = 0;
23972 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
23973 wxBitmap *arg2 = 0 ;
23974 void *argp1 = 0 ;
23975 int res1 = 0 ;
23976 void *argp2 = 0 ;
23977 int res2 = 0 ;
23978 PyObject * obj0 = 0 ;
23979 PyObject * obj1 = 0 ;
23980 char * kwnames[] = {
23981 (char *) "self",(char *) "bitmap", NULL
23982 };
23983
23984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
23985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
23986 if (!SWIG_IsOK(res1)) {
23987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
23988 }
23989 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
8f514ab4
RD
23990 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
23991 if (!SWIG_IsOK(res2)) {
23992 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
23993 }
23994 if (!argp2) {
23995 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
23996 }
23997 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23998 {
23999 PyThreadState* __tstate = wxPyBeginAllowThreads();
24000 (arg1)->SelectObject(*arg2);
24001 wxPyEndAllowThreads(__tstate);
24002 if (PyErr_Occurred()) SWIG_fail;
24003 }
24004 resultobj = SWIG_Py_Void();
24005 return resultobj;
24006fail:
24007 return NULL;
24008}
24009
24010
24011SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24012 PyObject *resultobj = 0;
24013 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24014 wxBitmap *arg2 = 0 ;
24015 void *argp1 = 0 ;
24016 int res1 = 0 ;
24017 void *argp2 = 0 ;
24018 int res2 = 0 ;
24019 PyObject * obj0 = 0 ;
24020 PyObject * obj1 = 0 ;
24021 char * kwnames[] = {
24022 (char *) "self",(char *) "bmp", NULL
24023 };
24024
24025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail;
24026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24027 if (!SWIG_IsOK(res1)) {
24028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24029 }
24030 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
1bd55598
RD
24031 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24032 if (!SWIG_IsOK(res2)) {
8f514ab4 24033 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
1bd55598
RD
24034 }
24035 if (!argp2) {
8f514ab4 24036 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
1bd55598
RD
24037 }
24038 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24039 {
24040 PyThreadState* __tstate = wxPyBeginAllowThreads();
8f514ab4 24041 (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2);
1bd55598
RD
24042 wxPyEndAllowThreads(__tstate);
24043 if (PyErr_Occurred()) SWIG_fail;
24044 }
24045 resultobj = SWIG_Py_Void();
24046 return resultobj;
24047fail:
24048 return NULL;
24049}
24050
24051
24052SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24053 PyObject *obj;
24054 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24055 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
24056 return SWIG_Py_Void();
24057}
24058
24059SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24060 return SWIG_Python_InitShadowInstance(args);
24061}
24062
24f6c4e8
RD
24063SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24064 PyObject *resultobj = 0;
24065 wxScreenDC *result = 0 ;
24066
24067 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
24068 {
24069 if (!wxPyCheckForApp()) SWIG_fail;
24070 PyThreadState* __tstate = wxPyBeginAllowThreads();
24071 result = (wxScreenDC *)new wxScreenDC();
24072 wxPyEndAllowThreads(__tstate);
24073 if (PyErr_Occurred()) SWIG_fail;
24074 }
24075 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
24076 return resultobj;
24077fail:
24078 return NULL;
24079}
24080
24081
24082SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24083 PyObject *resultobj = 0;
24084 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24085 wxWindow *arg2 = (wxWindow *) 0 ;
24086 bool result;
24087 void *argp1 = 0 ;
24088 int res1 = 0 ;
24089 void *argp2 = 0 ;
24090 int res2 = 0 ;
24091 PyObject * obj0 = 0 ;
24092 PyObject * obj1 = 0 ;
24093 char * kwnames[] = {
24094 (char *) "self",(char *) "window", NULL
24095 };
24096
24097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
24098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24099 if (!SWIG_IsOK(res1)) {
24100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24101 }
24102 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24103 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24104 if (!SWIG_IsOK(res2)) {
24105 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
24106 }
24107 arg2 = reinterpret_cast< wxWindow * >(argp2);
24108 {
24109 PyThreadState* __tstate = wxPyBeginAllowThreads();
24110 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24111 wxPyEndAllowThreads(__tstate);
24112 if (PyErr_Occurred()) SWIG_fail;
24113 }
24114 {
24115 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24116 }
24117 return resultobj;
24118fail:
24119 return NULL;
24120}
24121
24122
24123SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24124 PyObject *resultobj = 0;
24125 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24126 wxRect *arg2 = (wxRect *) NULL ;
24127 bool result;
24128 void *argp1 = 0 ;
24129 int res1 = 0 ;
24130 void *argp2 = 0 ;
24131 int res2 = 0 ;
24132 PyObject * obj0 = 0 ;
24133 PyObject * obj1 = 0 ;
24134 char * kwnames[] = {
24135 (char *) "self",(char *) "rect", NULL
24136 };
24137
24138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
24139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24140 if (!SWIG_IsOK(res1)) {
24141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24142 }
24143 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24144 if (obj1) {
24145 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
24146 if (!SWIG_IsOK(res2)) {
24147 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
24148 }
24149 arg2 = reinterpret_cast< wxRect * >(argp2);
24150 }
24151 {
24152 PyThreadState* __tstate = wxPyBeginAllowThreads();
24153 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24154 wxPyEndAllowThreads(__tstate);
24155 if (PyErr_Occurred()) SWIG_fail;
24156 }
24157 {
24158 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24159 }
24160 return resultobj;
24161fail:
24162 return NULL;
24163}
24164
24165
24166SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24167 PyObject *resultobj = 0;
24168 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24169 bool result;
24170 void *argp1 = 0 ;
24171 int res1 = 0 ;
24172 PyObject *swig_obj[1] ;
24173
24174 if (!args) SWIG_fail;
24175 swig_obj[0] = args;
24176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24177 if (!SWIG_IsOK(res1)) {
24178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24179 }
24180 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24181 {
24182 PyThreadState* __tstate = wxPyBeginAllowThreads();
24183 result = (bool)(arg1)->EndDrawingOnTop();
24184 wxPyEndAllowThreads(__tstate);
24185 if (PyErr_Occurred()) SWIG_fail;
24186 }
24187 {
24188 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24189 }
24190 return resultobj;
24191fail:
24192 return NULL;
24193}
24194
24195
24196SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24197 PyObject *obj;
24198 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24199 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24200 return SWIG_Py_Void();
24201}
24202
24203SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24204 return SWIG_Python_InitShadowInstance(args);
24205}
24206
24207SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24208 PyObject *resultobj = 0;
24209 wxWindow *arg1 = (wxWindow *) 0 ;
24210 wxWindowDC *result = 0 ;
24211 void *argp1 = 0 ;
24212 int res1 = 0 ;
24213 PyObject * obj0 = 0 ;
24214 char * kwnames[] = {
24215 (char *) "win", NULL
24216 };
24217
24218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24220 if (!SWIG_IsOK(res1)) {
24221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24222 }
24223 arg1 = reinterpret_cast< wxWindow * >(argp1);
24224 {
24225 if (!wxPyCheckForApp()) SWIG_fail;
24226 PyThreadState* __tstate = wxPyBeginAllowThreads();
24227 result = (wxWindowDC *)new wxWindowDC(arg1);
24228 wxPyEndAllowThreads(__tstate);
24229 if (PyErr_Occurred()) SWIG_fail;
24230 }
24231 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24232 return resultobj;
24233fail:
24234 return NULL;
24235}
24236
24237
24238SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24239 PyObject *obj;
24240 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24241 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24242 return SWIG_Py_Void();
24243}
24244
24245SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24246 return SWIG_Python_InitShadowInstance(args);
24247}
24248
24249SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24250 PyObject *resultobj = 0;
24251 wxWindow *arg1 = (wxWindow *) 0 ;
24252 wxClientDC *result = 0 ;
24253 void *argp1 = 0 ;
24254 int res1 = 0 ;
24255 PyObject * obj0 = 0 ;
24256 char * kwnames[] = {
24257 (char *) "win", NULL
24258 };
24259
24260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24262 if (!SWIG_IsOK(res1)) {
24263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24264 }
24265 arg1 = reinterpret_cast< wxWindow * >(argp1);
24266 {
24267 if (!wxPyCheckForApp()) SWIG_fail;
24268 PyThreadState* __tstate = wxPyBeginAllowThreads();
24269 result = (wxClientDC *)new wxClientDC(arg1);
24270 wxPyEndAllowThreads(__tstate);
24271 if (PyErr_Occurred()) SWIG_fail;
24272 }
24273 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24274 return resultobj;
24275fail:
24276 return NULL;
24277}
24278
24279
24280SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24281 PyObject *obj;
24282 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24283 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24284 return SWIG_Py_Void();
24285}
24286
24287SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24288 return SWIG_Python_InitShadowInstance(args);
24289}
24290
24291SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24292 PyObject *resultobj = 0;
24293 wxWindow *arg1 = (wxWindow *) 0 ;
24294 wxPaintDC *result = 0 ;
24295 void *argp1 = 0 ;
24296 int res1 = 0 ;
24297 PyObject * obj0 = 0 ;
24298 char * kwnames[] = {
24299 (char *) "win", NULL
24300 };
24301
24302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24304 if (!SWIG_IsOK(res1)) {
24305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24306 }
24307 arg1 = reinterpret_cast< wxWindow * >(argp1);
24308 {
24309 if (!wxPyCheckForApp()) SWIG_fail;
24310 PyThreadState* __tstate = wxPyBeginAllowThreads();
24311 result = (wxPaintDC *)new wxPaintDC(arg1);
24312 wxPyEndAllowThreads(__tstate);
24313 if (PyErr_Occurred()) SWIG_fail;
24314 }
24315 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24316 return resultobj;
24317fail:
24318 return NULL;
24319}
24320
24321
24322SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24323 PyObject *obj;
24324 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24325 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24326 return SWIG_Py_Void();
24327}
24328
24329SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24330 return SWIG_Python_InitShadowInstance(args);
24331}
24332
1bd55598
RD
24333SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24334 PyObject *resultobj = 0;
24335 wxDC *arg1 = (wxDC *) 0 ;
24336 wxBitmap const &arg2_defvalue = wxNullBitmap ;
24337 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24338 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24339 wxBufferedDC *result = 0 ;
24340 void *argp1 = 0 ;
24341 int res1 = 0 ;
24342 void *argp2 = 0 ;
24343 int res2 = 0 ;
24344 int val3 ;
24345 int ecode3 = 0 ;
24346
24347 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
24348 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24349 if (!SWIG_IsOK(res1)) {
24350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24351 }
24352 arg1 = reinterpret_cast< wxDC * >(argp1);
24353 if (swig_obj[1]) {
24354 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24355 if (!SWIG_IsOK(res2)) {
24356 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36ed4f51 24357 }
1bd55598
RD
24358 if (!argp2) {
24359 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36ed4f51 24360 }
1bd55598
RD
24361 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24362 }
24363 if (swig_obj[2]) {
24364 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24365 if (!SWIG_IsOK(ecode3)) {
24366 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24367 }
24368 arg3 = static_cast< int >(val3);
24369 }
24370 {
24371 if (!wxPyCheckForApp()) SWIG_fail;
24372 PyThreadState* __tstate = wxPyBeginAllowThreads();
24373 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
24374 wxPyEndAllowThreads(__tstate);
24375 if (PyErr_Occurred()) SWIG_fail;
24376 }
24377 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24378 return resultobj;
24379fail:
24380 return NULL;
24381}
24382
24383
24384SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24385 PyObject *resultobj = 0;
24386 wxDC *arg1 = (wxDC *) 0 ;
24387 wxSize *arg2 = 0 ;
24388 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24389 wxBufferedDC *result = 0 ;
24390 void *argp1 = 0 ;
24391 int res1 = 0 ;
24392 wxSize temp2 ;
24393 int val3 ;
24394 int ecode3 = 0 ;
24395
24396 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
24397 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24398 if (!SWIG_IsOK(res1)) {
24399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24400 }
24401 arg1 = reinterpret_cast< wxDC * >(argp1);
24402 {
24403 arg2 = &temp2;
24404 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
24405 }
24406 if (swig_obj[2]) {
24407 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24408 if (!SWIG_IsOK(ecode3)) {
24409 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24410 }
24411 arg3 = static_cast< int >(val3);
24412 }
24413 {
24414 if (!wxPyCheckForApp()) SWIG_fail;
24415 PyThreadState* __tstate = wxPyBeginAllowThreads();
24416 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
24417 wxPyEndAllowThreads(__tstate);
24418 if (PyErr_Occurred()) SWIG_fail;
24419 }
24420 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24421 return resultobj;
24422fail:
24423 return NULL;
24424}
24425
24426
24427SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
24428 int argc;
8e99bda9 24429 PyObject *argv[4];
1bd55598 24430
8e99bda9 24431 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
1bd55598
RD
24432 --argc;
24433 if ((argc >= 1) && (argc <= 3)) {
24434 int _v = 0;
24435 if (argc > 1) {
24436 {
24437 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
24438 _v = SWIG_CheckState(res);
24439 }
24440 if (!_v) goto check_1;
36ed4f51 24441 }
1bd55598
RD
24442 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
24443 }
24444check_1:
24445
24446 if ((argc >= 2) && (argc <= 3)) {
24447 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
24448 }
24449
24450fail:
24451 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
24452 return NULL;
24453}
24454
24455
24456SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24457 PyObject *resultobj = 0;
24458 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24459 void *argp1 = 0 ;
24460 int res1 = 0 ;
24461 PyObject *swig_obj[1] ;
24462
24463 if (!args) SWIG_fail;
24464 swig_obj[0] = args;
24465 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
24466 if (!SWIG_IsOK(res1)) {
24467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24468 }
24469 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24470 {
24471 PyThreadState* __tstate = wxPyBeginAllowThreads();
24472 delete arg1;
24473
24474 wxPyEndAllowThreads(__tstate);
24475 if (PyErr_Occurred()) SWIG_fail;
24476 }
24477 resultobj = SWIG_Py_Void();
24478 return resultobj;
24479fail:
24480 return NULL;
24481}
24482
24483
24484SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24485 PyObject *resultobj = 0;
24486 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24487 void *argp1 = 0 ;
24488 int res1 = 0 ;
24489 PyObject *swig_obj[1] ;
24490
24491 if (!args) SWIG_fail;
24492 swig_obj[0] = args;
24493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24494 if (!SWIG_IsOK(res1)) {
24495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24496 }
24497 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24498 {
24499 PyThreadState* __tstate = wxPyBeginAllowThreads();
24500 (arg1)->UnMask();
24501 wxPyEndAllowThreads(__tstate);
24502 if (PyErr_Occurred()) SWIG_fail;
24503 }
24504 resultobj = SWIG_Py_Void();
24505 return resultobj;
24506fail:
24507 return NULL;
24508}
24509
24510
24511SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24512 PyObject *obj;
24513 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24514 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
24515 return SWIG_Py_Void();
24516}
24517
24518SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24519 return SWIG_Python_InitShadowInstance(args);
24520}
24521
24522SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24523 PyObject *resultobj = 0;
24524 wxWindow *arg1 = (wxWindow *) 0 ;
24525 wxBitmap const &arg2_defvalue = wxNullBitmap ;
24526 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24527 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24528 wxBufferedPaintDC *result = 0 ;
24529 void *argp1 = 0 ;
24530 int res1 = 0 ;
24531 void *argp2 = 0 ;
24532 int res2 = 0 ;
24533 int val3 ;
24534 int ecode3 = 0 ;
24535 PyObject * obj0 = 0 ;
24536 PyObject * obj1 = 0 ;
24537 PyObject * obj2 = 0 ;
24538 char * kwnames[] = {
24539 (char *) "window",(char *) "buffer",(char *) "style", NULL
24540 };
24541
24542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24544 if (!SWIG_IsOK(res1)) {
24545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24546 }
24547 arg1 = reinterpret_cast< wxWindow * >(argp1);
24548 if (obj1) {
24549 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24550 if (!SWIG_IsOK(res2)) {
24551 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36ed4f51 24552 }
1bd55598
RD
24553 if (!argp2) {
24554 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36ed4f51 24555 }
1bd55598
RD
24556 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24557 }
24558 if (obj2) {
24559 ecode3 = SWIG_AsVal_int(obj2, &val3);
24560 if (!SWIG_IsOK(ecode3)) {
24561 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
24562 }
24563 arg3 = static_cast< int >(val3);
24564 }
24565 {
24566 if (!wxPyCheckForApp()) SWIG_fail;
24567 PyThreadState* __tstate = wxPyBeginAllowThreads();
24568 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
24569 wxPyEndAllowThreads(__tstate);
24570 if (PyErr_Occurred()) SWIG_fail;
24571 }
24572 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
24573 return resultobj;
24574fail:
24575 return NULL;
24576}
24577
24578
24579SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24580 PyObject *obj;
24581 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24582 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
24583 return SWIG_Py_Void();
24584}
24585
24586SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24587 return SWIG_Python_InitShadowInstance(args);
24588}
24589
24f6c4e8 24590SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
24591 PyObject *resultobj = 0;
24592 wxWindow *arg1 = (wxWindow *) 0 ;
24f6c4e8 24593 wxAutoBufferedPaintDC *result = 0 ;
1bd55598
RD
24594 void *argp1 = 0 ;
24595 int res1 = 0 ;
24596 PyObject * obj0 = 0 ;
24597 char * kwnames[] = {
24598 (char *) "win", NULL
24599 };
24600
24f6c4e8 24601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
1bd55598
RD
24602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24603 if (!SWIG_IsOK(res1)) {
24f6c4e8 24604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
1bd55598
RD
24605 }
24606 arg1 = reinterpret_cast< wxWindow * >(argp1);
24607 {
1bd55598 24608 PyThreadState* __tstate = wxPyBeginAllowThreads();
24f6c4e8 24609 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
1bd55598
RD
24610 wxPyEndAllowThreads(__tstate);
24611 if (PyErr_Occurred()) SWIG_fail;
24612 }
24f6c4e8 24613 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
1bd55598
RD
24614 return resultobj;
24615fail:
24616 return NULL;
24617}
24618
24619
24f6c4e8 24620SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
24621 PyObject *obj;
24622 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24f6c4e8 24623 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
1bd55598
RD
24624 return SWIG_Py_Void();
24625}
24626
24f6c4e8 24627SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
24628 return SWIG_Python_InitShadowInstance(args);
24629}
24630
8e99bda9
RD
24631SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24632 PyObject *resultobj = 0;
24633 wxWindow *arg1 = (wxWindow *) 0 ;
24634 wxDC *result = 0 ;
24635 void *argp1 = 0 ;
24636 int res1 = 0 ;
24637 PyObject * obj0 = 0 ;
24638 char * kwnames[] = {
24639 (char *) "window", NULL
24640 };
24641
24642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
24643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24644 if (!SWIG_IsOK(res1)) {
24645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
24646 }
24647 arg1 = reinterpret_cast< wxWindow * >(argp1);
24648 {
24649 PyThreadState* __tstate = wxPyBeginAllowThreads();
24650 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
24651 wxPyEndAllowThreads(__tstate);
24652 if (PyErr_Occurred()) SWIG_fail;
24653 }
24654 {
24655 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
24656 }
24657 return resultobj;
24658fail:
24659 return NULL;
24660}
24661
24662
1bd55598
RD
24663SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24664 PyObject *resultobj = 0;
24665 wxDC *arg1 = 0 ;
24666 bool arg2 ;
24667 wxMirrorDC *result = 0 ;
24668 void *argp1 = 0 ;
24669 int res1 = 0 ;
24670 bool val2 ;
24671 int ecode2 = 0 ;
24672 PyObject * obj0 = 0 ;
24673 PyObject * obj1 = 0 ;
24674 char * kwnames[] = {
24675 (char *) "dc",(char *) "mirror", NULL
24676 };
24677
24678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
24679 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24680 if (!SWIG_IsOK(res1)) {
24681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24682 }
24683 if (!argp1) {
24684 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24685 }
24686 arg1 = reinterpret_cast< wxDC * >(argp1);
24687 ecode2 = SWIG_AsVal_bool(obj1, &val2);
24688 if (!SWIG_IsOK(ecode2)) {
24689 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
24690 }
24691 arg2 = static_cast< bool >(val2);
24692 {
24693 if (!wxPyCheckForApp()) SWIG_fail;
24694 PyThreadState* __tstate = wxPyBeginAllowThreads();
24695 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
24696 wxPyEndAllowThreads(__tstate);
24697 if (PyErr_Occurred()) SWIG_fail;
24698 }
24699 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
24700 return resultobj;
24701fail:
24702 return NULL;
24703}
24704
24705
24706SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24707 PyObject *obj;
24708 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24709 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
24710 return SWIG_Py_Void();
24711}
24712
24713SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24714 return SWIG_Python_InitShadowInstance(args);
24715}
24716
24717SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24718 PyObject *resultobj = 0;
24719 wxPrintData *arg1 = 0 ;
24720 wxPostScriptDC *result = 0 ;
24721 void *argp1 = 0 ;
24722 int res1 = 0 ;
24723 PyObject * obj0 = 0 ;
24724 char * kwnames[] = {
24725 (char *) "printData", NULL
24726 };
24727
24728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
24729 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24730 if (!SWIG_IsOK(res1)) {
24731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24732 }
24733 if (!argp1) {
24734 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24735 }
24736 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24737 {
24738 if (!wxPyCheckForApp()) SWIG_fail;
24739 PyThreadState* __tstate = wxPyBeginAllowThreads();
24740 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
24741 wxPyEndAllowThreads(__tstate);
24742 if (PyErr_Occurred()) SWIG_fail;
24743 }
24744 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
24745 return resultobj;
24746fail:
24747 return NULL;
24748}
24749
24750
24751SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24752 PyObject *resultobj = 0;
24753 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24754 wxPrintData *result = 0 ;
24755 void *argp1 = 0 ;
24756 int res1 = 0 ;
24757 PyObject *swig_obj[1] ;
24758
24759 if (!args) SWIG_fail;
24760 swig_obj[0] = args;
24761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24762 if (!SWIG_IsOK(res1)) {
24763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24764 }
24765 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24766 {
24767 PyThreadState* __tstate = wxPyBeginAllowThreads();
e2950dbb 24768 {
1bd55598
RD
24769 wxPrintData &_result_ref = (arg1)->GetPrintData();
24770 result = (wxPrintData *) &_result_ref;
e2950dbb 24771 }
1bd55598
RD
24772 wxPyEndAllowThreads(__tstate);
24773 if (PyErr_Occurred()) SWIG_fail;
24774 }
24775 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
24776 return resultobj;
24777fail:
24778 return NULL;
24779}
24780
24781
24782SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24783 PyObject *resultobj = 0;
24784 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24785 wxPrintData *arg2 = 0 ;
24786 void *argp1 = 0 ;
24787 int res1 = 0 ;
24788 void *argp2 = 0 ;
24789 int res2 = 0 ;
24790 PyObject * obj0 = 0 ;
24791 PyObject * obj1 = 0 ;
24792 char * kwnames[] = {
24793 (char *) "self",(char *) "data", NULL
24794 };
24795
24796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
24797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24798 if (!SWIG_IsOK(res1)) {
24799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24800 }
24801 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24802 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
24803 if (!SWIG_IsOK(res2)) {
24804 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24805 }
24806 if (!argp2) {
24807 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24808 }
24809 arg2 = reinterpret_cast< wxPrintData * >(argp2);
24810 {
24811 PyThreadState* __tstate = wxPyBeginAllowThreads();
24812 (arg1)->SetPrintData((wxPrintData const &)*arg2);
24813 wxPyEndAllowThreads(__tstate);
24814 if (PyErr_Occurred()) SWIG_fail;
24815 }
24816 resultobj = SWIG_Py_Void();
24817 return resultobj;
24818fail:
24819 return NULL;
24820}
24821
24822
24823SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24824 PyObject *resultobj = 0;
24825 int arg1 ;
24826 int val1 ;
24827 int ecode1 = 0 ;
24828 PyObject * obj0 = 0 ;
24829 char * kwnames[] = {
24830 (char *) "ppi", NULL
24831 };
24832
24833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
24834 ecode1 = SWIG_AsVal_int(obj0, &val1);
24835 if (!SWIG_IsOK(ecode1)) {
24836 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
24837 }
24838 arg1 = static_cast< int >(val1);
24839 {
24840 PyThreadState* __tstate = wxPyBeginAllowThreads();
24841 wxPostScriptDC::SetResolution(arg1);
24842 wxPyEndAllowThreads(__tstate);
24843 if (PyErr_Occurred()) SWIG_fail;
24844 }
24845 resultobj = SWIG_Py_Void();
24846 return resultobj;
24847fail:
24848 return NULL;
24849}
24850
24851
24852SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24853 PyObject *resultobj = 0;
24854 int result;
24855
24856 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24857 {
24858 PyThreadState* __tstate = wxPyBeginAllowThreads();
24859 result = (int)wxPostScriptDC::GetResolution();
24860 wxPyEndAllowThreads(__tstate);
24861 if (PyErr_Occurred()) SWIG_fail;
24862 }
24863 resultobj = SWIG_From_int(static_cast< int >(result));
24864 return resultobj;
24865fail:
24866 return NULL;
24867}
24868
24869
24870SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24871 PyObject *obj;
24872 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24873 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24874 return SWIG_Py_Void();
24875}
24876
24877SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24878 return SWIG_Python_InitShadowInstance(args);
24879}
24880
24881SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24882 PyObject *resultobj = 0;
24883 wxString const &arg1_defvalue = wxPyEmptyString ;
24884 wxString *arg1 = (wxString *) &arg1_defvalue ;
24885 wxMetaFile *result = 0 ;
24886 bool temp1 = false ;
24887 PyObject * obj0 = 0 ;
24888 char * kwnames[] = {
24889 (char *) "filename", NULL
24890 };
24891
24892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
24893 if (obj0) {
36ed4f51 24894 {
1bd55598
RD
24895 arg1 = wxString_in_helper(obj0);
24896 if (arg1 == NULL) SWIG_fail;
24897 temp1 = true;
36ed4f51 24898 }
1bd55598
RD
24899 }
24900 {
24901 if (!wxPyCheckForApp()) SWIG_fail;
24902 PyThreadState* __tstate = wxPyBeginAllowThreads();
24903 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
24904 wxPyEndAllowThreads(__tstate);
24905 if (PyErr_Occurred()) SWIG_fail;
24906 }
24907 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
24908 {
24909 if (temp1)
24910 delete arg1;
24911 }
24912 return resultobj;
24913fail:
24914 {
24915 if (temp1)
24916 delete arg1;
24917 }
24918 return NULL;
24919}
24920
24921
24922SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24923 PyObject *resultobj = 0;
24924 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24925 void *argp1 = 0 ;
24926 int res1 = 0 ;
24927 PyObject *swig_obj[1] ;
24928
24929 if (!args) SWIG_fail;
24930 swig_obj[0] = args;
24931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
24932 if (!SWIG_IsOK(res1)) {
24933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24934 }
24935 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24936 {
24937 PyThreadState* __tstate = wxPyBeginAllowThreads();
24938 delete arg1;
24939
24940 wxPyEndAllowThreads(__tstate);
24941 if (PyErr_Occurred()) SWIG_fail;
24942 }
24943 resultobj = SWIG_Py_Void();
24944 return resultobj;
24945fail:
24946 return NULL;
24947}
24948
24949
b39fe951 24950SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
24951 PyObject *resultobj = 0;
24952 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24953 bool result;
24954 void *argp1 = 0 ;
24955 int res1 = 0 ;
24956 PyObject *swig_obj[1] ;
24957
24958 if (!args) SWIG_fail;
24959 swig_obj[0] = args;
24960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24961 if (!SWIG_IsOK(res1)) {
b39fe951 24962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'");
1bd55598
RD
24963 }
24964 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24965 {
24966 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 24967 result = (bool)(arg1)->IsOk();
1bd55598
RD
24968 wxPyEndAllowThreads(__tstate);
24969 if (PyErr_Occurred()) SWIG_fail;
24970 }
24971 {
24972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24973 }
24974 return resultobj;
24975fail:
24976 return NULL;
24977}
24978
24979
24980SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24981 PyObject *resultobj = 0;
24982 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24983 int arg2 = (int) 0 ;
24984 int arg3 = (int) 0 ;
24985 bool result;
24986 void *argp1 = 0 ;
24987 int res1 = 0 ;
24988 int val2 ;
24989 int ecode2 = 0 ;
24990 int val3 ;
24991 int ecode3 = 0 ;
24992 PyObject * obj0 = 0 ;
24993 PyObject * obj1 = 0 ;
24994 PyObject * obj2 = 0 ;
24995 char * kwnames[] = {
24996 (char *) "self",(char *) "width",(char *) "height", NULL
24997 };
24998
24999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25001 if (!SWIG_IsOK(res1)) {
25002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25003 }
25004 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25005 if (obj1) {
25006 ecode2 = SWIG_AsVal_int(obj1, &val2);
25007 if (!SWIG_IsOK(ecode2)) {
25008 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
25009 }
25010 arg2 = static_cast< int >(val2);
25011 }
25012 if (obj2) {
25013 ecode3 = SWIG_AsVal_int(obj2, &val3);
25014 if (!SWIG_IsOK(ecode3)) {
25015 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
25016 }
25017 arg3 = static_cast< int >(val3);
25018 }
25019 {
25020 PyThreadState* __tstate = wxPyBeginAllowThreads();
25021 result = (bool)(arg1)->SetClipboard(arg2,arg3);
25022 wxPyEndAllowThreads(__tstate);
25023 if (PyErr_Occurred()) SWIG_fail;
25024 }
25025 {
25026 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25027 }
25028 return resultobj;
25029fail:
25030 return NULL;
25031}
25032
25033
25034SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25035 PyObject *resultobj = 0;
25036 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25037 wxSize result;
25038 void *argp1 = 0 ;
25039 int res1 = 0 ;
25040 PyObject *swig_obj[1] ;
25041
25042 if (!args) SWIG_fail;
25043 swig_obj[0] = args;
25044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25045 if (!SWIG_IsOK(res1)) {
25046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25047 }
25048 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25049 {
25050 PyThreadState* __tstate = wxPyBeginAllowThreads();
25051 result = (arg1)->GetSize();
25052 wxPyEndAllowThreads(__tstate);
25053 if (PyErr_Occurred()) SWIG_fail;
25054 }
25055 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25056 return resultobj;
25057fail:
25058 return NULL;
25059}
25060
25061
25062SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25063 PyObject *resultobj = 0;
25064 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25065 int result;
25066 void *argp1 = 0 ;
25067 int res1 = 0 ;
25068 PyObject *swig_obj[1] ;
25069
25070 if (!args) SWIG_fail;
25071 swig_obj[0] = args;
25072 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25073 if (!SWIG_IsOK(res1)) {
25074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25075 }
25076 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25077 {
25078 PyThreadState* __tstate = wxPyBeginAllowThreads();
25079 result = (int)(arg1)->GetWidth();
25080 wxPyEndAllowThreads(__tstate);
25081 if (PyErr_Occurred()) SWIG_fail;
25082 }
25083 resultobj = SWIG_From_int(static_cast< int >(result));
25084 return resultobj;
25085fail:
25086 return NULL;
25087}
25088
25089
25090SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25091 PyObject *resultobj = 0;
25092 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25093 int result;
25094 void *argp1 = 0 ;
25095 int res1 = 0 ;
25096 PyObject *swig_obj[1] ;
25097
25098 if (!args) SWIG_fail;
25099 swig_obj[0] = args;
25100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25101 if (!SWIG_IsOK(res1)) {
25102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25103 }
25104 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25105 {
25106 PyThreadState* __tstate = wxPyBeginAllowThreads();
25107 result = (int)(arg1)->GetHeight();
25108 wxPyEndAllowThreads(__tstate);
25109 if (PyErr_Occurred()) SWIG_fail;
25110 }
25111 resultobj = SWIG_From_int(static_cast< int >(result));
25112 return resultobj;
25113fail:
25114 return NULL;
25115}
25116
25117
25118SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25119 PyObject *obj;
25120 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25121 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
25122 return SWIG_Py_Void();
25123}
25124
25125SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25126 return SWIG_Python_InitShadowInstance(args);
25127}
25128
25129SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25130 PyObject *resultobj = 0;
25131 wxString const &arg1_defvalue = wxPyEmptyString ;
25132 wxString *arg1 = (wxString *) &arg1_defvalue ;
25133 int arg2 = (int) 0 ;
25134 int arg3 = (int) 0 ;
25135 wxString const &arg4_defvalue = wxPyEmptyString ;
25136 wxString *arg4 = (wxString *) &arg4_defvalue ;
25137 wxMetaFileDC *result = 0 ;
25138 bool temp1 = false ;
25139 int val2 ;
25140 int ecode2 = 0 ;
25141 int val3 ;
25142 int ecode3 = 0 ;
25143 bool temp4 = false ;
25144 PyObject * obj0 = 0 ;
25145 PyObject * obj1 = 0 ;
25146 PyObject * obj2 = 0 ;
25147 PyObject * obj3 = 0 ;
25148 char * kwnames[] = {
25149 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
25150 };
25151
25152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25153 if (obj0) {
36ed4f51 25154 {
1bd55598
RD
25155 arg1 = wxString_in_helper(obj0);
25156 if (arg1 == NULL) SWIG_fail;
25157 temp1 = true;
36ed4f51 25158 }
1bd55598
RD
25159 }
25160 if (obj1) {
25161 ecode2 = SWIG_AsVal_int(obj1, &val2);
25162 if (!SWIG_IsOK(ecode2)) {
25163 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
25164 }
25165 arg2 = static_cast< int >(val2);
25166 }
25167 if (obj2) {
25168 ecode3 = SWIG_AsVal_int(obj2, &val3);
25169 if (!SWIG_IsOK(ecode3)) {
25170 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
25171 }
25172 arg3 = static_cast< int >(val3);
25173 }
25174 if (obj3) {
36ed4f51 25175 {
1bd55598
RD
25176 arg4 = wxString_in_helper(obj3);
25177 if (arg4 == NULL) SWIG_fail;
25178 temp4 = true;
36ed4f51 25179 }
1bd55598
RD
25180 }
25181 {
25182 if (!wxPyCheckForApp()) SWIG_fail;
25183 PyThreadState* __tstate = wxPyBeginAllowThreads();
25184 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
25185 wxPyEndAllowThreads(__tstate);
25186 if (PyErr_Occurred()) SWIG_fail;
25187 }
25188 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
25189 {
25190 if (temp1)
25191 delete arg1;
25192 }
25193 {
25194 if (temp4)
25195 delete arg4;
25196 }
25197 return resultobj;
25198fail:
25199 {
25200 if (temp1)
25201 delete arg1;
25202 }
25203 {
25204 if (temp4)
25205 delete arg4;
25206 }
25207 return NULL;
25208}
25209
25210
25211SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25212 PyObject *resultobj = 0;
25213 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
25214 wxMetaFile *result = 0 ;
25215 void *argp1 = 0 ;
25216 int res1 = 0 ;
25217 PyObject *swig_obj[1] ;
25218
25219 if (!args) SWIG_fail;
25220 swig_obj[0] = args;
25221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
25222 if (!SWIG_IsOK(res1)) {
25223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
25224 }
25225 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
25226 {
25227 PyThreadState* __tstate = wxPyBeginAllowThreads();
25228 result = (wxMetaFile *)(arg1)->Close();
25229 wxPyEndAllowThreads(__tstate);
25230 if (PyErr_Occurred()) SWIG_fail;
25231 }
25232 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
25233 return resultobj;
25234fail:
25235 return NULL;
25236}
25237
25238
25239SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25240 PyObject *obj;
25241 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25242 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
25243 return SWIG_Py_Void();
25244}
25245
25246SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25247 return SWIG_Python_InitShadowInstance(args);
25248}
25249
25250SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25251 PyObject *resultobj = 0;
25252 wxPrintData *arg1 = 0 ;
25253 wxPrinterDC *result = 0 ;
25254 void *argp1 = 0 ;
25255 int res1 = 0 ;
25256 PyObject * obj0 = 0 ;
25257 char * kwnames[] = {
25258 (char *) "printData", NULL
25259 };
25260
25261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
25262 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25263 if (!SWIG_IsOK(res1)) {
25264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25265 }
25266 if (!argp1) {
25267 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25268 }
25269 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25270 {
25271 if (!wxPyCheckForApp()) SWIG_fail;
25272 PyThreadState* __tstate = wxPyBeginAllowThreads();
25273 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
25274 wxPyEndAllowThreads(__tstate);
25275 if (PyErr_Occurred()) SWIG_fail;
25276 }
25277 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
25278 return resultobj;
25279fail:
25280 return NULL;
25281}
25282
25283
25284SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25285 PyObject *obj;
25286 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25287 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
25288 return SWIG_Py_Void();
25289}
25290
25291SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25292 return SWIG_Python_InitShadowInstance(args);
25293}
25294
70d7cb34
RD
25295SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25296 PyObject *resultobj = 0;
25297 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ;
25298 wxGraphicsObject *result = 0 ;
25299 void *argp1 = 0 ;
25300 int res1 = 0 ;
25301 PyObject * obj0 = 0 ;
25302 char * kwnames[] = {
25303 (char *) "renderer", NULL
25304 };
25305
25306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail;
25307 if (obj0) {
25308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25309 if (!SWIG_IsOK(res1)) {
25310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
25311 }
25312 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
25313 }
25314 {
25315 result = (wxGraphicsObject *)new wxGraphicsObject(arg1);
25316 if (PyErr_Occurred()) SWIG_fail;
25317 }
25318 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 );
25319 return resultobj;
25320fail:
25321 return NULL;
25322}
25323
25324
25325SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25326 PyObject *resultobj = 0;
25327 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25328 void *argp1 = 0 ;
25329 int res1 = 0 ;
25330 PyObject *swig_obj[1] ;
25331
25332 if (!args) SWIG_fail;
25333 swig_obj[0] = args;
25334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 );
25335 if (!SWIG_IsOK(res1)) {
25336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'");
25337 }
25338 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25339 {
25340 delete arg1;
25341
25342 if (PyErr_Occurred()) SWIG_fail;
25343 }
25344 resultobj = SWIG_Py_Void();
25345 return resultobj;
25346fail:
25347 return NULL;
25348}
25349
25350
25351SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25352 PyObject *resultobj = 0;
25353 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25354 bool result;
25355 void *argp1 = 0 ;
25356 int res1 = 0 ;
25357 PyObject *swig_obj[1] ;
25358
25359 if (!args) SWIG_fail;
25360 swig_obj[0] = args;
25361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25362 if (!SWIG_IsOK(res1)) {
25363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25364 }
25365 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25366 {
25367 result = (bool)((wxGraphicsObject const *)arg1)->IsNull();
25368 if (PyErr_Occurred()) SWIG_fail;
25369 }
25370 {
25371 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25372 }
25373 return resultobj;
25374fail:
25375 return NULL;
25376}
25377
25378
25379SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25380 PyObject *resultobj = 0;
25381 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25382 wxGraphicsRenderer *result = 0 ;
25383 void *argp1 = 0 ;
25384 int res1 = 0 ;
25385 PyObject *swig_obj[1] ;
25386
25387 if (!args) SWIG_fail;
25388 swig_obj[0] = args;
25389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25390 if (!SWIG_IsOK(res1)) {
25391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25392 }
25393 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25394 {
25395 result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer();
25396 if (PyErr_Occurred()) SWIG_fail;
25397 }
25398 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25399 return resultobj;
25400fail:
25401 return NULL;
25402}
25403
25404
25405SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25406 PyObject *obj;
25407 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25408 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj));
25409 return SWIG_Py_Void();
25410}
25411
25412SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25413 return SWIG_Python_InitShadowInstance(args);
25414}
25415
25416SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25417 PyObject *resultobj = 0;
25418 wxGraphicsPen *result = 0 ;
25419
25420 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail;
25421 {
25422 result = (wxGraphicsPen *)new wxGraphicsPen();
25423 if (PyErr_Occurred()) SWIG_fail;
25424 }
25425 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 );
25426 return resultobj;
25427fail:
25428 return NULL;
25429}
25430
25431
25432SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25433 PyObject *resultobj = 0;
25434 wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ;
25435 void *argp1 = 0 ;
25436 int res1 = 0 ;
25437 PyObject *swig_obj[1] ;
25438
25439 if (!args) SWIG_fail;
25440 swig_obj[0] = args;
25441 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 );
25442 if (!SWIG_IsOK(res1)) {
25443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'");
25444 }
25445 arg1 = reinterpret_cast< wxGraphicsPen * >(argp1);
25446 {
25447 delete arg1;
25448
25449 if (PyErr_Occurred()) SWIG_fail;
25450 }
25451 resultobj = SWIG_Py_Void();
25452 return resultobj;
25453fail:
25454 return NULL;
25455}
25456
25457
25458SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25459 PyObject *obj;
25460 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25461 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj));
25462 return SWIG_Py_Void();
25463}
25464
25465SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25466 return SWIG_Python_InitShadowInstance(args);
25467}
25468
25469SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25470 PyObject *resultobj = 0;
25471 wxGraphicsBrush *result = 0 ;
25472
25473 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail;
25474 {
25475 result = (wxGraphicsBrush *)new wxGraphicsBrush();
25476 if (PyErr_Occurred()) SWIG_fail;
25477 }
25478 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 );
25479 return resultobj;
25480fail:
25481 return NULL;
25482}
25483
25484
25485SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25486 PyObject *resultobj = 0;
25487 wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ;
25488 void *argp1 = 0 ;
25489 int res1 = 0 ;
25490 PyObject *swig_obj[1] ;
25491
25492 if (!args) SWIG_fail;
25493 swig_obj[0] = args;
25494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 );
25495 if (!SWIG_IsOK(res1)) {
25496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'");
25497 }
25498 arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1);
25499 {
25500 delete arg1;
25501
25502 if (PyErr_Occurred()) SWIG_fail;
25503 }
25504 resultobj = SWIG_Py_Void();
25505 return resultobj;
25506fail:
25507 return NULL;
25508}
25509
25510
25511SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25512 PyObject *obj;
25513 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25514 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj));
25515 return SWIG_Py_Void();
25516}
25517
25518SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25519 return SWIG_Python_InitShadowInstance(args);
25520}
25521
25522SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25523 PyObject *resultobj = 0;
25524 wxGraphicsFont *result = 0 ;
25525
25526 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail;
25527 {
25528 result = (wxGraphicsFont *)new wxGraphicsFont();
25529 if (PyErr_Occurred()) SWIG_fail;
25530 }
25531 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 );
25532 return resultobj;
25533fail:
25534 return NULL;
25535}
25536
25537
25538SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25539 PyObject *resultobj = 0;
25540 wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ;
25541 void *argp1 = 0 ;
25542 int res1 = 0 ;
25543 PyObject *swig_obj[1] ;
25544
25545 if (!args) SWIG_fail;
25546 swig_obj[0] = args;
25547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 );
25548 if (!SWIG_IsOK(res1)) {
25549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'");
25550 }
25551 arg1 = reinterpret_cast< wxGraphicsFont * >(argp1);
25552 {
25553 delete arg1;
25554
25555 if (PyErr_Occurred()) SWIG_fail;
25556 }
25557 resultobj = SWIG_Py_Void();
25558 return resultobj;
25559fail:
25560 return NULL;
25561}
25562
25563
25564SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25565 PyObject *obj;
25566 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25567 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj));
25568 return SWIG_Py_Void();
25569}
25570
25571SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25572 return SWIG_Python_InitShadowInstance(args);
25573}
25574
8f514ab4
RD
25575SWIGINTERN PyObject *_wrap_new_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25576 PyObject *resultobj = 0;
25577 wxGraphicsMatrix *result = 0 ;
25578
25579 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsMatrix",0,0,0)) SWIG_fail;
25580 {
25581 result = (wxGraphicsMatrix *)new wxGraphicsMatrix();
25582 if (PyErr_Occurred()) SWIG_fail;
25583 }
25584 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_NEW | 0 );
25585 return resultobj;
25586fail:
25587 return NULL;
25588}
25589
25590
5c8c7dd3 25591SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 25592 PyObject *resultobj = 0;
5c8c7dd3 25593 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
1bd55598
RD
25594 void *argp1 = 0 ;
25595 int res1 = 0 ;
25596 PyObject *swig_obj[1] ;
25597
25598 if (!args) SWIG_fail;
25599 swig_obj[0] = args;
5c8c7dd3 25600 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 );
1bd55598 25601 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
1bd55598 25603 }
5c8c7dd3 25604 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
1bd55598 25605 {
1bd55598
RD
25606 delete arg1;
25607
1bd55598
RD
25608 if (PyErr_Occurred()) SWIG_fail;
25609 }
25610 resultobj = SWIG_Py_Void();
25611 return resultobj;
25612fail:
25613 return NULL;
25614}
25615
25616
5c8c7dd3 25617SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25618 PyObject *resultobj = 0;
5c8c7dd3
RD
25619 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25620 wxGraphicsMatrix *arg2 = 0 ;
70d7cb34
RD
25621 void *argp1 = 0 ;
25622 int res1 = 0 ;
5c8c7dd3
RD
25623 void *argp2 = 0 ;
25624 int res2 = 0 ;
25625 PyObject * obj0 = 0 ;
25626 PyObject * obj1 = 0 ;
25627 char * kwnames[] = {
25628 (char *) "self",(char *) "t", NULL
25629 };
70d7cb34 25630
5c8c7dd3
RD
25631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail;
25632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25633 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25635 }
5c8c7dd3
RD
25636 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25637 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25638 if (!SWIG_IsOK(res2)) {
25639 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25640 }
25641 if (!argp2) {
25642 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25643 }
25644 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 25645 {
5c8c7dd3 25646 (arg1)->Concat((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
25647 if (PyErr_Occurred()) SWIG_fail;
25648 }
5c8c7dd3 25649 resultobj = SWIG_Py_Void();
70d7cb34
RD
25650 return resultobj;
25651fail:
25652 return NULL;
25653}
25654
25655
5c8c7dd3 25656SWIGINTERN PyObject *_wrap_GraphicsMatrix_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 25657 PyObject *resultobj = 0;
5c8c7dd3
RD
25658 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25659 wxGraphicsMatrix *arg2 = 0 ;
1bd55598
RD
25660 void *argp1 = 0 ;
25661 int res1 = 0 ;
5c8c7dd3
RD
25662 void *argp2 = 0 ;
25663 int res2 = 0 ;
25664 PyObject * obj0 = 0 ;
25665 PyObject * obj1 = 0 ;
25666 char * kwnames[] = {
25667 (char *) "self",(char *) "t", NULL
25668 };
1bd55598 25669
5c8c7dd3
RD
25670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Copy",kwnames,&obj0,&obj1)) SWIG_fail;
25671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
1bd55598 25672 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Copy" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
1bd55598 25674 }
5c8c7dd3
RD
25675 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25676 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25677 if (!SWIG_IsOK(res2)) {
25678 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Copy" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25679 }
25680 if (!argp2) {
25681 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Copy" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25682 }
25683 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
1bd55598 25684 {
5c8c7dd3 25685 wxGraphicsMatrix_Copy(arg1,(wxGraphicsMatrix const &)*arg2);
1bd55598
RD
25686 if (PyErr_Occurred()) SWIG_fail;
25687 }
72ef6efb 25688 resultobj = SWIG_Py_Void();
1bd55598
RD
25689 return resultobj;
25690fail:
25691 return NULL;
25692}
25693
25694
5c8c7dd3 25695SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25696 PyObject *resultobj = 0;
5c8c7dd3
RD
25697 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25698 wxDouble arg2 = (wxDouble) 1.0 ;
25699 wxDouble arg3 = (wxDouble) 0.0 ;
25700 wxDouble arg4 = (wxDouble) 0.0 ;
25701 wxDouble arg5 = (wxDouble) 1.0 ;
25702 wxDouble arg6 = (wxDouble) 0.0 ;
25703 wxDouble arg7 = (wxDouble) 0.0 ;
70d7cb34
RD
25704 void *argp1 = 0 ;
25705 int res1 = 0 ;
5c8c7dd3
RD
25706 double val2 ;
25707 int ecode2 = 0 ;
25708 double val3 ;
25709 int ecode3 = 0 ;
25710 double val4 ;
25711 int ecode4 = 0 ;
25712 double val5 ;
25713 int ecode5 = 0 ;
25714 double val6 ;
25715 int ecode6 = 0 ;
25716 double val7 ;
25717 int ecode7 = 0 ;
25718 PyObject * obj0 = 0 ;
25719 PyObject * obj1 = 0 ;
25720 PyObject * obj2 = 0 ;
25721 PyObject * obj3 = 0 ;
25722 PyObject * obj4 = 0 ;
25723 PyObject * obj5 = 0 ;
25724 PyObject * obj6 = 0 ;
25725 char * kwnames[] = {
25726 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
25727 };
70d7cb34 25728
5c8c7dd3
RD
25729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25731 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25733 }
5c8c7dd3
RD
25734 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25735 if (obj1) {
25736 ecode2 = SWIG_AsVal_double(obj1, &val2);
25737 if (!SWIG_IsOK(ecode2)) {
25738 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'");
25739 }
25740 arg2 = static_cast< wxDouble >(val2);
25741 }
25742 if (obj2) {
25743 ecode3 = SWIG_AsVal_double(obj2, &val3);
25744 if (!SWIG_IsOK(ecode3)) {
25745 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'");
25746 }
25747 arg3 = static_cast< wxDouble >(val3);
25748 }
25749 if (obj3) {
25750 ecode4 = SWIG_AsVal_double(obj3, &val4);
25751 if (!SWIG_IsOK(ecode4)) {
25752 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'");
25753 }
25754 arg4 = static_cast< wxDouble >(val4);
25755 }
25756 if (obj4) {
25757 ecode5 = SWIG_AsVal_double(obj4, &val5);
25758 if (!SWIG_IsOK(ecode5)) {
25759 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'");
25760 }
25761 arg5 = static_cast< wxDouble >(val5);
25762 }
25763 if (obj5) {
25764 ecode6 = SWIG_AsVal_double(obj5, &val6);
25765 if (!SWIG_IsOK(ecode6)) {
25766 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'");
25767 }
25768 arg6 = static_cast< wxDouble >(val6);
25769 }
25770 if (obj6) {
25771 ecode7 = SWIG_AsVal_double(obj6, &val7);
25772 if (!SWIG_IsOK(ecode7)) {
25773 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'");
25774 }
25775 arg7 = static_cast< wxDouble >(val7);
70d7cb34
RD
25776 }
25777 {
5c8c7dd3 25778 (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
25779 if (PyErr_Occurred()) SWIG_fail;
25780 }
25781 resultobj = SWIG_Py_Void();
25782 return resultobj;
25783fail:
25784 return NULL;
25785}
25786
25787
5c8c7dd3 25788SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 25789 PyObject *resultobj = 0;
5c8c7dd3 25790 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
1bd55598
RD
25791 void *argp1 = 0 ;
25792 int res1 = 0 ;
5c8c7dd3 25793 PyObject *swig_obj[1] ;
1bd55598 25794
5c8c7dd3
RD
25795 if (!args) SWIG_fail;
25796 swig_obj[0] = args;
25797 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
1bd55598 25798 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
1bd55598 25800 }
5c8c7dd3 25801 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
1bd55598 25802 {
5c8c7dd3 25803 (arg1)->Invert();
1bd55598
RD
25804 if (PyErr_Occurred()) SWIG_fail;
25805 }
72ef6efb 25806 resultobj = SWIG_Py_Void();
1bd55598
RD
25807 return resultobj;
25808fail:
25809 return NULL;
25810}
25811
25812
5c8c7dd3 25813SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25814 PyObject *resultobj = 0;
5c8c7dd3
RD
25815 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25816 wxGraphicsMatrix *arg2 = 0 ;
25817 bool result;
70d7cb34
RD
25818 void *argp1 = 0 ;
25819 int res1 = 0 ;
5c8c7dd3
RD
25820 void *argp2 = 0 ;
25821 int res2 = 0 ;
25822 PyObject * obj0 = 0 ;
25823 PyObject * obj1 = 0 ;
25824 char * kwnames[] = {
25825 (char *) "self",(char *) "t", NULL
25826 };
70d7cb34 25827
5c8c7dd3
RD
25828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
25829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25830 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
70d7cb34 25832 }
5c8c7dd3
RD
25833 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25834 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25835 if (!SWIG_IsOK(res2)) {
25836 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25837 }
25838 if (!argp2) {
25839 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
70d7cb34 25840 }
5c8c7dd3 25841 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 25842 {
5c8c7dd3 25843 result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
25844 if (PyErr_Occurred()) SWIG_fail;
25845 }
5c8c7dd3
RD
25846 {
25847 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25848 }
70d7cb34
RD
25849 return resultobj;
25850fail:
25851 return NULL;
25852}
25853
25854
5c8c7dd3
RD
25855SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25856 PyObject *resultobj = 0;
25857 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25858 bool result;
25859 void *argp1 = 0 ;
25860 int res1 = 0 ;
25861 PyObject *swig_obj[1] ;
70d7cb34 25862
5c8c7dd3
RD
25863 if (!args) SWIG_fail;
25864 swig_obj[0] = args;
25865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25866 if (!SWIG_IsOK(res1)) {
8f514ab4 25867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
70d7cb34 25868 }
5c8c7dd3
RD
25869 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25870 {
8f514ab4 25871 result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity();
5c8c7dd3 25872 if (PyErr_Occurred()) SWIG_fail;
70d7cb34 25873 }
5c8c7dd3
RD
25874 {
25875 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25876 }
25877 return resultobj;
70d7cb34 25878fail:
70d7cb34
RD
25879 return NULL;
25880}
25881
25882
5c8c7dd3 25883SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 25884 PyObject *resultobj = 0;
5c8c7dd3 25885 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
72ef6efb
RD
25886 wxDouble arg2 ;
25887 wxDouble arg3 ;
1bd55598
RD
25888 void *argp1 = 0 ;
25889 int res1 = 0 ;
72ef6efb
RD
25890 double val2 ;
25891 int ecode2 = 0 ;
25892 double val3 ;
25893 int ecode3 = 0 ;
5c8c7dd3
RD
25894 PyObject * obj0 = 0 ;
25895 PyObject * obj1 = 0 ;
25896 PyObject * obj2 = 0 ;
25897 char * kwnames[] = {
25898 (char *) "self",(char *) "dx",(char *) "dy", NULL
25899 };
72ef6efb 25900
5c8c7dd3
RD
25901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
72ef6efb 25903 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
72ef6efb 25905 }
5c8c7dd3
RD
25906 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25907 ecode2 = SWIG_AsVal_double(obj1, &val2);
72ef6efb 25908 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 25909 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
25910 }
25911 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 25912 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 25913 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 25914 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
25915 }
25916 arg3 = static_cast< wxDouble >(val3);
72ef6efb 25917 {
5c8c7dd3 25918 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
25919 if (PyErr_Occurred()) SWIG_fail;
25920 }
25921 resultobj = SWIG_Py_Void();
25922 return resultobj;
25923fail:
25924 return NULL;
25925}
25926
25927
5c8c7dd3 25928SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25929 PyObject *resultobj = 0;
5c8c7dd3
RD
25930 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25931 wxDouble arg2 ;
25932 wxDouble arg3 ;
70d7cb34
RD
25933 void *argp1 = 0 ;
25934 int res1 = 0 ;
5c8c7dd3
RD
25935 double val2 ;
25936 int ecode2 = 0 ;
25937 double val3 ;
25938 int ecode3 = 0 ;
25939 PyObject * obj0 = 0 ;
25940 PyObject * obj1 = 0 ;
25941 PyObject * obj2 = 0 ;
25942 char * kwnames[] = {
25943 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
25944 };
70d7cb34 25945
5c8c7dd3
RD
25946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25948 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25950 }
5c8c7dd3
RD
25951 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25952 ecode2 = SWIG_AsVal_double(obj1, &val2);
25953 if (!SWIG_IsOK(ecode2)) {
25954 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
25955 }
25956 arg2 = static_cast< wxDouble >(val2);
25957 ecode3 = SWIG_AsVal_double(obj2, &val3);
25958 if (!SWIG_IsOK(ecode3)) {
25959 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
25960 }
25961 arg3 = static_cast< wxDouble >(val3);
70d7cb34 25962 {
5c8c7dd3 25963 (arg1)->Scale(arg2,arg3);
70d7cb34
RD
25964 if (PyErr_Occurred()) SWIG_fail;
25965 }
25966 resultobj = SWIG_Py_Void();
25967 return resultobj;
25968fail:
25969 return NULL;
25970}
25971
25972
5c8c7dd3 25973SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25974 PyObject *resultobj = 0;
5c8c7dd3
RD
25975 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25976 wxDouble arg2 ;
70d7cb34
RD
25977 void *argp1 = 0 ;
25978 int res1 = 0 ;
5c8c7dd3
RD
25979 double val2 ;
25980 int ecode2 = 0 ;
70d7cb34
RD
25981 PyObject * obj0 = 0 ;
25982 PyObject * obj1 = 0 ;
25983 char * kwnames[] = {
5c8c7dd3 25984 (char *) "self",(char *) "angle", NULL
70d7cb34
RD
25985 };
25986
5c8c7dd3
RD
25987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
25988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25989 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25991 }
5c8c7dd3
RD
25992 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25993 ecode2 = SWIG_AsVal_double(obj1, &val2);
25994 if (!SWIG_IsOK(ecode2)) {
25995 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
25996 }
25997 arg2 = static_cast< wxDouble >(val2);
70d7cb34 25998 {
5c8c7dd3 25999 (arg1)->Rotate(arg2);
70d7cb34
RD
26000 if (PyErr_Occurred()) SWIG_fail;
26001 }
26002 resultobj = SWIG_Py_Void();
26003 return resultobj;
26004fail:
26005 return NULL;
26006}
26007
26008
5c8c7dd3 26009SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 26010 PyObject *resultobj = 0;
5c8c7dd3
RD
26011 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26012 wxDouble *arg2 = (wxDouble *) 0 ;
26013 wxDouble *arg3 = (wxDouble *) 0 ;
72ef6efb
RD
26014 void *argp1 = 0 ;
26015 int res1 = 0 ;
5c8c7dd3
RD
26016 wxDouble temp2 ;
26017 int res2 = 0 ;
26018 wxDouble temp3 ;
26019 int res3 = 0 ;
26020 PyObject * obj0 = 0 ;
26021 PyObject * obj1 = 0 ;
26022 PyObject * obj2 = 0 ;
26023 char * kwnames[] = {
26024 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26025 };
72ef6efb 26026
5c8c7dd3
RD
26027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
72ef6efb 26029 if (!SWIG_IsOK(res1)) {
8f514ab4 26030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
72ef6efb 26031 }
5c8c7dd3
RD
26032 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26033 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26034 double val;
26035 int ecode = SWIG_AsVal_double(obj1, &val);
26036 if (!SWIG_IsOK(ecode)) {
26037 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26038 }
26039 temp2 = static_cast< wxDouble >(val);
26040 arg2 = &temp2;
26041 res2 = SWIG_AddTmpMask(ecode);
26042 }
26043 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26044 double val;
26045 int ecode = SWIG_AsVal_double(obj2, &val);
26046 if (!SWIG_IsOK(ecode)) {
26047 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26048 }
26049 temp3 = static_cast< wxDouble >(val);
26050 arg3 = &temp3;
26051 res3 = SWIG_AddTmpMask(ecode);
26052 }
26053 {
8f514ab4 26054 ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3);
72ef6efb
RD
26055 if (PyErr_Occurred()) SWIG_fail;
26056 }
26057 resultobj = SWIG_Py_Void();
5c8c7dd3
RD
26058 if (SWIG_IsTmpObj(res2)) {
26059 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26060 } else {
26061 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26062 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26063 }
26064 if (SWIG_IsTmpObj(res3)) {
26065 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26066 } else {
26067 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26068 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26069 }
72ef6efb
RD
26070 return resultobj;
26071fail:
26072 return NULL;
26073}
26074
26075
5c8c7dd3
RD
26076SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26077 PyObject *resultobj = 0;
26078 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26079 wxDouble *arg2 = (wxDouble *) 0 ;
26080 wxDouble *arg3 = (wxDouble *) 0 ;
26081 void *argp1 = 0 ;
26082 int res1 = 0 ;
26083 wxDouble temp2 ;
26084 int res2 = 0 ;
26085 wxDouble temp3 ;
26086 int res3 = 0 ;
26087 PyObject * obj0 = 0 ;
26088 PyObject * obj1 = 0 ;
26089 PyObject * obj2 = 0 ;
26090 char * kwnames[] = {
26091 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26092 };
26093
26094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26096 if (!SWIG_IsOK(res1)) {
8f514ab4 26097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
5c8c7dd3
RD
26098 }
26099 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26100 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26101 double val;
26102 int ecode = SWIG_AsVal_double(obj1, &val);
26103 if (!SWIG_IsOK(ecode)) {
26104 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'");
26105 }
26106 temp2 = static_cast< wxDouble >(val);
26107 arg2 = &temp2;
26108 res2 = SWIG_AddTmpMask(ecode);
26109 }
26110 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26111 double val;
26112 int ecode = SWIG_AsVal_double(obj2, &val);
26113 if (!SWIG_IsOK(ecode)) {
26114 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'");
26115 }
26116 temp3 = static_cast< wxDouble >(val);
26117 arg3 = &temp3;
26118 res3 = SWIG_AddTmpMask(ecode);
26119 }
26120 {
8f514ab4 26121 ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3);
5c8c7dd3
RD
26122 if (PyErr_Occurred()) SWIG_fail;
26123 }
26124 resultobj = SWIG_Py_Void();
26125 if (SWIG_IsTmpObj(res2)) {
26126 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26127 } else {
26128 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26129 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26130 }
26131 if (SWIG_IsTmpObj(res3)) {
26132 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26133 } else {
26134 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26135 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26136 }
26137 return resultobj;
26138fail:
26139 return NULL;
26140}
26141
26142
26143SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26144 PyObject *resultobj = 0;
26145 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26146 void *result = 0 ;
26147 void *argp1 = 0 ;
26148 int res1 = 0 ;
26149 PyObject *swig_obj[1] ;
26150
26151 if (!args) SWIG_fail;
26152 swig_obj[0] = args;
26153 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26154 if (!SWIG_IsOK(res1)) {
26155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26156 }
26157 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26158 {
26159 result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix();
26160 if (PyErr_Occurred()) SWIG_fail;
26161 }
26162 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
26163 return resultobj;
26164fail:
26165 return NULL;
26166}
26167
26168
26169SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26170 PyObject *obj;
26171 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26172 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj));
26173 return SWIG_Py_Void();
26174}
26175
8f514ab4
RD
26176SWIGINTERN PyObject *GraphicsMatrix_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26177 return SWIG_Python_InitShadowInstance(args);
26178}
26179
26180SWIGINTERN PyObject *_wrap_new_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26181 PyObject *resultobj = 0;
26182 wxGraphicsPath *result = 0 ;
26183
26184 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPath",0,0,0)) SWIG_fail;
26185 {
26186 if (!wxPyCheckForApp()) SWIG_fail;
26187 PyThreadState* __tstate = wxPyBeginAllowThreads();
26188 result = (wxGraphicsPath *)new wxGraphicsPath();
26189 wxPyEndAllowThreads(__tstate);
26190 if (PyErr_Occurred()) SWIG_fail;
26191 }
26192 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_NEW | 0 );
26193 return resultobj;
26194fail:
26195 return NULL;
26196}
26197
26198
5c8c7dd3 26199SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
26200 PyObject *resultobj = 0;
26201 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
72ef6efb
RD
26202 void *argp1 = 0 ;
26203 int res1 = 0 ;
26204 PyObject *swig_obj[1] ;
26205
26206 if (!args) SWIG_fail;
26207 swig_obj[0] = args;
5c8c7dd3 26208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
72ef6efb 26209 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
72ef6efb
RD
26211 }
26212 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26213 {
5c8c7dd3
RD
26214 delete arg1;
26215
72ef6efb
RD
26216 if (PyErr_Occurred()) SWIG_fail;
26217 }
5c8c7dd3 26218 resultobj = SWIG_Py_Void();
70d7cb34
RD
26219 return resultobj;
26220fail:
26221 return NULL;
26222}
26223
26224
5c8c7dd3 26225SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26226 PyObject *resultobj = 0;
26227 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26228 wxDouble arg2 ;
26229 wxDouble arg3 ;
70d7cb34
RD
26230 void *argp1 = 0 ;
26231 int res1 = 0 ;
26232 double val2 ;
26233 int ecode2 = 0 ;
26234 double val3 ;
26235 int ecode3 = 0 ;
70d7cb34 26236
5c8c7dd3 26237 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
70d7cb34
RD
26238 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26239 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26241 }
26242 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26243 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26244 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26245 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26246 }
26247 arg2 = static_cast< wxDouble >(val2);
26248 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26249 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26250 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26251 }
26252 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26253 {
5c8c7dd3 26254 (arg1)->MoveToPoint(arg2,arg3);
70d7cb34
RD
26255 if (PyErr_Occurred()) SWIG_fail;
26256 }
26257 resultobj = SWIG_Py_Void();
26258 return resultobj;
26259fail:
26260 return NULL;
26261}
26262
26263
5c8c7dd3 26264SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26265 PyObject *resultobj = 0;
26266 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26267 wxPoint2D *arg2 = 0 ;
70d7cb34
RD
26268 void *argp1 = 0 ;
26269 int res1 = 0 ;
26270 wxPoint2D temp2 ;
70d7cb34 26271
5c8c7dd3 26272 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
70d7cb34
RD
26273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26274 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26276 }
26277 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26278 {
26279 arg2 = &temp2;
26280 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26281 }
70d7cb34 26282 {
5c8c7dd3 26283 (arg1)->MoveToPoint((wxPoint2D const &)*arg2);
70d7cb34
RD
26284 if (PyErr_Occurred()) SWIG_fail;
26285 }
26286 resultobj = SWIG_Py_Void();
26287 return resultobj;
26288fail:
26289 return NULL;
26290}
26291
26292
5c8c7dd3 26293SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) {
70d7cb34 26294 int argc;
5c8c7dd3 26295 PyObject *argv[4];
70d7cb34 26296
5c8c7dd3 26297 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail;
70d7cb34 26298 --argc;
5c8c7dd3
RD
26299 if (argc == 2) {
26300 return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv);
70d7cb34 26301 }
5c8c7dd3
RD
26302 if (argc == 3) {
26303 return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv);
70d7cb34
RD
26304 }
26305
26306fail:
5c8c7dd3 26307 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'");
70d7cb34
RD
26308 return NULL;
26309}
26310
26311
5c8c7dd3 26312SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26313 PyObject *resultobj = 0;
26314 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26315 wxDouble arg2 ;
26316 wxDouble arg3 ;
70d7cb34
RD
26317 void *argp1 = 0 ;
26318 int res1 = 0 ;
26319 double val2 ;
26320 int ecode2 = 0 ;
26321 double val3 ;
26322 int ecode3 = 0 ;
70d7cb34 26323
5c8c7dd3
RD
26324 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
26325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26326 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26328 }
26329 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26330 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
70d7cb34 26331 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26332 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26333 }
26334 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 26335 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
70d7cb34 26336 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26337 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26338 }
26339 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26340 {
5c8c7dd3 26341 (arg1)->AddLineToPoint(arg2,arg3);
70d7cb34
RD
26342 if (PyErr_Occurred()) SWIG_fail;
26343 }
26344 resultobj = SWIG_Py_Void();
26345 return resultobj;
26346fail:
26347 return NULL;
26348}
26349
26350
5c8c7dd3 26351SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26352 PyObject *resultobj = 0;
26353 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26354 wxPoint2D *arg2 = 0 ;
70d7cb34
RD
26355 void *argp1 = 0 ;
26356 int res1 = 0 ;
5c8c7dd3 26357 wxPoint2D temp2 ;
70d7cb34 26358
5c8c7dd3
RD
26359 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26361 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26363 }
26364 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26365 {
5c8c7dd3
RD
26366 arg2 = &temp2;
26367 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26368 }
26369 {
26370 (arg1)->AddLineToPoint((wxPoint2D const &)*arg2);
70d7cb34
RD
26371 if (PyErr_Occurred()) SWIG_fail;
26372 }
26373 resultobj = SWIG_Py_Void();
26374 return resultobj;
26375fail:
26376 return NULL;
26377}
26378
26379
5c8c7dd3
RD
26380SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) {
26381 int argc;
26382 PyObject *argv[4];
70d7cb34 26383
5c8c7dd3
RD
26384 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail;
26385 --argc;
26386 if (argc == 2) {
26387 return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv);
70d7cb34 26388 }
5c8c7dd3
RD
26389 if (argc == 3) {
26390 return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv);
70d7cb34 26391 }
5c8c7dd3 26392
70d7cb34 26393fail:
5c8c7dd3 26394 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'");
70d7cb34
RD
26395 return NULL;
26396}
26397
26398
5c8c7dd3 26399SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26400 PyObject *resultobj = 0;
26401 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26402 wxDouble arg2 ;
26403 wxDouble arg3 ;
26404 wxDouble arg4 ;
26405 wxDouble arg5 ;
26406 wxDouble arg6 ;
5c8c7dd3 26407 wxDouble arg7 ;
70d7cb34
RD
26408 void *argp1 = 0 ;
26409 int res1 = 0 ;
26410 double val2 ;
26411 int ecode2 = 0 ;
26412 double val3 ;
26413 int ecode3 = 0 ;
26414 double val4 ;
26415 int ecode4 = 0 ;
26416 double val5 ;
26417 int ecode5 = 0 ;
26418 double val6 ;
26419 int ecode6 = 0 ;
5c8c7dd3
RD
26420 double val7 ;
26421 int ecode7 = 0 ;
70d7cb34 26422
5c8c7dd3
RD
26423 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
26424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26425 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26427 }
26428 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26429 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
70d7cb34 26430 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26431 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26432 }
26433 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 26434 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
70d7cb34 26435 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26436 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26437 }
26438 arg3 = static_cast< wxDouble >(val3);
5c8c7dd3 26439 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
70d7cb34 26440 if (!SWIG_IsOK(ecode4)) {
5c8c7dd3 26441 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
70d7cb34
RD
26442 }
26443 arg4 = static_cast< wxDouble >(val4);
5c8c7dd3 26444 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
70d7cb34 26445 if (!SWIG_IsOK(ecode5)) {
5c8c7dd3 26446 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
70d7cb34
RD
26447 }
26448 arg5 = static_cast< wxDouble >(val5);
5c8c7dd3 26449 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
70d7cb34 26450 if (!SWIG_IsOK(ecode6)) {
5c8c7dd3 26451 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
70d7cb34
RD
26452 }
26453 arg6 = static_cast< wxDouble >(val6);
5c8c7dd3
RD
26454 ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
26455 if (!SWIG_IsOK(ecode7)) {
26456 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
26457 }
26458 arg7 = static_cast< wxDouble >(val7);
70d7cb34 26459 {
5c8c7dd3 26460 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
26461 if (PyErr_Occurred()) SWIG_fail;
26462 }
26463 resultobj = SWIG_Py_Void();
26464 return resultobj;
26465fail:
26466 return NULL;
26467}
26468
26469
5c8c7dd3 26470SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26471 PyObject *resultobj = 0;
26472 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3
RD
26473 wxPoint2D *arg2 = 0 ;
26474 wxPoint2D *arg3 = 0 ;
26475 wxPoint2D *arg4 = 0 ;
70d7cb34
RD
26476 void *argp1 = 0 ;
26477 int res1 = 0 ;
5c8c7dd3
RD
26478 wxPoint2D temp2 ;
26479 wxPoint2D temp3 ;
26480 wxPoint2D temp4 ;
70d7cb34 26481
5c8c7dd3
RD
26482 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
26483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26484 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26486 }
26487 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26488 {
5c8c7dd3
RD
26489 arg2 = &temp2;
26490 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
70d7cb34 26491 }
5c8c7dd3
RD
26492 {
26493 arg3 = &temp3;
26494 if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail;
70d7cb34 26495 }
70d7cb34 26496 {
5c8c7dd3
RD
26497 arg4 = &temp4;
26498 if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail;
26499 }
26500 {
26501 (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4);
70d7cb34
RD
26502 if (PyErr_Occurred()) SWIG_fail;
26503 }
26504 resultobj = SWIG_Py_Void();
26505 return resultobj;
26506fail:
26507 return NULL;
26508}
26509
26510
5c8c7dd3
RD
26511SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) {
26512 int argc;
26513 PyObject *argv[8];
70d7cb34 26514
5c8c7dd3
RD
26515 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail;
26516 --argc;
26517 if (argc == 4) {
26518 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv);
70d7cb34 26519 }
5c8c7dd3
RD
26520 if (argc == 7) {
26521 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv);
70d7cb34 26522 }
5c8c7dd3 26523
70d7cb34 26524fail:
5c8c7dd3 26525 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'");
70d7cb34
RD
26526 return NULL;
26527}
26528
26529
5c8c7dd3 26530SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34
RD
26531 PyObject *resultobj = 0;
26532 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26533 wxGraphicsPath *arg2 = 0 ;
70d7cb34
RD
26534 void *argp1 = 0 ;
26535 int res1 = 0 ;
5c8c7dd3
RD
26536 void *argp2 = 0 ;
26537 int res2 = 0 ;
70d7cb34
RD
26538 PyObject * obj0 = 0 ;
26539 PyObject * obj1 = 0 ;
26540 char * kwnames[] = {
5c8c7dd3 26541 (char *) "self",(char *) "path", NULL
70d7cb34
RD
26542 };
26543
5c8c7dd3 26544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail;
70d7cb34
RD
26545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26546 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26548 }
26549 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26550 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
70d7cb34 26551 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
26552 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
26553 }
26554 if (!argp2) {
26555 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
70d7cb34 26556 }
5c8c7dd3 26557 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
70d7cb34 26558 {
5c8c7dd3 26559 (arg1)->AddPath((wxGraphicsPath const &)*arg2);
70d7cb34
RD
26560 if (PyErr_Occurred()) SWIG_fail;
26561 }
26562 resultobj = SWIG_Py_Void();
26563 return resultobj;
26564fail:
26565 return NULL;
26566}
26567
26568
5c8c7dd3 26569SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
26570 PyObject *resultobj = 0;
26571 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
70d7cb34
RD
26572 void *argp1 = 0 ;
26573 int res1 = 0 ;
5c8c7dd3 26574 PyObject *swig_obj[1] ;
70d7cb34 26575
5c8c7dd3
RD
26576 if (!args) SWIG_fail;
26577 swig_obj[0] = args;
26578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26579 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26581 }
26582 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26583 {
5c8c7dd3 26584 (arg1)->CloseSubpath();
70d7cb34
RD
26585 if (PyErr_Occurred()) SWIG_fail;
26586 }
26587 resultobj = SWIG_Py_Void();
26588 return resultobj;
26589fail:
26590 return NULL;
26591}
26592
26593
5c8c7dd3 26594SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
26595 PyObject *resultobj = 0;
26596 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26597 wxPoint2D result;
70d7cb34
RD
26598 void *argp1 = 0 ;
26599 int res1 = 0 ;
26600 PyObject *swig_obj[1] ;
26601
26602 if (!args) SWIG_fail;
26603 swig_obj[0] = args;
26604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26605 if (!SWIG_IsOK(res1)) {
8f514ab4 26606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34
RD
26607 }
26608 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26609 {
8f514ab4 26610 result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint();
70d7cb34
RD
26611 if (PyErr_Occurred()) SWIG_fail;
26612 }
5c8c7dd3 26613 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
26614 return resultobj;
26615fail:
26616 return NULL;
26617}
26618
26619
5c8c7dd3 26620SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26621 PyObject *resultobj = 0;
26622 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26623 wxDouble arg2 ;
26624 wxDouble arg3 ;
5c8c7dd3
RD
26625 wxDouble arg4 ;
26626 wxDouble arg5 ;
26627 wxDouble arg6 ;
26628 bool arg7 ;
70d7cb34
RD
26629 void *argp1 = 0 ;
26630 int res1 = 0 ;
26631 double val2 ;
26632 int ecode2 = 0 ;
26633 double val3 ;
26634 int ecode3 = 0 ;
5c8c7dd3 26635 double val4 ;
70d7cb34 26636 int ecode4 = 0 ;
5c8c7dd3
RD
26637 double val5 ;
26638 int ecode5 = 0 ;
26639 double val6 ;
26640 int ecode6 = 0 ;
26641 bool val7 ;
26642 int ecode7 = 0 ;
70d7cb34 26643
5c8c7dd3 26644 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
70d7cb34
RD
26645 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26646 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26648 }
26649 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26650 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26651 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26652 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26653 }
26654 arg2 = static_cast< wxDouble >(val2);
26655 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26656 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26657 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26658 }
26659 arg3 = static_cast< wxDouble >(val3);
5c8c7dd3
RD
26660 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26661 if (!SWIG_IsOK(ecode4)) {
26662 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26663 }
26664 arg4 = static_cast< wxDouble >(val4);
26665 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26666 if (!SWIG_IsOK(ecode5)) {
26667 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26668 }
26669 arg5 = static_cast< wxDouble >(val5);
26670 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
26671 if (!SWIG_IsOK(ecode6)) {
26672 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
26673 }
26674 arg6 = static_cast< wxDouble >(val6);
26675 ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
26676 if (!SWIG_IsOK(ecode7)) {
26677 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
26678 }
26679 arg7 = static_cast< bool >(val7);
70d7cb34 26680 {
5c8c7dd3 26681 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
26682 if (PyErr_Occurred()) SWIG_fail;
26683 }
5c8c7dd3 26684 resultobj = SWIG_Py_Void();
70d7cb34
RD
26685 return resultobj;
26686fail:
26687 return NULL;
26688}
26689
26690
5c8c7dd3 26691SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26692 PyObject *resultobj = 0;
26693 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3
RD
26694 wxPoint2D *arg2 = 0 ;
26695 wxDouble arg3 ;
26696 wxDouble arg4 ;
26697 wxDouble arg5 ;
26698 bool arg6 ;
70d7cb34
RD
26699 void *argp1 = 0 ;
26700 int res1 = 0 ;
5c8c7dd3
RD
26701 wxPoint2D temp2 ;
26702 double val3 ;
70d7cb34 26703 int ecode3 = 0 ;
5c8c7dd3
RD
26704 double val4 ;
26705 int ecode4 = 0 ;
26706 double val5 ;
26707 int ecode5 = 0 ;
26708 bool val6 ;
26709 int ecode6 = 0 ;
70d7cb34 26710
5c8c7dd3 26711 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
70d7cb34
RD
26712 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26713 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26715 }
26716 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26717 {
5c8c7dd3
RD
26718 arg2 = &temp2;
26719 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
70d7cb34 26720 }
5c8c7dd3
RD
26721 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26722 if (!SWIG_IsOK(ecode3)) {
26723 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
26724 }
26725 arg3 = static_cast< wxDouble >(val3);
26726 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26727 if (!SWIG_IsOK(ecode4)) {
26728 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26729 }
26730 arg4 = static_cast< wxDouble >(val4);
26731 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26732 if (!SWIG_IsOK(ecode5)) {
26733 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26734 }
26735 arg5 = static_cast< wxDouble >(val5);
26736 ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
26737 if (!SWIG_IsOK(ecode6)) {
26738 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
26739 }
26740 arg6 = static_cast< bool >(val6);
70d7cb34 26741 {
5c8c7dd3
RD
26742 (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
26743 if (PyErr_Occurred()) SWIG_fail;
70d7cb34 26744 }
5c8c7dd3 26745 resultobj = SWIG_Py_Void();
70d7cb34
RD
26746 return resultobj;
26747fail:
26748 return NULL;
26749}
26750
26751
5c8c7dd3 26752SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) {
70d7cb34 26753 int argc;
5c8c7dd3 26754 PyObject *argv[8];
70d7cb34 26755
5c8c7dd3 26756 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
70d7cb34 26757 --argc;
5c8c7dd3
RD
26758 if (argc == 6) {
26759 return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
70d7cb34 26760 }
5c8c7dd3
RD
26761 if (argc == 7) {
26762 return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
70d7cb34
RD
26763 }
26764
26765fail:
5c8c7dd3 26766 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'");
70d7cb34
RD
26767 return NULL;
26768}
26769
26770
5c8c7dd3 26771SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26772 PyObject *resultobj = 0;
5c8c7dd3
RD
26773 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26774 wxDouble arg2 ;
26775 wxDouble arg3 ;
26776 wxDouble arg4 ;
26777 wxDouble arg5 ;
70d7cb34
RD
26778 void *argp1 = 0 ;
26779 int res1 = 0 ;
5c8c7dd3
RD
26780 double val2 ;
26781 int ecode2 = 0 ;
26782 double val3 ;
26783 int ecode3 = 0 ;
26784 double val4 ;
26785 int ecode4 = 0 ;
26786 double val5 ;
26787 int ecode5 = 0 ;
26788 PyObject * obj0 = 0 ;
26789 PyObject * obj1 = 0 ;
26790 PyObject * obj2 = 0 ;
26791 PyObject * obj3 = 0 ;
26792 PyObject * obj4 = 0 ;
26793 char * kwnames[] = {
26794 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
26795 };
70d7cb34 26796
5c8c7dd3
RD
26797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26799 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26801 }
5c8c7dd3
RD
26802 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26803 ecode2 = SWIG_AsVal_double(obj1, &val2);
26804 if (!SWIG_IsOK(ecode2)) {
26805 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26806 }
26807 arg2 = static_cast< wxDouble >(val2);
26808 ecode3 = SWIG_AsVal_double(obj2, &val3);
26809 if (!SWIG_IsOK(ecode3)) {
26810 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26811 }
26812 arg3 = static_cast< wxDouble >(val3);
26813 ecode4 = SWIG_AsVal_double(obj3, &val4);
26814 if (!SWIG_IsOK(ecode4)) {
26815 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26816 }
26817 arg4 = static_cast< wxDouble >(val4);
26818 ecode5 = SWIG_AsVal_double(obj4, &val5);
26819 if (!SWIG_IsOK(ecode5)) {
26820 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26821 }
26822 arg5 = static_cast< wxDouble >(val5);
70d7cb34 26823 {
5c8c7dd3 26824 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
70d7cb34
RD
26825 if (PyErr_Occurred()) SWIG_fail;
26826 }
26827 resultobj = SWIG_Py_Void();
26828 return resultobj;
26829fail:
26830 return NULL;
26831}
26832
26833
5c8c7dd3 26834SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26835 PyObject *resultobj = 0;
5c8c7dd3
RD
26836 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26837 wxDouble arg2 ;
26838 wxDouble arg3 ;
26839 wxDouble arg4 ;
26840 wxDouble arg5 ;
70d7cb34
RD
26841 void *argp1 = 0 ;
26842 int res1 = 0 ;
5c8c7dd3
RD
26843 double val2 ;
26844 int ecode2 = 0 ;
26845 double val3 ;
26846 int ecode3 = 0 ;
26847 double val4 ;
26848 int ecode4 = 0 ;
26849 double val5 ;
26850 int ecode5 = 0 ;
70d7cb34
RD
26851 PyObject * obj0 = 0 ;
26852 PyObject * obj1 = 0 ;
5c8c7dd3
RD
26853 PyObject * obj2 = 0 ;
26854 PyObject * obj3 = 0 ;
26855 PyObject * obj4 = 0 ;
70d7cb34 26856 char * kwnames[] = {
5c8c7dd3 26857 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
70d7cb34
RD
26858 };
26859
5c8c7dd3
RD
26860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26862 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26864 }
5c8c7dd3
RD
26865 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26866 ecode2 = SWIG_AsVal_double(obj1, &val2);
26867 if (!SWIG_IsOK(ecode2)) {
26868 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26869 }
26870 arg2 = static_cast< wxDouble >(val2);
26871 ecode3 = SWIG_AsVal_double(obj2, &val3);
26872 if (!SWIG_IsOK(ecode3)) {
26873 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26874 }
26875 arg3 = static_cast< wxDouble >(val3);
26876 ecode4 = SWIG_AsVal_double(obj3, &val4);
26877 if (!SWIG_IsOK(ecode4)) {
26878 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26879 }
26880 arg4 = static_cast< wxDouble >(val4);
26881 ecode5 = SWIG_AsVal_double(obj4, &val5);
26882 if (!SWIG_IsOK(ecode5)) {
26883 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26884 }
26885 arg5 = static_cast< wxDouble >(val5);
70d7cb34 26886 {
5c8c7dd3 26887 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
70d7cb34
RD
26888 if (PyErr_Occurred()) SWIG_fail;
26889 }
26890 resultobj = SWIG_Py_Void();
26891 return resultobj;
26892fail:
26893 return NULL;
26894}
26895
26896
5c8c7dd3 26897SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26898 PyObject *resultobj = 0;
5c8c7dd3
RD
26899 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26900 wxDouble arg2 ;
26901 wxDouble arg3 ;
26902 wxDouble arg4 ;
70d7cb34
RD
26903 void *argp1 = 0 ;
26904 int res1 = 0 ;
5c8c7dd3
RD
26905 double val2 ;
26906 int ecode2 = 0 ;
26907 double val3 ;
26908 int ecode3 = 0 ;
26909 double val4 ;
26910 int ecode4 = 0 ;
70d7cb34
RD
26911 PyObject * obj0 = 0 ;
26912 PyObject * obj1 = 0 ;
5c8c7dd3
RD
26913 PyObject * obj2 = 0 ;
26914 PyObject * obj3 = 0 ;
70d7cb34 26915 char * kwnames[] = {
5c8c7dd3 26916 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
70d7cb34
RD
26917 };
26918
5c8c7dd3
RD
26919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26921 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26923 }
5c8c7dd3
RD
26924 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26925 ecode2 = SWIG_AsVal_double(obj1, &val2);
26926 if (!SWIG_IsOK(ecode2)) {
26927 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
26928 }
26929 arg2 = static_cast< wxDouble >(val2);
26930 ecode3 = SWIG_AsVal_double(obj2, &val3);
26931 if (!SWIG_IsOK(ecode3)) {
26932 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
26933 }
26934 arg3 = static_cast< wxDouble >(val3);
26935 ecode4 = SWIG_AsVal_double(obj3, &val4);
26936 if (!SWIG_IsOK(ecode4)) {
26937 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
26938 }
26939 arg4 = static_cast< wxDouble >(val4);
70d7cb34 26940 {
5c8c7dd3 26941 (arg1)->AddCircle(arg2,arg3,arg4);
70d7cb34
RD
26942 if (PyErr_Occurred()) SWIG_fail;
26943 }
26944 resultobj = SWIG_Py_Void();
26945 return resultobj;
26946fail:
26947 return NULL;
26948}
26949
26950
5c8c7dd3 26951SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26952 PyObject *resultobj = 0;
5c8c7dd3
RD
26953 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26954 wxDouble arg2 ;
26955 wxDouble arg3 ;
26956 wxDouble arg4 ;
26957 wxDouble arg5 ;
26958 wxDouble arg6 ;
70d7cb34
RD
26959 void *argp1 = 0 ;
26960 int res1 = 0 ;
26961 double val2 ;
26962 int ecode2 = 0 ;
26963 double val3 ;
26964 int ecode3 = 0 ;
26965 double val4 ;
26966 int ecode4 = 0 ;
26967 double val5 ;
26968 int ecode5 = 0 ;
26969 double val6 ;
26970 int ecode6 = 0 ;
70d7cb34
RD
26971 PyObject * obj0 = 0 ;
26972 PyObject * obj1 = 0 ;
26973 PyObject * obj2 = 0 ;
26974 PyObject * obj3 = 0 ;
26975 PyObject * obj4 = 0 ;
26976 PyObject * obj5 = 0 ;
70d7cb34 26977 char * kwnames[] = {
5c8c7dd3 26978 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
70d7cb34
RD
26979 };
26980
5c8c7dd3
RD
26981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26983 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26985 }
5c8c7dd3
RD
26986 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26987 ecode2 = SWIG_AsVal_double(obj1, &val2);
26988 if (!SWIG_IsOK(ecode2)) {
26989 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26990 }
26991 arg2 = static_cast< wxDouble >(val2);
26992 ecode3 = SWIG_AsVal_double(obj2, &val3);
26993 if (!SWIG_IsOK(ecode3)) {
26994 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26995 }
26996 arg3 = static_cast< wxDouble >(val3);
26997 ecode4 = SWIG_AsVal_double(obj3, &val4);
26998 if (!SWIG_IsOK(ecode4)) {
26999 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27000 }
27001 arg4 = static_cast< wxDouble >(val4);
27002 ecode5 = SWIG_AsVal_double(obj4, &val5);
27003 if (!SWIG_IsOK(ecode5)) {
27004 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27005 }
27006 arg5 = static_cast< wxDouble >(val5);
27007 ecode6 = SWIG_AsVal_double(obj5, &val6);
27008 if (!SWIG_IsOK(ecode6)) {
27009 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
27010 }
27011 arg6 = static_cast< wxDouble >(val6);
70d7cb34 27012 {
5c8c7dd3 27013 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
70d7cb34
RD
27014 if (PyErr_Occurred()) SWIG_fail;
27015 }
27016 resultobj = SWIG_Py_Void();
27017 return resultobj;
27018fail:
27019 return NULL;
27020}
27021
27022
5c8c7dd3 27023SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27024 PyObject *resultobj = 0;
5c8c7dd3
RD
27025 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27026 wxDouble arg2 ;
27027 wxDouble arg3 ;
27028 wxDouble arg4 ;
27029 wxDouble arg5 ;
70d7cb34
RD
27030 void *argp1 = 0 ;
27031 int res1 = 0 ;
5c8c7dd3
RD
27032 double val2 ;
27033 int ecode2 = 0 ;
27034 double val3 ;
27035 int ecode3 = 0 ;
27036 double val4 ;
27037 int ecode4 = 0 ;
27038 double val5 ;
27039 int ecode5 = 0 ;
27040 PyObject * obj0 = 0 ;
27041 PyObject * obj1 = 0 ;
27042 PyObject * obj2 = 0 ;
27043 PyObject * obj3 = 0 ;
27044 PyObject * obj4 = 0 ;
27045 char * kwnames[] = {
27046 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27047 };
70d7cb34 27048
5c8c7dd3
RD
27049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27051 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27053 }
5c8c7dd3
RD
27054 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27055 ecode2 = SWIG_AsVal_double(obj1, &val2);
27056 if (!SWIG_IsOK(ecode2)) {
27057 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
27058 }
27059 arg2 = static_cast< wxDouble >(val2);
27060 ecode3 = SWIG_AsVal_double(obj2, &val3);
27061 if (!SWIG_IsOK(ecode3)) {
27062 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
27063 }
27064 arg3 = static_cast< wxDouble >(val3);
27065 ecode4 = SWIG_AsVal_double(obj3, &val4);
27066 if (!SWIG_IsOK(ecode4)) {
27067 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
27068 }
27069 arg4 = static_cast< wxDouble >(val4);
27070 ecode5 = SWIG_AsVal_double(obj4, &val5);
27071 if (!SWIG_IsOK(ecode5)) {
27072 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
27073 }
27074 arg5 = static_cast< wxDouble >(val5);
70d7cb34 27075 {
5c8c7dd3 27076 (arg1)->AddEllipse(arg2,arg3,arg4,arg5);
70d7cb34
RD
27077 if (PyErr_Occurred()) SWIG_fail;
27078 }
27079 resultobj = SWIG_Py_Void();
27080 return resultobj;
27081fail:
27082 return NULL;
27083}
27084
27085
5c8c7dd3 27086SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27087 PyObject *resultobj = 0;
5c8c7dd3
RD
27088 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27089 wxDouble arg2 ;
27090 wxDouble arg3 ;
27091 wxDouble arg4 ;
27092 wxDouble arg5 ;
27093 wxDouble arg6 ;
70d7cb34
RD
27094 void *argp1 = 0 ;
27095 int res1 = 0 ;
5c8c7dd3
RD
27096 double val2 ;
27097 int ecode2 = 0 ;
27098 double val3 ;
27099 int ecode3 = 0 ;
27100 double val4 ;
27101 int ecode4 = 0 ;
27102 double val5 ;
27103 int ecode5 = 0 ;
27104 double val6 ;
27105 int ecode6 = 0 ;
70d7cb34
RD
27106 PyObject * obj0 = 0 ;
27107 PyObject * obj1 = 0 ;
5c8c7dd3
RD
27108 PyObject * obj2 = 0 ;
27109 PyObject * obj3 = 0 ;
27110 PyObject * obj4 = 0 ;
27111 PyObject * obj5 = 0 ;
70d7cb34 27112 char * kwnames[] = {
5c8c7dd3 27113 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
70d7cb34
RD
27114 };
27115
5c8c7dd3
RD
27116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27118 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27120 }
5c8c7dd3
RD
27121 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27122 ecode2 = SWIG_AsVal_double(obj1, &val2);
27123 if (!SWIG_IsOK(ecode2)) {
27124 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27125 }
27126 arg2 = static_cast< wxDouble >(val2);
27127 ecode3 = SWIG_AsVal_double(obj2, &val3);
27128 if (!SWIG_IsOK(ecode3)) {
27129 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27130 }
27131 arg3 = static_cast< wxDouble >(val3);
27132 ecode4 = SWIG_AsVal_double(obj3, &val4);
27133 if (!SWIG_IsOK(ecode4)) {
27134 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27135 }
27136 arg4 = static_cast< wxDouble >(val4);
27137 ecode5 = SWIG_AsVal_double(obj4, &val5);
27138 if (!SWIG_IsOK(ecode5)) {
27139 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27140 }
27141 arg5 = static_cast< wxDouble >(val5);
27142 ecode6 = SWIG_AsVal_double(obj5, &val6);
27143 if (!SWIG_IsOK(ecode6)) {
27144 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
27145 }
27146 arg6 = static_cast< wxDouble >(val6);
70d7cb34 27147 {
5c8c7dd3 27148 (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
70d7cb34
RD
27149 if (PyErr_Occurred()) SWIG_fail;
27150 }
5c8c7dd3 27151 resultobj = SWIG_Py_Void();
70d7cb34
RD
27152 return resultobj;
27153fail:
27154 return NULL;
27155}
27156
27157
5c8c7dd3 27158SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34 27159 PyObject *resultobj = 0;
5c8c7dd3
RD
27160 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27161 void *result = 0 ;
70d7cb34
RD
27162 void *argp1 = 0 ;
27163 int res1 = 0 ;
27164 PyObject *swig_obj[1] ;
27165
27166 if (!args) SWIG_fail;
27167 swig_obj[0] = args;
5c8c7dd3 27168 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27169 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27171 }
5c8c7dd3 27172 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27173 {
5c8c7dd3 27174 result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath();
70d7cb34
RD
27175 if (PyErr_Occurred()) SWIG_fail;
27176 }
5c8c7dd3 27177 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
70d7cb34
RD
27178 return resultobj;
27179fail:
27180 return NULL;
27181}
27182
27183
5c8c7dd3 27184SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27185 PyObject *resultobj = 0;
5c8c7dd3
RD
27186 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27187 void *arg2 = (void *) 0 ;
70d7cb34
RD
27188 void *argp1 = 0 ;
27189 int res1 = 0 ;
5c8c7dd3 27190 int res2 ;
70d7cb34
RD
27191 PyObject * obj0 = 0 ;
27192 PyObject * obj1 = 0 ;
70d7cb34 27193 char * kwnames[] = {
5c8c7dd3 27194 (char *) "self",(char *) "p", NULL
70d7cb34
RD
27195 };
27196
5c8c7dd3
RD
27197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail;
27198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27199 if (!SWIG_IsOK(res1)) {
8f514ab4 27200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
5c8c7dd3
RD
27201 }
27202 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27203 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
27204 if (!SWIG_IsOK(res2)) {
27205 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'");
70d7cb34 27206 }
70d7cb34 27207 {
8f514ab4 27208 ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2);
70d7cb34
RD
27209 if (PyErr_Occurred()) SWIG_fail;
27210 }
27211 resultobj = SWIG_Py_Void();
27212 return resultobj;
27213fail:
27214 return NULL;
27215}
27216
27217
5c8c7dd3 27218SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27219 PyObject *resultobj = 0;
5c8c7dd3
RD
27220 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27221 wxGraphicsMatrix *arg2 = 0 ;
70d7cb34
RD
27222 void *argp1 = 0 ;
27223 int res1 = 0 ;
5c8c7dd3
RD
27224 void *argp2 = 0 ;
27225 int res2 = 0 ;
70d7cb34
RD
27226 PyObject * obj0 = 0 ;
27227 PyObject * obj1 = 0 ;
70d7cb34 27228 char * kwnames[] = {
5c8c7dd3 27229 (char *) "self",(char *) "matrix", NULL
70d7cb34
RD
27230 };
27231
5c8c7dd3
RD
27232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail;
27233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27234 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27236 }
5c8c7dd3
RD
27237 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27238 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
27239 if (!SWIG_IsOK(res2)) {
27240 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27241 }
27242 if (!argp2) {
27243 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27244 }
27245 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 27246 {
5c8c7dd3 27247 (arg1)->Transform((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
27248 if (PyErr_Occurred()) SWIG_fail;
27249 }
27250 resultobj = SWIG_Py_Void();
27251 return resultobj;
27252fail:
27253 return NULL;
27254}
27255
27256
5c8c7dd3 27257SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34 27258 PyObject *resultobj = 0;
5c8c7dd3
RD
27259 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27260 wxRect2DDouble result;
70d7cb34
RD
27261 void *argp1 = 0 ;
27262 int res1 = 0 ;
5c8c7dd3 27263 PyObject *swig_obj[1] ;
70d7cb34 27264
5c8c7dd3
RD
27265 if (!args) SWIG_fail;
27266 swig_obj[0] = args;
27267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27268 if (!SWIG_IsOK(res1)) {
8f514ab4 27269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27270 }
5c8c7dd3 27271 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27272 {
8f514ab4 27273 result = ((wxGraphicsPath const *)arg1)->GetBox();
70d7cb34
RD
27274 if (PyErr_Occurred()) SWIG_fail;
27275 }
5c8c7dd3 27276 resultobj = SWIG_NewPointerObj((new wxRect2DDouble(static_cast< const wxRect2DDouble& >(result))), SWIGTYPE_p_wxRect2DDouble, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
27277 return resultobj;
27278fail:
27279 return NULL;
27280}
27281
27282
5c8c7dd3 27283SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34 27284 PyObject *resultobj = 0;
5c8c7dd3
RD
27285 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27286 wxDouble arg2 ;
27287 wxDouble arg3 ;
8f514ab4 27288 int arg4 = (int) wxODDEVEN_RULE ;
5c8c7dd3 27289 bool result;
70d7cb34
RD
27290 void *argp1 = 0 ;
27291 int res1 = 0 ;
5c8c7dd3
RD
27292 double val2 ;
27293 int ecode2 = 0 ;
27294 double val3 ;
27295 int ecode3 = 0 ;
27296 int val4 ;
27297 int ecode4 = 0 ;
70d7cb34 27298
5c8c7dd3
RD
27299 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
27300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27301 if (!SWIG_IsOK(res1)) {
8f514ab4 27302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27303 }
5c8c7dd3
RD
27304 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27305 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27306 if (!SWIG_IsOK(ecode2)) {
27307 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'");
27308 }
27309 arg2 = static_cast< wxDouble >(val2);
27310 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27311 if (!SWIG_IsOK(ecode3)) {
27312 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'");
27313 }
27314 arg3 = static_cast< wxDouble >(val3);
27315 if (swig_obj[3]) {
27316 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
27317 if (!SWIG_IsOK(ecode4)) {
27318 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'");
27319 }
27320 arg4 = static_cast< int >(val4);
70d7cb34
RD
27321 }
27322 {
8f514ab4 27323 result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4);
70d7cb34
RD
27324 if (PyErr_Occurred()) SWIG_fail;
27325 }
5c8c7dd3
RD
27326 {
27327 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
70d7cb34
RD
27328 }
27329 return resultobj;
27330fail:
27331 return NULL;
27332}
27333
27334
5c8c7dd3 27335SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34 27336 PyObject *resultobj = 0;
5c8c7dd3
RD
27337 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27338 wxPoint2DDouble *arg2 = 0 ;
8f514ab4 27339 int arg3 = (int) wxODDEVEN_RULE ;
5c8c7dd3 27340 bool result;
70d7cb34
RD
27341 void *argp1 = 0 ;
27342 int res1 = 0 ;
5c8c7dd3 27343 void *argp2 = 0 ;
70d7cb34 27344 int res2 = 0 ;
5c8c7dd3
RD
27345 int val3 ;
27346 int ecode3 = 0 ;
70d7cb34 27347
5c8c7dd3
RD
27348 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
27349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27350 if (!SWIG_IsOK(res1)) {
8f514ab4 27351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27352 }
5c8c7dd3
RD
27353 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27354 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPoint2DDouble, 0 | 0);
27355 if (!SWIG_IsOK(res2)) {
27356 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
70d7cb34 27357 }
5c8c7dd3
RD
27358 if (!argp2) {
27359 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
27360 }
27361 arg2 = reinterpret_cast< wxPoint2DDouble * >(argp2);
27362 if (swig_obj[2]) {
27363 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
27364 if (!SWIG_IsOK(ecode3)) {
27365 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'");
27366 }
27367 arg3 = static_cast< int >(val3);
70d7cb34
RD
27368 }
27369 {
8f514ab4 27370 result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2DDouble const &)*arg2,arg3);
70d7cb34
RD
27371 if (PyErr_Occurred()) SWIG_fail;
27372 }
5c8c7dd3
RD
27373 {
27374 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
70d7cb34
RD
27375 }
27376 return resultobj;
27377fail:
27378 return NULL;
27379}
27380
27381
5c8c7dd3
RD
27382SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) {
27383 int argc;
27384 PyObject *argv[5];
70d7cb34 27385
5c8c7dd3
RD
27386 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail;
27387 --argc;
27388 if ((argc >= 2) && (argc <= 3)) {
27389 int _v = 0;
27390 {
27391 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxPoint2DDouble, 0);
27392 _v = SWIG_CheckState(res);
27393 }
27394 if (!_v) goto check_1;
27395 if (argc > 2) {
27396 {
27397 {
27398 int res = SWIG_AsVal_int(argv[2], NULL);
27399 _v = SWIG_CheckState(res);
27400 }
27401 }
27402 if (!_v) goto check_1;
27403 }
27404 return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv);
70d7cb34 27405 }
5c8c7dd3
RD
27406check_1:
27407
27408 if ((argc >= 3) && (argc <= 4)) {
27409 return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv);
70d7cb34 27410 }
5c8c7dd3 27411
70d7cb34 27412fail:
5c8c7dd3 27413 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'");
70d7cb34
RD
27414 return NULL;
27415}
27416
27417
5c8c7dd3 27418SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
27419 PyObject *obj;
27420 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5c8c7dd3 27421 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
70d7cb34
RD
27422 return SWIG_Py_Void();
27423}
27424
8f514ab4
RD
27425SWIGINTERN PyObject *GraphicsPath_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27426 return SWIG_Python_InitShadowInstance(args);
27427}
27428
5c8c7dd3
RD
27429SWIGINTERN int NullGraphicsPen_set(PyObject *) {
27430 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only.");
27431 return 1;
27432}
27433
27434
27435SWIGINTERN PyObject *NullGraphicsPen_get(void) {
27436 PyObject *pyobj = 0;
27437
27438 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 );
27439 return pyobj;
27440}
27441
27442
27443SWIGINTERN int NullGraphicsBrush_set(PyObject *) {
27444 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only.");
27445 return 1;
27446}
27447
27448
27449SWIGINTERN PyObject *NullGraphicsBrush_get(void) {
27450 PyObject *pyobj = 0;
27451
27452 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 );
27453 return pyobj;
27454}
27455
27456
27457SWIGINTERN int NullGraphicsFont_set(PyObject *) {
27458 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only.");
27459 return 1;
27460}
27461
27462
27463SWIGINTERN PyObject *NullGraphicsFont_get(void) {
27464 PyObject *pyobj = 0;
27465
27466 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 );
27467 return pyobj;
27468}
27469
27470
27471SWIGINTERN int NullGraphicsMatrix_set(PyObject *) {
27472 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only.");
27473 return 1;
27474}
27475
27476
27477SWIGINTERN PyObject *NullGraphicsMatrix_get(void) {
27478 PyObject *pyobj = 0;
27479
27480 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 );
27481 return pyobj;
27482}
27483
27484
27485SWIGINTERN int NullGraphicsPath_set(PyObject *) {
27486 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only.");
27487 return 1;
27488}
27489
27490
27491SWIGINTERN PyObject *NullGraphicsPath_get(void) {
27492 PyObject *pyobj = 0;
27493
27494 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 );
27495 return pyobj;
27496}
27497
27498
70d7cb34
RD
27499SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27500 PyObject *resultobj = 0;
27501 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27502 void *argp1 = 0 ;
27503 int res1 = 0 ;
27504 PyObject *swig_obj[1] ;
27505
27506 if (!args) SWIG_fail;
27507 swig_obj[0] = args;
27508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
27509 if (!SWIG_IsOK(res1)) {
27510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27511 }
27512 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27513 {
27514 delete arg1;
27515
27516 if (PyErr_Occurred()) SWIG_fail;
27517 }
27518 resultobj = SWIG_Py_Void();
27519 return resultobj;
27520fail:
27521 return NULL;
27522}
27523
27524
27525SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27526 PyObject *resultobj = 0;
27527 wxWindowDC *arg1 = 0 ;
27528 wxGraphicsContext *result = 0 ;
27529 void *argp1 = 0 ;
27530 int res1 = 0 ;
27531
27532 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27533 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
27534 if (!SWIG_IsOK(res1)) {
27535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27536 }
27537 if (!argp1) {
27538 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27539 }
27540 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
27541 {
27542 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
27543 if (PyErr_Occurred()) SWIG_fail;
27544 }
27545 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27546 return resultobj;
27547fail:
27548 return NULL;
27549}
27550
27551
27552SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27553 PyObject *resultobj = 0;
27554 wxWindow *arg1 = (wxWindow *) 0 ;
27555 wxGraphicsContext *result = 0 ;
27556 void *argp1 = 0 ;
27557 int res1 = 0 ;
27558
27559 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27560 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
27561 if (!SWIG_IsOK(res1)) {
27562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
27563 }
27564 arg1 = reinterpret_cast< wxWindow * >(argp1);
27565 {
27566 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
27567 if (PyErr_Occurred()) SWIG_fail;
27568 }
27569 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27570 return resultobj;
27571fail:
27572 return NULL;
27573}
27574
27575
27576SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
27577 int argc;
27578 PyObject *argv[2];
27579
27580 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
27581 --argc;
27582 if (argc == 1) {
27583 int _v = 0;
27584 {
27585 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
27586 _v = SWIG_CheckState(res);
27587 }
27588 if (!_v) goto check_1;
27589 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
27590 }
27591check_1:
27592
27593 if (argc == 1) {
27594 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
27595 }
27596
27597fail:
27598 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
27599 return NULL;
27600}
27601
27602
27603SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27604 PyObject *resultobj = 0;
27605 void *arg1 = (void *) 0 ;
27606 wxGraphicsContext *result = 0 ;
27607 int res1 ;
27608 PyObject * obj0 = 0 ;
27609 char * kwnames[] = {
27610 (char *) "context", NULL
27611 };
27612
27613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
27614 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27615 if (!SWIG_IsOK(res1)) {
27616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
27617 }
27618 {
27619 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
27620 if (PyErr_Occurred()) SWIG_fail;
27621 }
27622 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27623 return resultobj;
27624fail:
27625 return NULL;
27626}
27627
27628
27629SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27630 PyObject *resultobj = 0;
27631 void *arg1 = (void *) 0 ;
27632 wxGraphicsContext *result = 0 ;
27633 int res1 ;
27634 PyObject * obj0 = 0 ;
27635 char * kwnames[] = {
27636 (char *) "window", NULL
27637 };
27638
27639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail;
27640 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27641 if (!SWIG_IsOK(res1)) {
27642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'");
27643 }
27644 {
27645 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1);
27646 if (PyErr_Occurred()) SWIG_fail;
27647 }
27648 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27649 return resultobj;
27650fail:
27651 return NULL;
27652}
27653
27654
27655SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27656 PyObject *resultobj = 0;
27657 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 27658 wxGraphicsPath result;
70d7cb34
RD
27659 void *argp1 = 0 ;
27660 int res1 = 0 ;
27661 PyObject *swig_obj[1] ;
27662
27663 if (!args) SWIG_fail;
27664 swig_obj[0] = args;
27665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27666 if (!SWIG_IsOK(res1)) {
27667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27668 }
27669 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27670 {
5c8c7dd3 27671 result = (arg1)->CreatePath();
70d7cb34
RD
27672 if (PyErr_Occurred()) SWIG_fail;
27673 }
5c8c7dd3 27674 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27675 return resultobj;
27676fail:
27677 return NULL;
27678}
27679
27680
70d7cb34 27681SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27682 PyObject *resultobj = 0;
70d7cb34
RD
27683 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27684 wxPen *arg2 = 0 ;
27685 wxGraphicsPen result;
72ef6efb
RD
27686 void *argp1 = 0 ;
27687 int res1 = 0 ;
70d7cb34
RD
27688 void *argp2 = 0 ;
27689 int res2 = 0 ;
72ef6efb
RD
27690 PyObject * obj0 = 0 ;
27691 PyObject * obj1 = 0 ;
72ef6efb 27692 char * kwnames[] = {
70d7cb34 27693 (char *) "self",(char *) "pen", NULL
72ef6efb
RD
27694 };
27695
70d7cb34
RD
27696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
27697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27698 if (!SWIG_IsOK(res1)) {
70d7cb34 27699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27700 }
70d7cb34
RD
27701 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27702 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
27703 if (!SWIG_IsOK(res2)) {
27704 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27705 }
27706 if (!argp2) {
27707 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27708 }
27709 arg2 = reinterpret_cast< wxPen * >(argp2);
72ef6efb 27710 {
70d7cb34 27711 result = (arg1)->CreatePen((wxPen const &)*arg2);
72ef6efb
RD
27712 if (PyErr_Occurred()) SWIG_fail;
27713 }
70d7cb34 27714 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27715 return resultobj;
27716fail:
27717 return NULL;
27718}
27719
27720
70d7cb34 27721SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27722 PyObject *resultobj = 0;
70d7cb34
RD
27723 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27724 wxBrush *arg2 = 0 ;
27725 wxGraphicsBrush result;
72ef6efb
RD
27726 void *argp1 = 0 ;
27727 int res1 = 0 ;
70d7cb34
RD
27728 void *argp2 = 0 ;
27729 int res2 = 0 ;
72ef6efb
RD
27730 PyObject * obj0 = 0 ;
27731 PyObject * obj1 = 0 ;
72ef6efb 27732 char * kwnames[] = {
70d7cb34 27733 (char *) "self",(char *) "brush", NULL
72ef6efb
RD
27734 };
27735
70d7cb34
RD
27736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
27737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27738 if (!SWIG_IsOK(res1)) {
70d7cb34 27739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27740 }
70d7cb34
RD
27741 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27742 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
27743 if (!SWIG_IsOK(res2)) {
27744 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27745 }
27746 if (!argp2) {
27747 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27748 }
27749 arg2 = reinterpret_cast< wxBrush * >(argp2);
72ef6efb 27750 {
70d7cb34 27751 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
72ef6efb
RD
27752 if (PyErr_Occurred()) SWIG_fail;
27753 }
70d7cb34 27754 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27755 return resultobj;
27756fail:
27757 return NULL;
27758}
27759
27760
70d7cb34 27761SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27762 PyObject *resultobj = 0;
70d7cb34 27763 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
27764 wxDouble arg2 ;
27765 wxDouble arg3 ;
27766 wxDouble arg4 ;
27767 wxDouble arg5 ;
70d7cb34
RD
27768 wxColour *arg6 = 0 ;
27769 wxColour *arg7 = 0 ;
27770 wxGraphicsBrush result;
72ef6efb
RD
27771 void *argp1 = 0 ;
27772 int res1 = 0 ;
27773 double val2 ;
27774 int ecode2 = 0 ;
27775 double val3 ;
27776 int ecode3 = 0 ;
27777 double val4 ;
27778 int ecode4 = 0 ;
27779 double val5 ;
27780 int ecode5 = 0 ;
70d7cb34
RD
27781 wxColour temp6 ;
27782 wxColour temp7 ;
72ef6efb
RD
27783 PyObject * obj0 = 0 ;
27784 PyObject * obj1 = 0 ;
27785 PyObject * obj2 = 0 ;
27786 PyObject * obj3 = 0 ;
27787 PyObject * obj4 = 0 ;
70d7cb34
RD
27788 PyObject * obj5 = 0 ;
27789 PyObject * obj6 = 0 ;
72ef6efb 27790 char * kwnames[] = {
70d7cb34 27791 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
27792 };
27793
70d7cb34
RD
27794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27796 if (!SWIG_IsOK(res1)) {
70d7cb34 27797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27798 }
70d7cb34 27799 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
27800 ecode2 = SWIG_AsVal_double(obj1, &val2);
27801 if (!SWIG_IsOK(ecode2)) {
70d7cb34 27802 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
27803 }
27804 arg2 = static_cast< wxDouble >(val2);
27805 ecode3 = SWIG_AsVal_double(obj2, &val3);
27806 if (!SWIG_IsOK(ecode3)) {
70d7cb34 27807 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
27808 }
27809 arg3 = static_cast< wxDouble >(val3);
27810 ecode4 = SWIG_AsVal_double(obj3, &val4);
27811 if (!SWIG_IsOK(ecode4)) {
70d7cb34 27812 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
27813 }
27814 arg4 = static_cast< wxDouble >(val4);
27815 ecode5 = SWIG_AsVal_double(obj4, &val5);
27816 if (!SWIG_IsOK(ecode5)) {
70d7cb34 27817 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
27818 }
27819 arg5 = static_cast< wxDouble >(val5);
27820 {
70d7cb34
RD
27821 arg6 = &temp6;
27822 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
72ef6efb 27823 }
70d7cb34
RD
27824 {
27825 arg7 = &temp7;
27826 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
72ef6efb 27827 }
72ef6efb 27828 {
70d7cb34 27829 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
27830 if (PyErr_Occurred()) SWIG_fail;
27831 }
70d7cb34 27832 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27833 return resultobj;
27834fail:
27835 return NULL;
27836}
27837
27838
70d7cb34 27839SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27840 PyObject *resultobj = 0;
70d7cb34 27841 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
27842 wxDouble arg2 ;
27843 wxDouble arg3 ;
27844 wxDouble arg4 ;
27845 wxDouble arg5 ;
27846 wxDouble arg6 ;
70d7cb34
RD
27847 wxColour *arg7 = 0 ;
27848 wxColour *arg8 = 0 ;
27849 wxGraphicsBrush result;
72ef6efb
RD
27850 void *argp1 = 0 ;
27851 int res1 = 0 ;
27852 double val2 ;
27853 int ecode2 = 0 ;
27854 double val3 ;
27855 int ecode3 = 0 ;
27856 double val4 ;
27857 int ecode4 = 0 ;
27858 double val5 ;
27859 int ecode5 = 0 ;
27860 double val6 ;
27861 int ecode6 = 0 ;
70d7cb34
RD
27862 wxColour temp7 ;
27863 wxColour temp8 ;
72ef6efb
RD
27864 PyObject * obj0 = 0 ;
27865 PyObject * obj1 = 0 ;
27866 PyObject * obj2 = 0 ;
27867 PyObject * obj3 = 0 ;
27868 PyObject * obj4 = 0 ;
27869 PyObject * obj5 = 0 ;
70d7cb34
RD
27870 PyObject * obj6 = 0 ;
27871 PyObject * obj7 = 0 ;
72ef6efb 27872 char * kwnames[] = {
70d7cb34 27873 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
27874 };
27875
70d7cb34
RD
27876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
27877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27878 if (!SWIG_IsOK(res1)) {
70d7cb34 27879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27880 }
70d7cb34 27881 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
27882 ecode2 = SWIG_AsVal_double(obj1, &val2);
27883 if (!SWIG_IsOK(ecode2)) {
70d7cb34 27884 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
27885 }
27886 arg2 = static_cast< wxDouble >(val2);
27887 ecode3 = SWIG_AsVal_double(obj2, &val3);
27888 if (!SWIG_IsOK(ecode3)) {
70d7cb34 27889 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
27890 }
27891 arg3 = static_cast< wxDouble >(val3);
27892 ecode4 = SWIG_AsVal_double(obj3, &val4);
27893 if (!SWIG_IsOK(ecode4)) {
70d7cb34 27894 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
27895 }
27896 arg4 = static_cast< wxDouble >(val4);
27897 ecode5 = SWIG_AsVal_double(obj4, &val5);
27898 if (!SWIG_IsOK(ecode5)) {
70d7cb34 27899 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
27900 }
27901 arg5 = static_cast< wxDouble >(val5);
27902 ecode6 = SWIG_AsVal_double(obj5, &val6);
27903 if (!SWIG_IsOK(ecode6)) {
70d7cb34 27904 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
27905 }
27906 arg6 = static_cast< wxDouble >(val6);
27907 {
70d7cb34
RD
27908 arg7 = &temp7;
27909 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
27910 }
27911 {
27912 arg8 = &temp8;
27913 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
27914 }
27915 {
27916 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
27917 if (PyErr_Occurred()) SWIG_fail;
27918 }
70d7cb34 27919 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27920 return resultobj;
27921fail:
27922 return NULL;
27923}
27924
27925
70d7cb34 27926SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
27927 PyObject *resultobj = 0;
27928 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34
RD
27929 wxFont *arg2 = 0 ;
27930 wxColour const &arg3_defvalue = *wxBLACK ;
27931 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
27932 wxGraphicsFont result;
72ef6efb
RD
27933 void *argp1 = 0 ;
27934 int res1 = 0 ;
70d7cb34
RD
27935 void *argp2 = 0 ;
27936 int res2 = 0 ;
27937 wxColour temp3 ;
27938 PyObject * obj0 = 0 ;
27939 PyObject * obj1 = 0 ;
27940 PyObject * obj2 = 0 ;
27941 char * kwnames[] = {
27942 (char *) "self",(char *) "font",(char *) "col", NULL
27943 };
72ef6efb 27944
70d7cb34
RD
27945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27947 if (!SWIG_IsOK(res1)) {
70d7cb34 27948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
27949 }
27950 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
27951 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
27952 if (!SWIG_IsOK(res2)) {
27953 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 27954 }
70d7cb34
RD
27955 if (!argp2) {
27956 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 27957 }
70d7cb34
RD
27958 arg2 = reinterpret_cast< wxFont * >(argp2);
27959 if (obj2) {
27960 {
27961 arg3 = &temp3;
27962 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
27963 }
72ef6efb 27964 }
72ef6efb 27965 {
70d7cb34 27966 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
27967 if (PyErr_Occurred()) SWIG_fail;
27968 }
70d7cb34 27969 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27970 return resultobj;
27971fail:
27972 return NULL;
27973}
27974
27975
70d7cb34 27976SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0a27f394 27977 PyObject *resultobj = 0;
70d7cb34
RD
27978 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27979 wxDouble arg2 = (wxDouble) 1.0 ;
27980 wxDouble arg3 = (wxDouble) 0.0 ;
27981 wxDouble arg4 = (wxDouble) 0.0 ;
27982 wxDouble arg5 = (wxDouble) 1.0 ;
27983 wxDouble arg6 = (wxDouble) 0.0 ;
27984 wxDouble arg7 = (wxDouble) 0.0 ;
5c8c7dd3 27985 wxGraphicsMatrix result;
0a27f394
RD
27986 void *argp1 = 0 ;
27987 int res1 = 0 ;
70d7cb34
RD
27988 double val2 ;
27989 int ecode2 = 0 ;
27990 double val3 ;
27991 int ecode3 = 0 ;
27992 double val4 ;
27993 int ecode4 = 0 ;
27994 double val5 ;
27995 int ecode5 = 0 ;
27996 double val6 ;
27997 int ecode6 = 0 ;
27998 double val7 ;
27999 int ecode7 = 0 ;
28000 PyObject * obj0 = 0 ;
28001 PyObject * obj1 = 0 ;
28002 PyObject * obj2 = 0 ;
28003 PyObject * obj3 = 0 ;
28004 PyObject * obj4 = 0 ;
28005 PyObject * obj5 = 0 ;
28006 PyObject * obj6 = 0 ;
28007 char * kwnames[] = {
28008 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
28009 };
0a27f394 28010
70d7cb34
RD
28011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
0a27f394 28013 if (!SWIG_IsOK(res1)) {
70d7cb34 28014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
0a27f394 28015 }
70d7cb34
RD
28016 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28017 if (obj1) {
28018 ecode2 = SWIG_AsVal_double(obj1, &val2);
28019 if (!SWIG_IsOK(ecode2)) {
28020 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
28021 }
28022 arg2 = static_cast< wxDouble >(val2);
0a27f394 28023 }
70d7cb34
RD
28024 if (obj2) {
28025 ecode3 = SWIG_AsVal_double(obj2, &val3);
28026 if (!SWIG_IsOK(ecode3)) {
28027 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
28028 }
28029 arg3 = static_cast< wxDouble >(val3);
0a27f394 28030 }
70d7cb34
RD
28031 if (obj3) {
28032 ecode4 = SWIG_AsVal_double(obj3, &val4);
28033 if (!SWIG_IsOK(ecode4)) {
28034 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
28035 }
28036 arg4 = static_cast< wxDouble >(val4);
0a27f394 28037 }
70d7cb34
RD
28038 if (obj4) {
28039 ecode5 = SWIG_AsVal_double(obj4, &val5);
28040 if (!SWIG_IsOK(ecode5)) {
28041 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
28042 }
28043 arg5 = static_cast< wxDouble >(val5);
0a27f394 28044 }
70d7cb34
RD
28045 if (obj5) {
28046 ecode6 = SWIG_AsVal_double(obj5, &val6);
28047 if (!SWIG_IsOK(ecode6)) {
28048 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
28049 }
28050 arg6 = static_cast< wxDouble >(val6);
0a27f394 28051 }
70d7cb34
RD
28052 if (obj6) {
28053 ecode7 = SWIG_AsVal_double(obj6, &val7);
28054 if (!SWIG_IsOK(ecode7)) {
28055 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
28056 }
28057 arg7 = static_cast< wxDouble >(val7);
72ef6efb 28058 }
72ef6efb 28059 {
5c8c7dd3 28060 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
28061 if (PyErr_Occurred()) SWIG_fail;
28062 }
5c8c7dd3 28063 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28064 return resultobj;
28065fail:
28066 return NULL;
28067}
28068
28069
28070SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28071 PyObject *resultobj = 0;
28072 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28073 void *argp1 = 0 ;
28074 int res1 = 0 ;
28075 PyObject *swig_obj[1] ;
28076
28077 if (!args) SWIG_fail;
28078 swig_obj[0] = args;
28079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28080 if (!SWIG_IsOK(res1)) {
28081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28082 }
28083 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28084 {
72ef6efb 28085 (arg1)->PushState();
72ef6efb
RD
28086 if (PyErr_Occurred()) SWIG_fail;
28087 }
28088 resultobj = SWIG_Py_Void();
28089 return resultobj;
28090fail:
28091 return NULL;
28092}
28093
28094
28095SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28096 PyObject *resultobj = 0;
28097 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28098 void *argp1 = 0 ;
28099 int res1 = 0 ;
28100 PyObject *swig_obj[1] ;
28101
28102 if (!args) SWIG_fail;
28103 swig_obj[0] = args;
28104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28105 if (!SWIG_IsOK(res1)) {
28106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28107 }
28108 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28109 {
72ef6efb 28110 (arg1)->PopState();
72ef6efb
RD
28111 if (PyErr_Occurred()) SWIG_fail;
28112 }
28113 resultobj = SWIG_Py_Void();
28114 return resultobj;
28115fail:
28116 return NULL;
28117}
28118
28119
0a27f394 28120SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28121 PyObject *resultobj = 0;
28122 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28123 wxRegion *arg2 = 0 ;
28124 void *argp1 = 0 ;
28125 int res1 = 0 ;
28126 void *argp2 = 0 ;
28127 int res2 = 0 ;
28128 PyObject * obj0 = 0 ;
28129 PyObject * obj1 = 0 ;
28130 char * kwnames[] = {
28131 (char *) "self",(char *) "region", NULL
28132 };
28133
0a27f394 28134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
28135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28136 if (!SWIG_IsOK(res1)) {
0a27f394 28137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28138 }
28139 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28140 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
28141 if (!SWIG_IsOK(res2)) {
0a27f394 28142 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
28143 }
28144 if (!argp2) {
0a27f394 28145 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
28146 }
28147 arg2 = reinterpret_cast< wxRegion * >(argp2);
28148 {
72ef6efb 28149 (arg1)->Clip((wxRegion const &)*arg2);
72ef6efb
RD
28150 if (PyErr_Occurred()) SWIG_fail;
28151 }
28152 resultobj = SWIG_Py_Void();
28153 return resultobj;
28154fail:
28155 return NULL;
28156}
28157
28158
0a27f394
RD
28159SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28160 PyObject *resultobj = 0;
28161 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28162 wxDouble arg2 ;
28163 wxDouble arg3 ;
28164 wxDouble arg4 ;
28165 wxDouble arg5 ;
28166 void *argp1 = 0 ;
28167 int res1 = 0 ;
28168 double val2 ;
28169 int ecode2 = 0 ;
28170 double val3 ;
28171 int ecode3 = 0 ;
28172 double val4 ;
28173 int ecode4 = 0 ;
28174 double val5 ;
28175 int ecode5 = 0 ;
28176 PyObject * obj0 = 0 ;
28177 PyObject * obj1 = 0 ;
28178 PyObject * obj2 = 0 ;
28179 PyObject * obj3 = 0 ;
28180 PyObject * obj4 = 0 ;
28181 char * kwnames[] = {
28182 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
28183 };
28184
28185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28187 if (!SWIG_IsOK(res1)) {
28188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28189 }
28190 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28191 ecode2 = SWIG_AsVal_double(obj1, &val2);
28192 if (!SWIG_IsOK(ecode2)) {
28193 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
28194 }
28195 arg2 = static_cast< wxDouble >(val2);
28196 ecode3 = SWIG_AsVal_double(obj2, &val3);
28197 if (!SWIG_IsOK(ecode3)) {
28198 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
28199 }
28200 arg3 = static_cast< wxDouble >(val3);
28201 ecode4 = SWIG_AsVal_double(obj3, &val4);
28202 if (!SWIG_IsOK(ecode4)) {
28203 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
28204 }
28205 arg4 = static_cast< wxDouble >(val4);
28206 ecode5 = SWIG_AsVal_double(obj4, &val5);
28207 if (!SWIG_IsOK(ecode5)) {
28208 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
28209 }
28210 arg5 = static_cast< wxDouble >(val5);
28211 {
28212 (arg1)->Clip(arg2,arg3,arg4,arg5);
28213 if (PyErr_Occurred()) SWIG_fail;
28214 }
28215 resultobj = SWIG_Py_Void();
28216 return resultobj;
28217fail:
28218 return NULL;
28219}
28220
28221
28222SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28223 PyObject *resultobj = 0;
28224 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28225 void *argp1 = 0 ;
28226 int res1 = 0 ;
28227 PyObject *swig_obj[1] ;
28228
28229 if (!args) SWIG_fail;
28230 swig_obj[0] = args;
28231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28232 if (!SWIG_IsOK(res1)) {
28233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28234 }
28235 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28236 {
28237 (arg1)->ResetClip();
28238 if (PyErr_Occurred()) SWIG_fail;
28239 }
28240 resultobj = SWIG_Py_Void();
28241 return resultobj;
28242fail:
28243 return NULL;
28244}
28245
28246
28247SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28248 PyObject *resultobj = 0;
28249 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28250 void *result = 0 ;
28251 void *argp1 = 0 ;
28252 int res1 = 0 ;
28253 PyObject *swig_obj[1] ;
28254
28255 if (!args) SWIG_fail;
28256 swig_obj[0] = args;
28257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28258 if (!SWIG_IsOK(res1)) {
28259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28260 }
28261 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28262 {
28263 result = (void *)(arg1)->GetNativeContext();
28264 if (PyErr_Occurred()) SWIG_fail;
28265 }
28266 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
28267 return resultobj;
28268fail:
28269 return NULL;
28270}
28271
28272
72ef6efb
RD
28273SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28274 PyObject *resultobj = 0;
28275 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28276 wxDouble arg2 ;
28277 wxDouble arg3 ;
28278 void *argp1 = 0 ;
28279 int res1 = 0 ;
28280 double val2 ;
28281 int ecode2 = 0 ;
28282 double val3 ;
28283 int ecode3 = 0 ;
28284 PyObject * obj0 = 0 ;
28285 PyObject * obj1 = 0 ;
28286 PyObject * obj2 = 0 ;
28287 char * kwnames[] = {
28288 (char *) "self",(char *) "dx",(char *) "dy", NULL
28289 };
28290
28291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28293 if (!SWIG_IsOK(res1)) {
28294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28295 }
28296 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28297 ecode2 = SWIG_AsVal_double(obj1, &val2);
28298 if (!SWIG_IsOK(ecode2)) {
28299 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
28300 }
28301 arg2 = static_cast< wxDouble >(val2);
28302 ecode3 = SWIG_AsVal_double(obj2, &val3);
28303 if (!SWIG_IsOK(ecode3)) {
28304 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
28305 }
28306 arg3 = static_cast< wxDouble >(val3);
28307 {
72ef6efb 28308 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
28309 if (PyErr_Occurred()) SWIG_fail;
28310 }
28311 resultobj = SWIG_Py_Void();
28312 return resultobj;
28313fail:
28314 return NULL;
28315}
28316
28317
28318SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28319 PyObject *resultobj = 0;
28320 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28321 wxDouble arg2 ;
28322 wxDouble arg3 ;
28323 void *argp1 = 0 ;
28324 int res1 = 0 ;
28325 double val2 ;
28326 int ecode2 = 0 ;
28327 double val3 ;
28328 int ecode3 = 0 ;
28329 PyObject * obj0 = 0 ;
28330 PyObject * obj1 = 0 ;
28331 PyObject * obj2 = 0 ;
28332 char * kwnames[] = {
28333 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
28334 };
28335
28336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28338 if (!SWIG_IsOK(res1)) {
28339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28340 }
28341 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28342 ecode2 = SWIG_AsVal_double(obj1, &val2);
28343 if (!SWIG_IsOK(ecode2)) {
28344 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
28345 }
28346 arg2 = static_cast< wxDouble >(val2);
28347 ecode3 = SWIG_AsVal_double(obj2, &val3);
28348 if (!SWIG_IsOK(ecode3)) {
28349 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
28350 }
28351 arg3 = static_cast< wxDouble >(val3);
28352 {
72ef6efb 28353 (arg1)->Scale(arg2,arg3);
72ef6efb
RD
28354 if (PyErr_Occurred()) SWIG_fail;
28355 }
28356 resultobj = SWIG_Py_Void();
28357 return resultobj;
28358fail:
28359 return NULL;
28360}
28361
28362
28363SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28364 PyObject *resultobj = 0;
28365 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28366 wxDouble arg2 ;
28367 void *argp1 = 0 ;
28368 int res1 = 0 ;
28369 double val2 ;
28370 int ecode2 = 0 ;
28371 PyObject * obj0 = 0 ;
28372 PyObject * obj1 = 0 ;
28373 char * kwnames[] = {
28374 (char *) "self",(char *) "angle", NULL
28375 };
28376
28377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
28378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28379 if (!SWIG_IsOK(res1)) {
28380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28381 }
28382 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28383 ecode2 = SWIG_AsVal_double(obj1, &val2);
28384 if (!SWIG_IsOK(ecode2)) {
28385 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
28386 }
28387 arg2 = static_cast< wxDouble >(val2);
28388 {
72ef6efb 28389 (arg1)->Rotate(arg2);
72ef6efb
RD
28390 if (PyErr_Occurred()) SWIG_fail;
28391 }
28392 resultobj = SWIG_Py_Void();
28393 return resultobj;
28394fail:
28395 return NULL;
28396}
28397
28398
5c8c7dd3
RD
28399SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28400 PyObject *resultobj = 0;
28401 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28402 wxGraphicsMatrix *arg2 = 0 ;
28403 void *argp1 = 0 ;
28404 int res1 = 0 ;
28405 void *argp2 = 0 ;
28406 int res2 = 0 ;
28407 PyObject * obj0 = 0 ;
28408 PyObject * obj1 = 0 ;
28409 char * kwnames[] = {
28410 (char *) "self",(char *) "matrix", NULL
28411 };
28412
28413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28415 if (!SWIG_IsOK(res1)) {
28416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28417 }
28418 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28419 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28420 if (!SWIG_IsOK(res2)) {
28421 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28422 }
28423 if (!argp2) {
28424 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28425 }
28426 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28427 {
28428 (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2);
28429 if (PyErr_Occurred()) SWIG_fail;
28430 }
28431 resultobj = SWIG_Py_Void();
28432 return resultobj;
28433fail:
28434 return NULL;
28435}
28436
28437
28438SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28439 PyObject *resultobj = 0;
28440 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28441 wxGraphicsMatrix *arg2 = 0 ;
28442 void *argp1 = 0 ;
28443 int res1 = 0 ;
28444 void *argp2 = 0 ;
28445 int res2 = 0 ;
28446 PyObject * obj0 = 0 ;
28447 PyObject * obj1 = 0 ;
28448 char * kwnames[] = {
28449 (char *) "self",(char *) "matrix", NULL
28450 };
28451
28452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28454 if (!SWIG_IsOK(res1)) {
28455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28456 }
28457 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28458 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28459 if (!SWIG_IsOK(res2)) {
28460 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28461 }
28462 if (!argp2) {
28463 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28464 }
28465 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28466 {
28467 (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2);
28468 if (PyErr_Occurred()) SWIG_fail;
28469 }
28470 resultobj = SWIG_Py_Void();
28471 return resultobj;
28472fail:
28473 return NULL;
28474}
28475
28476
28477SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28478 PyObject *resultobj = 0;
28479 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28480 wxGraphicsMatrix result;
28481 void *argp1 = 0 ;
28482 int res1 = 0 ;
28483 PyObject *swig_obj[1] ;
28484
28485 if (!args) SWIG_fail;
28486 swig_obj[0] = args;
28487 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28488 if (!SWIG_IsOK(res1)) {
28489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
28490 }
28491 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28492 {
28493 result = ((wxGraphicsContext const *)arg1)->GetTransform();
28494 if (PyErr_Occurred()) SWIG_fail;
28495 }
28496 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
28497 return resultobj;
28498fail:
28499 return NULL;
28500}
28501
28502
70d7cb34
RD
28503SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28504 PyObject *resultobj = 0;
28505 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28506 wxGraphicsPen *arg2 = 0 ;
28507 void *argp1 = 0 ;
28508 int res1 = 0 ;
28509 void *argp2 = 0 ;
28510 int res2 = 0 ;
28511
28512 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28514 if (!SWIG_IsOK(res1)) {
28515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28516 }
28517 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28518 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0);
28519 if (!SWIG_IsOK(res2)) {
28520 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28521 }
28522 if (!argp2) {
28523 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28524 }
28525 arg2 = reinterpret_cast< wxGraphicsPen * >(argp2);
28526 {
28527 (arg1)->SetPen((wxGraphicsPen const &)*arg2);
28528 if (PyErr_Occurred()) SWIG_fail;
28529 }
28530 resultobj = SWIG_Py_Void();
28531 return resultobj;
28532fail:
28533 return NULL;
28534}
28535
28536
28537SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28538 PyObject *resultobj = 0;
28539 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28540 wxPen *arg2 = 0 ;
28541 void *argp1 = 0 ;
28542 int res1 = 0 ;
28543 void *argp2 = 0 ;
28544 int res2 = 0 ;
72ef6efb 28545
70d7cb34
RD
28546 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28548 if (!SWIG_IsOK(res1)) {
28549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28550 }
28551 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28552 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0);
72ef6efb
RD
28553 if (!SWIG_IsOK(res2)) {
28554 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28555 }
28556 if (!argp2) {
28557 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28558 }
28559 arg2 = reinterpret_cast< wxPen * >(argp2);
28560 {
72ef6efb 28561 (arg1)->SetPen((wxPen const &)*arg2);
72ef6efb
RD
28562 if (PyErr_Occurred()) SWIG_fail;
28563 }
28564 resultobj = SWIG_Py_Void();
28565 return resultobj;
28566fail:
28567 return NULL;
28568}
28569
28570
70d7cb34
RD
28571SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) {
28572 int argc;
28573 PyObject *argv[3];
28574
28575 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail;
28576 --argc;
28577 if (argc == 2) {
28578 int _v = 0;
28579 {
28580 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0);
28581 _v = SWIG_CheckState(res);
28582 }
28583 if (!_v) goto check_1;
28584 return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv);
28585 }
28586check_1:
28587
28588 if (argc == 2) {
28589 return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv);
28590 }
28591
28592fail:
28593 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'");
28594 return NULL;
28595}
28596
28597
28598SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28599 PyObject *resultobj = 0;
28600 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28601 wxGraphicsBrush *arg2 = 0 ;
28602 void *argp1 = 0 ;
28603 int res1 = 0 ;
28604 void *argp2 = 0 ;
28605 int res2 = 0 ;
28606
28607 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28608 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28609 if (!SWIG_IsOK(res1)) {
28610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28611 }
28612 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28613 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
28614 if (!SWIG_IsOK(res2)) {
28615 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28616 }
28617 if (!argp2) {
28618 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28619 }
28620 arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2);
28621 {
28622 (arg1)->SetBrush((wxGraphicsBrush const &)*arg2);
28623 if (PyErr_Occurred()) SWIG_fail;
28624 }
28625 resultobj = SWIG_Py_Void();
28626 return resultobj;
28627fail:
28628 return NULL;
28629}
28630
28631
28632SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28633 PyObject *resultobj = 0;
28634 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28635 wxBrush *arg2 = 0 ;
28636 void *argp1 = 0 ;
28637 int res1 = 0 ;
28638 void *argp2 = 0 ;
28639 int res2 = 0 ;
72ef6efb 28640
70d7cb34
RD
28641 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28643 if (!SWIG_IsOK(res1)) {
28644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28645 }
28646 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28647 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
72ef6efb
RD
28648 if (!SWIG_IsOK(res2)) {
28649 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28650 }
28651 if (!argp2) {
28652 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28653 }
28654 arg2 = reinterpret_cast< wxBrush * >(argp2);
28655 {
72ef6efb 28656 (arg1)->SetBrush((wxBrush const &)*arg2);
72ef6efb
RD
28657 if (PyErr_Occurred()) SWIG_fail;
28658 }
28659 resultobj = SWIG_Py_Void();
28660 return resultobj;
28661fail:
28662 return NULL;
28663}
28664
28665
70d7cb34
RD
28666SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) {
28667 int argc;
28668 PyObject *argv[3];
72ef6efb 28669
70d7cb34
RD
28670 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail;
28671 --argc;
28672 if (argc == 2) {
28673 int _v = 0;
28674 {
28675 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0);
28676 _v = SWIG_CheckState(res);
28677 }
28678 if (!_v) goto check_1;
28679 return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv);
72ef6efb 28680 }
70d7cb34
RD
28681check_1:
28682
28683 if (argc == 2) {
28684 return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv);
72ef6efb 28685 }
70d7cb34 28686
72ef6efb 28687fail:
70d7cb34 28688 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'");
72ef6efb
RD
28689 return NULL;
28690}
28691
28692
70d7cb34 28693SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28694 PyObject *resultobj = 0;
28695 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 28696 wxGraphicsFont *arg2 = 0 ;
72ef6efb
RD
28697 void *argp1 = 0 ;
28698 int res1 = 0 ;
70d7cb34
RD
28699 void *argp2 = 0 ;
28700 int res2 = 0 ;
72ef6efb 28701
70d7cb34
RD
28702 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28704 if (!SWIG_IsOK(res1)) {
70d7cb34 28705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28706 }
28707 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
28708 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0);
28709 if (!SWIG_IsOK(res2)) {
28710 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 28711 }
70d7cb34
RD
28712 if (!argp2) {
28713 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 28714 }
70d7cb34 28715 arg2 = reinterpret_cast< wxGraphicsFont * >(argp2);
72ef6efb 28716 {
70d7cb34 28717 (arg1)->SetFont((wxGraphicsFont const &)*arg2);
72ef6efb
RD
28718 if (PyErr_Occurred()) SWIG_fail;
28719 }
28720 resultobj = SWIG_Py_Void();
28721 return resultobj;
28722fail:
28723 return NULL;
28724}
28725
28726
70d7cb34 28727SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28728 PyObject *resultobj = 0;
28729 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28730 wxFont *arg2 = 0 ;
70d7cb34
RD
28731 wxColour const &arg3_defvalue = *wxBLACK ;
28732 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
72ef6efb
RD
28733 void *argp1 = 0 ;
28734 int res1 = 0 ;
28735 void *argp2 = 0 ;
28736 int res2 = 0 ;
70d7cb34 28737 wxColour temp3 ;
72ef6efb 28738
70d7cb34
RD
28739 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
28740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28741 if (!SWIG_IsOK(res1)) {
28742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28743 }
28744 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28745 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0);
72ef6efb
RD
28746 if (!SWIG_IsOK(res2)) {
28747 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28748 }
28749 if (!argp2) {
28750 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28751 }
28752 arg2 = reinterpret_cast< wxFont * >(argp2);
70d7cb34
RD
28753 if (swig_obj[2]) {
28754 {
28755 arg3 = &temp3;
28756 if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail;
28757 }
28758 }
72ef6efb 28759 {
70d7cb34 28760 (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
28761 if (PyErr_Occurred()) SWIG_fail;
28762 }
28763 resultobj = SWIG_Py_Void();
28764 return resultobj;
28765fail:
28766 return NULL;
28767}
28768
28769
70d7cb34
RD
28770SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) {
28771 int argc;
28772 PyObject *argv[4];
72ef6efb 28773
70d7cb34
RD
28774 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail;
28775 --argc;
28776 if (argc == 2) {
28777 int _v = 0;
28778 {
28779 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0);
28780 _v = SWIG_CheckState(res);
28781 }
28782 if (!_v) goto check_1;
28783 return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv);
72ef6efb 28784 }
70d7cb34
RD
28785check_1:
28786
28787 if ((argc >= 2) && (argc <= 3)) {
28788 return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv);
72ef6efb 28789 }
70d7cb34 28790
72ef6efb 28791fail:
70d7cb34 28792 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'");
72ef6efb
RD
28793 return NULL;
28794}
28795
28796
28797SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28798 PyObject *resultobj = 0;
28799 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 28800 wxGraphicsPath *arg2 = 0 ;
72ef6efb
RD
28801 void *argp1 = 0 ;
28802 int res1 = 0 ;
28803 void *argp2 = 0 ;
28804 int res2 = 0 ;
28805 PyObject * obj0 = 0 ;
28806 PyObject * obj1 = 0 ;
28807 char * kwnames[] = {
28808 (char *) "self",(char *) "path", NULL
28809 };
28810
28811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
28812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28813 if (!SWIG_IsOK(res1)) {
28814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28815 }
28816 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 28817 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 28818 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
28819 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28820 }
28821 if (!argp2) {
28822 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
28823 }
28824 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28825 {
5c8c7dd3 28826 (arg1)->StrokePath((wxGraphicsPath const &)*arg2);
72ef6efb
RD
28827 if (PyErr_Occurred()) SWIG_fail;
28828 }
28829 resultobj = SWIG_Py_Void();
28830 return resultobj;
28831fail:
28832 return NULL;
28833}
28834
28835
28836SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28837 PyObject *resultobj = 0;
28838 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 28839 wxGraphicsPath *arg2 = 0 ;
8f514ab4 28840 int arg3 = (int) wxODDEVEN_RULE ;
72ef6efb
RD
28841 void *argp1 = 0 ;
28842 int res1 = 0 ;
28843 void *argp2 = 0 ;
28844 int res2 = 0 ;
28845 int val3 ;
28846 int ecode3 = 0 ;
28847 PyObject * obj0 = 0 ;
28848 PyObject * obj1 = 0 ;
28849 PyObject * obj2 = 0 ;
28850 char * kwnames[] = {
28851 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
28852 };
28853
28854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28856 if (!SWIG_IsOK(res1)) {
28857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28858 }
28859 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 28860 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 28861 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
28862 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28863 }
28864 if (!argp2) {
28865 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
28866 }
28867 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28868 if (obj2) {
28869 ecode3 = SWIG_AsVal_int(obj2, &val3);
28870 if (!SWIG_IsOK(ecode3)) {
28871 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
28872 }
28873 arg3 = static_cast< int >(val3);
28874 }
28875 {
5c8c7dd3 28876 (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3);
72ef6efb
RD
28877 if (PyErr_Occurred()) SWIG_fail;
28878 }
28879 resultobj = SWIG_Py_Void();
28880 return resultobj;
28881fail:
28882 return NULL;
28883}
28884
28885
28886SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28887 PyObject *resultobj = 0;
28888 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 28889 wxGraphicsPath *arg2 = 0 ;
8f514ab4 28890 int arg3 = (int) wxODDEVEN_RULE ;
72ef6efb
RD
28891 void *argp1 = 0 ;
28892 int res1 = 0 ;
28893 void *argp2 = 0 ;
28894 int res2 = 0 ;
28895 int val3 ;
28896 int ecode3 = 0 ;
28897 PyObject * obj0 = 0 ;
28898 PyObject * obj1 = 0 ;
28899 PyObject * obj2 = 0 ;
28900 char * kwnames[] = {
28901 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
28902 };
28903
28904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28906 if (!SWIG_IsOK(res1)) {
28907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28908 }
28909 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 28910 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 28911 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
28912 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28913 }
28914 if (!argp2) {
28915 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
28916 }
28917 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28918 if (obj2) {
28919 ecode3 = SWIG_AsVal_int(obj2, &val3);
28920 if (!SWIG_IsOK(ecode3)) {
28921 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
28922 }
28923 arg3 = static_cast< int >(val3);
28924 }
28925 {
5c8c7dd3 28926 (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3);
72ef6efb
RD
28927 if (PyErr_Occurred()) SWIG_fail;
28928 }
28929 resultobj = SWIG_Py_Void();
28930 return resultobj;
28931fail:
28932 return NULL;
28933}
28934
28935
b39fe951 28936SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28937 PyObject *resultobj = 0;
28938 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28939 wxString *arg2 = 0 ;
28940 wxDouble arg3 ;
28941 wxDouble arg4 ;
28942 void *argp1 = 0 ;
28943 int res1 = 0 ;
28944 bool temp2 = false ;
28945 double val3 ;
28946 int ecode3 = 0 ;
28947 double val4 ;
28948 int ecode4 = 0 ;
b39fe951
RD
28949 PyObject * obj0 = 0 ;
28950 PyObject * obj1 = 0 ;
28951 PyObject * obj2 = 0 ;
28952 PyObject * obj3 = 0 ;
28953 char * kwnames[] = {
28954 (char *) "self",(char *) "str",(char *) "x",(char *) "y", NULL
28955 };
72ef6efb 28956
b39fe951
RD
28957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28959 if (!SWIG_IsOK(res1)) {
28960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28961 }
28962 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28963 {
b39fe951 28964 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
28965 if (arg2 == NULL) SWIG_fail;
28966 temp2 = true;
28967 }
b39fe951 28968 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb
RD
28969 if (!SWIG_IsOK(ecode3)) {
28970 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
28971 }
28972 arg3 = static_cast< wxDouble >(val3);
b39fe951 28973 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb
RD
28974 if (!SWIG_IsOK(ecode4)) {
28975 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
28976 }
28977 arg4 = static_cast< wxDouble >(val4);
28978 {
72ef6efb 28979 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
72ef6efb
RD
28980 if (PyErr_Occurred()) SWIG_fail;
28981 }
28982 resultobj = SWIG_Py_Void();
28983 {
28984 if (temp2)
28985 delete arg2;
28986 }
28987 return resultobj;
28988fail:
28989 {
28990 if (temp2)
28991 delete arg2;
28992 }
28993 return NULL;
28994}
28995
28996
b39fe951 28997SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28998 PyObject *resultobj = 0;
28999 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29000 wxString *arg2 = 0 ;
29001 wxDouble arg3 ;
29002 wxDouble arg4 ;
29003 wxDouble arg5 ;
29004 void *argp1 = 0 ;
29005 int res1 = 0 ;
29006 bool temp2 = false ;
29007 double val3 ;
29008 int ecode3 = 0 ;
29009 double val4 ;
29010 int ecode4 = 0 ;
29011 double val5 ;
29012 int ecode5 = 0 ;
b39fe951
RD
29013 PyObject * obj0 = 0 ;
29014 PyObject * obj1 = 0 ;
29015 PyObject * obj2 = 0 ;
29016 PyObject * obj3 = 0 ;
29017 PyObject * obj4 = 0 ;
29018 char * kwnames[] = {
29019 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle", NULL
29020 };
72ef6efb 29021
b39fe951
RD
29022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 29024 if (!SWIG_IsOK(res1)) {
b39fe951 29025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29026 }
29027 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29028 {
b39fe951 29029 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
29030 if (arg2 == NULL) SWIG_fail;
29031 temp2 = true;
29032 }
b39fe951 29033 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 29034 if (!SWIG_IsOK(ecode3)) {
b39fe951 29035 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29036 }
29037 arg3 = static_cast< wxDouble >(val3);
b39fe951 29038 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb 29039 if (!SWIG_IsOK(ecode4)) {
b39fe951 29040 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29041 }
29042 arg4 = static_cast< wxDouble >(val4);
b39fe951 29043 ecode5 = SWIG_AsVal_double(obj4, &val5);
72ef6efb 29044 if (!SWIG_IsOK(ecode5)) {
b39fe951 29045 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29046 }
29047 arg5 = static_cast< wxDouble >(val5);
29048 {
72ef6efb 29049 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4,arg5);
72ef6efb
RD
29050 if (PyErr_Occurred()) SWIG_fail;
29051 }
29052 resultobj = SWIG_Py_Void();
29053 {
29054 if (temp2)
29055 delete arg2;
29056 }
29057 return resultobj;
29058fail:
29059 {
29060 if (temp2)
29061 delete arg2;
29062 }
29063 return NULL;
29064}
29065
29066
be68621e 29067SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29068 PyObject *resultobj = 0;
29069 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29070 wxString *arg2 = 0 ;
29071 wxDouble *arg3 = (wxDouble *) 0 ;
29072 wxDouble *arg4 = (wxDouble *) 0 ;
29073 wxDouble *arg5 = (wxDouble *) 0 ;
29074 wxDouble *arg6 = (wxDouble *) 0 ;
29075 void *argp1 = 0 ;
29076 int res1 = 0 ;
29077 bool temp2 = false ;
29078 wxDouble temp3 ;
29079 int res3 = SWIG_TMPOBJ ;
29080 wxDouble temp4 ;
29081 int res4 = SWIG_TMPOBJ ;
29082 wxDouble temp5 ;
29083 int res5 = SWIG_TMPOBJ ;
29084 wxDouble temp6 ;
29085 int res6 = SWIG_TMPOBJ ;
29086 PyObject * obj0 = 0 ;
29087 PyObject * obj1 = 0 ;
29088 char * kwnames[] = {
29089 (char *) "self",(char *) "text", NULL
29090 };
29091
29092 arg3 = &temp3;
29093 arg4 = &temp4;
29094 arg5 = &temp5;
29095 arg6 = &temp6;
be68621e 29096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
29097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29098 if (!SWIG_IsOK(res1)) {
be68621e 29099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
29100 }
29101 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29102 {
29103 arg2 = wxString_in_helper(obj1);
29104 if (arg2 == NULL) SWIG_fail;
29105 temp2 = true;
29106 }
29107 {
72ef6efb 29108 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29109 if (PyErr_Occurred()) SWIG_fail;
29110 }
29111 resultobj = SWIG_Py_Void();
29112 if (SWIG_IsTmpObj(res3)) {
29113 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
29114 } else {
29115 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29116 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
29117 }
29118 if (SWIG_IsTmpObj(res4)) {
29119 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
29120 } else {
29121 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29122 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
29123 }
29124 if (SWIG_IsTmpObj(res5)) {
29125 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
29126 } else {
29127 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29128 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
29129 }
29130 if (SWIG_IsTmpObj(res6)) {
29131 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
29132 } else {
29133 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29134 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
29135 }
29136 {
29137 if (temp2)
29138 delete arg2;
29139 }
29140 return resultobj;
29141fail:
29142 {
29143 if (temp2)
29144 delete arg2;
29145 }
29146 return NULL;
29147}
29148
29149
be68621e
RD
29150SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29151 PyObject *resultobj = 0;
29152 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29153 wxString *arg2 = 0 ;
29154 PyObject *result = 0 ;
29155 void *argp1 = 0 ;
29156 int res1 = 0 ;
29157 bool temp2 = false ;
29158 PyObject * obj0 = 0 ;
29159 PyObject * obj1 = 0 ;
29160 char * kwnames[] = {
29161 (char *) "self",(char *) "text", NULL
29162 };
29163
29164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
29165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29166 if (!SWIG_IsOK(res1)) {
29167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29168 }
29169 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29170 {
29171 arg2 = wxString_in_helper(obj1);
29172 if (arg2 == NULL) SWIG_fail;
29173 temp2 = true;
29174 }
29175 {
29176 result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2);
29177 if (PyErr_Occurred()) SWIG_fail;
29178 }
29179 resultobj = result;
29180 {
29181 if (temp2)
29182 delete arg2;
29183 }
29184 return resultobj;
29185fail:
29186 {
29187 if (temp2)
29188 delete arg2;
29189 }
29190 return NULL;
29191}
29192
29193
72ef6efb
RD
29194SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29195 PyObject *resultobj = 0;
29196 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29197 wxString *arg2 = 0 ;
b39fe951 29198 wxArrayDouble result;
72ef6efb
RD
29199 void *argp1 = 0 ;
29200 int res1 = 0 ;
29201 bool temp2 = false ;
72ef6efb
RD
29202 PyObject * obj0 = 0 ;
29203 PyObject * obj1 = 0 ;
72ef6efb 29204 char * kwnames[] = {
b39fe951 29205 (char *) "self",(char *) "text", NULL
72ef6efb
RD
29206 };
29207
b39fe951 29208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
29209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29210 if (!SWIG_IsOK(res1)) {
b39fe951 29211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29212 }
29213 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29214 {
29215 arg2 = wxString_in_helper(obj1);
29216 if (arg2 == NULL) SWIG_fail;
29217 temp2 = true;
29218 }
72ef6efb 29219 {
b39fe951 29220 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
72ef6efb
RD
29221 if (PyErr_Occurred()) SWIG_fail;
29222 }
b39fe951
RD
29223 {
29224 resultobj = wxArrayDouble2PyList_helper(result);
29225 }
72ef6efb
RD
29226 {
29227 if (temp2)
29228 delete arg2;
29229 }
29230 return resultobj;
29231fail:
29232 {
29233 if (temp2)
29234 delete arg2;
29235 }
29236 return NULL;
29237}
29238
29239
29240SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29241 PyObject *resultobj = 0;
29242 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29243 wxBitmap *arg2 = 0 ;
29244 wxDouble arg3 ;
29245 wxDouble arg4 ;
29246 wxDouble arg5 ;
29247 wxDouble arg6 ;
29248 void *argp1 = 0 ;
29249 int res1 = 0 ;
29250 void *argp2 = 0 ;
29251 int res2 = 0 ;
29252 double val3 ;
29253 int ecode3 = 0 ;
29254 double val4 ;
29255 int ecode4 = 0 ;
29256 double val5 ;
29257 int ecode5 = 0 ;
29258 double val6 ;
29259 int ecode6 = 0 ;
29260 PyObject * obj0 = 0 ;
29261 PyObject * obj1 = 0 ;
29262 PyObject * obj2 = 0 ;
29263 PyObject * obj3 = 0 ;
29264 PyObject * obj4 = 0 ;
29265 PyObject * obj5 = 0 ;
29266 char * kwnames[] = {
29267 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29268 };
29269
29270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29272 if (!SWIG_IsOK(res1)) {
29273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29274 }
29275 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29276 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
29277 if (!SWIG_IsOK(res2)) {
29278 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29279 }
29280 if (!argp2) {
29281 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29282 }
29283 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29284 ecode3 = SWIG_AsVal_double(obj2, &val3);
29285 if (!SWIG_IsOK(ecode3)) {
29286 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
29287 }
29288 arg3 = static_cast< wxDouble >(val3);
29289 ecode4 = SWIG_AsVal_double(obj3, &val4);
29290 if (!SWIG_IsOK(ecode4)) {
29291 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
29292 }
29293 arg4 = static_cast< wxDouble >(val4);
29294 ecode5 = SWIG_AsVal_double(obj4, &val5);
29295 if (!SWIG_IsOK(ecode5)) {
29296 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
29297 }
29298 arg5 = static_cast< wxDouble >(val5);
29299 ecode6 = SWIG_AsVal_double(obj5, &val6);
29300 if (!SWIG_IsOK(ecode6)) {
29301 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
29302 }
29303 arg6 = static_cast< wxDouble >(val6);
29304 {
72ef6efb 29305 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29306 if (PyErr_Occurred()) SWIG_fail;
29307 }
29308 resultobj = SWIG_Py_Void();
29309 return resultobj;
29310fail:
29311 return NULL;
29312}
29313
29314
29315SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29316 PyObject *resultobj = 0;
29317 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29318 wxIcon *arg2 = 0 ;
29319 wxDouble arg3 ;
29320 wxDouble arg4 ;
29321 wxDouble arg5 ;
29322 wxDouble arg6 ;
29323 void *argp1 = 0 ;
29324 int res1 = 0 ;
29325 void *argp2 = 0 ;
29326 int res2 = 0 ;
29327 double val3 ;
29328 int ecode3 = 0 ;
29329 double val4 ;
29330 int ecode4 = 0 ;
29331 double val5 ;
29332 int ecode5 = 0 ;
70d7cb34
RD
29333 double val6 ;
29334 int ecode6 = 0 ;
29335 PyObject * obj0 = 0 ;
29336 PyObject * obj1 = 0 ;
29337 PyObject * obj2 = 0 ;
29338 PyObject * obj3 = 0 ;
29339 PyObject * obj4 = 0 ;
29340 PyObject * obj5 = 0 ;
29341 char * kwnames[] = {
29342 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29343 };
29344
29345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29347 if (!SWIG_IsOK(res1)) {
29348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29349 }
29350 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29351 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
29352 if (!SWIG_IsOK(res2)) {
29353 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29354 }
29355 if (!argp2) {
29356 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29357 }
29358 arg2 = reinterpret_cast< wxIcon * >(argp2);
29359 ecode3 = SWIG_AsVal_double(obj2, &val3);
29360 if (!SWIG_IsOK(ecode3)) {
29361 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
29362 }
29363 arg3 = static_cast< wxDouble >(val3);
29364 ecode4 = SWIG_AsVal_double(obj3, &val4);
29365 if (!SWIG_IsOK(ecode4)) {
29366 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
29367 }
29368 arg4 = static_cast< wxDouble >(val4);
29369 ecode5 = SWIG_AsVal_double(obj4, &val5);
29370 if (!SWIG_IsOK(ecode5)) {
29371 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
29372 }
29373 arg5 = static_cast< wxDouble >(val5);
29374 ecode6 = SWIG_AsVal_double(obj5, &val6);
29375 if (!SWIG_IsOK(ecode6)) {
29376 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
29377 }
29378 arg6 = static_cast< wxDouble >(val6);
29379 {
29380 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
29381 if (PyErr_Occurred()) SWIG_fail;
29382 }
29383 resultobj = SWIG_Py_Void();
29384 return resultobj;
29385fail:
29386 return NULL;
29387}
29388
29389
29390SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29391 PyObject *resultobj = 0;
29392 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29393 wxDouble arg2 ;
29394 wxDouble arg3 ;
29395 wxDouble arg4 ;
29396 wxDouble arg5 ;
29397 void *argp1 = 0 ;
29398 int res1 = 0 ;
29399 double val2 ;
29400 int ecode2 = 0 ;
29401 double val3 ;
29402 int ecode3 = 0 ;
29403 double val4 ;
29404 int ecode4 = 0 ;
29405 double val5 ;
29406 int ecode5 = 0 ;
29407 PyObject * obj0 = 0 ;
29408 PyObject * obj1 = 0 ;
29409 PyObject * obj2 = 0 ;
29410 PyObject * obj3 = 0 ;
29411 PyObject * obj4 = 0 ;
29412 char * kwnames[] = {
29413 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
29414 };
29415
29416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29418 if (!SWIG_IsOK(res1)) {
29419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29420 }
29421 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29422 ecode2 = SWIG_AsVal_double(obj1, &val2);
29423 if (!SWIG_IsOK(ecode2)) {
29424 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
29425 }
29426 arg2 = static_cast< wxDouble >(val2);
29427 ecode3 = SWIG_AsVal_double(obj2, &val3);
29428 if (!SWIG_IsOK(ecode3)) {
29429 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
29430 }
29431 arg3 = static_cast< wxDouble >(val3);
29432 ecode4 = SWIG_AsVal_double(obj3, &val4);
29433 if (!SWIG_IsOK(ecode4)) {
29434 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
29435 }
29436 arg4 = static_cast< wxDouble >(val4);
29437 ecode5 = SWIG_AsVal_double(obj4, &val5);
29438 if (!SWIG_IsOK(ecode5)) {
29439 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
29440 }
29441 arg5 = static_cast< wxDouble >(val5);
29442 {
29443 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
29444 if (PyErr_Occurred()) SWIG_fail;
29445 }
29446 resultobj = SWIG_Py_Void();
29447 return resultobj;
29448fail:
29449 return NULL;
29450}
29451
29452
29453SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29454 PyObject *resultobj = 0;
29455 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29456 size_t arg2 ;
29457 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
29458 void *argp1 = 0 ;
29459 int res1 = 0 ;
29460 PyObject * obj0 = 0 ;
29461 PyObject * obj1 = 0 ;
29462 char * kwnames[] = {
29463 (char *) "self",(char *) "points", NULL
29464 };
29465
29466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
29467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29468 if (!SWIG_IsOK(res1)) {
29469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29470 }
29471 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29472 {
29473 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29474 if (arg3 == NULL) SWIG_fail;
29475 }
29476 {
29477 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
29478 if (PyErr_Occurred()) SWIG_fail;
29479 }
29480 resultobj = SWIG_Py_Void();
29481 {
29482 if (arg3) delete [] arg3;
29483 }
29484 return resultobj;
29485fail:
29486 {
29487 if (arg3) delete [] arg3;
29488 }
29489 return NULL;
29490}
29491
29492
29493SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29494 PyObject *resultobj = 0;
29495 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29496 PyObject *arg2 = (PyObject *) 0 ;
29497 PyObject *arg3 = (PyObject *) 0 ;
29498 void *argp1 = 0 ;
29499 int res1 = 0 ;
29500 PyObject * obj0 = 0 ;
29501 PyObject * obj1 = 0 ;
29502 PyObject * obj2 = 0 ;
29503 char * kwnames[] = {
29504 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
29505 };
29506
29507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29509 if (!SWIG_IsOK(res1)) {
29510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29511 }
29512 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29513 arg2 = obj1;
29514 arg3 = obj2;
29515 {
29516 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
29517 if (PyErr_Occurred()) SWIG_fail;
29518 }
29519 resultobj = SWIG_Py_Void();
29520 return resultobj;
29521fail:
29522 return NULL;
29523}
29524
29525
29526SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29527 PyObject *resultobj = 0;
29528 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29529 size_t arg2 ;
29530 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
8f514ab4 29531 int arg4 = (int) wxODDEVEN_RULE ;
70d7cb34
RD
29532 void *argp1 = 0 ;
29533 int res1 = 0 ;
29534 int val4 ;
29535 int ecode4 = 0 ;
29536 PyObject * obj0 = 0 ;
29537 PyObject * obj1 = 0 ;
29538 PyObject * obj2 = 0 ;
29539 char * kwnames[] = {
29540 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
29541 };
29542
29543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29545 if (!SWIG_IsOK(res1)) {
29546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29547 }
29548 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29549 {
29550 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29551 if (arg3 == NULL) SWIG_fail;
29552 }
29553 if (obj2) {
29554 ecode4 = SWIG_AsVal_int(obj2, &val4);
29555 if (!SWIG_IsOK(ecode4)) {
29556 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
29557 }
29558 arg4 = static_cast< int >(val4);
29559 }
29560 {
29561 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
29562 if (PyErr_Occurred()) SWIG_fail;
29563 }
29564 resultobj = SWIG_Py_Void();
29565 {
29566 if (arg3) delete [] arg3;
29567 }
29568 return resultobj;
29569fail:
29570 {
29571 if (arg3) delete [] arg3;
29572 }
29573 return NULL;
29574}
29575
29576
29577SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29578 PyObject *resultobj = 0;
29579 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29580 wxDouble arg2 ;
29581 wxDouble arg3 ;
29582 wxDouble arg4 ;
29583 wxDouble arg5 ;
29584 void *argp1 = 0 ;
29585 int res1 = 0 ;
29586 double val2 ;
29587 int ecode2 = 0 ;
29588 double val3 ;
29589 int ecode3 = 0 ;
29590 double val4 ;
29591 int ecode4 = 0 ;
29592 double val5 ;
29593 int ecode5 = 0 ;
29594 PyObject * obj0 = 0 ;
29595 PyObject * obj1 = 0 ;
29596 PyObject * obj2 = 0 ;
29597 PyObject * obj3 = 0 ;
29598 PyObject * obj4 = 0 ;
29599 char * kwnames[] = {
29600 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29601 };
29602
29603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29605 if (!SWIG_IsOK(res1)) {
29606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29607 }
29608 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29609 ecode2 = SWIG_AsVal_double(obj1, &val2);
29610 if (!SWIG_IsOK(ecode2)) {
29611 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
29612 }
29613 arg2 = static_cast< wxDouble >(val2);
29614 ecode3 = SWIG_AsVal_double(obj2, &val3);
29615 if (!SWIG_IsOK(ecode3)) {
29616 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
29617 }
29618 arg3 = static_cast< wxDouble >(val3);
29619 ecode4 = SWIG_AsVal_double(obj3, &val4);
29620 if (!SWIG_IsOK(ecode4)) {
29621 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
29622 }
29623 arg4 = static_cast< wxDouble >(val4);
29624 ecode5 = SWIG_AsVal_double(obj4, &val5);
29625 if (!SWIG_IsOK(ecode5)) {
29626 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
29627 }
29628 arg5 = static_cast< wxDouble >(val5);
29629 {
29630 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
29631 if (PyErr_Occurred()) SWIG_fail;
29632 }
29633 resultobj = SWIG_Py_Void();
29634 return resultobj;
29635fail:
29636 return NULL;
29637}
29638
29639
29640SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29641 PyObject *resultobj = 0;
29642 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29643 wxDouble arg2 ;
29644 wxDouble arg3 ;
29645 wxDouble arg4 ;
29646 wxDouble arg5 ;
29647 void *argp1 = 0 ;
29648 int res1 = 0 ;
29649 double val2 ;
29650 int ecode2 = 0 ;
29651 double val3 ;
29652 int ecode3 = 0 ;
29653 double val4 ;
29654 int ecode4 = 0 ;
29655 double val5 ;
29656 int ecode5 = 0 ;
72ef6efb
RD
29657 PyObject * obj0 = 0 ;
29658 PyObject * obj1 = 0 ;
29659 PyObject * obj2 = 0 ;
29660 PyObject * obj3 = 0 ;
29661 PyObject * obj4 = 0 ;
72ef6efb 29662 char * kwnames[] = {
70d7cb34 29663 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
72ef6efb
RD
29664 };
29665
70d7cb34 29666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
72ef6efb
RD
29667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29668 if (!SWIG_IsOK(res1)) {
70d7cb34 29669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29670 }
29671 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
29672 ecode2 = SWIG_AsVal_double(obj1, &val2);
29673 if (!SWIG_IsOK(ecode2)) {
29674 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
29675 }
29676 arg2 = static_cast< wxDouble >(val2);
72ef6efb
RD
29677 ecode3 = SWIG_AsVal_double(obj2, &val3);
29678 if (!SWIG_IsOK(ecode3)) {
70d7cb34 29679 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29680 }
29681 arg3 = static_cast< wxDouble >(val3);
29682 ecode4 = SWIG_AsVal_double(obj3, &val4);
29683 if (!SWIG_IsOK(ecode4)) {
70d7cb34 29684 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29685 }
29686 arg4 = static_cast< wxDouble >(val4);
29687 ecode5 = SWIG_AsVal_double(obj4, &val5);
29688 if (!SWIG_IsOK(ecode5)) {
70d7cb34 29689 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29690 }
29691 arg5 = static_cast< wxDouble >(val5);
72ef6efb 29692 {
70d7cb34 29693 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
72ef6efb
RD
29694 if (PyErr_Occurred()) SWIG_fail;
29695 }
29696 resultobj = SWIG_Py_Void();
29697 return resultobj;
29698fail:
29699 return NULL;
29700}
29701
29702
70d7cb34 29703SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29704 PyObject *resultobj = 0;
29705 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29706 wxDouble arg2 ;
29707 wxDouble arg3 ;
29708 wxDouble arg4 ;
29709 wxDouble arg5 ;
70d7cb34 29710 wxDouble arg6 ;
72ef6efb
RD
29711 void *argp1 = 0 ;
29712 int res1 = 0 ;
29713 double val2 ;
29714 int ecode2 = 0 ;
29715 double val3 ;
29716 int ecode3 = 0 ;
29717 double val4 ;
29718 int ecode4 = 0 ;
29719 double val5 ;
29720 int ecode5 = 0 ;
70d7cb34
RD
29721 double val6 ;
29722 int ecode6 = 0 ;
72ef6efb
RD
29723 PyObject * obj0 = 0 ;
29724 PyObject * obj1 = 0 ;
29725 PyObject * obj2 = 0 ;
29726 PyObject * obj3 = 0 ;
29727 PyObject * obj4 = 0 ;
70d7cb34 29728 PyObject * obj5 = 0 ;
72ef6efb 29729 char * kwnames[] = {
70d7cb34 29730 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
72ef6efb
RD
29731 };
29732
70d7cb34 29733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
72ef6efb
RD
29734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29735 if (!SWIG_IsOK(res1)) {
70d7cb34 29736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29737 }
29738 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29739 ecode2 = SWIG_AsVal_double(obj1, &val2);
29740 if (!SWIG_IsOK(ecode2)) {
70d7cb34 29741 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
29742 }
29743 arg2 = static_cast< wxDouble >(val2);
29744 ecode3 = SWIG_AsVal_double(obj2, &val3);
29745 if (!SWIG_IsOK(ecode3)) {
70d7cb34 29746 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29747 }
29748 arg3 = static_cast< wxDouble >(val3);
29749 ecode4 = SWIG_AsVal_double(obj3, &val4);
29750 if (!SWIG_IsOK(ecode4)) {
70d7cb34 29751 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29752 }
29753 arg4 = static_cast< wxDouble >(val4);
29754 ecode5 = SWIG_AsVal_double(obj4, &val5);
29755 if (!SWIG_IsOK(ecode5)) {
70d7cb34 29756 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29757 }
29758 arg5 = static_cast< wxDouble >(val5);
70d7cb34
RD
29759 ecode6 = SWIG_AsVal_double(obj5, &val6);
29760 if (!SWIG_IsOK(ecode6)) {
29761 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
29762 }
29763 arg6 = static_cast< wxDouble >(val6);
72ef6efb 29764 {
70d7cb34 29765 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29766 if (PyErr_Occurred()) SWIG_fail;
29767 }
29768 resultobj = SWIG_Py_Void();
29769 return resultobj;
29770fail:
29771 return NULL;
29772}
29773
29774
70d7cb34 29775SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
29776 PyObject *resultobj = 0;
29777 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 29778 bool result;
72ef6efb
RD
29779 void *argp1 = 0 ;
29780 int res1 = 0 ;
70d7cb34 29781 PyObject *swig_obj[1] ;
72ef6efb 29782
70d7cb34
RD
29783 if (!args) SWIG_fail;
29784 swig_obj[0] = args;
29785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 29786 if (!SWIG_IsOK(res1)) {
70d7cb34 29787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
29788 }
29789 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
b39fe951 29790 {
70d7cb34
RD
29791 result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset();
29792 if (PyErr_Occurred()) SWIG_fail;
72ef6efb 29793 }
72ef6efb 29794 {
70d7cb34
RD
29795 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29796 }
29797 return resultobj;
29798fail:
29799 return NULL;
29800}
29801
29802
29803SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29804 PyObject *obj;
29805 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29806 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
29807 return SWIG_Py_Void();
29808}
29809
29810SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29811 PyObject *resultobj = 0;
29812 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29813 void *argp1 = 0 ;
29814 int res1 = 0 ;
29815 PyObject *swig_obj[1] ;
29816
29817 if (!args) SWIG_fail;
29818 swig_obj[0] = args;
29819 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 );
29820 if (!SWIG_IsOK(res1)) {
29821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29822 }
29823 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29824 {
29825 delete arg1;
29826
72ef6efb
RD
29827 if (PyErr_Occurred()) SWIG_fail;
29828 }
29829 resultobj = SWIG_Py_Void();
70d7cb34
RD
29830 return resultobj;
29831fail:
29832 return NULL;
29833}
29834
29835
29836SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29837 PyObject *resultobj = 0;
29838 wxGraphicsRenderer *result = 0 ;
29839
29840 if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail;
b39fe951 29841 {
70d7cb34
RD
29842 result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer();
29843 if (PyErr_Occurred()) SWIG_fail;
29844 }
29845 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29846 return resultobj;
29847fail:
29848 return NULL;
29849}
29850
29851
29852SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29853 PyObject *resultobj = 0;
29854 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29855 wxWindowDC *arg2 = 0 ;
29856 wxGraphicsContext *result = 0 ;
29857 void *argp1 = 0 ;
29858 int res1 = 0 ;
29859 void *argp2 = 0 ;
29860 int res2 = 0 ;
29861
29862 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29864 if (!SWIG_IsOK(res1)) {
29865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29866 }
29867 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29868 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0);
29869 if (!SWIG_IsOK(res2)) {
29870 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
29871 }
29872 if (!argp2) {
29873 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
29874 }
29875 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
29876 {
29877 result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2);
29878 if (PyErr_Occurred()) SWIG_fail;
b39fe951 29879 }
70d7cb34 29880 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
29881 return resultobj;
29882fail:
70d7cb34
RD
29883 return NULL;
29884}
29885
29886
29887SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29888 PyObject *resultobj = 0;
29889 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29890 wxWindow *arg2 = (wxWindow *) 0 ;
29891 wxGraphicsContext *result = 0 ;
29892 void *argp1 = 0 ;
29893 int res1 = 0 ;
29894 void *argp2 = 0 ;
29895 int res2 = 0 ;
29896
29897 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29899 if (!SWIG_IsOK(res1)) {
29900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29901 }
29902 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29903 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
29904 if (!SWIG_IsOK(res2)) {
29905 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'");
29906 }
29907 arg2 = reinterpret_cast< wxWindow * >(argp2);
b39fe951 29908 {
70d7cb34
RD
29909 result = (wxGraphicsContext *)(arg1)->CreateContext(arg2);
29910 if (PyErr_Occurred()) SWIG_fail;
b39fe951 29911 }
70d7cb34
RD
29912 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
29913 return resultobj;
29914fail:
72ef6efb
RD
29915 return NULL;
29916}
29917
29918
70d7cb34
RD
29919SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) {
29920 int argc;
29921 PyObject *argv[3];
29922
29923 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail;
29924 --argc;
29925 if (argc == 2) {
29926 int _v = 0;
29927 {
29928 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0);
29929 _v = SWIG_CheckState(res);
29930 }
29931 if (!_v) goto check_1;
29932 return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv);
29933 }
29934check_1:
29935
29936 if (argc == 2) {
29937 return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv);
29938 }
29939
29940fail:
29941 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'");
29942 return NULL;
29943}
29944
29945
29946SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 29947 PyObject *resultobj = 0;
70d7cb34
RD
29948 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29949 void *arg2 = (void *) 0 ;
29950 wxGraphicsContext *result = 0 ;
72ef6efb
RD
29951 void *argp1 = 0 ;
29952 int res1 = 0 ;
70d7cb34 29953 int res2 ;
b39fe951
RD
29954 PyObject * obj0 = 0 ;
29955 PyObject * obj1 = 0 ;
b39fe951 29956 char * kwnames[] = {
70d7cb34 29957 (char *) "self",(char *) "context", NULL
b39fe951 29958 };
72ef6efb 29959
70d7cb34
RD
29960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail;
29961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 29962 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
29963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29964 }
29965 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29966 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
29967 if (!SWIG_IsOK(res2)) {
29968 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'");
72ef6efb 29969 }
72ef6efb 29970 {
70d7cb34 29971 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2);
72ef6efb
RD
29972 if (PyErr_Occurred()) SWIG_fail;
29973 }
70d7cb34 29974 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
29975 return resultobj;
29976fail:
29977 return NULL;
29978}
29979
29980
70d7cb34 29981SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 29982 PyObject *resultobj = 0;
70d7cb34
RD
29983 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29984 void *arg2 = (void *) 0 ;
29985 wxGraphicsContext *result = 0 ;
72ef6efb
RD
29986 void *argp1 = 0 ;
29987 int res1 = 0 ;
70d7cb34 29988 int res2 ;
72ef6efb
RD
29989 PyObject * obj0 = 0 ;
29990 PyObject * obj1 = 0 ;
72ef6efb 29991 char * kwnames[] = {
70d7cb34 29992 (char *) "self",(char *) "window", NULL
72ef6efb
RD
29993 };
29994
70d7cb34
RD
29995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail;
29996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 29997 if (!SWIG_IsOK(res1)) {
70d7cb34 29998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 29999 }
70d7cb34
RD
30000 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30001 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30002 if (!SWIG_IsOK(res2)) {
30003 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'");
72ef6efb
RD
30004 }
30005 {
70d7cb34 30006 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2);
72ef6efb
RD
30007 if (PyErr_Occurred()) SWIG_fail;
30008 }
70d7cb34 30009 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30010 return resultobj;
30011fail:
70d7cb34
RD
30012 return NULL;
30013}
30014
30015
30016SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30017 PyObject *resultobj = 0;
30018 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
5c8c7dd3 30019 wxGraphicsPath result;
70d7cb34
RD
30020 void *argp1 = 0 ;
30021 int res1 = 0 ;
30022 PyObject *swig_obj[1] ;
30023
30024 if (!args) SWIG_fail;
30025 swig_obj[0] = args;
30026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30027 if (!SWIG_IsOK(res1)) {
30028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30029 }
30030 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
b39fe951 30031 {
5c8c7dd3 30032 result = (arg1)->CreatePath();
70d7cb34 30033 if (PyErr_Occurred()) SWIG_fail;
b39fe951 30034 }
5c8c7dd3 30035 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
30036 return resultobj;
30037fail:
72ef6efb
RD
30038 return NULL;
30039}
30040
30041
70d7cb34 30042SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30043 PyObject *resultobj = 0;
70d7cb34
RD
30044 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30045 wxDouble arg2 = (wxDouble) 1.0 ;
30046 wxDouble arg3 = (wxDouble) 0.0 ;
30047 wxDouble arg4 = (wxDouble) 0.0 ;
30048 wxDouble arg5 = (wxDouble) 1.0 ;
30049 wxDouble arg6 = (wxDouble) 0.0 ;
30050 wxDouble arg7 = (wxDouble) 0.0 ;
5c8c7dd3 30051 wxGraphicsMatrix result;
72ef6efb
RD
30052 void *argp1 = 0 ;
30053 int res1 = 0 ;
30054 double val2 ;
30055 int ecode2 = 0 ;
30056 double val3 ;
30057 int ecode3 = 0 ;
30058 double val4 ;
30059 int ecode4 = 0 ;
30060 double val5 ;
30061 int ecode5 = 0 ;
70d7cb34
RD
30062 double val6 ;
30063 int ecode6 = 0 ;
30064 double val7 ;
30065 int ecode7 = 0 ;
72ef6efb
RD
30066 PyObject * obj0 = 0 ;
30067 PyObject * obj1 = 0 ;
30068 PyObject * obj2 = 0 ;
30069 PyObject * obj3 = 0 ;
30070 PyObject * obj4 = 0 ;
70d7cb34
RD
30071 PyObject * obj5 = 0 ;
30072 PyObject * obj6 = 0 ;
72ef6efb 30073 char * kwnames[] = {
70d7cb34 30074 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
72ef6efb
RD
30075 };
30076
70d7cb34
RD
30077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30079 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
30080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30081 }
30082 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30083 if (obj1) {
30084 ecode2 = SWIG_AsVal_double(obj1, &val2);
30085 if (!SWIG_IsOK(ecode2)) {
30086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
30087 }
30088 arg2 = static_cast< wxDouble >(val2);
30089 }
30090 if (obj2) {
30091 ecode3 = SWIG_AsVal_double(obj2, &val3);
30092 if (!SWIG_IsOK(ecode3)) {
30093 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
30094 }
30095 arg3 = static_cast< wxDouble >(val3);
30096 }
30097 if (obj3) {
30098 ecode4 = SWIG_AsVal_double(obj3, &val4);
30099 if (!SWIG_IsOK(ecode4)) {
30100 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
30101 }
30102 arg4 = static_cast< wxDouble >(val4);
30103 }
30104 if (obj4) {
30105 ecode5 = SWIG_AsVal_double(obj4, &val5);
30106 if (!SWIG_IsOK(ecode5)) {
30107 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
30108 }
30109 arg5 = static_cast< wxDouble >(val5);
30110 }
30111 if (obj5) {
30112 ecode6 = SWIG_AsVal_double(obj5, &val6);
30113 if (!SWIG_IsOK(ecode6)) {
30114 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
30115 }
30116 arg6 = static_cast< wxDouble >(val6);
30117 }
30118 if (obj6) {
30119 ecode7 = SWIG_AsVal_double(obj6, &val7);
30120 if (!SWIG_IsOK(ecode7)) {
30121 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
30122 }
30123 arg7 = static_cast< wxDouble >(val7);
72ef6efb 30124 }
72ef6efb 30125 {
5c8c7dd3 30126 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
30127 if (PyErr_Occurred()) SWIG_fail;
30128 }
5c8c7dd3 30129 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30130 return resultobj;
30131fail:
30132 return NULL;
30133}
30134
30135
70d7cb34 30136SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30137 PyObject *resultobj = 0;
70d7cb34
RD
30138 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30139 wxPen *arg2 = 0 ;
30140 wxGraphicsPen result;
30141 void *argp1 = 0 ;
30142 int res1 = 0 ;
30143 void *argp2 = 0 ;
30144 int res2 = 0 ;
30145 PyObject * obj0 = 0 ;
30146 PyObject * obj1 = 0 ;
30147 char * kwnames[] = {
30148 (char *) "self",(char *) "pen", NULL
30149 };
30150
30151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
30152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30153 if (!SWIG_IsOK(res1)) {
30154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30155 }
30156 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30157 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
30158 if (!SWIG_IsOK(res2)) {
30159 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30160 }
30161 if (!argp2) {
30162 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30163 }
30164 arg2 = reinterpret_cast< wxPen * >(argp2);
30165 {
30166 result = (arg1)->CreatePen((wxPen const &)*arg2);
30167 if (PyErr_Occurred()) SWIG_fail;
30168 }
30169 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
30170 return resultobj;
30171fail:
30172 return NULL;
30173}
30174
30175
30176SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30177 PyObject *resultobj = 0;
30178 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30179 wxBrush *arg2 = 0 ;
30180 wxGraphicsBrush result;
30181 void *argp1 = 0 ;
30182 int res1 = 0 ;
30183 void *argp2 = 0 ;
30184 int res2 = 0 ;
30185 PyObject * obj0 = 0 ;
30186 PyObject * obj1 = 0 ;
30187 char * kwnames[] = {
30188 (char *) "self",(char *) "brush", NULL
30189 };
30190
30191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
30192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30193 if (!SWIG_IsOK(res1)) {
30194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30195 }
30196 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30197 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
30198 if (!SWIG_IsOK(res2)) {
30199 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30200 }
30201 if (!argp2) {
30202 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30203 }
30204 arg2 = reinterpret_cast< wxBrush * >(argp2);
30205 {
30206 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
30207 if (PyErr_Occurred()) SWIG_fail;
30208 }
30209 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30210 return resultobj;
30211fail:
30212 return NULL;
30213}
30214
30215
30216SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30217 PyObject *resultobj = 0;
30218 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
30219 wxDouble arg2 ;
30220 wxDouble arg3 ;
30221 wxDouble arg4 ;
30222 wxDouble arg5 ;
70d7cb34
RD
30223 wxColour *arg6 = 0 ;
30224 wxColour *arg7 = 0 ;
30225 wxGraphicsBrush result;
72ef6efb
RD
30226 void *argp1 = 0 ;
30227 int res1 = 0 ;
30228 double val2 ;
30229 int ecode2 = 0 ;
30230 double val3 ;
30231 int ecode3 = 0 ;
30232 double val4 ;
30233 int ecode4 = 0 ;
30234 double val5 ;
30235 int ecode5 = 0 ;
70d7cb34
RD
30236 wxColour temp6 ;
30237 wxColour temp7 ;
72ef6efb
RD
30238 PyObject * obj0 = 0 ;
30239 PyObject * obj1 = 0 ;
30240 PyObject * obj2 = 0 ;
30241 PyObject * obj3 = 0 ;
30242 PyObject * obj4 = 0 ;
70d7cb34
RD
30243 PyObject * obj5 = 0 ;
30244 PyObject * obj6 = 0 ;
72ef6efb 30245 char * kwnames[] = {
70d7cb34 30246 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
30247 };
30248
70d7cb34
RD
30249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30251 if (!SWIG_IsOK(res1)) {
70d7cb34 30252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30253 }
70d7cb34 30254 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
30255 ecode2 = SWIG_AsVal_double(obj1, &val2);
30256 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30257 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30258 }
30259 arg2 = static_cast< wxDouble >(val2);
30260 ecode3 = SWIG_AsVal_double(obj2, &val3);
30261 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30262 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30263 }
30264 arg3 = static_cast< wxDouble >(val3);
30265 ecode4 = SWIG_AsVal_double(obj3, &val4);
30266 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30267 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30268 }
30269 arg4 = static_cast< wxDouble >(val4);
30270 ecode5 = SWIG_AsVal_double(obj4, &val5);
30271 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30272 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30273 }
30274 arg5 = static_cast< wxDouble >(val5);
30275 {
70d7cb34
RD
30276 arg6 = &temp6;
30277 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
30278 }
30279 {
30280 arg7 = &temp7;
30281 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30282 }
30283 {
30284 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
30285 if (PyErr_Occurred()) SWIG_fail;
30286 }
70d7cb34 30287 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30288 return resultobj;
30289fail:
30290 return NULL;
30291}
30292
30293
70d7cb34 30294SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30295 PyObject *resultobj = 0;
70d7cb34 30296 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
30297 wxDouble arg2 ;
30298 wxDouble arg3 ;
30299 wxDouble arg4 ;
30300 wxDouble arg5 ;
30301 wxDouble arg6 ;
70d7cb34
RD
30302 wxColour *arg7 = 0 ;
30303 wxColour *arg8 = 0 ;
30304 wxGraphicsBrush result;
72ef6efb
RD
30305 void *argp1 = 0 ;
30306 int res1 = 0 ;
30307 double val2 ;
30308 int ecode2 = 0 ;
30309 double val3 ;
30310 int ecode3 = 0 ;
30311 double val4 ;
30312 int ecode4 = 0 ;
30313 double val5 ;
30314 int ecode5 = 0 ;
30315 double val6 ;
30316 int ecode6 = 0 ;
70d7cb34
RD
30317 wxColour temp7 ;
30318 wxColour temp8 ;
72ef6efb
RD
30319 PyObject * obj0 = 0 ;
30320 PyObject * obj1 = 0 ;
30321 PyObject * obj2 = 0 ;
30322 PyObject * obj3 = 0 ;
30323 PyObject * obj4 = 0 ;
30324 PyObject * obj5 = 0 ;
70d7cb34
RD
30325 PyObject * obj6 = 0 ;
30326 PyObject * obj7 = 0 ;
72ef6efb 30327 char * kwnames[] = {
70d7cb34 30328 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
30329 };
30330
70d7cb34
RD
30331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
30332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30333 if (!SWIG_IsOK(res1)) {
70d7cb34 30334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30335 }
70d7cb34 30336 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
30337 ecode2 = SWIG_AsVal_double(obj1, &val2);
30338 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30339 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30340 }
30341 arg2 = static_cast< wxDouble >(val2);
30342 ecode3 = SWIG_AsVal_double(obj2, &val3);
30343 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30344 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30345 }
30346 arg3 = static_cast< wxDouble >(val3);
30347 ecode4 = SWIG_AsVal_double(obj3, &val4);
30348 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30349 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30350 }
30351 arg4 = static_cast< wxDouble >(val4);
30352 ecode5 = SWIG_AsVal_double(obj4, &val5);
30353 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30354 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30355 }
30356 arg5 = static_cast< wxDouble >(val5);
30357 ecode6 = SWIG_AsVal_double(obj5, &val6);
30358 if (!SWIG_IsOK(ecode6)) {
70d7cb34 30359 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
30360 }
30361 arg6 = static_cast< wxDouble >(val6);
30362 {
70d7cb34
RD
30363 arg7 = &temp7;
30364 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30365 }
30366 {
30367 arg8 = &temp8;
30368 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
30369 }
30370 {
30371 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
30372 if (PyErr_Occurred()) SWIG_fail;
30373 }
70d7cb34 30374 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30375 return resultobj;
30376fail:
30377 return NULL;
30378}
30379
30380
70d7cb34
RD
30381SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30382 PyObject *resultobj = 0;
30383 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30384 wxFont *arg2 = 0 ;
30385 wxColour const &arg3_defvalue = *wxBLACK ;
30386 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
30387 wxGraphicsFont result;
30388 void *argp1 = 0 ;
30389 int res1 = 0 ;
30390 void *argp2 = 0 ;
30391 int res2 = 0 ;
30392 wxColour temp3 ;
30393 PyObject * obj0 = 0 ;
30394 PyObject * obj1 = 0 ;
30395 PyObject * obj2 = 0 ;
30396 char * kwnames[] = {
30397 (char *) "self",(char *) "font",(char *) "col", NULL
30398 };
30399
30400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30402 if (!SWIG_IsOK(res1)) {
30403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30404 }
30405 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30406 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
30407 if (!SWIG_IsOK(res2)) {
30408 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30409 }
30410 if (!argp2) {
30411 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30412 }
30413 arg2 = reinterpret_cast< wxFont * >(argp2);
30414 if (obj2) {
30415 {
30416 arg3 = &temp3;
30417 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
30418 }
30419 }
30420 {
30421 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
30422 if (PyErr_Occurred()) SWIG_fail;
30423 }
30424 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
30425 return resultobj;
30426fail:
30427 return NULL;
30428}
30429
30430
30431SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
30432 PyObject *obj;
30433 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
70d7cb34 30434 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj));
72ef6efb
RD
30435 return SWIG_Py_Void();
30436}
30437
30438SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30439 PyObject *resultobj = 0;
30440 wxWindowDC *arg1 = 0 ;
30441 wxGCDC *result = 0 ;
30442 void *argp1 = 0 ;
30443 int res1 = 0 ;
30444 PyObject * obj0 = 0 ;
30445 char * kwnames[] = {
30446 (char *) "dc", NULL
30447 };
30448
30449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_GCDC",kwnames,&obj0)) SWIG_fail;
30450 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
30451 if (!SWIG_IsOK(res1)) {
30452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30453 }
30454 if (!argp1) {
30455 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30456 }
30457 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
30458 {
30459 if (!wxPyCheckForApp()) SWIG_fail;
30460 PyThreadState* __tstate = wxPyBeginAllowThreads();
30461 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
30462 wxPyEndAllowThreads(__tstate);
30463 if (PyErr_Occurred()) SWIG_fail;
30464 }
30465 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
30466 return resultobj;
30467fail:
30468 return NULL;
30469}
30470
30471
30472SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30473 PyObject *resultobj = 0;
30474 wxGCDC *arg1 = (wxGCDC *) 0 ;
30475 void *argp1 = 0 ;
30476 int res1 = 0 ;
30477 PyObject *swig_obj[1] ;
30478
30479 if (!args) SWIG_fail;
30480 swig_obj[0] = args;
30481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
30482 if (!SWIG_IsOK(res1)) {
30483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
30484 }
30485 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30486 {
72ef6efb
RD
30487 delete arg1;
30488
72ef6efb
RD
30489 if (PyErr_Occurred()) SWIG_fail;
30490 }
30491 resultobj = SWIG_Py_Void();
30492 return resultobj;
30493fail:
30494 return NULL;
30495}
30496
30497
0a27f394 30498SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
30499 PyObject *resultobj = 0;
30500 wxGCDC *arg1 = (wxGCDC *) 0 ;
30501 wxGraphicsContext *result = 0 ;
30502 void *argp1 = 0 ;
30503 int res1 = 0 ;
30504 PyObject *swig_obj[1] ;
30505
30506 if (!args) SWIG_fail;
30507 swig_obj[0] = args;
30508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30509 if (!SWIG_IsOK(res1)) {
0a27f394 30510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
72ef6efb
RD
30511 }
30512 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30513 {
0a27f394 30514 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
72ef6efb
RD
30515 if (PyErr_Occurred()) SWIG_fail;
30516 }
30517 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30518 return resultobj;
30519fail:
30520 return NULL;
30521}
30522
30523
0a27f394
RD
30524SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30525 PyObject *resultobj = 0;
30526 wxGCDC *arg1 = (wxGCDC *) 0 ;
30527 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
30528 void *argp1 = 0 ;
30529 int res1 = 0 ;
30530 void *argp2 = 0 ;
30531 int res2 = 0 ;
30532 PyObject * obj0 = 0 ;
30533 PyObject * obj1 = 0 ;
30534 char * kwnames[] = {
30535 (char *) "self",(char *) "ctx", NULL
30536 };
30537
30538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
30539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30540 if (!SWIG_IsOK(res1)) {
30541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
30542 }
30543 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30544 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30545 if (!SWIG_IsOK(res2)) {
30546 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
30547 }
30548 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
30549 {
30550 (arg1)->SetGraphicsContext(arg2);
30551 if (PyErr_Occurred()) SWIG_fail;
30552 }
30553 resultobj = SWIG_Py_Void();
30554 return resultobj;
30555fail:
30556 return NULL;
30557}
30558
30559
72ef6efb
RD
30560SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30561 PyObject *obj;
30562 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30563 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
30564 return SWIG_Py_Void();
30565}
30566
30567SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30568 return SWIG_Python_InitShadowInstance(args);
30569}
30570
b39fe951
RD
30571SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30572 PyObject *resultobj = 0;
30573 wxOverlay *result = 0 ;
30574
30575 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
30576 {
30577 PyThreadState* __tstate = wxPyBeginAllowThreads();
30578 result = (wxOverlay *)new wxOverlay();
30579 wxPyEndAllowThreads(__tstate);
30580 if (PyErr_Occurred()) SWIG_fail;
30581 }
30582 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
30583 return resultobj;
30584fail:
30585 return NULL;
30586}
30587
30588
30589SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30590 PyObject *resultobj = 0;
30591 wxOverlay *arg1 = (wxOverlay *) 0 ;
30592 void *argp1 = 0 ;
30593 int res1 = 0 ;
30594 PyObject *swig_obj[1] ;
30595
30596 if (!args) SWIG_fail;
30597 swig_obj[0] = args;
30598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
30599 if (!SWIG_IsOK(res1)) {
30600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
30601 }
30602 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30603 {
30604 PyThreadState* __tstate = wxPyBeginAllowThreads();
30605 delete arg1;
30606
30607 wxPyEndAllowThreads(__tstate);
30608 if (PyErr_Occurred()) SWIG_fail;
30609 }
30610 resultobj = SWIG_Py_Void();
30611 return resultobj;
30612fail:
30613 return NULL;
30614}
30615
30616
30617SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30618 PyObject *resultobj = 0;
30619 wxOverlay *arg1 = (wxOverlay *) 0 ;
30620 void *argp1 = 0 ;
30621 int res1 = 0 ;
30622 PyObject *swig_obj[1] ;
30623
30624 if (!args) SWIG_fail;
30625 swig_obj[0] = args;
30626 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
30627 if (!SWIG_IsOK(res1)) {
30628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
30629 }
30630 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30631 {
30632 PyThreadState* __tstate = wxPyBeginAllowThreads();
30633 (arg1)->Reset();
30634 wxPyEndAllowThreads(__tstate);
30635 if (PyErr_Occurred()) SWIG_fail;
30636 }
30637 resultobj = SWIG_Py_Void();
30638 return resultobj;
30639fail:
30640 return NULL;
30641}
30642
30643
30644SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30645 PyObject *obj;
30646 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30647 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
30648 return SWIG_Py_Void();
30649}
30650
30651SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30652 return SWIG_Python_InitShadowInstance(args);
30653}
30654
30655SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30656 PyObject *resultobj = 0;
30657 wxOverlay *arg1 = 0 ;
30658 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
30659 int arg3 ;
30660 int arg4 ;
30661 int arg5 ;
30662 int arg6 ;
30663 wxDCOverlay *result = 0 ;
30664 void *argp1 = 0 ;
30665 int res1 = 0 ;
30666 void *argp2 = 0 ;
30667 int res2 = 0 ;
30668 int val3 ;
30669 int ecode3 = 0 ;
30670 int val4 ;
30671 int ecode4 = 0 ;
30672 int val5 ;
30673 int ecode5 = 0 ;
30674 int val6 ;
30675 int ecode6 = 0 ;
30676
30677 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
30678 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
30679 if (!SWIG_IsOK(res1)) {
30680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30681 }
30682 if (!argp1) {
30683 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30684 }
30685 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30686 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
30687 if (!SWIG_IsOK(res2)) {
30688 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
30689 }
30690 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30691 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
30692 if (!SWIG_IsOK(ecode3)) {
30693 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
30694 }
30695 arg3 = static_cast< int >(val3);
30696 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
30697 if (!SWIG_IsOK(ecode4)) {
30698 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
30699 }
30700 arg4 = static_cast< int >(val4);
30701 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
30702 if (!SWIG_IsOK(ecode5)) {
30703 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
30704 }
30705 arg5 = static_cast< int >(val5);
30706 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
30707 if (!SWIG_IsOK(ecode6)) {
30708 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
30709 }
30710 arg6 = static_cast< int >(val6);
30711 {
30712 PyThreadState* __tstate = wxPyBeginAllowThreads();
30713 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
30714 wxPyEndAllowThreads(__tstate);
30715 if (PyErr_Occurred()) SWIG_fail;
30716 }
30717 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
30718 return resultobj;
30719fail:
30720 return NULL;
30721}
30722
30723
30724SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30725 PyObject *resultobj = 0;
30726 wxOverlay *arg1 = 0 ;
30727 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
30728 wxDCOverlay *result = 0 ;
30729 void *argp1 = 0 ;
30730 int res1 = 0 ;
30731 void *argp2 = 0 ;
30732 int res2 = 0 ;
30733
30734 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
30736 if (!SWIG_IsOK(res1)) {
30737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30738 }
30739 if (!argp1) {
30740 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30741 }
30742 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30743 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
30744 if (!SWIG_IsOK(res2)) {
30745 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
30746 }
30747 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30748 {
30749 PyThreadState* __tstate = wxPyBeginAllowThreads();
30750 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
30751 wxPyEndAllowThreads(__tstate);
30752 if (PyErr_Occurred()) SWIG_fail;
30753 }
30754 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
30755 return resultobj;
30756fail:
30757 return NULL;
30758}
30759
30760
30761SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
30762 int argc;
30763 PyObject *argv[7];
30764
30765 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
30766 --argc;
30767 if (argc == 2) {
30768 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
30769 }
30770 if (argc == 6) {
30771 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
30772 }
30773
30774fail:
30775 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
30776 return NULL;
30777}
30778
30779
30780SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30781 PyObject *resultobj = 0;
30782 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
30783 void *argp1 = 0 ;
30784 int res1 = 0 ;
30785 PyObject *swig_obj[1] ;
30786
30787 if (!args) SWIG_fail;
30788 swig_obj[0] = args;
30789 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
30790 if (!SWIG_IsOK(res1)) {
30791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
30792 }
30793 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
30794 {
30795 PyThreadState* __tstate = wxPyBeginAllowThreads();
30796 delete arg1;
30797
30798 wxPyEndAllowThreads(__tstate);
30799 if (PyErr_Occurred()) SWIG_fail;
30800 }
30801 resultobj = SWIG_Py_Void();
30802 return resultobj;
30803fail:
30804 return NULL;
30805}
30806
30807
30808SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30809 PyObject *resultobj = 0;
30810 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
30811 void *argp1 = 0 ;
30812 int res1 = 0 ;
30813 PyObject *swig_obj[1] ;
30814
30815 if (!args) SWIG_fail;
30816 swig_obj[0] = args;
30817 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
30818 if (!SWIG_IsOK(res1)) {
30819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
30820 }
30821 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
30822 {
30823 PyThreadState* __tstate = wxPyBeginAllowThreads();
30824 (arg1)->Clear();
30825 wxPyEndAllowThreads(__tstate);
30826 if (PyErr_Occurred()) SWIG_fail;
30827 }
30828 resultobj = SWIG_Py_Void();
30829 return resultobj;
30830fail:
30831 return NULL;
30832}
30833
30834
30835SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30836 PyObject *obj;
30837 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30838 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
30839 return SWIG_Py_Void();
30840}
30841
30842SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30843 return SWIG_Python_InitShadowInstance(args);
30844}
30845
72ef6efb
RD
30846SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30847 PyObject *resultobj = 0;
30848 int arg1 ;
30849 int arg2 ;
30850 int arg3 = (int) true ;
30851 int arg4 = (int) 1 ;
30852 wxImageList *result = 0 ;
30853 int val1 ;
30854 int ecode1 = 0 ;
30855 int val2 ;
30856 int ecode2 = 0 ;
30857 int val3 ;
30858 int ecode3 = 0 ;
30859 int val4 ;
30860 int ecode4 = 0 ;
30861 PyObject * obj0 = 0 ;
30862 PyObject * obj1 = 0 ;
30863 PyObject * obj2 = 0 ;
30864 PyObject * obj3 = 0 ;
30865 char * kwnames[] = {
30866 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
30867 };
30868
30869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30870 ecode1 = SWIG_AsVal_int(obj0, &val1);
30871 if (!SWIG_IsOK(ecode1)) {
30872 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
30873 }
30874 arg1 = static_cast< int >(val1);
30875 ecode2 = SWIG_AsVal_int(obj1, &val2);
30876 if (!SWIG_IsOK(ecode2)) {
30877 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
30878 }
30879 arg2 = static_cast< int >(val2);
30880 if (obj2) {
30881 ecode3 = SWIG_AsVal_int(obj2, &val3);
30882 if (!SWIG_IsOK(ecode3)) {
30883 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
30884 }
30885 arg3 = static_cast< int >(val3);
30886 }
30887 if (obj3) {
30888 ecode4 = SWIG_AsVal_int(obj3, &val4);
30889 if (!SWIG_IsOK(ecode4)) {
30890 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
30891 }
30892 arg4 = static_cast< int >(val4);
30893 }
30894 {
30895 if (!wxPyCheckForApp()) SWIG_fail;
30896 PyThreadState* __tstate = wxPyBeginAllowThreads();
30897 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
30898 wxPyEndAllowThreads(__tstate);
30899 if (PyErr_Occurred()) SWIG_fail;
30900 }
e02c0a13 30901 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
72ef6efb
RD
30902 return resultobj;
30903fail:
30904 return NULL;
30905}
30906
30907
30908SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30909 PyObject *resultobj = 0;
30910 wxImageList *arg1 = (wxImageList *) 0 ;
30911 void *argp1 = 0 ;
30912 int res1 = 0 ;
30913 PyObject *swig_obj[1] ;
30914
30915 if (!args) SWIG_fail;
30916 swig_obj[0] = args;
30917 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30918 if (!SWIG_IsOK(res1)) {
30919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
30920 }
30921 arg1 = reinterpret_cast< wxImageList * >(argp1);
30922 {
30923 PyThreadState* __tstate = wxPyBeginAllowThreads();
30924 delete arg1;
30925
30926 wxPyEndAllowThreads(__tstate);
30927 if (PyErr_Occurred()) SWIG_fail;
30928 }
30929 resultobj = SWIG_Py_Void();
30930 return resultobj;
30931fail:
30932 return NULL;
30933}
30934
30935
30936SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30937 PyObject *resultobj = 0;
30938 wxImageList *arg1 = (wxImageList *) 0 ;
30939 wxBitmap *arg2 = 0 ;
30940 wxBitmap const &arg3_defvalue = wxNullBitmap ;
30941 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
30942 int result;
30943 void *argp1 = 0 ;
30944 int res1 = 0 ;
30945 void *argp2 = 0 ;
30946 int res2 = 0 ;
30947 void *argp3 = 0 ;
30948 int res3 = 0 ;
30949 PyObject * obj0 = 0 ;
30950 PyObject * obj1 = 0 ;
30951 PyObject * obj2 = 0 ;
30952 char * kwnames[] = {
30953 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
30954 };
30955
30956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30958 if (!SWIG_IsOK(res1)) {
30959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
30960 }
30961 arg1 = reinterpret_cast< wxImageList * >(argp1);
30962 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30963 if (!SWIG_IsOK(res2)) {
30964 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30965 }
30966 if (!argp2) {
30967 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30968 }
30969 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30970 if (obj2) {
30971 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
30972 if (!SWIG_IsOK(res3)) {
30973 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30974 }
30975 if (!argp3) {
30976 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30977 }
30978 arg3 = reinterpret_cast< wxBitmap * >(argp3);
30979 }
30980 {
30981 PyThreadState* __tstate = wxPyBeginAllowThreads();
30982 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
30983 wxPyEndAllowThreads(__tstate);
30984 if (PyErr_Occurred()) SWIG_fail;
30985 }
30986 resultobj = SWIG_From_int(static_cast< int >(result));
30987 return resultobj;
30988fail:
30989 return NULL;
30990}
30991
30992
30993SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30994 PyObject *resultobj = 0;
30995 wxImageList *arg1 = (wxImageList *) 0 ;
30996 wxBitmap *arg2 = 0 ;
30997 wxColour *arg3 = 0 ;
30998 int result;
30999 void *argp1 = 0 ;
31000 int res1 = 0 ;
31001 void *argp2 = 0 ;
31002 int res2 = 0 ;
31003 wxColour temp3 ;
31004 PyObject * obj0 = 0 ;
31005 PyObject * obj1 = 0 ;
31006 PyObject * obj2 = 0 ;
31007 char * kwnames[] = {
31008 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
31009 };
31010
31011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31013 if (!SWIG_IsOK(res1)) {
31014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
31015 }
31016 arg1 = reinterpret_cast< wxImageList * >(argp1);
31017 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31018 if (!SWIG_IsOK(res2)) {
31019 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31020 }
31021 if (!argp2) {
31022 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31023 }
31024 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31025 {
31026 arg3 = &temp3;
31027 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31028 }
31029 {
31030 PyThreadState* __tstate = wxPyBeginAllowThreads();
31031 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
31032 wxPyEndAllowThreads(__tstate);
31033 if (PyErr_Occurred()) SWIG_fail;
31034 }
31035 resultobj = SWIG_From_int(static_cast< int >(result));
31036 return resultobj;
31037fail:
31038 return NULL;
31039}
31040
31041
31042SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31043 PyObject *resultobj = 0;
31044 wxImageList *arg1 = (wxImageList *) 0 ;
31045 wxIcon *arg2 = 0 ;
31046 int result;
31047 void *argp1 = 0 ;
31048 int res1 = 0 ;
31049 void *argp2 = 0 ;
31050 int res2 = 0 ;
31051 PyObject * obj0 = 0 ;
31052 PyObject * obj1 = 0 ;
31053 char * kwnames[] = {
31054 (char *) "self",(char *) "icon", NULL
31055 };
31056
31057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31059 if (!SWIG_IsOK(res1)) {
31060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
31061 }
1bd55598
RD
31062 arg1 = reinterpret_cast< wxImageList * >(argp1);
31063 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
31064 if (!SWIG_IsOK(res2)) {
31065 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31066 }
31067 if (!argp2) {
31068 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31069 }
31070 arg2 = reinterpret_cast< wxIcon * >(argp2);
31071 {
31072 PyThreadState* __tstate = wxPyBeginAllowThreads();
31073 result = (int)(arg1)->Add((wxIcon const &)*arg2);
31074 wxPyEndAllowThreads(__tstate);
31075 if (PyErr_Occurred()) SWIG_fail;
31076 }
31077 resultobj = SWIG_From_int(static_cast< int >(result));
31078 return resultobj;
31079fail:
31080 return NULL;
31081}
31082
31083
31084SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31085 PyObject *resultobj = 0;
31086 wxImageList *arg1 = (wxImageList *) 0 ;
31087 int arg2 ;
31088 SwigValueWrapper<wxBitmap > result;
31089 void *argp1 = 0 ;
31090 int res1 = 0 ;
31091 int val2 ;
31092 int ecode2 = 0 ;
31093 PyObject * obj0 = 0 ;
31094 PyObject * obj1 = 0 ;
31095 char * kwnames[] = {
31096 (char *) "self",(char *) "index", NULL
31097 };
31098
31099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
31100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31101 if (!SWIG_IsOK(res1)) {
31102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
31103 }
31104 arg1 = reinterpret_cast< wxImageList * >(argp1);
31105 ecode2 = SWIG_AsVal_int(obj1, &val2);
31106 if (!SWIG_IsOK(ecode2)) {
31107 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
31108 }
31109 arg2 = static_cast< int >(val2);
31110 {
31111 PyThreadState* __tstate = wxPyBeginAllowThreads();
31112 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
31113 wxPyEndAllowThreads(__tstate);
31114 if (PyErr_Occurred()) SWIG_fail;
31115 }
31116 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
31117 return resultobj;
31118fail:
31119 return NULL;
31120}
31121
31122
31123SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31124 PyObject *resultobj = 0;
31125 wxImageList *arg1 = (wxImageList *) 0 ;
31126 int arg2 ;
31127 wxIcon result;
31128 void *argp1 = 0 ;
31129 int res1 = 0 ;
31130 int val2 ;
31131 int ecode2 = 0 ;
31132 PyObject * obj0 = 0 ;
31133 PyObject * obj1 = 0 ;
31134 char * kwnames[] = {
31135 (char *) "self",(char *) "index", NULL
31136 };
31137
31138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31140 if (!SWIG_IsOK(res1)) {
31141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
31142 }
31143 arg1 = reinterpret_cast< wxImageList * >(argp1);
31144 ecode2 = SWIG_AsVal_int(obj1, &val2);
31145 if (!SWIG_IsOK(ecode2)) {
31146 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
31147 }
31148 arg2 = static_cast< int >(val2);
31149 {
31150 PyThreadState* __tstate = wxPyBeginAllowThreads();
31151 result = ((wxImageList const *)arg1)->GetIcon(arg2);
31152 wxPyEndAllowThreads(__tstate);
31153 if (PyErr_Occurred()) SWIG_fail;
31154 }
31155 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
31156 return resultobj;
31157fail:
31158 return NULL;
31159}
31160
31161
31162SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31163 PyObject *resultobj = 0;
31164 wxImageList *arg1 = (wxImageList *) 0 ;
31165 int arg2 ;
31166 wxBitmap *arg3 = 0 ;
2131d850
RD
31167 wxBitmap const &arg4_defvalue = wxNullBitmap ;
31168 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
1bd55598
RD
31169 bool result;
31170 void *argp1 = 0 ;
31171 int res1 = 0 ;
31172 int val2 ;
31173 int ecode2 = 0 ;
31174 void *argp3 = 0 ;
31175 int res3 = 0 ;
2131d850
RD
31176 void *argp4 = 0 ;
31177 int res4 = 0 ;
1bd55598
RD
31178 PyObject * obj0 = 0 ;
31179 PyObject * obj1 = 0 ;
31180 PyObject * obj2 = 0 ;
2131d850 31181 PyObject * obj3 = 0 ;
1bd55598 31182 char * kwnames[] = {
2131d850 31183 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
1bd55598
RD
31184 };
31185
2131d850 31186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
31187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31188 if (!SWIG_IsOK(res1)) {
31189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
31190 }
31191 arg1 = reinterpret_cast< wxImageList * >(argp1);
31192 ecode2 = SWIG_AsVal_int(obj1, &val2);
31193 if (!SWIG_IsOK(ecode2)) {
31194 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
31195 }
31196 arg2 = static_cast< int >(val2);
31197 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31198 if (!SWIG_IsOK(res3)) {
31199 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31200 }
31201 if (!argp3) {
31202 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31203 }
31204 arg3 = reinterpret_cast< wxBitmap * >(argp3);
2131d850
RD
31205 if (obj3) {
31206 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
31207 if (!SWIG_IsOK(res4)) {
31208 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31209 }
31210 if (!argp4) {
31211 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31212 }
31213 arg4 = reinterpret_cast< wxBitmap * >(argp4);
31214 }
1bd55598
RD
31215 {
31216 PyThreadState* __tstate = wxPyBeginAllowThreads();
2131d850 31217 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
1bd55598
RD
31218 wxPyEndAllowThreads(__tstate);
31219 if (PyErr_Occurred()) SWIG_fail;
31220 }
31221 {
31222 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31223 }
31224 return resultobj;
31225fail:
31226 return NULL;
31227}
31228
31229
31230SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31231 PyObject *resultobj = 0;
31232 wxImageList *arg1 = (wxImageList *) 0 ;
31233 int arg2 ;
31234 wxDC *arg3 = 0 ;
31235 int arg4 ;
31236 int arg5 ;
31237 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
31238 bool arg7 = (bool) (bool)false ;
31239 bool result;
31240 void *argp1 = 0 ;
31241 int res1 = 0 ;
31242 int val2 ;
31243 int ecode2 = 0 ;
31244 void *argp3 = 0 ;
31245 int res3 = 0 ;
31246 int val4 ;
31247 int ecode4 = 0 ;
31248 int val5 ;
31249 int ecode5 = 0 ;
31250 int val6 ;
31251 int ecode6 = 0 ;
31252 bool val7 ;
31253 int ecode7 = 0 ;
31254 PyObject * obj0 = 0 ;
31255 PyObject * obj1 = 0 ;
31256 PyObject * obj2 = 0 ;
31257 PyObject * obj3 = 0 ;
31258 PyObject * obj4 = 0 ;
31259 PyObject * obj5 = 0 ;
31260 PyObject * obj6 = 0 ;
31261 char * kwnames[] = {
31262 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
31263 };
31264
31265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31267 if (!SWIG_IsOK(res1)) {
31268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
31269 }
31270 arg1 = reinterpret_cast< wxImageList * >(argp1);
31271 ecode2 = SWIG_AsVal_int(obj1, &val2);
31272 if (!SWIG_IsOK(ecode2)) {
31273 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
31274 }
31275 arg2 = static_cast< int >(val2);
31276 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31277 if (!SWIG_IsOK(res3)) {
31278 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31279 }
31280 if (!argp3) {
31281 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31282 }
31283 arg3 = reinterpret_cast< wxDC * >(argp3);
31284 ecode4 = SWIG_AsVal_int(obj3, &val4);
31285 if (!SWIG_IsOK(ecode4)) {
31286 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
31287 }
31288 arg4 = static_cast< int >(val4);
31289 ecode5 = SWIG_AsVal_int(obj4, &val5);
31290 if (!SWIG_IsOK(ecode5)) {
31291 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
31292 }
31293 arg5 = static_cast< int >(val5);
31294 if (obj5) {
31295 ecode6 = SWIG_AsVal_int(obj5, &val6);
31296 if (!SWIG_IsOK(ecode6)) {
31297 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
31298 }
31299 arg6 = static_cast< int >(val6);
31300 }
31301 if (obj6) {
31302 ecode7 = SWIG_AsVal_bool(obj6, &val7);
31303 if (!SWIG_IsOK(ecode7)) {
31304 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
31305 }
31306 arg7 = static_cast< bool >(val7);
31307 }
31308 {
31309 PyThreadState* __tstate = wxPyBeginAllowThreads();
31310 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
31311 wxPyEndAllowThreads(__tstate);
31312 if (PyErr_Occurred()) SWIG_fail;
31313 }
31314 {
31315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31316 }
31317 return resultobj;
31318fail:
31319 return NULL;
31320}
31321
31322
31323SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31324 PyObject *resultobj = 0;
31325 wxImageList *arg1 = (wxImageList *) 0 ;
31326 int result;
31327 void *argp1 = 0 ;
31328 int res1 = 0 ;
31329 PyObject *swig_obj[1] ;
31330
31331 if (!args) SWIG_fail;
31332 swig_obj[0] = args;
31333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31334 if (!SWIG_IsOK(res1)) {
31335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
31336 }
31337 arg1 = reinterpret_cast< wxImageList * >(argp1);
31338 {
31339 PyThreadState* __tstate = wxPyBeginAllowThreads();
31340 result = (int)(arg1)->GetImageCount();
31341 wxPyEndAllowThreads(__tstate);
31342 if (PyErr_Occurred()) SWIG_fail;
31343 }
31344 resultobj = SWIG_From_int(static_cast< int >(result));
31345 return resultobj;
31346fail:
31347 return NULL;
31348}
31349
31350
31351SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31352 PyObject *resultobj = 0;
31353 wxImageList *arg1 = (wxImageList *) 0 ;
31354 int arg2 ;
31355 bool result;
31356 void *argp1 = 0 ;
31357 int res1 = 0 ;
31358 int val2 ;
31359 int ecode2 = 0 ;
31360 PyObject * obj0 = 0 ;
31361 PyObject * obj1 = 0 ;
31362 char * kwnames[] = {
31363 (char *) "self",(char *) "index", NULL
31364 };
31365
31366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
31367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31368 if (!SWIG_IsOK(res1)) {
31369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
31370 }
31371 arg1 = reinterpret_cast< wxImageList * >(argp1);
31372 ecode2 = SWIG_AsVal_int(obj1, &val2);
31373 if (!SWIG_IsOK(ecode2)) {
31374 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
31375 }
31376 arg2 = static_cast< int >(val2);
31377 {
31378 PyThreadState* __tstate = wxPyBeginAllowThreads();
31379 result = (bool)(arg1)->Remove(arg2);
31380 wxPyEndAllowThreads(__tstate);
31381 if (PyErr_Occurred()) SWIG_fail;
31382 }
31383 {
31384 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31385 }
31386 return resultobj;
31387fail:
31388 return NULL;
31389}
31390
31391
31392SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31393 PyObject *resultobj = 0;
31394 wxImageList *arg1 = (wxImageList *) 0 ;
31395 bool result;
31396 void *argp1 = 0 ;
31397 int res1 = 0 ;
31398 PyObject *swig_obj[1] ;
31399
31400 if (!args) SWIG_fail;
31401 swig_obj[0] = args;
31402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31403 if (!SWIG_IsOK(res1)) {
31404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
31405 }
31406 arg1 = reinterpret_cast< wxImageList * >(argp1);
31407 {
31408 PyThreadState* __tstate = wxPyBeginAllowThreads();
31409 result = (bool)(arg1)->RemoveAll();
31410 wxPyEndAllowThreads(__tstate);
31411 if (PyErr_Occurred()) SWIG_fail;
31412 }
31413 {
31414 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31415 }
31416 return resultobj;
31417fail:
31418 return NULL;
31419}
31420
31421
31422SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31423 PyObject *resultobj = 0;
31424 wxImageList *arg1 = (wxImageList *) 0 ;
31425 int arg2 ;
31426 int *arg3 = 0 ;
31427 int *arg4 = 0 ;
31428 void *argp1 = 0 ;
31429 int res1 = 0 ;
31430 int val2 ;
31431 int ecode2 = 0 ;
31432 int temp3 ;
31433 int res3 = SWIG_TMPOBJ ;
31434 int temp4 ;
31435 int res4 = SWIG_TMPOBJ ;
31436 PyObject * obj0 = 0 ;
31437 PyObject * obj1 = 0 ;
31438 char * kwnames[] = {
31439 (char *) "self",(char *) "index", NULL
31440 };
31441
31442 arg3 = &temp3;
31443 arg4 = &temp4;
31444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
31445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31446 if (!SWIG_IsOK(res1)) {
31447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
31448 }
31449 arg1 = reinterpret_cast< wxImageList * >(argp1);
31450 ecode2 = SWIG_AsVal_int(obj1, &val2);
31451 if (!SWIG_IsOK(ecode2)) {
31452 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
31453 }
31454 arg2 = static_cast< int >(val2);
31455 {
31456 PyThreadState* __tstate = wxPyBeginAllowThreads();
31457 (arg1)->GetSize(arg2,*arg3,*arg4);
31458 wxPyEndAllowThreads(__tstate);
31459 if (PyErr_Occurred()) SWIG_fail;
31460 }
31461 resultobj = SWIG_Py_Void();
31462 if (SWIG_IsTmpObj(res3)) {
31463 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31464 } else {
31465 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31466 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31467 }
31468 if (SWIG_IsTmpObj(res4)) {
31469 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
31470 } else {
31471 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31472 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
31473 }
31474 return resultobj;
31475fail:
31476 return NULL;
31477}
31478
31479
31480SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31481 PyObject *obj;
31482 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31483 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
31484 return SWIG_Py_Void();
31485}
31486
31487SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31488 return SWIG_Python_InitShadowInstance(args);
31489}
31490
da91cb0f
RD
31491SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31492 PyObject *resultobj = 0;
31493 wxStockGDI *result = 0 ;
1bd55598 31494
da91cb0f
RD
31495 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
31496 {
31497 PyThreadState* __tstate = wxPyBeginAllowThreads();
31498 result = (wxStockGDI *)new wxStockGDI();
31499 wxPyEndAllowThreads(__tstate);
31500 if (PyErr_Occurred()) SWIG_fail;
31501 }
31502 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
31503 return resultobj;
31504fail:
31505 return NULL;
1bd55598
RD
31506}
31507
31508
da91cb0f
RD
31509SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31510 PyObject *resultobj = 0;
31511 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
31512 void *argp1 = 0 ;
31513 int res1 = 0 ;
31514 PyObject *swig_obj[1] ;
1bd55598 31515
da91cb0f
RD
31516 if (!args) SWIG_fail;
31517 swig_obj[0] = args;
31518 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
31519 if (!SWIG_IsOK(res1)) {
31520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
31521 }
31522 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
31523 {
31524 PyThreadState* __tstate = wxPyBeginAllowThreads();
31525 delete arg1;
31526
31527 wxPyEndAllowThreads(__tstate);
31528 if (PyErr_Occurred()) SWIG_fail;
31529 }
31530 resultobj = SWIG_Py_Void();
31531 return resultobj;
31532fail:
31533 return NULL;
1bd55598
RD
31534}
31535
31536
da91cb0f
RD
31537SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31538 PyObject *resultobj = 0;
1bd55598 31539
da91cb0f
RD
31540 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
31541 {
31542 PyThreadState* __tstate = wxPyBeginAllowThreads();
31543 wxStockGDI::DeleteAll();
31544 wxPyEndAllowThreads(__tstate);
31545 if (PyErr_Occurred()) SWIG_fail;
31546 }
31547 resultobj = SWIG_Py_Void();
31548 return resultobj;
31549fail:
31550 return NULL;
1bd55598
RD
31551}
31552
31553
da91cb0f
RD
31554SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31555 PyObject *resultobj = 0;
31556 wxStockGDI *result = 0 ;
1bd55598 31557
da91cb0f
RD
31558 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
31559 {
31560 PyThreadState* __tstate = wxPyBeginAllowThreads();
31561 {
31562 wxStockGDI &_result_ref = wxStockGDI::instance();
31563 result = (wxStockGDI *) &_result_ref;
31564 }
31565 wxPyEndAllowThreads(__tstate);
31566 if (PyErr_Occurred()) SWIG_fail;
31567 }
31568 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
31569 return resultobj;
31570fail:
31571 return NULL;
1bd55598
RD
31572}
31573
31574
da91cb0f
RD
31575SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31576 PyObject *resultobj = 0;
31577 wxStockGDI::Item arg1 ;
31578 wxBrush *result = 0 ;
31579 int val1 ;
31580 int ecode1 = 0 ;
31581 PyObject * obj0 = 0 ;
31582 char * kwnames[] = {
31583 (char *) "item", NULL
31584 };
31585
31586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
31587 ecode1 = SWIG_AsVal_int(obj0, &val1);
31588 if (!SWIG_IsOK(ecode1)) {
31589 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31590 }
31591 arg1 = static_cast< wxStockGDI::Item >(val1);
31592 {
31593 PyThreadState* __tstate = wxPyBeginAllowThreads();
31594 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
31595 wxPyEndAllowThreads(__tstate);
31596 if (PyErr_Occurred()) SWIG_fail;
31597 }
31598 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
31599 return resultobj;
31600fail:
31601 return NULL;
1bd55598
RD
31602}
31603
31604
da91cb0f
RD
31605SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31606 PyObject *resultobj = 0;
31607 wxStockGDI::Item arg1 ;
31608 wxColour *result = 0 ;
31609 int val1 ;
31610 int ecode1 = 0 ;
31611 PyObject * obj0 = 0 ;
31612 char * kwnames[] = {
31613 (char *) "item", NULL
31614 };
1bd55598 31615
da91cb0f
RD
31616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
31617 ecode1 = SWIG_AsVal_int(obj0, &val1);
31618 if (!SWIG_IsOK(ecode1)) {
31619 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31620 }
31621 arg1 = static_cast< wxStockGDI::Item >(val1);
31622 {
31623 PyThreadState* __tstate = wxPyBeginAllowThreads();
31624 result = (wxColour *)wxStockGDI::GetColour(arg1);
31625 wxPyEndAllowThreads(__tstate);
31626 if (PyErr_Occurred()) SWIG_fail;
31627 }
31628 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
31629 return resultobj;
31630fail:
31631 return NULL;
1bd55598
RD
31632}
31633
31634
da91cb0f
RD
31635SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31636 PyObject *resultobj = 0;
31637 wxStockGDI::Item arg1 ;
31638 wxCursor *result = 0 ;
31639 int val1 ;
31640 int ecode1 = 0 ;
31641 PyObject * obj0 = 0 ;
31642 char * kwnames[] = {
31643 (char *) "item", NULL
31644 };
31645
31646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
31647 ecode1 = SWIG_AsVal_int(obj0, &val1);
31648 if (!SWIG_IsOK(ecode1)) {
31649 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31650 }
31651 arg1 = static_cast< wxStockGDI::Item >(val1);
31652 {
31653 PyThreadState* __tstate = wxPyBeginAllowThreads();
31654 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
31655 wxPyEndAllowThreads(__tstate);
31656 if (PyErr_Occurred()) SWIG_fail;
31657 }
31658 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
31659 return resultobj;
31660fail:
31661 return NULL;
1bd55598
RD
31662}
31663
31664
da91cb0f
RD
31665SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31666 PyObject *resultobj = 0;
31667 wxStockGDI::Item arg1 ;
31668 wxPen *result = 0 ;
31669 int val1 ;
31670 int ecode1 = 0 ;
31671 PyObject * obj0 = 0 ;
31672 char * kwnames[] = {
31673 (char *) "item", NULL
31674 };
31675
31676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
31677 ecode1 = SWIG_AsVal_int(obj0, &val1);
31678 if (!SWIG_IsOK(ecode1)) {
31679 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31680 }
31681 arg1 = static_cast< wxStockGDI::Item >(val1);
31682 {
31683 PyThreadState* __tstate = wxPyBeginAllowThreads();
31684 result = (wxPen *)wxStockGDI::GetPen(arg1);
31685 wxPyEndAllowThreads(__tstate);
31686 if (PyErr_Occurred()) SWIG_fail;
31687 }
31688 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
31689 return resultobj;
31690fail:
31691 return NULL;
1bd55598
RD
31692}
31693
31694
da91cb0f
RD
31695SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31696 PyObject *resultobj = 0;
31697 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
31698 wxStockGDI::Item arg2 ;
31699 wxFont *result = 0 ;
31700 void *argp1 = 0 ;
31701 int res1 = 0 ;
31702 int val2 ;
31703 int ecode2 = 0 ;
31704 PyObject * obj0 = 0 ;
31705 PyObject * obj1 = 0 ;
31706 char * kwnames[] = {
31707 (char *) "self",(char *) "item", NULL
31708 };
1bd55598 31709
da91cb0f
RD
31710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
31711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
31712 if (!SWIG_IsOK(res1)) {
31713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
31714 }
31715 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
31716 ecode2 = SWIG_AsVal_int(obj1, &val2);
31717 if (!SWIG_IsOK(ecode2)) {
31718 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
31719 }
31720 arg2 = static_cast< wxStockGDI::Item >(val2);
31721 {
31722 PyThreadState* __tstate = wxPyBeginAllowThreads();
31723 result = (wxFont *)(arg1)->GetFont(arg2);
31724 wxPyEndAllowThreads(__tstate);
31725 if (PyErr_Occurred()) SWIG_fail;
31726 }
31727 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
31728 return resultobj;
31729fail:
31730 return NULL;
1bd55598
RD
31731}
31732
31733
da91cb0f
RD
31734SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31735 PyObject *obj;
31736 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31737 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
31738 return SWIG_Py_Void();
1bd55598
RD
31739}
31740
da91cb0f
RD
31741SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31742 return SWIG_Python_InitShadowInstance(args);
1bd55598
RD
31743}
31744
1bd55598
RD
31745SWIGINTERN int NullBitmap_set(PyObject *) {
31746 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
31747 return 1;
31748}
31749
31750
31751SWIGINTERN PyObject *NullBitmap_get(void) {
31752 PyObject *pyobj = 0;
31753
31754 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
31755 return pyobj;
31756}
31757
31758
31759SWIGINTERN int NullIcon_set(PyObject *) {
31760 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
31761 return 1;
31762}
31763
31764
31765SWIGINTERN PyObject *NullIcon_get(void) {
31766 PyObject *pyobj = 0;
31767
31768 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
31769 return pyobj;
31770}
31771
31772
31773SWIGINTERN int NullCursor_set(PyObject *) {
31774 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
31775 return 1;
31776}
31777
31778
31779SWIGINTERN PyObject *NullCursor_get(void) {
31780 PyObject *pyobj = 0;
31781
31782 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
31783 return pyobj;
31784}
31785
31786
31787SWIGINTERN int NullPen_set(PyObject *) {
31788 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
31789 return 1;
31790}
31791
31792
31793SWIGINTERN PyObject *NullPen_get(void) {
31794 PyObject *pyobj = 0;
31795
31796 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
31797 return pyobj;
31798}
31799
31800
31801SWIGINTERN int NullBrush_set(PyObject *) {
31802 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
31803 return 1;
31804}
31805
31806
31807SWIGINTERN PyObject *NullBrush_get(void) {
31808 PyObject *pyobj = 0;
31809
31810 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
31811 return pyobj;
31812}
31813
31814
31815SWIGINTERN int NullPalette_set(PyObject *) {
31816 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
31817 return 1;
31818}
31819
31820
31821SWIGINTERN PyObject *NullPalette_get(void) {
31822 PyObject *pyobj = 0;
31823
31824 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
31825 return pyobj;
31826}
31827
31828
31829SWIGINTERN int NullFont_set(PyObject *) {
31830 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
31831 return 1;
31832}
31833
31834
31835SWIGINTERN PyObject *NullFont_get(void) {
31836 PyObject *pyobj = 0;
31837
31838 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
31839 return pyobj;
31840}
31841
31842
31843SWIGINTERN int NullColour_set(PyObject *) {
31844 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
31845 return 1;
31846}
31847
31848
31849SWIGINTERN PyObject *NullColour_get(void) {
31850 PyObject *pyobj = 0;
31851
31852 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
31853 return pyobj;
31854}
31855
31856
da91cb0f 31857SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 31858 PyObject *resultobj = 0;
da91cb0f
RD
31859 wxGDIObjListBase *result = 0 ;
31860
31861 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
31862 {
31863 PyThreadState* __tstate = wxPyBeginAllowThreads();
31864 result = (wxGDIObjListBase *)new wxGDIObjListBase();
31865 wxPyEndAllowThreads(__tstate);
31866 if (PyErr_Occurred()) SWIG_fail;
31867 }
31868 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
31869 return resultobj;
31870fail:
31871 return NULL;
31872}
31873
31874
31875SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31876 PyObject *resultobj = 0;
31877 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
1bd55598
RD
31878 void *argp1 = 0 ;
31879 int res1 = 0 ;
da91cb0f 31880 PyObject *swig_obj[1] ;
1bd55598 31881
da91cb0f
RD
31882 if (!args) SWIG_fail;
31883 swig_obj[0] = args;
31884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
1bd55598 31885 if (!SWIG_IsOK(res1)) {
da91cb0f 31886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
1bd55598 31887 }
da91cb0f 31888 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
1bd55598
RD
31889 {
31890 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f
RD
31891 delete arg1;
31892
1bd55598
RD
31893 wxPyEndAllowThreads(__tstate);
31894 if (PyErr_Occurred()) SWIG_fail;
31895 }
31896 resultobj = SWIG_Py_Void();
31897 return resultobj;
31898fail:
31899 return NULL;
31900}
31901
31902
da91cb0f
RD
31903SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31904 PyObject *obj;
31905 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31906 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
31907 return SWIG_Py_Void();
31908}
31909
31910SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31911 return SWIG_Python_InitShadowInstance(args);
31912}
31913
1bd55598
RD
31914SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31915 PyObject *resultobj = 0;
31916 wxPenList *arg1 = (wxPenList *) 0 ;
31917 wxColour *arg2 = 0 ;
31918 int arg3 ;
31919 int arg4 ;
31920 wxPen *result = 0 ;
31921 void *argp1 = 0 ;
31922 int res1 = 0 ;
31923 wxColour temp2 ;
31924 int val3 ;
31925 int ecode3 = 0 ;
31926 int val4 ;
31927 int ecode4 = 0 ;
31928 PyObject * obj0 = 0 ;
31929 PyObject * obj1 = 0 ;
31930 PyObject * obj2 = 0 ;
31931 PyObject * obj3 = 0 ;
31932 char * kwnames[] = {
31933 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
31934 };
31935
31936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
31938 if (!SWIG_IsOK(res1)) {
31939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
31940 }
31941 arg1 = reinterpret_cast< wxPenList * >(argp1);
31942 {
31943 arg2 = &temp2;
31944 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
31945 }
31946 ecode3 = SWIG_AsVal_int(obj2, &val3);
31947 if (!SWIG_IsOK(ecode3)) {
31948 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
31949 }
31950 arg3 = static_cast< int >(val3);
31951 ecode4 = SWIG_AsVal_int(obj3, &val4);
31952 if (!SWIG_IsOK(ecode4)) {
31953 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
31954 }
31955 arg4 = static_cast< int >(val4);
31956 {
31957 PyThreadState* __tstate = wxPyBeginAllowThreads();
31958 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
31959 wxPyEndAllowThreads(__tstate);
31960 if (PyErr_Occurred()) SWIG_fail;
31961 }
31962 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
31963 return resultobj;
31964fail:
31965 return NULL;
31966}
31967
31968
da91cb0f 31969SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
31970 PyObject *resultobj = 0;
31971 wxPenList *arg1 = (wxPenList *) 0 ;
31972 wxPen *arg2 = (wxPen *) 0 ;
31973 void *argp1 = 0 ;
31974 int res1 = 0 ;
31975 void *argp2 = 0 ;
31976 int res2 = 0 ;
31977 PyObject * obj0 = 0 ;
31978 PyObject * obj1 = 0 ;
31979 char * kwnames[] = {
31980 (char *) "self",(char *) "pen", NULL
31981 };
31982
da91cb0f 31983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
1bd55598
RD
31984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
31985 if (!SWIG_IsOK(res1)) {
da91cb0f 31986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
1bd55598
RD
31987 }
31988 arg1 = reinterpret_cast< wxPenList * >(argp1);
31989 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
31990 if (!SWIG_IsOK(res2)) {
da91cb0f 31991 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
1bd55598
RD
31992 }
31993 arg2 = reinterpret_cast< wxPen * >(argp2);
31994 {
31995 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 31996 (arg1)->AddPen(arg2);
1bd55598
RD
31997 wxPyEndAllowThreads(__tstate);
31998 if (PyErr_Occurred()) SWIG_fail;
31999 }
32000 resultobj = SWIG_Py_Void();
32001 return resultobj;
32002fail:
32003 return NULL;
32004}
32005
32006
da91cb0f 32007SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
32008 PyObject *resultobj = 0;
32009 wxPenList *arg1 = (wxPenList *) 0 ;
da91cb0f 32010 wxPen *arg2 = (wxPen *) 0 ;
1bd55598
RD
32011 void *argp1 = 0 ;
32012 int res1 = 0 ;
da91cb0f
RD
32013 void *argp2 = 0 ;
32014 int res2 = 0 ;
32015 PyObject * obj0 = 0 ;
32016 PyObject * obj1 = 0 ;
32017 char * kwnames[] = {
32018 (char *) "self",(char *) "pen", NULL
32019 };
1bd55598 32020
da91cb0f
RD
32021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
32022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
1bd55598 32023 if (!SWIG_IsOK(res1)) {
da91cb0f 32024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
1bd55598
RD
32025 }
32026 arg1 = reinterpret_cast< wxPenList * >(argp1);
da91cb0f
RD
32027 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
32028 if (!SWIG_IsOK(res2)) {
32029 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
32030 }
32031 arg2 = reinterpret_cast< wxPen * >(argp2);
1bd55598
RD
32032 {
32033 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32034 (arg1)->RemovePen(arg2);
1bd55598
RD
32035 wxPyEndAllowThreads(__tstate);
32036 if (PyErr_Occurred()) SWIG_fail;
32037 }
da91cb0f 32038 resultobj = SWIG_Py_Void();
1bd55598
RD
32039 return resultobj;
32040fail:
32041 return NULL;
32042}
32043
32044
32045SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32046 PyObject *obj;
32047 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32048 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
32049 return SWIG_Py_Void();
32050}
32051
da91cb0f
RD
32052SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32053 PyObject *resultobj = 0;
32054 wxBrushList *arg1 = (wxBrushList *) 0 ;
32055 wxColour *arg2 = 0 ;
32056 int arg3 = (int) wxSOLID ;
32057 wxBrush *result = 0 ;
32058 void *argp1 = 0 ;
32059 int res1 = 0 ;
32060 wxColour temp2 ;
32061 int val3 ;
32062 int ecode3 = 0 ;
32063 PyObject * obj0 = 0 ;
32064 PyObject * obj1 = 0 ;
32065 PyObject * obj2 = 0 ;
32066 char * kwnames[] = {
32067 (char *) "self",(char *) "colour",(char *) "style", NULL
32068 };
32069
32070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32072 if (!SWIG_IsOK(res1)) {
32073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32074 }
32075 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32076 {
32077 arg2 = &temp2;
32078 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32079 }
32080 if (obj2) {
32081 ecode3 = SWIG_AsVal_int(obj2, &val3);
32082 if (!SWIG_IsOK(ecode3)) {
32083 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
32084 }
32085 arg3 = static_cast< int >(val3);
32086 }
32087 {
32088 PyThreadState* __tstate = wxPyBeginAllowThreads();
32089 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
32090 wxPyEndAllowThreads(__tstate);
32091 if (PyErr_Occurred()) SWIG_fail;
32092 }
32093 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
32094 return resultobj;
32095fail:
32096 return NULL;
32097}
32098
32099
1bd55598
RD
32100SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32101 PyObject *resultobj = 0;
32102 wxBrushList *arg1 = (wxBrushList *) 0 ;
32103 wxBrush *arg2 = (wxBrush *) 0 ;
32104 void *argp1 = 0 ;
32105 int res1 = 0 ;
32106 void *argp2 = 0 ;
32107 int res2 = 0 ;
32108 PyObject * obj0 = 0 ;
32109 PyObject * obj1 = 0 ;
32110 char * kwnames[] = {
32111 (char *) "self",(char *) "brush", NULL
32112 };
32113
32114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32116 if (!SWIG_IsOK(res1)) {
32117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32118 }
32119 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32120 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32121 if (!SWIG_IsOK(res2)) {
32122 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32123 }
32124 arg2 = reinterpret_cast< wxBrush * >(argp2);
32125 {
32126 PyThreadState* __tstate = wxPyBeginAllowThreads();
32127 (arg1)->AddBrush(arg2);
32128 wxPyEndAllowThreads(__tstate);
32129 if (PyErr_Occurred()) SWIG_fail;
32130 }
32131 resultobj = SWIG_Py_Void();
32132 return resultobj;
32133fail:
32134 return NULL;
32135}
32136
32137
da91cb0f 32138SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
32139 PyObject *resultobj = 0;
32140 wxBrushList *arg1 = (wxBrushList *) 0 ;
da91cb0f 32141 wxBrush *arg2 = (wxBrush *) 0 ;
1bd55598
RD
32142 void *argp1 = 0 ;
32143 int res1 = 0 ;
da91cb0f
RD
32144 void *argp2 = 0 ;
32145 int res2 = 0 ;
32146 PyObject * obj0 = 0 ;
32147 PyObject * obj1 = 0 ;
32148 char * kwnames[] = {
32149 (char *) "self",(char *) "brush", NULL
32150 };
32151
32152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32154 if (!SWIG_IsOK(res1)) {
32155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32156 }
32157 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32158 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32159 if (!SWIG_IsOK(res2)) {
32160 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32161 }
32162 arg2 = reinterpret_cast< wxBrush * >(argp2);
32163 {
32164 PyThreadState* __tstate = wxPyBeginAllowThreads();
32165 (arg1)->RemoveBrush(arg2);
32166 wxPyEndAllowThreads(__tstate);
32167 if (PyErr_Occurred()) SWIG_fail;
32168 }
32169 resultobj = SWIG_Py_Void();
32170 return resultobj;
32171fail:
32172 return NULL;
32173}
32174
32175
32176SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32177 PyObject *obj;
32178 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32179 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
32180 return SWIG_Py_Void();
32181}
32182
32183SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32184 PyObject *resultobj = 0;
32185 wxFontList *arg1 = (wxFontList *) 0 ;
32186 int arg2 ;
32187 int arg3 ;
32188 int arg4 ;
32189 int arg5 ;
32190 bool arg6 = (bool) false ;
32191 wxString const &arg7_defvalue = wxPyEmptyString ;
32192 wxString *arg7 = (wxString *) &arg7_defvalue ;
32193 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
32194 wxFont *result = 0 ;
32195 void *argp1 = 0 ;
32196 int res1 = 0 ;
32197 int val2 ;
32198 int ecode2 = 0 ;
1bd55598
RD
32199 int val3 ;
32200 int ecode3 = 0 ;
da91cb0f
RD
32201 int val4 ;
32202 int ecode4 = 0 ;
32203 int val5 ;
32204 int ecode5 = 0 ;
32205 bool val6 ;
32206 int ecode6 = 0 ;
32207 bool temp7 = false ;
32208 int val8 ;
32209 int ecode8 = 0 ;
1bd55598
RD
32210 PyObject * obj0 = 0 ;
32211 PyObject * obj1 = 0 ;
32212 PyObject * obj2 = 0 ;
da91cb0f
RD
32213 PyObject * obj3 = 0 ;
32214 PyObject * obj4 = 0 ;
32215 PyObject * obj5 = 0 ;
32216 PyObject * obj6 = 0 ;
32217 PyObject * obj7 = 0 ;
1bd55598 32218 char * kwnames[] = {
da91cb0f 32219 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
1bd55598
RD
32220 };
32221
da91cb0f
RD
32222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 32224 if (!SWIG_IsOK(res1)) {
da91cb0f 32225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 32226 }
da91cb0f
RD
32227 arg1 = reinterpret_cast< wxFontList * >(argp1);
32228 ecode2 = SWIG_AsVal_int(obj1, &val2);
32229 if (!SWIG_IsOK(ecode2)) {
32230 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
32231 }
32232 arg2 = static_cast< int >(val2);
32233 ecode3 = SWIG_AsVal_int(obj2, &val3);
32234 if (!SWIG_IsOK(ecode3)) {
32235 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
32236 }
32237 arg3 = static_cast< int >(val3);
32238 ecode4 = SWIG_AsVal_int(obj3, &val4);
32239 if (!SWIG_IsOK(ecode4)) {
32240 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
32241 }
32242 arg4 = static_cast< int >(val4);
32243 ecode5 = SWIG_AsVal_int(obj4, &val5);
32244 if (!SWIG_IsOK(ecode5)) {
32245 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
32246 }
32247 arg5 = static_cast< int >(val5);
32248 if (obj5) {
32249 ecode6 = SWIG_AsVal_bool(obj5, &val6);
32250 if (!SWIG_IsOK(ecode6)) {
32251 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
32252 }
32253 arg6 = static_cast< bool >(val6);
1bd55598 32254 }
da91cb0f
RD
32255 if (obj6) {
32256 {
32257 arg7 = wxString_in_helper(obj6);
32258 if (arg7 == NULL) SWIG_fail;
32259 temp7 = true;
32260 }
32261 }
32262 if (obj7) {
32263 ecode8 = SWIG_AsVal_int(obj7, &val8);
32264 if (!SWIG_IsOK(ecode8)) {
32265 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
1bd55598 32266 }
da91cb0f 32267 arg8 = static_cast< wxFontEncoding >(val8);
1bd55598
RD
32268 }
32269 {
32270 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32271 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
1bd55598
RD
32272 wxPyEndAllowThreads(__tstate);
32273 if (PyErr_Occurred()) SWIG_fail;
32274 }
da91cb0f
RD
32275 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32276 {
32277 if (temp7)
32278 delete arg7;
32279 }
1bd55598
RD
32280 return resultobj;
32281fail:
da91cb0f
RD
32282 {
32283 if (temp7)
32284 delete arg7;
32285 }
1bd55598
RD
32286 return NULL;
32287}
32288
32289
da91cb0f 32290SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 32291 PyObject *resultobj = 0;
da91cb0f
RD
32292 wxFontList *arg1 = (wxFontList *) 0 ;
32293 wxFont *arg2 = (wxFont *) 0 ;
1bd55598
RD
32294 void *argp1 = 0 ;
32295 int res1 = 0 ;
32296 void *argp2 = 0 ;
32297 int res2 = 0 ;
32298 PyObject * obj0 = 0 ;
32299 PyObject * obj1 = 0 ;
32300 char * kwnames[] = {
da91cb0f 32301 (char *) "self",(char *) "font", NULL
1bd55598
RD
32302 };
32303
da91cb0f
RD
32304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
32305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 32306 if (!SWIG_IsOK(res1)) {
da91cb0f 32307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 32308 }
da91cb0f
RD
32309 arg1 = reinterpret_cast< wxFontList * >(argp1);
32310 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
1bd55598 32311 if (!SWIG_IsOK(res2)) {
da91cb0f 32312 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
1bd55598 32313 }
da91cb0f 32314 arg2 = reinterpret_cast< wxFont * >(argp2);
1bd55598
RD
32315 {
32316 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32317 (arg1)->AddFont(arg2);
1bd55598
RD
32318 wxPyEndAllowThreads(__tstate);
32319 if (PyErr_Occurred()) SWIG_fail;
32320 }
32321 resultobj = SWIG_Py_Void();
32322 return resultobj;
32323fail:
32324 return NULL;
32325}
32326
32327
da91cb0f 32328SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 32329 PyObject *resultobj = 0;
da91cb0f
RD
32330 wxFontList *arg1 = (wxFontList *) 0 ;
32331 wxFont *arg2 = (wxFont *) 0 ;
1bd55598
RD
32332 void *argp1 = 0 ;
32333 int res1 = 0 ;
da91cb0f
RD
32334 void *argp2 = 0 ;
32335 int res2 = 0 ;
32336 PyObject * obj0 = 0 ;
32337 PyObject * obj1 = 0 ;
32338 char * kwnames[] = {
32339 (char *) "self",(char *) "font", NULL
32340 };
1bd55598 32341
da91cb0f
RD
32342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
32343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 32344 if (!SWIG_IsOK(res1)) {
da91cb0f 32345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 32346 }
da91cb0f
RD
32347 arg1 = reinterpret_cast< wxFontList * >(argp1);
32348 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
32349 if (!SWIG_IsOK(res2)) {
32350 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
32351 }
32352 arg2 = reinterpret_cast< wxFont * >(argp2);
1bd55598
RD
32353 {
32354 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32355 (arg1)->RemoveFont(arg2);
1bd55598
RD
32356 wxPyEndAllowThreads(__tstate);
32357 if (PyErr_Occurred()) SWIG_fail;
32358 }
da91cb0f 32359 resultobj = SWIG_Py_Void();
1bd55598
RD
32360 return resultobj;
32361fail:
32362 return NULL;
32363}
32364
32365
da91cb0f 32366SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
32367 PyObject *obj;
32368 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
da91cb0f 32369 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
1bd55598
RD
32370 return SWIG_Py_Void();
32371}
32372
32373SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32374 PyObject *resultobj = 0;
32375 wxColourDatabase *result = 0 ;
32376
32377 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
32378 {
32379 if (!wxPyCheckForApp()) SWIG_fail;
32380 PyThreadState* __tstate = wxPyBeginAllowThreads();
32381 result = (wxColourDatabase *)new wxColourDatabase();
32382 wxPyEndAllowThreads(__tstate);
32383 if (PyErr_Occurred()) SWIG_fail;
32384 }
32385 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
32386 return resultobj;
32387fail:
32388 return NULL;
32389}
32390
32391
32392SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32393 PyObject *resultobj = 0;
32394 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32395 void *argp1 = 0 ;
32396 int res1 = 0 ;
32397 PyObject *swig_obj[1] ;
32398
32399 if (!args) SWIG_fail;
32400 swig_obj[0] = args;
32401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
32402 if (!SWIG_IsOK(res1)) {
32403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32404 }
32405 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32406 {
32407 PyThreadState* __tstate = wxPyBeginAllowThreads();
32408 delete arg1;
32409
32410 wxPyEndAllowThreads(__tstate);
32411 if (PyErr_Occurred()) SWIG_fail;
32412 }
32413 resultobj = SWIG_Py_Void();
32414 return resultobj;
32415fail:
32416 return NULL;
32417}
32418
32419
32420SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32421 PyObject *resultobj = 0;
32422 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32423 wxString *arg2 = 0 ;
32424 wxColour result;
32425 void *argp1 = 0 ;
32426 int res1 = 0 ;
32427 bool temp2 = false ;
32428 PyObject * obj0 = 0 ;
32429 PyObject * obj1 = 0 ;
32430 char * kwnames[] = {
32431 (char *) "self",(char *) "name", NULL
32432 };
32433
32434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
32435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32436 if (!SWIG_IsOK(res1)) {
32437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32438 }
32439 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32440 {
32441 arg2 = wxString_in_helper(obj1);
32442 if (arg2 == NULL) SWIG_fail;
32443 temp2 = true;
32444 }
32445 {
32446 PyThreadState* __tstate = wxPyBeginAllowThreads();
32447 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
32448 wxPyEndAllowThreads(__tstate);
32449 if (PyErr_Occurred()) SWIG_fail;
32450 }
32451 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32452 {
32453 if (temp2)
32454 delete arg2;
32455 }
32456 return resultobj;
32457fail:
32458 {
32459 if (temp2)
32460 delete arg2;
32461 }
32462 return NULL;
32463}
32464
32465
32466SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32467 PyObject *resultobj = 0;
32468 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32469 wxColour *arg2 = 0 ;
32470 wxString result;
32471 void *argp1 = 0 ;
32472 int res1 = 0 ;
32473 wxColour temp2 ;
32474 PyObject * obj0 = 0 ;
32475 PyObject * obj1 = 0 ;
32476 char * kwnames[] = {
32477 (char *) "self",(char *) "colour", NULL
32478 };
32479
32480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
32481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32482 if (!SWIG_IsOK(res1)) {
32483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32484 }
32485 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32486 {
32487 arg2 = &temp2;
32488 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32489 }
32490 {
32491 PyThreadState* __tstate = wxPyBeginAllowThreads();
32492 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
32493 wxPyEndAllowThreads(__tstate);
32494 if (PyErr_Occurred()) SWIG_fail;
32495 }
32496 {
32497#if wxUSE_UNICODE
32498 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32499#else
32500 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32501#endif
32502 }
32503 return resultobj;
32504fail:
32505 return NULL;
32506}
32507
32508
32509SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32510 PyObject *resultobj = 0;
32511 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32512 wxString *arg2 = 0 ;
32513 wxColour *arg3 = 0 ;
32514 void *argp1 = 0 ;
32515 int res1 = 0 ;
32516 bool temp2 = false ;
32517 wxColour temp3 ;
32518 PyObject * obj0 = 0 ;
32519 PyObject * obj1 = 0 ;
32520 PyObject * obj2 = 0 ;
32521 char * kwnames[] = {
32522 (char *) "self",(char *) "name",(char *) "colour", NULL
32523 };
32524
32525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32527 if (!SWIG_IsOK(res1)) {
32528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32529 }
32530 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32531 {
32532 arg2 = wxString_in_helper(obj1);
32533 if (arg2 == NULL) SWIG_fail;
32534 temp2 = true;
32535 }
32536 {
32537 arg3 = &temp3;
32538 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32539 }
32540 {
32541 PyThreadState* __tstate = wxPyBeginAllowThreads();
32542 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
32543 wxPyEndAllowThreads(__tstate);
32544 if (PyErr_Occurred()) SWIG_fail;
32545 }
32546 resultobj = SWIG_Py_Void();
32547 {
32548 if (temp2)
32549 delete arg2;
32550 }
32551 return resultobj;
32552fail:
32553 {
32554 if (temp2)
32555 delete arg2;
32556 }
32557 return NULL;
32558}
32559
32560
32561SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32562 PyObject *resultobj = 0;
32563 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32564 wxString *arg2 = 0 ;
32565 int arg3 ;
32566 int arg4 ;
32567 int arg5 ;
32568 void *argp1 = 0 ;
32569 int res1 = 0 ;
32570 bool temp2 = false ;
32571 int val3 ;
32572 int ecode3 = 0 ;
32573 int val4 ;
32574 int ecode4 = 0 ;
da91cb0f
RD
32575 int val5 ;
32576 int ecode5 = 0 ;
1bd55598
RD
32577 PyObject * obj0 = 0 ;
32578 PyObject * obj1 = 0 ;
32579 PyObject * obj2 = 0 ;
32580 PyObject * obj3 = 0 ;
32581 PyObject * obj4 = 0 ;
1bd55598 32582 char * kwnames[] = {
da91cb0f 32583 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
1bd55598
RD
32584 };
32585
da91cb0f
RD
32586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
1bd55598 32588 if (!SWIG_IsOK(res1)) {
da91cb0f
RD
32589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32590 }
32591 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32592 {
32593 arg2 = wxString_in_helper(obj1);
32594 if (arg2 == NULL) SWIG_fail;
32595 temp2 = true;
1bd55598 32596 }
1bd55598
RD
32597 ecode3 = SWIG_AsVal_int(obj2, &val3);
32598 if (!SWIG_IsOK(ecode3)) {
da91cb0f 32599 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
1bd55598
RD
32600 }
32601 arg3 = static_cast< int >(val3);
32602 ecode4 = SWIG_AsVal_int(obj3, &val4);
32603 if (!SWIG_IsOK(ecode4)) {
da91cb0f 32604 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
1bd55598
RD
32605 }
32606 arg4 = static_cast< int >(val4);
32607 ecode5 = SWIG_AsVal_int(obj4, &val5);
32608 if (!SWIG_IsOK(ecode5)) {
da91cb0f 32609 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
1bd55598
RD
32610 }
32611 arg5 = static_cast< int >(val5);
1bd55598
RD
32612 {
32613 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32614 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
1bd55598
RD
32615 wxPyEndAllowThreads(__tstate);
32616 if (PyErr_Occurred()) SWIG_fail;
32617 }
da91cb0f 32618 resultobj = SWIG_Py_Void();
1bd55598 32619 {
da91cb0f
RD
32620 if (temp2)
32621 delete arg2;
1bd55598
RD
32622 }
32623 return resultobj;
32624fail:
32625 {
da91cb0f
RD
32626 if (temp2)
32627 delete arg2;
1bd55598
RD
32628 }
32629 return NULL;
32630}
32631
32632
da91cb0f
RD
32633SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32634 PyObject *obj;
32635 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32636 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
32637 return SWIG_Py_Void();
32638}
32639
32640SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32641 return SWIG_Python_InitShadowInstance(args);
32642}
32643
32644SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 32645 PyObject *resultobj = 0;
da91cb0f 32646 wxFontList *result = 0 ;
1bd55598 32647
da91cb0f 32648 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
1bd55598
RD
32649 {
32650 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32651 result = (wxFontList *)_wxPyInitTheFontList();
1bd55598
RD
32652 wxPyEndAllowThreads(__tstate);
32653 if (PyErr_Occurred()) SWIG_fail;
32654 }
da91cb0f 32655 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598
RD
32656 return resultobj;
32657fail:
32658 return NULL;
32659}
32660
32661
da91cb0f 32662SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 32663 PyObject *resultobj = 0;
da91cb0f 32664 wxPenList *result = 0 ;
1bd55598 32665
da91cb0f 32666 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
1bd55598
RD
32667 {
32668 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32669 result = (wxPenList *)_wxPyInitThePenList();
1bd55598
RD
32670 wxPyEndAllowThreads(__tstate);
32671 if (PyErr_Occurred()) SWIG_fail;
32672 }
da91cb0f 32673 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
1bd55598
RD
32674 return resultobj;
32675fail:
32676 return NULL;
32677}
32678
32679
da91cb0f
RD
32680SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32681 PyObject *resultobj = 0;
32682 wxBrushList *result = 0 ;
1bd55598 32683
da91cb0f
RD
32684 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
32685 {
32686 PyThreadState* __tstate = wxPyBeginAllowThreads();
32687 result = (wxBrushList *)_wxPyInitTheBrushList();
32688 wxPyEndAllowThreads(__tstate);
32689 if (PyErr_Occurred()) SWIG_fail;
32690 }
32691 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
32692 return resultobj;
32693fail:
32694 return NULL;
1bd55598
RD
32695}
32696
32697
da91cb0f
RD
32698SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32699 PyObject *resultobj = 0;
32700 wxColourDatabase *result = 0 ;
1bd55598 32701
da91cb0f
RD
32702 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
32703 {
32704 PyThreadState* __tstate = wxPyBeginAllowThreads();
32705 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
32706 wxPyEndAllowThreads(__tstate);
32707 if (PyErr_Occurred()) SWIG_fail;
32708 }
32709 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32710 return resultobj;
32711fail:
32712 return NULL;
1bd55598
RD
32713}
32714
32715
32716SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32717 PyObject *resultobj = 0;
32718 wxEffects *result = 0 ;
32719
32720 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
32721 {
32722 PyThreadState* __tstate = wxPyBeginAllowThreads();
32723 result = (wxEffects *)new wxEffects();
32724 wxPyEndAllowThreads(__tstate);
32725 if (PyErr_Occurred()) SWIG_fail;
32726 }
32727 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
32728 return resultobj;
32729fail:
32730 return NULL;
32731}
32732
32733
32734SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32735 PyObject *resultobj = 0;
32736 wxEffects *arg1 = (wxEffects *) 0 ;
32737 wxColour result;
32738 void *argp1 = 0 ;
32739 int res1 = 0 ;
32740 PyObject *swig_obj[1] ;
32741
32742 if (!args) SWIG_fail;
32743 swig_obj[0] = args;
32744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32745 if (!SWIG_IsOK(res1)) {
32746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
32747 }
32748 arg1 = reinterpret_cast< wxEffects * >(argp1);
32749 {
32750 PyThreadState* __tstate = wxPyBeginAllowThreads();
32751 result = ((wxEffects const *)arg1)->GetHighlightColour();
32752 wxPyEndAllowThreads(__tstate);
32753 if (PyErr_Occurred()) SWIG_fail;
32754 }
32755 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32756 return resultobj;
32757fail:
32758 return NULL;
32759}
32760
32761
32762SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32763 PyObject *resultobj = 0;
32764 wxEffects *arg1 = (wxEffects *) 0 ;
32765 wxColour result;
32766 void *argp1 = 0 ;
32767 int res1 = 0 ;
32768 PyObject *swig_obj[1] ;
32769
32770 if (!args) SWIG_fail;
32771 swig_obj[0] = args;
32772 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32773 if (!SWIG_IsOK(res1)) {
32774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32775 }
32776 arg1 = reinterpret_cast< wxEffects * >(argp1);
32777 {
32778 PyThreadState* __tstate = wxPyBeginAllowThreads();
32779 result = ((wxEffects const *)arg1)->GetLightShadow();
32780 wxPyEndAllowThreads(__tstate);
32781 if (PyErr_Occurred()) SWIG_fail;
32782 }
32783 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32784 return resultobj;
32785fail:
32786 return NULL;
32787}
32788
32789
32790SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32791 PyObject *resultobj = 0;
32792 wxEffects *arg1 = (wxEffects *) 0 ;
32793 wxColour result;
32794 void *argp1 = 0 ;
32795 int res1 = 0 ;
32796 PyObject *swig_obj[1] ;
32797
32798 if (!args) SWIG_fail;
32799 swig_obj[0] = args;
32800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32801 if (!SWIG_IsOK(res1)) {
32802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
32803 }
32804 arg1 = reinterpret_cast< wxEffects * >(argp1);
32805 {
32806 PyThreadState* __tstate = wxPyBeginAllowThreads();
32807 result = ((wxEffects const *)arg1)->GetFaceColour();
32808 wxPyEndAllowThreads(__tstate);
32809 if (PyErr_Occurred()) SWIG_fail;
32810 }
32811 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32812 return resultobj;
32813fail:
32814 return NULL;
32815}
32816
32817
32818SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32819 PyObject *resultobj = 0;
32820 wxEffects *arg1 = (wxEffects *) 0 ;
32821 wxColour result;
32822 void *argp1 = 0 ;
32823 int res1 = 0 ;
32824 PyObject *swig_obj[1] ;
32825
32826 if (!args) SWIG_fail;
32827 swig_obj[0] = args;
32828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32829 if (!SWIG_IsOK(res1)) {
32830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32831 }
32832 arg1 = reinterpret_cast< wxEffects * >(argp1);
32833 {
32834 PyThreadState* __tstate = wxPyBeginAllowThreads();
32835 result = ((wxEffects const *)arg1)->GetMediumShadow();
32836 wxPyEndAllowThreads(__tstate);
32837 if (PyErr_Occurred()) SWIG_fail;
32838 }
32839 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32840 return resultobj;
32841fail:
32842 return NULL;
32843}
32844
32845
32846SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32847 PyObject *resultobj = 0;
32848 wxEffects *arg1 = (wxEffects *) 0 ;
32849 wxColour result;
32850 void *argp1 = 0 ;
32851 int res1 = 0 ;
32852 PyObject *swig_obj[1] ;
32853
32854 if (!args) SWIG_fail;
32855 swig_obj[0] = args;
32856 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32857 if (!SWIG_IsOK(res1)) {
32858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32859 }
32860 arg1 = reinterpret_cast< wxEffects * >(argp1);
32861 {
32862 PyThreadState* __tstate = wxPyBeginAllowThreads();
32863 result = ((wxEffects const *)arg1)->GetDarkShadow();
32864 wxPyEndAllowThreads(__tstate);
32865 if (PyErr_Occurred()) SWIG_fail;
32866 }
32867 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32868 return resultobj;
32869fail:
32870 return NULL;
32871}
32872
32873
32874SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32875 PyObject *resultobj = 0;
32876 wxEffects *arg1 = (wxEffects *) 0 ;
32877 wxColour *arg2 = 0 ;
32878 void *argp1 = 0 ;
32879 int res1 = 0 ;
32880 wxColour temp2 ;
32881 PyObject * obj0 = 0 ;
32882 PyObject * obj1 = 0 ;
32883 char * kwnames[] = {
32884 (char *) "self",(char *) "c", NULL
32885 };
32886
32887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
32888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32889 if (!SWIG_IsOK(res1)) {
32890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
32891 }
32892 arg1 = reinterpret_cast< wxEffects * >(argp1);
32893 {
32894 arg2 = &temp2;
32895 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32896 }
32897 {
32898 PyThreadState* __tstate = wxPyBeginAllowThreads();
32899 (arg1)->SetHighlightColour((wxColour const &)*arg2);
32900 wxPyEndAllowThreads(__tstate);
32901 if (PyErr_Occurred()) SWIG_fail;
32902 }
32903 resultobj = SWIG_Py_Void();
32904 return resultobj;
32905fail:
32906 return NULL;
32907}
32908
32909
32910SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32911 PyObject *resultobj = 0;
32912 wxEffects *arg1 = (wxEffects *) 0 ;
32913 wxColour *arg2 = 0 ;
32914 void *argp1 = 0 ;
32915 int res1 = 0 ;
32916 wxColour temp2 ;
32917 PyObject * obj0 = 0 ;
32918 PyObject * obj1 = 0 ;
32919 char * kwnames[] = {
32920 (char *) "self",(char *) "c", NULL
32921 };
32922
32923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
32924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32925 if (!SWIG_IsOK(res1)) {
32926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
32927 }
32928 arg1 = reinterpret_cast< wxEffects * >(argp1);
32929 {
32930 arg2 = &temp2;
32931 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32932 }
32933 {
32934 PyThreadState* __tstate = wxPyBeginAllowThreads();
32935 (arg1)->SetLightShadow((wxColour const &)*arg2);
32936 wxPyEndAllowThreads(__tstate);
32937 if (PyErr_Occurred()) SWIG_fail;
32938 }
32939 resultobj = SWIG_Py_Void();
32940 return resultobj;
32941fail:
32942 return NULL;
32943}
32944
32945
32946SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32947 PyObject *resultobj = 0;
32948 wxEffects *arg1 = (wxEffects *) 0 ;
32949 wxColour *arg2 = 0 ;
32950 void *argp1 = 0 ;
32951 int res1 = 0 ;
32952 wxColour temp2 ;
32953 PyObject * obj0 = 0 ;
32954 PyObject * obj1 = 0 ;
32955 char * kwnames[] = {
32956 (char *) "self",(char *) "c", NULL
32957 };
32958
32959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
32960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32961 if (!SWIG_IsOK(res1)) {
32962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
32963 }
32964 arg1 = reinterpret_cast< wxEffects * >(argp1);
32965 {
32966 arg2 = &temp2;
32967 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32968 }
32969 {
32970 PyThreadState* __tstate = wxPyBeginAllowThreads();
32971 (arg1)->SetFaceColour((wxColour const &)*arg2);
32972 wxPyEndAllowThreads(__tstate);
32973 if (PyErr_Occurred()) SWIG_fail;
32974 }
32975 resultobj = SWIG_Py_Void();
32976 return resultobj;
32977fail:
32978 return NULL;
32979}
32980
32981
32982SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32983 PyObject *resultobj = 0;
32984 wxEffects *arg1 = (wxEffects *) 0 ;
32985 wxColour *arg2 = 0 ;
32986 void *argp1 = 0 ;
32987 int res1 = 0 ;
32988 wxColour temp2 ;
32989 PyObject * obj0 = 0 ;
32990 PyObject * obj1 = 0 ;
32991 char * kwnames[] = {
32992 (char *) "self",(char *) "c", NULL
32993 };
32994
32995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
32996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32997 if (!SWIG_IsOK(res1)) {
32998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
32999 }
33000 arg1 = reinterpret_cast< wxEffects * >(argp1);
33001 {
33002 arg2 = &temp2;
33003 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33004 }
33005 {
33006 PyThreadState* __tstate = wxPyBeginAllowThreads();
33007 (arg1)->SetMediumShadow((wxColour const &)*arg2);
33008 wxPyEndAllowThreads(__tstate);
33009 if (PyErr_Occurred()) SWIG_fail;
33010 }
33011 resultobj = SWIG_Py_Void();
33012 return resultobj;
33013fail:
33014 return NULL;
33015}
33016
33017
33018SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33019 PyObject *resultobj = 0;
33020 wxEffects *arg1 = (wxEffects *) 0 ;
33021 wxColour *arg2 = 0 ;
33022 void *argp1 = 0 ;
33023 int res1 = 0 ;
33024 wxColour temp2 ;
33025 PyObject * obj0 = 0 ;
33026 PyObject * obj1 = 0 ;
33027 char * kwnames[] = {
33028 (char *) "self",(char *) "c", NULL
33029 };
33030
33031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33033 if (!SWIG_IsOK(res1)) {
33034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33035 }
33036 arg1 = reinterpret_cast< wxEffects * >(argp1);
33037 {
33038 arg2 = &temp2;
33039 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33040 }
33041 {
33042 PyThreadState* __tstate = wxPyBeginAllowThreads();
33043 (arg1)->SetDarkShadow((wxColour const &)*arg2);
33044 wxPyEndAllowThreads(__tstate);
33045 if (PyErr_Occurred()) SWIG_fail;
33046 }
33047 resultobj = SWIG_Py_Void();
33048 return resultobj;
33049fail:
33050 return NULL;
33051}
33052
33053
33054SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33055 PyObject *resultobj = 0;
33056 wxEffects *arg1 = (wxEffects *) 0 ;
33057 wxColour *arg2 = 0 ;
33058 wxColour *arg3 = 0 ;
33059 wxColour *arg4 = 0 ;
33060 wxColour *arg5 = 0 ;
33061 wxColour *arg6 = 0 ;
33062 void *argp1 = 0 ;
33063 int res1 = 0 ;
33064 wxColour temp2 ;
33065 wxColour temp3 ;
33066 wxColour temp4 ;
33067 wxColour temp5 ;
33068 wxColour temp6 ;
33069 PyObject * obj0 = 0 ;
33070 PyObject * obj1 = 0 ;
33071 PyObject * obj2 = 0 ;
33072 PyObject * obj3 = 0 ;
33073 PyObject * obj4 = 0 ;
33074 PyObject * obj5 = 0 ;
33075 char * kwnames[] = {
33076 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
33077 };
33078
33079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33081 if (!SWIG_IsOK(res1)) {
33082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
33083 }
33084 arg1 = reinterpret_cast< wxEffects * >(argp1);
33085 {
33086 arg2 = &temp2;
33087 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33088 }
33089 {
33090 arg3 = &temp3;
33091 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
33092 }
33093 {
33094 arg4 = &temp4;
33095 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
33096 }
33097 {
33098 arg5 = &temp5;
33099 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
33100 }
33101 {
33102 arg6 = &temp6;
33103 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
33104 }
33105 {
33106 PyThreadState* __tstate = wxPyBeginAllowThreads();
33107 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
33108 wxPyEndAllowThreads(__tstate);
33109 if (PyErr_Occurred()) SWIG_fail;
33110 }
33111 resultobj = SWIG_Py_Void();
33112 return resultobj;
33113fail:
33114 return NULL;
33115}
33116
33117
33118SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33119 PyObject *resultobj = 0;
33120 wxEffects *arg1 = (wxEffects *) 0 ;
33121 wxDC *arg2 = 0 ;
33122 wxRect *arg3 = 0 ;
33123 int arg4 = (int) 1 ;
33124 void *argp1 = 0 ;
33125 int res1 = 0 ;
33126 void *argp2 = 0 ;
33127 int res2 = 0 ;
33128 wxRect temp3 ;
33129 int val4 ;
33130 int ecode4 = 0 ;
33131 PyObject * obj0 = 0 ;
33132 PyObject * obj1 = 0 ;
33133 PyObject * obj2 = 0 ;
33134 PyObject * obj3 = 0 ;
33135 char * kwnames[] = {
33136 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
33137 };
33138
33139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33141 if (!SWIG_IsOK(res1)) {
33142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
33143 }
33144 arg1 = reinterpret_cast< wxEffects * >(argp1);
33145 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
33146 if (!SWIG_IsOK(res2)) {
33147 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33148 }
33149 if (!argp2) {
33150 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33151 }
33152 arg2 = reinterpret_cast< wxDC * >(argp2);
33153 {
33154 arg3 = &temp3;
33155 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
33156 }
33157 if (obj3) {
33158 ecode4 = SWIG_AsVal_int(obj3, &val4);
33159 if (!SWIG_IsOK(ecode4)) {
33160 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
33161 }
33162 arg4 = static_cast< int >(val4);
33163 }
33164 {
33165 PyThreadState* __tstate = wxPyBeginAllowThreads();
33166 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
33167 wxPyEndAllowThreads(__tstate);
33168 if (PyErr_Occurred()) SWIG_fail;
33169 }
33170 resultobj = SWIG_Py_Void();
33171 return resultobj;
33172fail:
33173 return NULL;
33174}
33175
33176
33177SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33178 PyObject *resultobj = 0;
33179 wxEffects *arg1 = (wxEffects *) 0 ;
33180 wxRect *arg2 = 0 ;
33181 wxDC *arg3 = 0 ;
33182 wxBitmap *arg4 = 0 ;
33183 bool result;
33184 void *argp1 = 0 ;
33185 int res1 = 0 ;
33186 wxRect temp2 ;
33187 void *argp3 = 0 ;
33188 int res3 = 0 ;
33189 void *argp4 = 0 ;
33190 int res4 = 0 ;
33191 PyObject * obj0 = 0 ;
33192 PyObject * obj1 = 0 ;
33193 PyObject * obj2 = 0 ;
33194 PyObject * obj3 = 0 ;
33195 char * kwnames[] = {
33196 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
33197 };
33198
33199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33201 if (!SWIG_IsOK(res1)) {
33202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
33203 }
33204 arg1 = reinterpret_cast< wxEffects * >(argp1);
33205 {
33206 arg2 = &temp2;
33207 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33208 }
33209 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33210 if (!SWIG_IsOK(res3)) {
33211 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33212 }
33213 if (!argp3) {
33214 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33215 }
33216 arg3 = reinterpret_cast< wxDC * >(argp3);
33217 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
33218 if (!SWIG_IsOK(res4)) {
33219 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33220 }
33221 if (!argp4) {
33222 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33223 }
33224 arg4 = reinterpret_cast< wxBitmap * >(argp4);
33225 {
33226 PyThreadState* __tstate = wxPyBeginAllowThreads();
33227 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
33228 wxPyEndAllowThreads(__tstate);
33229 if (PyErr_Occurred()) SWIG_fail;
33230 }
33231 {
33232 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33233 }
33234 return resultobj;
33235fail:
33236 return NULL;
33237}
33238
33239
33240SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33241 PyObject *obj;
33242 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33243 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
33244 return SWIG_Py_Void();
33245}
33246
33247SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33248 return SWIG_Python_InitShadowInstance(args);
33249}
33250
33251SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33252 PyObject *resultobj = 0;
33253 int arg1 ;
33254 int arg2 ;
33255 bool arg3 ;
33256 wxSplitterRenderParams *result = 0 ;
33257 int val1 ;
33258 int ecode1 = 0 ;
33259 int val2 ;
33260 int ecode2 = 0 ;
33261 bool val3 ;
33262 int ecode3 = 0 ;
33263 PyObject * obj0 = 0 ;
33264 PyObject * obj1 = 0 ;
33265 PyObject * obj2 = 0 ;
33266 char * kwnames[] = {
33267 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
33268 };
33269
33270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33271 ecode1 = SWIG_AsVal_int(obj0, &val1);
33272 if (!SWIG_IsOK(ecode1)) {
33273 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
33274 }
33275 arg1 = static_cast< int >(val1);
33276 ecode2 = SWIG_AsVal_int(obj1, &val2);
33277 if (!SWIG_IsOK(ecode2)) {
33278 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
33279 }
33280 arg2 = static_cast< int >(val2);
33281 ecode3 = SWIG_AsVal_bool(obj2, &val3);
33282 if (!SWIG_IsOK(ecode3)) {
33283 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
33284 }
33285 arg3 = static_cast< bool >(val3);
33286 {
33287 PyThreadState* __tstate = wxPyBeginAllowThreads();
33288 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
33289 wxPyEndAllowThreads(__tstate);
33290 if (PyErr_Occurred()) SWIG_fail;
33291 }
33292 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
33293 return resultobj;
33294fail:
33295 return NULL;
33296}
33297
33298
33299SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33300 PyObject *resultobj = 0;
33301 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33302 void *argp1 = 0 ;
33303 int res1 = 0 ;
33304 PyObject *swig_obj[1] ;
33305
33306 if (!args) SWIG_fail;
33307 swig_obj[0] = args;
33308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
33309 if (!SWIG_IsOK(res1)) {
33310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33311 }
33312 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33313 {
33314 PyThreadState* __tstate = wxPyBeginAllowThreads();
33315 delete arg1;
33316
33317 wxPyEndAllowThreads(__tstate);
33318 if (PyErr_Occurred()) SWIG_fail;
33319 }
33320 resultobj = SWIG_Py_Void();
33321 return resultobj;
33322fail:
33323 return NULL;
33324}
33325
33326
33327SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33328 PyObject *resultobj = 0;
33329 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33330 int result;
33331 void *argp1 = 0 ;
33332 int res1 = 0 ;
33333 PyObject *swig_obj[1] ;
33334
33335 if (!args) SWIG_fail;
33336 swig_obj[0] = args;
33337 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33338 if (!SWIG_IsOK(res1)) {
33339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33340 }
33341 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33342 result = (int)(int) ((arg1)->widthSash);
33343 resultobj = SWIG_From_int(static_cast< int >(result));
33344 return resultobj;
33345fail:
33346 return NULL;
33347}
33348
33349
33350SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33351 PyObject *resultobj = 0;
33352 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33353 int result;
33354 void *argp1 = 0 ;
33355 int res1 = 0 ;
33356 PyObject *swig_obj[1] ;
33357
33358 if (!args) SWIG_fail;
33359 swig_obj[0] = args;
33360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33361 if (!SWIG_IsOK(res1)) {
33362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33363 }
33364 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33365 result = (int)(int) ((arg1)->border);
33366 resultobj = SWIG_From_int(static_cast< int >(result));
33367 return resultobj;
33368fail:
33369 return NULL;
33370}
33371
33372
33373SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33374 PyObject *resultobj = 0;
33375 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33376 bool result;
33377 void *argp1 = 0 ;
33378 int res1 = 0 ;
33379 PyObject *swig_obj[1] ;
33380
33381 if (!args) SWIG_fail;
33382 swig_obj[0] = args;
33383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33384 if (!SWIG_IsOK(res1)) {
33385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33386 }
33387 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33388 result = (bool)(bool) ((arg1)->isHotSensitive);
33389 resultobj = SWIG_From_bool(static_cast< bool >(result));
33390 return resultobj;
33391fail:
33392 return NULL;
33393}
33394
33395
33396SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33397 PyObject *obj;
33398 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33399 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
33400 return SWIG_Py_Void();
33401}
33402
33403SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33404 return SWIG_Python_InitShadowInstance(args);
33405}
33406
33d6fd3b
RD
33407SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33408 PyObject *resultobj = 0;
33409 wxHeaderButtonParams *result = 0 ;
33410
33411 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
33412 {
33413 PyThreadState* __tstate = wxPyBeginAllowThreads();
33414 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
33415 wxPyEndAllowThreads(__tstate);
33416 if (PyErr_Occurred()) SWIG_fail;
33417 }
33418 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
33419 return resultobj;
33420fail:
33421 return NULL;
33422}
33423
33424
33425SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33426 PyObject *resultobj = 0;
33427 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33428 void *argp1 = 0 ;
33429 int res1 = 0 ;
33430 PyObject *swig_obj[1] ;
33431
33432 if (!args) SWIG_fail;
33433 swig_obj[0] = args;
33434 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
33435 if (!SWIG_IsOK(res1)) {
33436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33437 }
33438 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33439 {
33440 PyThreadState* __tstate = wxPyBeginAllowThreads();
33441 delete arg1;
33442
33443 wxPyEndAllowThreads(__tstate);
33444 if (PyErr_Occurred()) SWIG_fail;
33445 }
33446 resultobj = SWIG_Py_Void();
33447 return resultobj;
33448fail:
33449 return NULL;
33450}
33451
33452
33453SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33454 PyObject *resultobj = 0;
33455 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33456 wxColour *arg2 = (wxColour *) 0 ;
33457 void *argp1 = 0 ;
33458 int res1 = 0 ;
33459 wxColour temp2 ;
33460 PyObject *swig_obj[2] ;
33461
33462 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
33463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33464 if (!SWIG_IsOK(res1)) {
33465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33466 }
33467 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33468 {
33469 arg2 = &temp2;
33470 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33471 }
33472 if (arg1) (arg1)->m_arrowColour = *arg2;
33473
33474 resultobj = SWIG_Py_Void();
33475 return resultobj;
33476fail:
33477 return NULL;
33478}
33479
33480
33481SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33482 PyObject *resultobj = 0;
33483 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33484 wxColour *result = 0 ;
33485 void *argp1 = 0 ;
33486 int res1 = 0 ;
33487 PyObject *swig_obj[1] ;
33488
33489 if (!args) SWIG_fail;
33490 swig_obj[0] = args;
33491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33492 if (!SWIG_IsOK(res1)) {
33493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33494 }
33495 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33496 result = (wxColour *)& ((arg1)->m_arrowColour);
33497 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33498 return resultobj;
33499fail:
33500 return NULL;
33501}
33502
33503
33504SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33505 PyObject *resultobj = 0;
33506 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33507 wxColour *arg2 = (wxColour *) 0 ;
33508 void *argp1 = 0 ;
33509 int res1 = 0 ;
33510 wxColour temp2 ;
33511 PyObject *swig_obj[2] ;
33512
33513 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
33514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33515 if (!SWIG_IsOK(res1)) {
33516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33517 }
33518 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33519 {
33520 arg2 = &temp2;
33521 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33522 }
33523 if (arg1) (arg1)->m_selectionColour = *arg2;
33524
33525 resultobj = SWIG_Py_Void();
33526 return resultobj;
33527fail:
33528 return NULL;
33529}
33530
33531
33532SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33533 PyObject *resultobj = 0;
33534 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33535 wxColour *result = 0 ;
33536 void *argp1 = 0 ;
33537 int res1 = 0 ;
33538 PyObject *swig_obj[1] ;
33539
33540 if (!args) SWIG_fail;
33541 swig_obj[0] = args;
33542 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33543 if (!SWIG_IsOK(res1)) {
33544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33545 }
33546 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33547 result = (wxColour *)& ((arg1)->m_selectionColour);
33548 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33549 return resultobj;
33550fail:
33551 return NULL;
33552}
33553
33554
33555SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33556 PyObject *resultobj = 0;
33557 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33558 wxString *arg2 = (wxString *) 0 ;
33559 void *argp1 = 0 ;
33560 int res1 = 0 ;
33561 bool temp2 = false ;
33562 PyObject *swig_obj[2] ;
33563
33564 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
33565 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33566 if (!SWIG_IsOK(res1)) {
33567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33568 }
33569 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33570 {
33571 arg2 = wxString_in_helper(swig_obj[1]);
33572 if (arg2 == NULL) SWIG_fail;
33573 temp2 = true;
33574 }
33575 if (arg1) (arg1)->m_labelText = *arg2;
33576
33577 resultobj = SWIG_Py_Void();
33578 {
33579 if (temp2)
33580 delete arg2;
33581 }
33582 return resultobj;
33583fail:
33584 {
33585 if (temp2)
33586 delete arg2;
33587 }
33588 return NULL;
33589}
33590
33591
33592SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33593 PyObject *resultobj = 0;
33594 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33595 wxString *result = 0 ;
33596 void *argp1 = 0 ;
33597 int res1 = 0 ;
33598 PyObject *swig_obj[1] ;
33599
33600 if (!args) SWIG_fail;
33601 swig_obj[0] = args;
33602 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33603 if (!SWIG_IsOK(res1)) {
33604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33605 }
33606 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33607 result = (wxString *)& ((arg1)->m_labelText);
33608 {
33609#if wxUSE_UNICODE
33610 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33611#else
33612 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33613#endif
33614 }
33615 return resultobj;
33616fail:
33617 return NULL;
33618}
33619
33620
33621SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33622 PyObject *resultobj = 0;
33623 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33624 wxFont *arg2 = (wxFont *) 0 ;
33625 void *argp1 = 0 ;
33626 int res1 = 0 ;
33627 void *argp2 = 0 ;
33628 int res2 = 0 ;
33629 PyObject *swig_obj[2] ;
33630
33631 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
33632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33633 if (!SWIG_IsOK(res1)) {
33634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33635 }
33636 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33637 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
33638 if (!SWIG_IsOK(res2)) {
33639 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
33640 }
33641 arg2 = reinterpret_cast< wxFont * >(argp2);
33642 if (arg1) (arg1)->m_labelFont = *arg2;
33643
33644 resultobj = SWIG_Py_Void();
33645 return resultobj;
33646fail:
33647 return NULL;
33648}
33649
33650
33651SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33652 PyObject *resultobj = 0;
33653 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33654 wxFont *result = 0 ;
33655 void *argp1 = 0 ;
33656 int res1 = 0 ;
33657 PyObject *swig_obj[1] ;
33658
33659 if (!args) SWIG_fail;
33660 swig_obj[0] = args;
33661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33662 if (!SWIG_IsOK(res1)) {
33663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33664 }
33665 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33666 result = (wxFont *)& ((arg1)->m_labelFont);
33667 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
33668 return resultobj;
33669fail:
33670 return NULL;
33671}
33672
33673
33674SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33675 PyObject *resultobj = 0;
33676 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33677 wxColour *arg2 = (wxColour *) 0 ;
33678 void *argp1 = 0 ;
33679 int res1 = 0 ;
33680 wxColour temp2 ;
33681 PyObject *swig_obj[2] ;
33682
33683 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
33684 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33685 if (!SWIG_IsOK(res1)) {
33686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33687 }
33688 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33689 {
33690 arg2 = &temp2;
33691 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33692 }
33693 if (arg1) (arg1)->m_labelColour = *arg2;
33694
33695 resultobj = SWIG_Py_Void();
33696 return resultobj;
33697fail:
33698 return NULL;
33699}
33700
33701
33702SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33703 PyObject *resultobj = 0;
33704 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33705 wxColour *result = 0 ;
33706 void *argp1 = 0 ;
33707 int res1 = 0 ;
33708 PyObject *swig_obj[1] ;
33709
33710 if (!args) SWIG_fail;
33711 swig_obj[0] = args;
33712 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33713 if (!SWIG_IsOK(res1)) {
33714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33715 }
33716 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33717 result = (wxColour *)& ((arg1)->m_labelColour);
33718 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33719 return resultobj;
33720fail:
33721 return NULL;
33722}
33723
33724
33725SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33726 PyObject *resultobj = 0;
33727 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33728 wxBitmap *arg2 = (wxBitmap *) 0 ;
33729 void *argp1 = 0 ;
33730 int res1 = 0 ;
33731 void *argp2 = 0 ;
33732 int res2 = 0 ;
33733 PyObject *swig_obj[2] ;
33734
33735 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
33736 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33737 if (!SWIG_IsOK(res1)) {
33738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33739 }
33740 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33741 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
33742 if (!SWIG_IsOK(res2)) {
33743 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
33744 }
33745 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33746 if (arg1) (arg1)->m_labelBitmap = *arg2;
33747
33748 resultobj = SWIG_Py_Void();
33749 return resultobj;
33750fail:
33751 return NULL;
33752}
33753
33754
33755SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33756 PyObject *resultobj = 0;
33757 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33758 wxBitmap *result = 0 ;
33759 void *argp1 = 0 ;
33760 int res1 = 0 ;
33761 PyObject *swig_obj[1] ;
33762
33763 if (!args) SWIG_fail;
33764 swig_obj[0] = args;
33765 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33766 if (!SWIG_IsOK(res1)) {
33767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33768 }
33769 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33770 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
33771 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
33772 return resultobj;
33773fail:
33774 return NULL;
33775}
33776
33777
33778SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33779 PyObject *resultobj = 0;
33780 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33781 int arg2 ;
33782 void *argp1 = 0 ;
33783 int res1 = 0 ;
33784 int val2 ;
33785 int ecode2 = 0 ;
33786 PyObject *swig_obj[2] ;
33787
33788 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
33789 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33790 if (!SWIG_IsOK(res1)) {
33791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33792 }
33793 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33794 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
33795 if (!SWIG_IsOK(ecode2)) {
33796 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
33797 }
33798 arg2 = static_cast< int >(val2);
33799 if (arg1) (arg1)->m_labelAlignment = arg2;
33800
33801 resultobj = SWIG_Py_Void();
33802 return resultobj;
33803fail:
33804 return NULL;
33805}
33806
33807
33808SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33809 PyObject *resultobj = 0;
33810 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33811 int result;
33812 void *argp1 = 0 ;
33813 int res1 = 0 ;
33814 PyObject *swig_obj[1] ;
33815
33816 if (!args) SWIG_fail;
33817 swig_obj[0] = args;
33818 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33819 if (!SWIG_IsOK(res1)) {
33820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33821 }
33822 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33823 result = (int) ((arg1)->m_labelAlignment);
33824 resultobj = SWIG_From_int(static_cast< int >(result));
33825 return resultobj;
33826fail:
33827 return NULL;
33828}
33829
33830
33831SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33832 PyObject *obj;
33833 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33834 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
33835 return SWIG_Py_Void();
33836}
33837
33838SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33839 return SWIG_Python_InitShadowInstance(args);
33840}
33841
1bd55598
RD
33842SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33843 PyObject *resultobj = 0;
33844 int arg1 ;
33845 int arg2 ;
33846 wxRendererVersion *result = 0 ;
33847 int val1 ;
33848 int ecode1 = 0 ;
33849 int val2 ;
33850 int ecode2 = 0 ;
33851 PyObject * obj0 = 0 ;
33852 PyObject * obj1 = 0 ;
33853 char * kwnames[] = {
33854 (char *) "version_",(char *) "age_", NULL
33855 };
33856
33857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
33858 ecode1 = SWIG_AsVal_int(obj0, &val1);
33859 if (!SWIG_IsOK(ecode1)) {
33860 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
33861 }
33862 arg1 = static_cast< int >(val1);
33863 ecode2 = SWIG_AsVal_int(obj1, &val2);
33864 if (!SWIG_IsOK(ecode2)) {
33865 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
33866 }
33867 arg2 = static_cast< int >(val2);
33868 {
33869 PyThreadState* __tstate = wxPyBeginAllowThreads();
33870 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
33871 wxPyEndAllowThreads(__tstate);
33872 if (PyErr_Occurred()) SWIG_fail;
33873 }
33874 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
33875 return resultobj;
33876fail:
33877 return NULL;
33878}
33879
33880
33881SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33882 PyObject *resultobj = 0;
33883 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
33884 void *argp1 = 0 ;
33885 int res1 = 0 ;
33886 PyObject *swig_obj[1] ;
33887
33888 if (!args) SWIG_fail;
33889 swig_obj[0] = args;
33890 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
33891 if (!SWIG_IsOK(res1)) {
33892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
33893 }
33894 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33895 {
33896 PyThreadState* __tstate = wxPyBeginAllowThreads();
33897 delete arg1;
33898
33899 wxPyEndAllowThreads(__tstate);
33900 if (PyErr_Occurred()) SWIG_fail;
33901 }
33902 resultobj = SWIG_Py_Void();
33903 return resultobj;
33904fail:
33905 return NULL;
33906}
33907
33908
33909SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33910 PyObject *resultobj = 0;
33911 wxRendererVersion *arg1 = 0 ;
33912 bool result;
33913 void *argp1 = 0 ;
33914 int res1 = 0 ;
33915 PyObject * obj0 = 0 ;
33916 char * kwnames[] = {
33917 (char *) "ver", NULL
33918 };
33919
33920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
33921 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
33922 if (!SWIG_IsOK(res1)) {
33923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
33924 }
33925 if (!argp1) {
33926 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
33927 }
33928 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33929 {
33930 PyThreadState* __tstate = wxPyBeginAllowThreads();
33931 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
33932 wxPyEndAllowThreads(__tstate);
33933 if (PyErr_Occurred()) SWIG_fail;
33934 }
33935 {
33936 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33937 }
33938 return resultobj;
33939fail:
33940 return NULL;
33941}
33942
33943
33944SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33945 PyObject *resultobj = 0;
33946 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
33947 int result;
33948 void *argp1 = 0 ;
33949 int res1 = 0 ;
33950 PyObject *swig_obj[1] ;
33951
33952 if (!args) SWIG_fail;
33953 swig_obj[0] = args;
33954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
33955 if (!SWIG_IsOK(res1)) {
33956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
33957 }
33958 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33959 result = (int)(int) ((arg1)->version);
33960 resultobj = SWIG_From_int(static_cast< int >(result));
33961 return resultobj;
33962fail:
33963 return NULL;
33964}
33965
33966
33967SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33968 PyObject *resultobj = 0;
33969 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
33970 int result;
33971 void *argp1 = 0 ;
33972 int res1 = 0 ;
33973 PyObject *swig_obj[1] ;
33974
33975 if (!args) SWIG_fail;
33976 swig_obj[0] = args;
33977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
33978 if (!SWIG_IsOK(res1)) {
33979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
33980 }
33981 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33982 result = (int)(int) ((arg1)->age);
33983 resultobj = SWIG_From_int(static_cast< int >(result));
33984 return resultobj;
33985fail:
33986 return NULL;
33987}
33988
33989
33990SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33991 PyObject *obj;
33992 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33993 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
33994 return SWIG_Py_Void();
33995}
33996
33997SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33998 return SWIG_Python_InitShadowInstance(args);
33999}
34000
34001SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34002 PyObject *resultobj = 0;
34003 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34004 wxWindow *arg2 = (wxWindow *) 0 ;
34005 wxDC *arg3 = 0 ;
34006 wxRect *arg4 = 0 ;
34007 int arg5 = (int) 0 ;
33d6fd3b
RD
34008 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34009 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
1bd55598
RD
34010 void *argp1 = 0 ;
34011 int res1 = 0 ;
34012 void *argp2 = 0 ;
34013 int res2 = 0 ;
34014 void *argp3 = 0 ;
34015 int res3 = 0 ;
34016 wxRect temp4 ;
34017 int val5 ;
34018 int ecode5 = 0 ;
33d6fd3b
RD
34019 int val6 ;
34020 int ecode6 = 0 ;
34021 void *argp7 = 0 ;
34022 int res7 = 0 ;
1bd55598
RD
34023 PyObject * obj0 = 0 ;
34024 PyObject * obj1 = 0 ;
34025 PyObject * obj2 = 0 ;
34026 PyObject * obj3 = 0 ;
34027 PyObject * obj4 = 0 ;
33d6fd3b
RD
34028 PyObject * obj5 = 0 ;
34029 PyObject * obj6 = 0 ;
1bd55598 34030 char * kwnames[] = {
33d6fd3b 34031 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
1bd55598
RD
34032 };
34033
33d6fd3b 34034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
1bd55598
RD
34035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34036 if (!SWIG_IsOK(res1)) {
34037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34038 }
34039 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34040 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34041 if (!SWIG_IsOK(res2)) {
34042 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34043 }
34044 arg2 = reinterpret_cast< wxWindow * >(argp2);
34045 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34046 if (!SWIG_IsOK(res3)) {
34047 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34048 }
34049 if (!argp3) {
34050 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34051 }
34052 arg3 = reinterpret_cast< wxDC * >(argp3);
34053 {
34054 arg4 = &temp4;
34055 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34056 }
34057 if (obj4) {
34058 ecode5 = SWIG_AsVal_int(obj4, &val5);
34059 if (!SWIG_IsOK(ecode5)) {
34060 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
34061 }
34062 arg5 = static_cast< int >(val5);
34063 }
33d6fd3b
RD
34064 if (obj5) {
34065 ecode6 = SWIG_AsVal_int(obj5, &val6);
34066 if (!SWIG_IsOK(ecode6)) {
34067 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34068 }
34069 arg6 = static_cast< wxHeaderSortIconType >(val6);
34070 }
34071 if (obj6) {
34072 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34073 if (!SWIG_IsOK(res7)) {
34074 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34075 }
34076 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34077 }
34078 {
34079 PyThreadState* __tstate = wxPyBeginAllowThreads();
34080 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
34081 wxPyEndAllowThreads(__tstate);
34082 if (PyErr_Occurred()) SWIG_fail;
34083 }
34084 resultobj = SWIG_Py_Void();
34085 return resultobj;
34086fail:
34087 return NULL;
34088}
34089
34090
34091SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34092 PyObject *resultobj = 0;
34093 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34094 wxWindow *arg2 = (wxWindow *) 0 ;
34095 wxDC *arg3 = 0 ;
34096 wxRect *arg4 = 0 ;
34097 int arg5 = (int) 0 ;
34098 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34099 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
34100 void *argp1 = 0 ;
34101 int res1 = 0 ;
34102 void *argp2 = 0 ;
34103 int res2 = 0 ;
34104 void *argp3 = 0 ;
34105 int res3 = 0 ;
34106 wxRect temp4 ;
34107 int val5 ;
34108 int ecode5 = 0 ;
34109 int val6 ;
34110 int ecode6 = 0 ;
34111 void *argp7 = 0 ;
34112 int res7 = 0 ;
34113 PyObject * obj0 = 0 ;
34114 PyObject * obj1 = 0 ;
34115 PyObject * obj2 = 0 ;
34116 PyObject * obj3 = 0 ;
34117 PyObject * obj4 = 0 ;
34118 PyObject * obj5 = 0 ;
34119 PyObject * obj6 = 0 ;
34120 char * kwnames[] = {
34121 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
34122 };
34123
34124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34126 if (!SWIG_IsOK(res1)) {
34127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34128 }
34129 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34130 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34131 if (!SWIG_IsOK(res2)) {
34132 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
34133 }
34134 arg2 = reinterpret_cast< wxWindow * >(argp2);
34135 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34136 if (!SWIG_IsOK(res3)) {
34137 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34138 }
34139 if (!argp3) {
34140 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34141 }
34142 arg3 = reinterpret_cast< wxDC * >(argp3);
34143 {
34144 arg4 = &temp4;
34145 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34146 }
34147 if (obj4) {
34148 ecode5 = SWIG_AsVal_int(obj4, &val5);
34149 if (!SWIG_IsOK(ecode5)) {
34150 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
34151 }
34152 arg5 = static_cast< int >(val5);
34153 }
34154 if (obj5) {
34155 ecode6 = SWIG_AsVal_int(obj5, &val6);
34156 if (!SWIG_IsOK(ecode6)) {
34157 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34158 }
34159 arg6 = static_cast< wxHeaderSortIconType >(val6);
34160 }
34161 if (obj6) {
34162 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34163 if (!SWIG_IsOK(res7)) {
34164 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34165 }
34166 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34167 }
1bd55598
RD
34168 {
34169 PyThreadState* __tstate = wxPyBeginAllowThreads();
33d6fd3b 34170 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
1bd55598
RD
34171 wxPyEndAllowThreads(__tstate);
34172 if (PyErr_Occurred()) SWIG_fail;
34173 }
34174 resultobj = SWIG_Py_Void();
34175 return resultobj;
34176fail:
34177 return NULL;
34178}
34179
34180
33d6fd3b
RD
34181SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34182 PyObject *resultobj = 0;
34183 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34184 wxWindow *arg2 = (wxWindow *) 0 ;
34185 int result;
34186 void *argp1 = 0 ;
34187 int res1 = 0 ;
34188 void *argp2 = 0 ;
34189 int res2 = 0 ;
34190 PyObject * obj0 = 0 ;
34191 PyObject * obj1 = 0 ;
34192 char * kwnames[] = {
34193 (char *) "self",(char *) "win", NULL
34194 };
34195
34196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
34197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34198 if (!SWIG_IsOK(res1)) {
34199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34200 }
34201 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34202 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34203 if (!SWIG_IsOK(res2)) {
34204 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
34205 }
34206 arg2 = reinterpret_cast< wxWindow * >(argp2);
34207 {
34208 PyThreadState* __tstate = wxPyBeginAllowThreads();
34209 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
34210 wxPyEndAllowThreads(__tstate);
34211 if (PyErr_Occurred()) SWIG_fail;
34212 }
34213 resultobj = SWIG_From_int(static_cast< int >(result));
34214 return resultobj;
34215fail:
34216 return NULL;
34217}
34218
34219
1bd55598
RD
34220SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34221 PyObject *resultobj = 0;
34222 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34223 wxWindow *arg2 = (wxWindow *) 0 ;
34224 wxDC *arg3 = 0 ;
34225 wxRect *arg4 = 0 ;
34226 int arg5 = (int) 0 ;
34227 void *argp1 = 0 ;
34228 int res1 = 0 ;
34229 void *argp2 = 0 ;
34230 int res2 = 0 ;
34231 void *argp3 = 0 ;
34232 int res3 = 0 ;
34233 wxRect temp4 ;
34234 int val5 ;
34235 int ecode5 = 0 ;
34236 PyObject * obj0 = 0 ;
34237 PyObject * obj1 = 0 ;
34238 PyObject * obj2 = 0 ;
34239 PyObject * obj3 = 0 ;
34240 PyObject * obj4 = 0 ;
34241 char * kwnames[] = {
34242 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34243 };
34244
34245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34247 if (!SWIG_IsOK(res1)) {
34248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34249 }
34250 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34251 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34252 if (!SWIG_IsOK(res2)) {
34253 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34254 }
34255 arg2 = reinterpret_cast< wxWindow * >(argp2);
34256 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34257 if (!SWIG_IsOK(res3)) {
34258 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34259 }
34260 if (!argp3) {
34261 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34262 }
34263 arg3 = reinterpret_cast< wxDC * >(argp3);
34264 {
34265 arg4 = &temp4;
34266 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34267 }
34268 if (obj4) {
34269 ecode5 = SWIG_AsVal_int(obj4, &val5);
34270 if (!SWIG_IsOK(ecode5)) {
34271 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
34272 }
34273 arg5 = static_cast< int >(val5);
34274 }
34275 {
34276 PyThreadState* __tstate = wxPyBeginAllowThreads();
34277 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34278 wxPyEndAllowThreads(__tstate);
34279 if (PyErr_Occurred()) SWIG_fail;
34280 }
34281 resultobj = SWIG_Py_Void();
34282 return resultobj;
34283fail:
34284 return NULL;
34285}
34286
34287
34288SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34289 PyObject *resultobj = 0;
34290 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34291 wxWindow *arg2 = (wxWindow *) 0 ;
34292 wxDC *arg3 = 0 ;
34293 wxRect *arg4 = 0 ;
34294 int arg5 = (int) 0 ;
34295 void *argp1 = 0 ;
34296 int res1 = 0 ;
34297 void *argp2 = 0 ;
34298 int res2 = 0 ;
34299 void *argp3 = 0 ;
34300 int res3 = 0 ;
34301 wxRect temp4 ;
34302 int val5 ;
34303 int ecode5 = 0 ;
34304 PyObject * obj0 = 0 ;
34305 PyObject * obj1 = 0 ;
34306 PyObject * obj2 = 0 ;
34307 PyObject * obj3 = 0 ;
34308 PyObject * obj4 = 0 ;
34309 char * kwnames[] = {
34310 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34311 };
34312
34313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34315 if (!SWIG_IsOK(res1)) {
34316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34317 }
34318 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34319 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34320 if (!SWIG_IsOK(res2)) {
34321 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
34322 }
34323 arg2 = reinterpret_cast< wxWindow * >(argp2);
34324 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34325 if (!SWIG_IsOK(res3)) {
34326 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34327 }
34328 if (!argp3) {
34329 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34330 }
34331 arg3 = reinterpret_cast< wxDC * >(argp3);
34332 {
34333 arg4 = &temp4;
34334 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34335 }
34336 if (obj4) {
34337 ecode5 = SWIG_AsVal_int(obj4, &val5);
34338 if (!SWIG_IsOK(ecode5)) {
34339 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
34340 }
34341 arg5 = static_cast< int >(val5);
34342 }
34343 {
34344 PyThreadState* __tstate = wxPyBeginAllowThreads();
34345 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
34346 wxPyEndAllowThreads(__tstate);
34347 if (PyErr_Occurred()) SWIG_fail;
34348 }
34349 resultobj = SWIG_Py_Void();
34350 return resultobj;
34351fail:
34352 return NULL;
34353}
34354
34355
34356SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34357 PyObject *resultobj = 0;
34358 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34359 wxWindow *arg2 = (wxWindow *) 0 ;
34360 wxDC *arg3 = 0 ;
34361 wxSize *arg4 = 0 ;
34362 int arg5 ;
34363 wxOrientation arg6 ;
34364 int arg7 = (int) 0 ;
34365 void *argp1 = 0 ;
34366 int res1 = 0 ;
34367 void *argp2 = 0 ;
34368 int res2 = 0 ;
34369 void *argp3 = 0 ;
34370 int res3 = 0 ;
34371 wxSize temp4 ;
34372 int val5 ;
34373 int ecode5 = 0 ;
34374 int val6 ;
34375 int ecode6 = 0 ;
34376 int val7 ;
34377 int ecode7 = 0 ;
34378 PyObject * obj0 = 0 ;
34379 PyObject * obj1 = 0 ;
34380 PyObject * obj2 = 0 ;
34381 PyObject * obj3 = 0 ;
34382 PyObject * obj4 = 0 ;
34383 PyObject * obj5 = 0 ;
34384 PyObject * obj6 = 0 ;
34385 char * kwnames[] = {
34386 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
34387 };
34388
34389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34391 if (!SWIG_IsOK(res1)) {
34392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34393 }
34394 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34395 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34396 if (!SWIG_IsOK(res2)) {
34397 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
34398 }
34399 arg2 = reinterpret_cast< wxWindow * >(argp2);
34400 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34401 if (!SWIG_IsOK(res3)) {
34402 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34403 }
34404 if (!argp3) {
34405 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34406 }
34407 arg3 = reinterpret_cast< wxDC * >(argp3);
34408 {
34409 arg4 = &temp4;
34410 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
34411 }
34412 ecode5 = SWIG_AsVal_int(obj4, &val5);
34413 if (!SWIG_IsOK(ecode5)) {
34414 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
34415 }
34416 arg5 = static_cast< int >(val5);
34417 ecode6 = SWIG_AsVal_int(obj5, &val6);
34418 if (!SWIG_IsOK(ecode6)) {
34419 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
34420 }
34421 arg6 = static_cast< wxOrientation >(val6);
34422 if (obj6) {
34423 ecode7 = SWIG_AsVal_int(obj6, &val7);
34424 if (!SWIG_IsOK(ecode7)) {
34425 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
34426 }
34427 arg7 = static_cast< int >(val7);
34428 }
34429 {
34430 PyThreadState* __tstate = wxPyBeginAllowThreads();
34431 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
34432 wxPyEndAllowThreads(__tstate);
34433 if (PyErr_Occurred()) SWIG_fail;
34434 }
34435 resultobj = SWIG_Py_Void();
34436 return resultobj;
34437fail:
34438 return NULL;
34439}
34440
34441
34442SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34443 PyObject *resultobj = 0;
34444 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34445 wxWindow *arg2 = (wxWindow *) 0 ;
34446 wxDC *arg3 = 0 ;
34447 wxRect *arg4 = 0 ;
34448 int arg5 = (int) 0 ;
34449 void *argp1 = 0 ;
34450 int res1 = 0 ;
34451 void *argp2 = 0 ;
34452 int res2 = 0 ;
34453 void *argp3 = 0 ;
34454 int res3 = 0 ;
34455 wxRect temp4 ;
34456 int val5 ;
34457 int ecode5 = 0 ;
34458 PyObject * obj0 = 0 ;
34459 PyObject * obj1 = 0 ;
34460 PyObject * obj2 = 0 ;
34461 PyObject * obj3 = 0 ;
34462 PyObject * obj4 = 0 ;
34463 char * kwnames[] = {
34464 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34465 };
34466
34467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34469 if (!SWIG_IsOK(res1)) {
34470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34471 }
34472 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34473 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34474 if (!SWIG_IsOK(res2)) {
34475 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34476 }
34477 arg2 = reinterpret_cast< wxWindow * >(argp2);
34478 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34479 if (!SWIG_IsOK(res3)) {
34480 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34481 }
34482 if (!argp3) {
34483 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34484 }
34485 arg3 = reinterpret_cast< wxDC * >(argp3);
34486 {
34487 arg4 = &temp4;
34488 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34489 }
34490 if (obj4) {
34491 ecode5 = SWIG_AsVal_int(obj4, &val5);
34492 if (!SWIG_IsOK(ecode5)) {
34493 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
34494 }
34495 arg5 = static_cast< int >(val5);
34496 }
34497 {
34498 PyThreadState* __tstate = wxPyBeginAllowThreads();
34499 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34500 wxPyEndAllowThreads(__tstate);
34501 if (PyErr_Occurred()) SWIG_fail;
34502 }
34503 resultobj = SWIG_Py_Void();
34504 return resultobj;
34505fail:
34506 return NULL;
34507}
34508
34509
34510SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34511 PyObject *resultobj = 0;
34512 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34513 wxWindow *arg2 = (wxWindow *) 0 ;
34514 wxDC *arg3 = 0 ;
34515 wxRect *arg4 = 0 ;
34516 int arg5 = (int) 0 ;
34517 void *argp1 = 0 ;
34518 int res1 = 0 ;
34519 void *argp2 = 0 ;
34520 int res2 = 0 ;
34521 void *argp3 = 0 ;
34522 int res3 = 0 ;
34523 wxRect temp4 ;
34524 int val5 ;
34525 int ecode5 = 0 ;
34526 PyObject * obj0 = 0 ;
34527 PyObject * obj1 = 0 ;
34528 PyObject * obj2 = 0 ;
34529 PyObject * obj3 = 0 ;
34530 PyObject * obj4 = 0 ;
34531 char * kwnames[] = {
34532 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34533 };
34534
34535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34537 if (!SWIG_IsOK(res1)) {
34538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34539 }
34540 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34541 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34542 if (!SWIG_IsOK(res2)) {
34543 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
34544 }
34545 arg2 = reinterpret_cast< wxWindow * >(argp2);
34546 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34547 if (!SWIG_IsOK(res3)) {
34548 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34549 }
34550 if (!argp3) {
34551 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34552 }
34553 arg3 = reinterpret_cast< wxDC * >(argp3);
34554 {
34555 arg4 = &temp4;
34556 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34557 }
34558 if (obj4) {
34559 ecode5 = SWIG_AsVal_int(obj4, &val5);
34560 if (!SWIG_IsOK(ecode5)) {
34561 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
34562 }
34563 arg5 = static_cast< int >(val5);
34564 }
34565 {
34566 PyThreadState* __tstate = wxPyBeginAllowThreads();
34567 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
34568 wxPyEndAllowThreads(__tstate);
34569 if (PyErr_Occurred()) SWIG_fail;
34570 }
34571 resultobj = SWIG_Py_Void();
34572 return resultobj;
34573fail:
34574 return NULL;
34575}
34576
34577
2131d850 34578SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
da91cb0f
RD
34579 PyObject *resultobj = 0;
34580 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34581 wxWindow *arg2 = (wxWindow *) 0 ;
34582 wxDC *arg3 = 0 ;
34583 wxRect *arg4 = 0 ;
34584 int arg5 = (int) 0 ;
34585 void *argp1 = 0 ;
34586 int res1 = 0 ;
34587 void *argp2 = 0 ;
34588 int res2 = 0 ;
34589 void *argp3 = 0 ;
34590 int res3 = 0 ;
34591 wxRect temp4 ;
34592 int val5 ;
34593 int ecode5 = 0 ;
34594 PyObject * obj0 = 0 ;
34595 PyObject * obj1 = 0 ;
34596 PyObject * obj2 = 0 ;
34597 PyObject * obj3 = 0 ;
34598 PyObject * obj4 = 0 ;
34599 char * kwnames[] = {
34600 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34601 };
34602
2131d850 34603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
da91cb0f
RD
34604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34605 if (!SWIG_IsOK(res1)) {
2131d850 34606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
da91cb0f
RD
34607 }
34608 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34609 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34610 if (!SWIG_IsOK(res2)) {
2131d850 34611 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
da91cb0f
RD
34612 }
34613 arg2 = reinterpret_cast< wxWindow * >(argp2);
34614 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34615 if (!SWIG_IsOK(res3)) {
2131d850 34616 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
da91cb0f
RD
34617 }
34618 if (!argp3) {
2131d850 34619 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
da91cb0f
RD
34620 }
34621 arg3 = reinterpret_cast< wxDC * >(argp3);
34622 {
34623 arg4 = &temp4;
34624 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34625 }
34626 if (obj4) {
34627 ecode5 = SWIG_AsVal_int(obj4, &val5);
34628 if (!SWIG_IsOK(ecode5)) {
2131d850 34629 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
da91cb0f
RD
34630 }
34631 arg5 = static_cast< int >(val5);
34632 }
34633 {
34634 PyThreadState* __tstate = wxPyBeginAllowThreads();
2131d850
RD
34635 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
34636 wxPyEndAllowThreads(__tstate);
34637 if (PyErr_Occurred()) SWIG_fail;
34638 }
34639 resultobj = SWIG_Py_Void();
34640 return resultobj;
34641fail:
34642 return NULL;
34643}
34644
34645
34646SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34647 PyObject *resultobj = 0;
34648 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34649 wxWindow *arg2 = (wxWindow *) 0 ;
34650 wxDC *arg3 = 0 ;
34651 wxRect *arg4 = 0 ;
34652 int arg5 = (int) 0 ;
34653 void *argp1 = 0 ;
34654 int res1 = 0 ;
34655 void *argp2 = 0 ;
34656 int res2 = 0 ;
34657 void *argp3 = 0 ;
34658 int res3 = 0 ;
34659 wxRect temp4 ;
34660 int val5 ;
34661 int ecode5 = 0 ;
34662 PyObject * obj0 = 0 ;
34663 PyObject * obj1 = 0 ;
34664 PyObject * obj2 = 0 ;
34665 PyObject * obj3 = 0 ;
34666 PyObject * obj4 = 0 ;
34667 char * kwnames[] = {
34668 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34669 };
34670
34671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34673 if (!SWIG_IsOK(res1)) {
34674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34675 }
34676 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34677 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34678 if (!SWIG_IsOK(res2)) {
34679 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34680 }
34681 arg2 = reinterpret_cast< wxWindow * >(argp2);
34682 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34683 if (!SWIG_IsOK(res3)) {
34684 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
34685 }
34686 if (!argp3) {
34687 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
34688 }
34689 arg3 = reinterpret_cast< wxDC * >(argp3);
34690 {
34691 arg4 = &temp4;
34692 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34693 }
34694 if (obj4) {
34695 ecode5 = SWIG_AsVal_int(obj4, &val5);
34696 if (!SWIG_IsOK(ecode5)) {
34697 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
34698 }
34699 arg5 = static_cast< int >(val5);
34700 }
34701 {
34702 PyThreadState* __tstate = wxPyBeginAllowThreads();
34703 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34704 wxPyEndAllowThreads(__tstate);
34705 if (PyErr_Occurred()) SWIG_fail;
34706 }
34707 resultobj = SWIG_Py_Void();
34708 return resultobj;
34709fail:
34710 return NULL;
34711}
34712
34713
34714SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34715 PyObject *resultobj = 0;
34716 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34717 wxWindow *arg2 = (wxWindow *) 0 ;
34718 wxDC *arg3 = 0 ;
34719 wxRect *arg4 = 0 ;
34720 int arg5 = (int) 0 ;
34721 void *argp1 = 0 ;
34722 int res1 = 0 ;
34723 void *argp2 = 0 ;
34724 int res2 = 0 ;
34725 void *argp3 = 0 ;
34726 int res3 = 0 ;
34727 wxRect temp4 ;
34728 int val5 ;
34729 int ecode5 = 0 ;
34730 PyObject * obj0 = 0 ;
34731 PyObject * obj1 = 0 ;
34732 PyObject * obj2 = 0 ;
34733 PyObject * obj3 = 0 ;
34734 PyObject * obj4 = 0 ;
34735 char * kwnames[] = {
34736 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34737 };
34738
34739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34741 if (!SWIG_IsOK(res1)) {
34742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34743 }
34744 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34745 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34746 if (!SWIG_IsOK(res2)) {
34747 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
34748 }
34749 arg2 = reinterpret_cast< wxWindow * >(argp2);
34750 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34751 if (!SWIG_IsOK(res3)) {
34752 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
34753 }
34754 if (!argp3) {
34755 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
34756 }
34757 arg3 = reinterpret_cast< wxDC * >(argp3);
34758 {
34759 arg4 = &temp4;
34760 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34761 }
34762 if (obj4) {
34763 ecode5 = SWIG_AsVal_int(obj4, &val5);
34764 if (!SWIG_IsOK(ecode5)) {
34765 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
34766 }
34767 arg5 = static_cast< int >(val5);
34768 }
34769 {
34770 PyThreadState* __tstate = wxPyBeginAllowThreads();
34771 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
da91cb0f
RD
34772 wxPyEndAllowThreads(__tstate);
34773 if (PyErr_Occurred()) SWIG_fail;
34774 }
34775 resultobj = SWIG_Py_Void();
34776 return resultobj;
34777fail:
34778 return NULL;
34779}
34780
34781
1bd55598
RD
34782SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34783 PyObject *resultobj = 0;
34784 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34785 wxWindow *arg2 = (wxWindow *) 0 ;
34786 SwigValueWrapper<wxSplitterRenderParams > result;
34787 void *argp1 = 0 ;
34788 int res1 = 0 ;
34789 void *argp2 = 0 ;
34790 int res2 = 0 ;
34791 PyObject * obj0 = 0 ;
34792 PyObject * obj1 = 0 ;
34793 char * kwnames[] = {
34794 (char *) "self",(char *) "win", NULL
34795 };
34796
34797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
34798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34799 if (!SWIG_IsOK(res1)) {
34800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34801 }
34802 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34803 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34804 if (!SWIG_IsOK(res2)) {
34805 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
34806 }
34807 arg2 = reinterpret_cast< wxWindow * >(argp2);
34808 {
34809 PyThreadState* __tstate = wxPyBeginAllowThreads();
34810 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
34811 wxPyEndAllowThreads(__tstate);
34812 if (PyErr_Occurred()) SWIG_fail;
34813 }
34814 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
34815 return resultobj;
34816fail:
34817 return NULL;
34818}
34819
34820
34821SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34822 PyObject *resultobj = 0;
34823 wxRendererNative *result = 0 ;
34824
34825 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
34826 {
704eda0c 34827 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 34828 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 34829 {
1bd55598
RD
34830 wxRendererNative &_result_ref = wxRendererNative::Get();
34831 result = (wxRendererNative *) &_result_ref;
36ed4f51 34832 }
1bd55598
RD
34833 wxPyEndAllowThreads(__tstate);
34834 if (PyErr_Occurred()) SWIG_fail;
34835 }
34836 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34837 return resultobj;
34838fail:
34839 return NULL;
34840}
34841
34842
34843SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34844 PyObject *resultobj = 0;
34845 wxRendererNative *result = 0 ;
34846
34847 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
34848 {
704eda0c 34849 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 34850 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 34851 {
1bd55598
RD
34852 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
34853 result = (wxRendererNative *) &_result_ref;
be9b1dca 34854 }
1bd55598
RD
34855 wxPyEndAllowThreads(__tstate);
34856 if (PyErr_Occurred()) SWIG_fail;
34857 }
34858 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34859 return resultobj;
34860fail:
34861 return NULL;
34862}
34863
34864
34865SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34866 PyObject *resultobj = 0;
34867 wxRendererNative *result = 0 ;
34868
34869 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
34870 {
704eda0c 34871 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 34872 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 34873 {
1bd55598
RD
34874 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
34875 result = (wxRendererNative *) &_result_ref;
be9b1dca 34876 }
1bd55598
RD
34877 wxPyEndAllowThreads(__tstate);
34878 if (PyErr_Occurred()) SWIG_fail;
34879 }
34880 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34881 return resultobj;
34882fail:
34883 return NULL;
34884}
34885
34886
34887SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34888 PyObject *resultobj = 0;
34889 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34890 wxRendererNative *result = 0 ;
34891 void *argp1 = 0 ;
34892 int res1 = 0 ;
34893 PyObject * obj0 = 0 ;
34894 char * kwnames[] = {
34895 (char *) "renderer", NULL
34896 };
34897
34898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
34899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34900 if (!SWIG_IsOK(res1)) {
34901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34902 }
34903 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34904 {
704eda0c 34905 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598
RD
34906 PyThreadState* __tstate = wxPyBeginAllowThreads();
34907 result = (wxRendererNative *)wxRendererNative::Set(arg1);
34908 wxPyEndAllowThreads(__tstate);
34909 if (PyErr_Occurred()) SWIG_fail;
34910 }
34911 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34912 return resultobj;
34913fail:
34914 return NULL;
34915}
34916
34917
34918SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34919 PyObject *resultobj = 0;
34920 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34921 SwigValueWrapper<wxRendererVersion > result;
34922 void *argp1 = 0 ;
34923 int res1 = 0 ;
34924 PyObject *swig_obj[1] ;
34925
34926 if (!args) SWIG_fail;
34927 swig_obj[0] = args;
34928 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34929 if (!SWIG_IsOK(res1)) {
34930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
34931 }
34932 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34933 {
34934 PyThreadState* __tstate = wxPyBeginAllowThreads();
34935 result = ((wxRendererNative const *)arg1)->GetVersion();
34936 wxPyEndAllowThreads(__tstate);
34937 if (PyErr_Occurred()) SWIG_fail;
34938 }
34939 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
34940 return resultobj;
34941fail:
34942 return NULL;
34943}
34944
34945
34946SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34947 PyObject *obj;
34948 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34949 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
34950 return SWIG_Py_Void();
34951}
34952
27e45892
RD
34953SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34954 PyObject *resultobj = 0;
34955 wxPseudoDC *result = 0 ;
34956
34957 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
34958 {
34959 PyThreadState* __tstate = wxPyBeginAllowThreads();
34960 result = (wxPseudoDC *)new wxPseudoDC();
34961 wxPyEndAllowThreads(__tstate);
34962 if (PyErr_Occurred()) SWIG_fail;
34963 }
34964 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
34965 return resultobj;
34966fail:
34967 return NULL;
34968}
34969
34970
34971SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34972 PyObject *resultobj = 0;
34973 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34974 void *argp1 = 0 ;
34975 int res1 = 0 ;
34976 PyObject *swig_obj[1] ;
34977
34978 if (!args) SWIG_fail;
34979 swig_obj[0] = args;
34980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34981 if (!SWIG_IsOK(res1)) {
34982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34983 }
34984 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34985 {
34986 PyThreadState* __tstate = wxPyBeginAllowThreads();
34987 (arg1)->BeginDrawing();
34988 wxPyEndAllowThreads(__tstate);
34989 if (PyErr_Occurred()) SWIG_fail;
34990 }
34991 resultobj = SWIG_Py_Void();
34992 return resultobj;
34993fail:
34994 return NULL;
34995}
34996
34997
34998SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34999 PyObject *resultobj = 0;
35000 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35001 void *argp1 = 0 ;
35002 int res1 = 0 ;
35003 PyObject *swig_obj[1] ;
35004
35005 if (!args) SWIG_fail;
35006 swig_obj[0] = args;
35007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35008 if (!SWIG_IsOK(res1)) {
35009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35010 }
35011 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35012 {
35013 PyThreadState* __tstate = wxPyBeginAllowThreads();
35014 (arg1)->EndDrawing();
35015 wxPyEndAllowThreads(__tstate);
35016 if (PyErr_Occurred()) SWIG_fail;
35017 }
35018 resultobj = SWIG_Py_Void();
35019 return resultobj;
35020fail:
35021 return NULL;
35022}
35023
35024
35025SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35026 PyObject *resultobj = 0;
35027 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35028 void *argp1 = 0 ;
35029 int res1 = 0 ;
35030 PyObject *swig_obj[1] ;
35031
35032 if (!args) SWIG_fail;
35033 swig_obj[0] = args;
35034 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
35035 if (!SWIG_IsOK(res1)) {
35036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35037 }
35038 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35039 {
35040 PyThreadState* __tstate = wxPyBeginAllowThreads();
35041 delete arg1;
35042
35043 wxPyEndAllowThreads(__tstate);
35044 if (PyErr_Occurred()) SWIG_fail;
35045 }
35046 resultobj = SWIG_Py_Void();
35047 return resultobj;
35048fail:
35049 return NULL;
35050}
35051
35052
35053SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35054 PyObject *resultobj = 0;
35055 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35056 void *argp1 = 0 ;
35057 int res1 = 0 ;
35058 PyObject *swig_obj[1] ;
35059
35060 if (!args) SWIG_fail;
35061 swig_obj[0] = args;
35062 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35063 if (!SWIG_IsOK(res1)) {
35064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35065 }
35066 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35067 {
35068 PyThreadState* __tstate = wxPyBeginAllowThreads();
35069 (arg1)->RemoveAll();
35070 wxPyEndAllowThreads(__tstate);
35071 if (PyErr_Occurred()) SWIG_fail;
35072 }
35073 resultobj = SWIG_Py_Void();
35074 return resultobj;
35075fail:
35076 return NULL;
35077}
35078
35079
35080SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35081 PyObject *resultobj = 0;
35082 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35083 int result;
35084 void *argp1 = 0 ;
35085 int res1 = 0 ;
35086 PyObject *swig_obj[1] ;
35087
35088 if (!args) SWIG_fail;
35089 swig_obj[0] = args;
35090 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35091 if (!SWIG_IsOK(res1)) {
35092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35093 }
35094 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35095 {
35096 PyThreadState* __tstate = wxPyBeginAllowThreads();
35097 result = (int)(arg1)->GetLen();
35098 wxPyEndAllowThreads(__tstate);
35099 if (PyErr_Occurred()) SWIG_fail;
35100 }
35101 resultobj = SWIG_From_int(static_cast< int >(result));
35102 return resultobj;
35103fail:
35104 return NULL;
35105}
35106
35107
35108SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35109 PyObject *resultobj = 0;
35110 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35111 int arg2 ;
35112 void *argp1 = 0 ;
35113 int res1 = 0 ;
35114 int val2 ;
35115 int ecode2 = 0 ;
35116 PyObject * obj0 = 0 ;
35117 PyObject * obj1 = 0 ;
35118 char * kwnames[] = {
35119 (char *) "self",(char *) "id", NULL
35120 };
35121
35122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
35123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35124 if (!SWIG_IsOK(res1)) {
35125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35126 }
35127 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35128 ecode2 = SWIG_AsVal_int(obj1, &val2);
35129 if (!SWIG_IsOK(ecode2)) {
35130 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
35131 }
35132 arg2 = static_cast< int >(val2);
35133 {
35134 PyThreadState* __tstate = wxPyBeginAllowThreads();
35135 (arg1)->SetId(arg2);
35136 wxPyEndAllowThreads(__tstate);
35137 if (PyErr_Occurred()) SWIG_fail;
35138 }
35139 resultobj = SWIG_Py_Void();
35140 return resultobj;
35141fail:
35142 return NULL;
35143}
35144
35145
35146SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35147 PyObject *resultobj = 0;
35148 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35149 int arg2 ;
35150 void *argp1 = 0 ;
35151 int res1 = 0 ;
35152 int val2 ;
35153 int ecode2 = 0 ;
35154 PyObject * obj0 = 0 ;
35155 PyObject * obj1 = 0 ;
35156 char * kwnames[] = {
35157 (char *) "self",(char *) "id", NULL
35158 };
35159
35160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
35161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35162 if (!SWIG_IsOK(res1)) {
35163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35164 }
35165 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35166 ecode2 = SWIG_AsVal_int(obj1, &val2);
35167 if (!SWIG_IsOK(ecode2)) {
35168 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
35169 }
35170 arg2 = static_cast< int >(val2);
35171 {
35172 PyThreadState* __tstate = wxPyBeginAllowThreads();
35173 (arg1)->ClearId(arg2);
35174 wxPyEndAllowThreads(__tstate);
35175 if (PyErr_Occurred()) SWIG_fail;
35176 }
35177 resultobj = SWIG_Py_Void();
35178 return resultobj;
35179fail:
35180 return NULL;
35181}
35182
35183
35184SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35185 PyObject *resultobj = 0;
35186 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35187 int arg2 ;
35188 void *argp1 = 0 ;
35189 int res1 = 0 ;
35190 int val2 ;
35191 int ecode2 = 0 ;
35192 PyObject * obj0 = 0 ;
35193 PyObject * obj1 = 0 ;
35194 char * kwnames[] = {
35195 (char *) "self",(char *) "id", NULL
35196 };
35197
35198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
35199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35200 if (!SWIG_IsOK(res1)) {
35201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35202 }
35203 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35204 ecode2 = SWIG_AsVal_int(obj1, &val2);
35205 if (!SWIG_IsOK(ecode2)) {
35206 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
35207 }
35208 arg2 = static_cast< int >(val2);
35209 {
35210 PyThreadState* __tstate = wxPyBeginAllowThreads();
35211 (arg1)->RemoveId(arg2);
35212 wxPyEndAllowThreads(__tstate);
35213 if (PyErr_Occurred()) SWIG_fail;
35214 }
35215 resultobj = SWIG_Py_Void();
35216 return resultobj;
35217fail:
35218 return NULL;
35219}
35220
35221
35222SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35223 PyObject *resultobj = 0;
35224 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35225 int arg2 ;
35226 int arg3 ;
35227 int arg4 ;
35228 void *argp1 = 0 ;
35229 int res1 = 0 ;
35230 int val2 ;
35231 int ecode2 = 0 ;
35232 int val3 ;
35233 int ecode3 = 0 ;
35234 int val4 ;
35235 int ecode4 = 0 ;
35236 PyObject * obj0 = 0 ;
35237 PyObject * obj1 = 0 ;
35238 PyObject * obj2 = 0 ;
35239 PyObject * obj3 = 0 ;
35240 char * kwnames[] = {
35241 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
35242 };
35243
35244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35246 if (!SWIG_IsOK(res1)) {
35247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35248 }
35249 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35250 ecode2 = SWIG_AsVal_int(obj1, &val2);
35251 if (!SWIG_IsOK(ecode2)) {
35252 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
35253 }
35254 arg2 = static_cast< int >(val2);
35255 ecode3 = SWIG_AsVal_int(obj2, &val3);
35256 if (!SWIG_IsOK(ecode3)) {
35257 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
35258 }
35259 arg3 = static_cast< int >(val3);
35260 ecode4 = SWIG_AsVal_int(obj3, &val4);
35261 if (!SWIG_IsOK(ecode4)) {
35262 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
35263 }
35264 arg4 = static_cast< int >(val4);
35265 {
35266 PyThreadState* __tstate = wxPyBeginAllowThreads();
35267 (arg1)->TranslateId(arg2,arg3,arg4);
35268 wxPyEndAllowThreads(__tstate);
35269 if (PyErr_Occurred()) SWIG_fail;
35270 }
35271 resultobj = SWIG_Py_Void();
35272 return resultobj;
35273fail:
35274 return NULL;
35275}
35276
35277
72ef6efb
RD
35278SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35279 PyObject *resultobj = 0;
35280 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35281 int arg2 ;
35282 bool arg3 = (bool) true ;
35283 void *argp1 = 0 ;
35284 int res1 = 0 ;
35285 int val2 ;
35286 int ecode2 = 0 ;
35287 bool val3 ;
35288 int ecode3 = 0 ;
35289 PyObject * obj0 = 0 ;
35290 PyObject * obj1 = 0 ;
35291 PyObject * obj2 = 0 ;
35292 char * kwnames[] = {
35293 (char *) "self",(char *) "id",(char *) "greyout", NULL
35294 };
35295
35296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35298 if (!SWIG_IsOK(res1)) {
35299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35300 }
35301 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35302 ecode2 = SWIG_AsVal_int(obj1, &val2);
35303 if (!SWIG_IsOK(ecode2)) {
35304 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35305 }
35306 arg2 = static_cast< int >(val2);
35307 if (obj2) {
35308 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35309 if (!SWIG_IsOK(ecode3)) {
35310 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
35311 }
35312 arg3 = static_cast< bool >(val3);
35313 }
35314 {
35315 PyThreadState* __tstate = wxPyBeginAllowThreads();
35316 (arg1)->SetIdGreyedOut(arg2,arg3);
35317 wxPyEndAllowThreads(__tstate);
35318 if (PyErr_Occurred()) SWIG_fail;
35319 }
35320 resultobj = SWIG_Py_Void();
35321 return resultobj;
35322fail:
35323 return NULL;
35324}
35325
35326
35327SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35328 PyObject *resultobj = 0;
35329 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35330 int arg2 ;
35331 bool result;
35332 void *argp1 = 0 ;
35333 int res1 = 0 ;
35334 int val2 ;
35335 int ecode2 = 0 ;
35336 PyObject * obj0 = 0 ;
35337 PyObject * obj1 = 0 ;
35338 char * kwnames[] = {
35339 (char *) "self",(char *) "id", NULL
35340 };
35341
35342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
35343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35344 if (!SWIG_IsOK(res1)) {
35345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35346 }
35347 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35348 ecode2 = SWIG_AsVal_int(obj1, &val2);
35349 if (!SWIG_IsOK(ecode2)) {
35350 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35351 }
35352 arg2 = static_cast< int >(val2);
35353 {
35354 PyThreadState* __tstate = wxPyBeginAllowThreads();
35355 result = (bool)(arg1)->GetIdGreyedOut(arg2);
35356 wxPyEndAllowThreads(__tstate);
35357 if (PyErr_Occurred()) SWIG_fail;
35358 }
35359 {
35360 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35361 }
35362 return resultobj;
35363fail:
35364 return NULL;
35365}
35366
35367
35368SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35369 PyObject *resultobj = 0;
35370 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35371 int arg2 ;
35372 int arg3 ;
35373 int arg4 = (int) 1 ;
35374 wxColor const &arg5_defvalue = *wxWHITE ;
35375 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
35376 PyObject *result = 0 ;
35377 void *argp1 = 0 ;
35378 int res1 = 0 ;
35379 int val2 ;
35380 int ecode2 = 0 ;
35381 int val3 ;
35382 int ecode3 = 0 ;
35383 int val4 ;
35384 int ecode4 = 0 ;
35385 void *argp5 = 0 ;
35386 int res5 = 0 ;
35387 PyObject * obj0 = 0 ;
35388 PyObject * obj1 = 0 ;
35389 PyObject * obj2 = 0 ;
35390 PyObject * obj3 = 0 ;
35391 PyObject * obj4 = 0 ;
35392 char * kwnames[] = {
35393 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
35394 };
35395
35396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35398 if (!SWIG_IsOK(res1)) {
35399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35400 }
35401 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35402 ecode2 = SWIG_AsVal_int(obj1, &val2);
35403 if (!SWIG_IsOK(ecode2)) {
35404 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
35405 }
35406 arg2 = static_cast< int >(val2);
35407 ecode3 = SWIG_AsVal_int(obj2, &val3);
35408 if (!SWIG_IsOK(ecode3)) {
35409 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
35410 }
35411 arg3 = static_cast< int >(val3);
35412 if (obj3) {
35413 ecode4 = SWIG_AsVal_int(obj3, &val4);
35414 if (!SWIG_IsOK(ecode4)) {
35415 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
35416 }
35417 arg4 = static_cast< int >(val4);
35418 }
35419 if (obj4) {
35420 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
35421 if (!SWIG_IsOK(res5)) {
35422 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
35423 }
35424 if (!argp5) {
35425 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
35426 }
35427 arg5 = reinterpret_cast< wxColor * >(argp5);
35428 }
35429 {
35430 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
35431 if (PyErr_Occurred()) SWIG_fail;
35432 }
35433 resultobj = result;
35434 return resultobj;
35435fail:
35436 return NULL;
35437}
35438
35439
35440SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35441 PyObject *resultobj = 0;
35442 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35443 int arg2 ;
35444 int arg3 ;
35445 PyObject *result = 0 ;
35446 void *argp1 = 0 ;
35447 int res1 = 0 ;
35448 int val2 ;
35449 int ecode2 = 0 ;
35450 int val3 ;
35451 int ecode3 = 0 ;
35452 PyObject * obj0 = 0 ;
35453 PyObject * obj1 = 0 ;
35454 PyObject * obj2 = 0 ;
35455 char * kwnames[] = {
35456 (char *) "self",(char *) "x",(char *) "y", NULL
35457 };
35458
35459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35461 if (!SWIG_IsOK(res1)) {
35462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35463 }
35464 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35465 ecode2 = SWIG_AsVal_int(obj1, &val2);
35466 if (!SWIG_IsOK(ecode2)) {
35467 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
35468 }
35469 arg2 = static_cast< int >(val2);
35470 ecode3 = SWIG_AsVal_int(obj2, &val3);
35471 if (!SWIG_IsOK(ecode3)) {
35472 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
35473 }
35474 arg3 = static_cast< int >(val3);
35475 {
35476 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
35477 if (PyErr_Occurred()) SWIG_fail;
35478 }
35479 resultobj = result;
35480 return resultobj;
35481fail:
35482 return NULL;
35483}
35484
35485
27e45892
RD
35486SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35487 PyObject *resultobj = 0;
35488 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35489 int arg2 ;
35490 wxDC *arg3 = (wxDC *) 0 ;
35491 void *argp1 = 0 ;
35492 int res1 = 0 ;
35493 int val2 ;
35494 int ecode2 = 0 ;
35495 void *argp3 = 0 ;
35496 int res3 = 0 ;
35497 PyObject * obj0 = 0 ;
35498 PyObject * obj1 = 0 ;
35499 PyObject * obj2 = 0 ;
35500 char * kwnames[] = {
35501 (char *) "self",(char *) "id",(char *) "dc", NULL
35502 };
35503
35504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35506 if (!SWIG_IsOK(res1)) {
35507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35508 }
35509 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35510 ecode2 = SWIG_AsVal_int(obj1, &val2);
35511 if (!SWIG_IsOK(ecode2)) {
35512 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
35513 }
35514 arg2 = static_cast< int >(val2);
35515 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
35516 if (!SWIG_IsOK(res3)) {
35517 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
35518 }
35519 arg3 = reinterpret_cast< wxDC * >(argp3);
35520 {
35521 PyThreadState* __tstate = wxPyBeginAllowThreads();
35522 (arg1)->DrawIdToDC(arg2,arg3);
35523 wxPyEndAllowThreads(__tstate);
35524 if (PyErr_Occurred()) SWIG_fail;
35525 }
35526 resultobj = SWIG_Py_Void();
35527 return resultobj;
35528fail:
35529 return NULL;
35530}
35531
35532
35533SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35534 PyObject *resultobj = 0;
35535 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35536 int arg2 ;
35537 wxRect *arg3 = 0 ;
35538 void *argp1 = 0 ;
35539 int res1 = 0 ;
35540 int val2 ;
35541 int ecode2 = 0 ;
35542 wxRect temp3 ;
35543 PyObject * obj0 = 0 ;
35544 PyObject * obj1 = 0 ;
35545 PyObject * obj2 = 0 ;
35546 char * kwnames[] = {
35547 (char *) "self",(char *) "id",(char *) "rect", NULL
35548 };
35549
35550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35552 if (!SWIG_IsOK(res1)) {
35553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35554 }
35555 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35556 ecode2 = SWIG_AsVal_int(obj1, &val2);
35557 if (!SWIG_IsOK(ecode2)) {
35558 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
35559 }
35560 arg2 = static_cast< int >(val2);
35561 {
35562 arg3 = &temp3;
35563 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35564 }
35565 {
35566 PyThreadState* __tstate = wxPyBeginAllowThreads();
35567 (arg1)->SetIdBounds(arg2,*arg3);
35568 wxPyEndAllowThreads(__tstate);
35569 if (PyErr_Occurred()) SWIG_fail;
35570 }
35571 resultobj = SWIG_Py_Void();
35572 return resultobj;
35573fail:
35574 return NULL;
35575}
35576
35577
35578SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35579 PyObject *resultobj = 0;
35580 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35581 int arg2 ;
35582 wxRect result;
35583 void *argp1 = 0 ;
35584 int res1 = 0 ;
35585 int val2 ;
35586 int ecode2 = 0 ;
35587 PyObject * obj0 = 0 ;
35588 PyObject * obj1 = 0 ;
35589 char * kwnames[] = {
35590 (char *) "self",(char *) "id", NULL
35591 };
35592
35593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
35594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35595 if (!SWIG_IsOK(res1)) {
35596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35597 }
35598 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35599 ecode2 = SWIG_AsVal_int(obj1, &val2);
35600 if (!SWIG_IsOK(ecode2)) {
35601 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
35602 }
35603 arg2 = static_cast< int >(val2);
35604 {
35605 PyThreadState* __tstate = wxPyBeginAllowThreads();
35606 result = wxPseudoDC_GetIdBounds(arg1,arg2);
35607 wxPyEndAllowThreads(__tstate);
35608 if (PyErr_Occurred()) SWIG_fail;
35609 }
35610 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
35611 return resultobj;
35612fail:
35613 return NULL;
35614}
35615
35616
35617SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35618 PyObject *resultobj = 0;
35619 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35620 wxDC *arg2 = (wxDC *) 0 ;
35621 wxRect *arg3 = 0 ;
35622 void *argp1 = 0 ;
35623 int res1 = 0 ;
35624 void *argp2 = 0 ;
35625 int res2 = 0 ;
35626 wxRect temp3 ;
35627 PyObject * obj0 = 0 ;
35628 PyObject * obj1 = 0 ;
35629 PyObject * obj2 = 0 ;
35630 char * kwnames[] = {
35631 (char *) "self",(char *) "dc",(char *) "rect", NULL
35632 };
35633
35634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35636 if (!SWIG_IsOK(res1)) {
35637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35638 }
35639 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35640 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35641 if (!SWIG_IsOK(res2)) {
35642 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
35643 }
35644 arg2 = reinterpret_cast< wxDC * >(argp2);
35645 {
35646 arg3 = &temp3;
35647 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35648 }
35649 {
35650 PyThreadState* __tstate = wxPyBeginAllowThreads();
35651 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
35652 wxPyEndAllowThreads(__tstate);
35653 if (PyErr_Occurred()) SWIG_fail;
35654 }
35655 resultobj = SWIG_Py_Void();
35656 return resultobj;
35657fail:
35658 return NULL;
35659}
35660
35661
35662SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35663 PyObject *resultobj = 0;
35664 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35665 wxDC *arg2 = (wxDC *) 0 ;
35666 wxRegion *arg3 = 0 ;
35667 void *argp1 = 0 ;
35668 int res1 = 0 ;
35669 void *argp2 = 0 ;
35670 int res2 = 0 ;
35671 void *argp3 = 0 ;
35672 int res3 = 0 ;
35673 PyObject * obj0 = 0 ;
35674 PyObject * obj1 = 0 ;
35675 PyObject * obj2 = 0 ;
35676 char * kwnames[] = {
35677 (char *) "self",(char *) "dc",(char *) "region", NULL
35678 };
35679
35680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35682 if (!SWIG_IsOK(res1)) {
35683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35684 }
35685 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35686 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35687 if (!SWIG_IsOK(res2)) {
35688 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
35689 }
35690 arg2 = reinterpret_cast< wxDC * >(argp2);
35691 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
35692 if (!SWIG_IsOK(res3)) {
35693 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
35694 }
35695 if (!argp3) {
35696 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
35697 }
35698 arg3 = reinterpret_cast< wxRegion * >(argp3);
35699 {
35700 PyThreadState* __tstate = wxPyBeginAllowThreads();
35701 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
35702 wxPyEndAllowThreads(__tstate);
35703 if (PyErr_Occurred()) SWIG_fail;
35704 }
35705 resultobj = SWIG_Py_Void();
35706 return resultobj;
35707fail:
35708 return NULL;
35709}
35710
35711
35712SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35713 PyObject *resultobj = 0;
35714 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35715 wxDC *arg2 = (wxDC *) 0 ;
35716 void *argp1 = 0 ;
35717 int res1 = 0 ;
35718 void *argp2 = 0 ;
35719 int res2 = 0 ;
35720 PyObject * obj0 = 0 ;
35721 PyObject * obj1 = 0 ;
35722 char * kwnames[] = {
35723 (char *) "self",(char *) "dc", NULL
35724 };
35725
35726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
35727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35728 if (!SWIG_IsOK(res1)) {
35729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35730 }
35731 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35732 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35733 if (!SWIG_IsOK(res2)) {
35734 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
35735 }
35736 arg2 = reinterpret_cast< wxDC * >(argp2);
35737 {
35738 PyThreadState* __tstate = wxPyBeginAllowThreads();
35739 (arg1)->DrawToDC(arg2);
35740 wxPyEndAllowThreads(__tstate);
35741 if (PyErr_Occurred()) SWIG_fail;
35742 }
35743 resultobj = SWIG_Py_Void();
35744 return resultobj;
35745fail:
35746 return NULL;
35747}
35748
35749
35750SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35751 PyObject *resultobj = 0;
35752 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35753 int arg2 ;
35754 int arg3 ;
35755 wxColour *arg4 = 0 ;
35756 int arg5 = (int) wxFLOOD_SURFACE ;
35757 void *argp1 = 0 ;
35758 int res1 = 0 ;
35759 int val2 ;
35760 int ecode2 = 0 ;
35761 int val3 ;
35762 int ecode3 = 0 ;
35763 wxColour temp4 ;
35764 int val5 ;
35765 int ecode5 = 0 ;
35766 PyObject * obj0 = 0 ;
35767 PyObject * obj1 = 0 ;
35768 PyObject * obj2 = 0 ;
35769 PyObject * obj3 = 0 ;
35770 PyObject * obj4 = 0 ;
35771 char * kwnames[] = {
35772 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
35773 };
35774
35775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35777 if (!SWIG_IsOK(res1)) {
35778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35779 }
35780 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35781 ecode2 = SWIG_AsVal_int(obj1, &val2);
35782 if (!SWIG_IsOK(ecode2)) {
35783 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
35784 }
35785 arg2 = static_cast< int >(val2);
35786 ecode3 = SWIG_AsVal_int(obj2, &val3);
35787 if (!SWIG_IsOK(ecode3)) {
35788 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
35789 }
35790 arg3 = static_cast< int >(val3);
35791 {
35792 arg4 = &temp4;
35793 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
35794 }
35795 if (obj4) {
35796 ecode5 = SWIG_AsVal_int(obj4, &val5);
35797 if (!SWIG_IsOK(ecode5)) {
35798 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
35799 }
35800 arg5 = static_cast< int >(val5);
35801 }
35802 {
35803 PyThreadState* __tstate = wxPyBeginAllowThreads();
35804 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
35805 wxPyEndAllowThreads(__tstate);
35806 if (PyErr_Occurred()) SWIG_fail;
35807 }
35808 resultobj = SWIG_Py_Void();
35809 return resultobj;
35810fail:
35811 return NULL;
35812}
35813
35814
35815SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35816 PyObject *resultobj = 0;
35817 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35818 wxPoint *arg2 = 0 ;
35819 wxColour *arg3 = 0 ;
35820 int arg4 = (int) wxFLOOD_SURFACE ;
35821 void *argp1 = 0 ;
35822 int res1 = 0 ;
35823 wxPoint temp2 ;
35824 wxColour temp3 ;
35825 int val4 ;
35826 int ecode4 = 0 ;
35827 PyObject * obj0 = 0 ;
35828 PyObject * obj1 = 0 ;
35829 PyObject * obj2 = 0 ;
35830 PyObject * obj3 = 0 ;
35831 char * kwnames[] = {
35832 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
35833 };
35834
35835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35837 if (!SWIG_IsOK(res1)) {
35838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35839 }
35840 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35841 {
35842 arg2 = &temp2;
35843 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
35844 }
35845 {
35846 arg3 = &temp3;
35847 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35848 }
35849 if (obj3) {
35850 ecode4 = SWIG_AsVal_int(obj3, &val4);
35851 if (!SWIG_IsOK(ecode4)) {
35852 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
35853 }
35854 arg4 = static_cast< int >(val4);
35855 }
35856 {
35857 PyThreadState* __tstate = wxPyBeginAllowThreads();
35858 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
35859 wxPyEndAllowThreads(__tstate);
35860 if (PyErr_Occurred()) SWIG_fail;
35861 }
35862 resultobj = SWIG_Py_Void();
35863 return resultobj;
35864fail:
35865 return NULL;
35866}
35867
35868
35869SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35870 PyObject *resultobj = 0;
35871 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35872 int arg2 ;
35873 int arg3 ;
35874 int arg4 ;
35875 int arg5 ;
35876 void *argp1 = 0 ;
35877 int res1 = 0 ;
35878 int val2 ;
35879 int ecode2 = 0 ;
35880 int val3 ;
35881 int ecode3 = 0 ;
35882 int val4 ;
35883 int ecode4 = 0 ;
35884 int val5 ;
35885 int ecode5 = 0 ;
35886 PyObject * obj0 = 0 ;
35887 PyObject * obj1 = 0 ;
35888 PyObject * obj2 = 0 ;
35889 PyObject * obj3 = 0 ;
35890 PyObject * obj4 = 0 ;
35891 char * kwnames[] = {
35892 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
35893 };
35894
35895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35897 if (!SWIG_IsOK(res1)) {
35898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35899 }
35900 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35901 ecode2 = SWIG_AsVal_int(obj1, &val2);
35902 if (!SWIG_IsOK(ecode2)) {
35903 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
35904 }
35905 arg2 = static_cast< int >(val2);
35906 ecode3 = SWIG_AsVal_int(obj2, &val3);
35907 if (!SWIG_IsOK(ecode3)) {
35908 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
35909 }
35910 arg3 = static_cast< int >(val3);
35911 ecode4 = SWIG_AsVal_int(obj3, &val4);
35912 if (!SWIG_IsOK(ecode4)) {
35913 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
35914 }
35915 arg4 = static_cast< int >(val4);
35916 ecode5 = SWIG_AsVal_int(obj4, &val5);
35917 if (!SWIG_IsOK(ecode5)) {
35918 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
35919 }
35920 arg5 = static_cast< int >(val5);
35921 {
35922 PyThreadState* __tstate = wxPyBeginAllowThreads();
35923 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
35924 wxPyEndAllowThreads(__tstate);
35925 if (PyErr_Occurred()) SWIG_fail;
35926 }
35927 resultobj = SWIG_Py_Void();
35928 return resultobj;
35929fail:
35930 return NULL;
35931}
35932
35933
35934SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35935 PyObject *resultobj = 0;
35936 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35937 wxPoint *arg2 = 0 ;
35938 wxPoint *arg3 = 0 ;
35939 void *argp1 = 0 ;
35940 int res1 = 0 ;
35941 wxPoint temp2 ;
35942 wxPoint temp3 ;
35943 PyObject * obj0 = 0 ;
35944 PyObject * obj1 = 0 ;
35945 PyObject * obj2 = 0 ;
35946 char * kwnames[] = {
35947 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
35948 };
35949
35950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35952 if (!SWIG_IsOK(res1)) {
35953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35954 }
35955 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35956 {
35957 arg2 = &temp2;
35958 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
35959 }
35960 {
35961 arg3 = &temp3;
35962 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
35963 }
35964 {
35965 PyThreadState* __tstate = wxPyBeginAllowThreads();
35966 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
35967 wxPyEndAllowThreads(__tstate);
35968 if (PyErr_Occurred()) SWIG_fail;
35969 }
35970 resultobj = SWIG_Py_Void();
35971 return resultobj;
35972fail:
35973 return NULL;
35974}
35975
35976
35977SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35978 PyObject *resultobj = 0;
35979 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35980 int arg2 ;
35981 int arg3 ;
35982 void *argp1 = 0 ;
35983 int res1 = 0 ;
35984 int val2 ;
35985 int ecode2 = 0 ;
35986 int val3 ;
35987 int ecode3 = 0 ;
35988 PyObject * obj0 = 0 ;
35989 PyObject * obj1 = 0 ;
35990 PyObject * obj2 = 0 ;
35991 char * kwnames[] = {
35992 (char *) "self",(char *) "x",(char *) "y", NULL
35993 };
35994
35995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35997 if (!SWIG_IsOK(res1)) {
35998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35999 }
36000 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36001 ecode2 = SWIG_AsVal_int(obj1, &val2);
36002 if (!SWIG_IsOK(ecode2)) {
36003 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
36004 }
36005 arg2 = static_cast< int >(val2);
36006 ecode3 = SWIG_AsVal_int(obj2, &val3);
36007 if (!SWIG_IsOK(ecode3)) {
36008 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
36009 }
36010 arg3 = static_cast< int >(val3);
36011 {
36012 PyThreadState* __tstate = wxPyBeginAllowThreads();
36013 (arg1)->CrossHair(arg2,arg3);
36014 wxPyEndAllowThreads(__tstate);
36015 if (PyErr_Occurred()) SWIG_fail;
36016 }
36017 resultobj = SWIG_Py_Void();
36018 return resultobj;
36019fail:
36020 return NULL;
36021}
36022
36023
36024SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36025 PyObject *resultobj = 0;
36026 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36027 wxPoint *arg2 = 0 ;
36028 void *argp1 = 0 ;
36029 int res1 = 0 ;
36030 wxPoint temp2 ;
36031 PyObject * obj0 = 0 ;
36032 PyObject * obj1 = 0 ;
36033 char * kwnames[] = {
36034 (char *) "self",(char *) "pt", NULL
36035 };
36036
36037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36039 if (!SWIG_IsOK(res1)) {
36040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36041 }
36042 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36043 {
36044 arg2 = &temp2;
36045 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36046 }
36047 {
36048 PyThreadState* __tstate = wxPyBeginAllowThreads();
36049 (arg1)->CrossHair((wxPoint const &)*arg2);
36050 wxPyEndAllowThreads(__tstate);
36051 if (PyErr_Occurred()) SWIG_fail;
36052 }
36053 resultobj = SWIG_Py_Void();
36054 return resultobj;
36055fail:
36056 return NULL;
36057}
36058
36059
36060SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36061 PyObject *resultobj = 0;
36062 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36063 int arg2 ;
36064 int arg3 ;
36065 int arg4 ;
36066 int arg5 ;
36067 int arg6 ;
36068 int arg7 ;
36069 void *argp1 = 0 ;
36070 int res1 = 0 ;
36071 int val2 ;
36072 int ecode2 = 0 ;
36073 int val3 ;
36074 int ecode3 = 0 ;
36075 int val4 ;
36076 int ecode4 = 0 ;
36077 int val5 ;
36078 int ecode5 = 0 ;
36079 int val6 ;
36080 int ecode6 = 0 ;
36081 int val7 ;
36082 int ecode7 = 0 ;
36083 PyObject * obj0 = 0 ;
36084 PyObject * obj1 = 0 ;
36085 PyObject * obj2 = 0 ;
36086 PyObject * obj3 = 0 ;
36087 PyObject * obj4 = 0 ;
36088 PyObject * obj5 = 0 ;
36089 PyObject * obj6 = 0 ;
36090 char * kwnames[] = {
36091 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
36092 };
36093
36094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36096 if (!SWIG_IsOK(res1)) {
36097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36098 }
36099 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36100 ecode2 = SWIG_AsVal_int(obj1, &val2);
36101 if (!SWIG_IsOK(ecode2)) {
36102 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
36103 }
36104 arg2 = static_cast< int >(val2);
36105 ecode3 = SWIG_AsVal_int(obj2, &val3);
36106 if (!SWIG_IsOK(ecode3)) {
36107 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
36108 }
36109 arg3 = static_cast< int >(val3);
36110 ecode4 = SWIG_AsVal_int(obj3, &val4);
36111 if (!SWIG_IsOK(ecode4)) {
36112 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
36113 }
36114 arg4 = static_cast< int >(val4);
36115 ecode5 = SWIG_AsVal_int(obj4, &val5);
36116 if (!SWIG_IsOK(ecode5)) {
36117 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
36118 }
36119 arg5 = static_cast< int >(val5);
36120 ecode6 = SWIG_AsVal_int(obj5, &val6);
36121 if (!SWIG_IsOK(ecode6)) {
36122 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
36123 }
36124 arg6 = static_cast< int >(val6);
36125 ecode7 = SWIG_AsVal_int(obj6, &val7);
36126 if (!SWIG_IsOK(ecode7)) {
36127 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
36128 }
36129 arg7 = static_cast< int >(val7);
36130 {
36131 PyThreadState* __tstate = wxPyBeginAllowThreads();
36132 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
36133 wxPyEndAllowThreads(__tstate);
36134 if (PyErr_Occurred()) SWIG_fail;
36135 }
36136 resultobj = SWIG_Py_Void();
36137 return resultobj;
36138fail:
36139 return NULL;
36140}
36141
36142
36143SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36144 PyObject *resultobj = 0;
36145 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36146 wxPoint *arg2 = 0 ;
36147 wxPoint *arg3 = 0 ;
36148 wxPoint *arg4 = 0 ;
36149 void *argp1 = 0 ;
36150 int res1 = 0 ;
36151 wxPoint temp2 ;
36152 wxPoint temp3 ;
36153 wxPoint temp4 ;
36154 PyObject * obj0 = 0 ;
36155 PyObject * obj1 = 0 ;
36156 PyObject * obj2 = 0 ;
36157 PyObject * obj3 = 0 ;
36158 char * kwnames[] = {
36159 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
36160 };
36161
36162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36164 if (!SWIG_IsOK(res1)) {
36165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36166 }
36167 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36168 {
36169 arg2 = &temp2;
36170 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36171 }
36172 {
36173 arg3 = &temp3;
36174 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36175 }
36176 {
36177 arg4 = &temp4;
36178 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36179 }
36180 {
36181 PyThreadState* __tstate = wxPyBeginAllowThreads();
36182 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
36183 wxPyEndAllowThreads(__tstate);
36184 if (PyErr_Occurred()) SWIG_fail;
36185 }
36186 resultobj = SWIG_Py_Void();
36187 return resultobj;
36188fail:
36189 return NULL;
36190}
36191
36192
36193SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36194 PyObject *resultobj = 0;
36195 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36196 int arg2 ;
36197 int arg3 ;
36198 int arg4 ;
36199 int arg5 ;
36200 void *argp1 = 0 ;
36201 int res1 = 0 ;
36202 int val2 ;
36203 int ecode2 = 0 ;
36204 int val3 ;
36205 int ecode3 = 0 ;
36206 int val4 ;
36207 int ecode4 = 0 ;
36208 int val5 ;
36209 int ecode5 = 0 ;
36210 PyObject * obj0 = 0 ;
36211 PyObject * obj1 = 0 ;
36212 PyObject * obj2 = 0 ;
36213 PyObject * obj3 = 0 ;
36214 PyObject * obj4 = 0 ;
36215 char * kwnames[] = {
36216 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36217 };
36218
36219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36221 if (!SWIG_IsOK(res1)) {
36222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36223 }
36224 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36225 ecode2 = SWIG_AsVal_int(obj1, &val2);
36226 if (!SWIG_IsOK(ecode2)) {
36227 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
36228 }
36229 arg2 = static_cast< int >(val2);
36230 ecode3 = SWIG_AsVal_int(obj2, &val3);
36231 if (!SWIG_IsOK(ecode3)) {
36232 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
36233 }
36234 arg3 = static_cast< int >(val3);
36235 ecode4 = SWIG_AsVal_int(obj3, &val4);
36236 if (!SWIG_IsOK(ecode4)) {
36237 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
36238 }
36239 arg4 = static_cast< int >(val4);
36240 ecode5 = SWIG_AsVal_int(obj4, &val5);
36241 if (!SWIG_IsOK(ecode5)) {
36242 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
36243 }
36244 arg5 = static_cast< int >(val5);
36245 {
36246 PyThreadState* __tstate = wxPyBeginAllowThreads();
36247 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
36248 wxPyEndAllowThreads(__tstate);
36249 if (PyErr_Occurred()) SWIG_fail;
36250 }
36251 resultobj = SWIG_Py_Void();
36252 return resultobj;
36253fail:
36254 return NULL;
36255}
36256
36257
36258SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36259 PyObject *resultobj = 0;
36260 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36261 wxRect *arg2 = 0 ;
36262 void *argp1 = 0 ;
36263 int res1 = 0 ;
36264 wxRect temp2 ;
36265 PyObject * obj0 = 0 ;
36266 PyObject * obj1 = 0 ;
36267 char * kwnames[] = {
36268 (char *) "self",(char *) "rect", NULL
36269 };
36270
36271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
36272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36273 if (!SWIG_IsOK(res1)) {
36274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36275 }
36276 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36277 {
36278 arg2 = &temp2;
36279 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36280 }
36281 {
36282 PyThreadState* __tstate = wxPyBeginAllowThreads();
36283 (arg1)->DrawCheckMark((wxRect const &)*arg2);
36284 wxPyEndAllowThreads(__tstate);
36285 if (PyErr_Occurred()) SWIG_fail;
36286 }
36287 resultobj = SWIG_Py_Void();
36288 return resultobj;
36289fail:
36290 return NULL;
36291}
36292
36293
36294SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36295 PyObject *resultobj = 0;
36296 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36297 int arg2 ;
36298 int arg3 ;
36299 int arg4 ;
36300 int arg5 ;
36301 double arg6 ;
36302 double arg7 ;
36303 void *argp1 = 0 ;
36304 int res1 = 0 ;
36305 int val2 ;
36306 int ecode2 = 0 ;
36307 int val3 ;
36308 int ecode3 = 0 ;
36309 int val4 ;
36310 int ecode4 = 0 ;
36311 int val5 ;
36312 int ecode5 = 0 ;
36313 double val6 ;
36314 int ecode6 = 0 ;
36315 double val7 ;
36316 int ecode7 = 0 ;
36317 PyObject * obj0 = 0 ;
36318 PyObject * obj1 = 0 ;
36319 PyObject * obj2 = 0 ;
36320 PyObject * obj3 = 0 ;
36321 PyObject * obj4 = 0 ;
36322 PyObject * obj5 = 0 ;
36323 PyObject * obj6 = 0 ;
36324 char * kwnames[] = {
36325 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
36326 };
36327
36328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36330 if (!SWIG_IsOK(res1)) {
36331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36332 }
36333 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36334 ecode2 = SWIG_AsVal_int(obj1, &val2);
36335 if (!SWIG_IsOK(ecode2)) {
36336 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
36337 }
36338 arg2 = static_cast< int >(val2);
36339 ecode3 = SWIG_AsVal_int(obj2, &val3);
36340 if (!SWIG_IsOK(ecode3)) {
36341 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
36342 }
36343 arg3 = static_cast< int >(val3);
36344 ecode4 = SWIG_AsVal_int(obj3, &val4);
36345 if (!SWIG_IsOK(ecode4)) {
36346 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
36347 }
36348 arg4 = static_cast< int >(val4);
36349 ecode5 = SWIG_AsVal_int(obj4, &val5);
36350 if (!SWIG_IsOK(ecode5)) {
36351 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
36352 }
36353 arg5 = static_cast< int >(val5);
36354 ecode6 = SWIG_AsVal_double(obj5, &val6);
36355 if (!SWIG_IsOK(ecode6)) {
36356 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
36357 }
36358 arg6 = static_cast< double >(val6);
36359 ecode7 = SWIG_AsVal_double(obj6, &val7);
36360 if (!SWIG_IsOK(ecode7)) {
36361 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
36362 }
36363 arg7 = static_cast< double >(val7);
36364 {
36365 PyThreadState* __tstate = wxPyBeginAllowThreads();
36366 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
36367 wxPyEndAllowThreads(__tstate);
36368 if (PyErr_Occurred()) SWIG_fail;
36369 }
36370 resultobj = SWIG_Py_Void();
36371 return resultobj;
36372fail:
36373 return NULL;
36374}
36375
36376
36377SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36378 PyObject *resultobj = 0;
36379 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36380 wxPoint *arg2 = 0 ;
36381 wxSize *arg3 = 0 ;
36382 double arg4 ;
36383 double arg5 ;
36384 void *argp1 = 0 ;
36385 int res1 = 0 ;
36386 wxPoint temp2 ;
36387 wxSize temp3 ;
36388 double val4 ;
36389 int ecode4 = 0 ;
36390 double val5 ;
36391 int ecode5 = 0 ;
36392 PyObject * obj0 = 0 ;
36393 PyObject * obj1 = 0 ;
36394 PyObject * obj2 = 0 ;
36395 PyObject * obj3 = 0 ;
36396 PyObject * obj4 = 0 ;
36397 char * kwnames[] = {
36398 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
36399 };
36400
36401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36403 if (!SWIG_IsOK(res1)) {
36404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36405 }
36406 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36407 {
36408 arg2 = &temp2;
36409 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36410 }
36411 {
36412 arg3 = &temp3;
36413 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36414 }
36415 ecode4 = SWIG_AsVal_double(obj3, &val4);
36416 if (!SWIG_IsOK(ecode4)) {
36417 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
36418 }
36419 arg4 = static_cast< double >(val4);
36420 ecode5 = SWIG_AsVal_double(obj4, &val5);
36421 if (!SWIG_IsOK(ecode5)) {
36422 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
36423 }
36424 arg5 = static_cast< double >(val5);
36425 {
36426 PyThreadState* __tstate = wxPyBeginAllowThreads();
36427 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
36428 wxPyEndAllowThreads(__tstate);
36429 if (PyErr_Occurred()) SWIG_fail;
36430 }
36431 resultobj = SWIG_Py_Void();
36432 return resultobj;
36433fail:
36434 return NULL;
36435}
36436
36437
36438SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36439 PyObject *resultobj = 0;
36440 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36441 int arg2 ;
36442 int arg3 ;
36443 void *argp1 = 0 ;
36444 int res1 = 0 ;
36445 int val2 ;
36446 int ecode2 = 0 ;
36447 int val3 ;
36448 int ecode3 = 0 ;
36449 PyObject * obj0 = 0 ;
36450 PyObject * obj1 = 0 ;
36451 PyObject * obj2 = 0 ;
36452 char * kwnames[] = {
36453 (char *) "self",(char *) "x",(char *) "y", NULL
36454 };
36455
36456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36458 if (!SWIG_IsOK(res1)) {
36459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36460 }
36461 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36462 ecode2 = SWIG_AsVal_int(obj1, &val2);
36463 if (!SWIG_IsOK(ecode2)) {
36464 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
36465 }
36466 arg2 = static_cast< int >(val2);
36467 ecode3 = SWIG_AsVal_int(obj2, &val3);
36468 if (!SWIG_IsOK(ecode3)) {
36469 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
36470 }
36471 arg3 = static_cast< int >(val3);
36472 {
36473 PyThreadState* __tstate = wxPyBeginAllowThreads();
36474 (arg1)->DrawPoint(arg2,arg3);
36475 wxPyEndAllowThreads(__tstate);
36476 if (PyErr_Occurred()) SWIG_fail;
36477 }
36478 resultobj = SWIG_Py_Void();
36479 return resultobj;
36480fail:
36481 return NULL;
36482}
36483
36484
36485SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36486 PyObject *resultobj = 0;
36487 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36488 wxPoint *arg2 = 0 ;
36489 void *argp1 = 0 ;
36490 int res1 = 0 ;
36491 wxPoint temp2 ;
36492 PyObject * obj0 = 0 ;
36493 PyObject * obj1 = 0 ;
36494 char * kwnames[] = {
36495 (char *) "self",(char *) "pt", NULL
36496 };
36497
36498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36500 if (!SWIG_IsOK(res1)) {
36501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36502 }
36503 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36504 {
36505 arg2 = &temp2;
36506 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36507 }
36508 {
36509 PyThreadState* __tstate = wxPyBeginAllowThreads();
36510 (arg1)->DrawPoint((wxPoint const &)*arg2);
36511 wxPyEndAllowThreads(__tstate);
36512 if (PyErr_Occurred()) SWIG_fail;
36513 }
36514 resultobj = SWIG_Py_Void();
36515 return resultobj;
36516fail:
36517 return NULL;
36518}
36519
36520
36521SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36522 PyObject *resultobj = 0;
36523 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36524 int arg2 ;
36525 int arg3 ;
36526 int arg4 ;
36527 int arg5 ;
36528 void *argp1 = 0 ;
36529 int res1 = 0 ;
36530 int val2 ;
36531 int ecode2 = 0 ;
36532 int val3 ;
36533 int ecode3 = 0 ;
36534 int val4 ;
36535 int ecode4 = 0 ;
36536 int val5 ;
36537 int ecode5 = 0 ;
36538 PyObject * obj0 = 0 ;
36539 PyObject * obj1 = 0 ;
36540 PyObject * obj2 = 0 ;
36541 PyObject * obj3 = 0 ;
36542 PyObject * obj4 = 0 ;
36543 char * kwnames[] = {
36544 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36545 };
36546
36547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36549 if (!SWIG_IsOK(res1)) {
36550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36551 }
36552 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36553 ecode2 = SWIG_AsVal_int(obj1, &val2);
36554 if (!SWIG_IsOK(ecode2)) {
36555 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
36556 }
36557 arg2 = static_cast< int >(val2);
36558 ecode3 = SWIG_AsVal_int(obj2, &val3);
36559 if (!SWIG_IsOK(ecode3)) {
36560 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
36561 }
36562 arg3 = static_cast< int >(val3);
36563 ecode4 = SWIG_AsVal_int(obj3, &val4);
36564 if (!SWIG_IsOK(ecode4)) {
36565 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
36566 }
36567 arg4 = static_cast< int >(val4);
36568 ecode5 = SWIG_AsVal_int(obj4, &val5);
36569 if (!SWIG_IsOK(ecode5)) {
36570 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
36571 }
36572 arg5 = static_cast< int >(val5);
36573 {
36574 PyThreadState* __tstate = wxPyBeginAllowThreads();
36575 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
36576 wxPyEndAllowThreads(__tstate);
36577 if (PyErr_Occurred()) SWIG_fail;
36578 }
36579 resultobj = SWIG_Py_Void();
36580 return resultobj;
36581fail:
36582 return NULL;
36583}
36584
36585
36586SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36587 PyObject *resultobj = 0;
36588 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36589 wxRect *arg2 = 0 ;
36590 void *argp1 = 0 ;
36591 int res1 = 0 ;
36592 wxRect temp2 ;
36593 PyObject * obj0 = 0 ;
36594 PyObject * obj1 = 0 ;
36595 char * kwnames[] = {
36596 (char *) "self",(char *) "rect", NULL
36597 };
36598
36599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
36600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36601 if (!SWIG_IsOK(res1)) {
36602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36603 }
36604 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36605 {
36606 arg2 = &temp2;
36607 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36608 }
36609 {
36610 PyThreadState* __tstate = wxPyBeginAllowThreads();
36611 (arg1)->DrawRectangle((wxRect const &)*arg2);
36612 wxPyEndAllowThreads(__tstate);
36613 if (PyErr_Occurred()) SWIG_fail;
36614 }
36615 resultobj = SWIG_Py_Void();
36616 return resultobj;
36617fail:
36618 return NULL;
36619}
36620
36621
36622SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36623 PyObject *resultobj = 0;
36624 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36625 wxPoint *arg2 = 0 ;
36626 wxSize *arg3 = 0 ;
36627 void *argp1 = 0 ;
36628 int res1 = 0 ;
36629 wxPoint temp2 ;
36630 wxSize temp3 ;
36631 PyObject * obj0 = 0 ;
36632 PyObject * obj1 = 0 ;
36633 PyObject * obj2 = 0 ;
36634 char * kwnames[] = {
36635 (char *) "self",(char *) "pt",(char *) "sz", NULL
36636 };
36637
36638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36640 if (!SWIG_IsOK(res1)) {
36641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36642 }
36643 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36644 {
36645 arg2 = &temp2;
36646 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36647 }
36648 {
36649 arg3 = &temp3;
36650 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36651 }
36652 {
36653 PyThreadState* __tstate = wxPyBeginAllowThreads();
36654 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
36655 wxPyEndAllowThreads(__tstate);
36656 if (PyErr_Occurred()) SWIG_fail;
36657 }
36658 resultobj = SWIG_Py_Void();
36659 return resultobj;
36660fail:
36661 return NULL;
36662}
36663
36664
36665SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36666 PyObject *resultobj = 0;
36667 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36668 int arg2 ;
36669 int arg3 ;
36670 int arg4 ;
36671 int arg5 ;
36672 double arg6 ;
36673 void *argp1 = 0 ;
36674 int res1 = 0 ;
36675 int val2 ;
36676 int ecode2 = 0 ;
36677 int val3 ;
36678 int ecode3 = 0 ;
36679 int val4 ;
36680 int ecode4 = 0 ;
36681 int val5 ;
36682 int ecode5 = 0 ;
36683 double val6 ;
36684 int ecode6 = 0 ;
36685 PyObject * obj0 = 0 ;
36686 PyObject * obj1 = 0 ;
36687 PyObject * obj2 = 0 ;
36688 PyObject * obj3 = 0 ;
36689 PyObject * obj4 = 0 ;
36690 PyObject * obj5 = 0 ;
36691 char * kwnames[] = {
36692 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
36693 };
36694
36695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36697 if (!SWIG_IsOK(res1)) {
36698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36699 }
36700 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36701 ecode2 = SWIG_AsVal_int(obj1, &val2);
36702 if (!SWIG_IsOK(ecode2)) {
36703 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
36704 }
36705 arg2 = static_cast< int >(val2);
36706 ecode3 = SWIG_AsVal_int(obj2, &val3);
36707 if (!SWIG_IsOK(ecode3)) {
36708 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
36709 }
36710 arg3 = static_cast< int >(val3);
36711 ecode4 = SWIG_AsVal_int(obj3, &val4);
36712 if (!SWIG_IsOK(ecode4)) {
36713 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
36714 }
36715 arg4 = static_cast< int >(val4);
36716 ecode5 = SWIG_AsVal_int(obj4, &val5);
36717 if (!SWIG_IsOK(ecode5)) {
36718 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
36719 }
36720 arg5 = static_cast< int >(val5);
36721 ecode6 = SWIG_AsVal_double(obj5, &val6);
36722 if (!SWIG_IsOK(ecode6)) {
36723 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
36724 }
36725 arg6 = static_cast< double >(val6);
36726 {
36727 PyThreadState* __tstate = wxPyBeginAllowThreads();
36728 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
36729 wxPyEndAllowThreads(__tstate);
36730 if (PyErr_Occurred()) SWIG_fail;
36731 }
36732 resultobj = SWIG_Py_Void();
36733 return resultobj;
36734fail:
36735 return NULL;
36736}
36737
36738
36739SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36740 PyObject *resultobj = 0;
36741 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36742 wxRect *arg2 = 0 ;
36743 double arg3 ;
36744 void *argp1 = 0 ;
36745 int res1 = 0 ;
36746 wxRect temp2 ;
36747 double val3 ;
36748 int ecode3 = 0 ;
36749 PyObject * obj0 = 0 ;
36750 PyObject * obj1 = 0 ;
36751 PyObject * obj2 = 0 ;
36752 char * kwnames[] = {
36753 (char *) "self",(char *) "r",(char *) "radius", NULL
36754 };
36755
36756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36758 if (!SWIG_IsOK(res1)) {
36759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36760 }
36761 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36762 {
36763 arg2 = &temp2;
36764 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36765 }
36766 ecode3 = SWIG_AsVal_double(obj2, &val3);
36767 if (!SWIG_IsOK(ecode3)) {
36768 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
36769 }
36770 arg3 = static_cast< double >(val3);
36771 {
36772 PyThreadState* __tstate = wxPyBeginAllowThreads();
36773 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
36774 wxPyEndAllowThreads(__tstate);
36775 if (PyErr_Occurred()) SWIG_fail;
36776 }
36777 resultobj = SWIG_Py_Void();
36778 return resultobj;
36779fail:
36780 return NULL;
36781}
36782
36783
36784SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36785 PyObject *resultobj = 0;
36786 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36787 wxPoint *arg2 = 0 ;
36788 wxSize *arg3 = 0 ;
36789 double arg4 ;
36790 void *argp1 = 0 ;
36791 int res1 = 0 ;
36792 wxPoint temp2 ;
36793 wxSize temp3 ;
36794 double val4 ;
36795 int ecode4 = 0 ;
36796 PyObject * obj0 = 0 ;
36797 PyObject * obj1 = 0 ;
36798 PyObject * obj2 = 0 ;
36799 PyObject * obj3 = 0 ;
36800 char * kwnames[] = {
36801 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
36802 };
36803
36804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36806 if (!SWIG_IsOK(res1)) {
36807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36808 }
36809 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36810 {
36811 arg2 = &temp2;
36812 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36813 }
36814 {
36815 arg3 = &temp3;
36816 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36817 }
36818 ecode4 = SWIG_AsVal_double(obj3, &val4);
36819 if (!SWIG_IsOK(ecode4)) {
36820 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
36821 }
36822 arg4 = static_cast< double >(val4);
36823 {
36824 PyThreadState* __tstate = wxPyBeginAllowThreads();
36825 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
36826 wxPyEndAllowThreads(__tstate);
36827 if (PyErr_Occurred()) SWIG_fail;
36828 }
36829 resultobj = SWIG_Py_Void();
36830 return resultobj;
36831fail:
36832 return NULL;
36833}
36834
36835
36836SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36837 PyObject *resultobj = 0;
36838 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36839 int arg2 ;
36840 int arg3 ;
36841 int arg4 ;
36842 void *argp1 = 0 ;
36843 int res1 = 0 ;
36844 int val2 ;
36845 int ecode2 = 0 ;
36846 int val3 ;
36847 int ecode3 = 0 ;
36848 int val4 ;
36849 int ecode4 = 0 ;
36850 PyObject * obj0 = 0 ;
36851 PyObject * obj1 = 0 ;
36852 PyObject * obj2 = 0 ;
36853 PyObject * obj3 = 0 ;
36854 char * kwnames[] = {
36855 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
36856 };
36857
36858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36860 if (!SWIG_IsOK(res1)) {
36861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36862 }
36863 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36864 ecode2 = SWIG_AsVal_int(obj1, &val2);
36865 if (!SWIG_IsOK(ecode2)) {
36866 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
36867 }
36868 arg2 = static_cast< int >(val2);
36869 ecode3 = SWIG_AsVal_int(obj2, &val3);
36870 if (!SWIG_IsOK(ecode3)) {
36871 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
36872 }
36873 arg3 = static_cast< int >(val3);
36874 ecode4 = SWIG_AsVal_int(obj3, &val4);
36875 if (!SWIG_IsOK(ecode4)) {
36876 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
36877 }
36878 arg4 = static_cast< int >(val4);
36879 {
36880 PyThreadState* __tstate = wxPyBeginAllowThreads();
36881 (arg1)->DrawCircle(arg2,arg3,arg4);
36882 wxPyEndAllowThreads(__tstate);
36883 if (PyErr_Occurred()) SWIG_fail;
36884 }
36885 resultobj = SWIG_Py_Void();
36886 return resultobj;
36887fail:
36888 return NULL;
36889}
36890
36891
36892SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36893 PyObject *resultobj = 0;
36894 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36895 wxPoint *arg2 = 0 ;
36896 int arg3 ;
36897 void *argp1 = 0 ;
36898 int res1 = 0 ;
36899 wxPoint temp2 ;
36900 int val3 ;
36901 int ecode3 = 0 ;
36902 PyObject * obj0 = 0 ;
36903 PyObject * obj1 = 0 ;
36904 PyObject * obj2 = 0 ;
36905 char * kwnames[] = {
36906 (char *) "self",(char *) "pt",(char *) "radius", NULL
36907 };
36908
36909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36911 if (!SWIG_IsOK(res1)) {
36912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36913 }
36914 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36915 {
36916 arg2 = &temp2;
36917 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36918 }
36919 ecode3 = SWIG_AsVal_int(obj2, &val3);
36920 if (!SWIG_IsOK(ecode3)) {
36921 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
36922 }
36923 arg3 = static_cast< int >(val3);
36924 {
36925 PyThreadState* __tstate = wxPyBeginAllowThreads();
36926 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
36927 wxPyEndAllowThreads(__tstate);
36928 if (PyErr_Occurred()) SWIG_fail;
36929 }
36930 resultobj = SWIG_Py_Void();
36931 return resultobj;
36932fail:
36933 return NULL;
36934}
36935
36936
36937SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36938 PyObject *resultobj = 0;
36939 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36940 int arg2 ;
36941 int arg3 ;
36942 int arg4 ;
36943 int arg5 ;
36944 void *argp1 = 0 ;
36945 int res1 = 0 ;
36946 int val2 ;
36947 int ecode2 = 0 ;
36948 int val3 ;
36949 int ecode3 = 0 ;
36950 int val4 ;
36951 int ecode4 = 0 ;
36952 int val5 ;
36953 int ecode5 = 0 ;
36954 PyObject * obj0 = 0 ;
36955 PyObject * obj1 = 0 ;
36956 PyObject * obj2 = 0 ;
36957 PyObject * obj3 = 0 ;
36958 PyObject * obj4 = 0 ;
36959 char * kwnames[] = {
36960 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36961 };
36962
36963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36965 if (!SWIG_IsOK(res1)) {
36966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36967 }
36968 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36969 ecode2 = SWIG_AsVal_int(obj1, &val2);
36970 if (!SWIG_IsOK(ecode2)) {
36971 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
36972 }
36973 arg2 = static_cast< int >(val2);
36974 ecode3 = SWIG_AsVal_int(obj2, &val3);
36975 if (!SWIG_IsOK(ecode3)) {
36976 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
36977 }
36978 arg3 = static_cast< int >(val3);
36979 ecode4 = SWIG_AsVal_int(obj3, &val4);
36980 if (!SWIG_IsOK(ecode4)) {
36981 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
36982 }
36983 arg4 = static_cast< int >(val4);
36984 ecode5 = SWIG_AsVal_int(obj4, &val5);
36985 if (!SWIG_IsOK(ecode5)) {
36986 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
36987 }
36988 arg5 = static_cast< int >(val5);
36989 {
36990 PyThreadState* __tstate = wxPyBeginAllowThreads();
36991 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
36992 wxPyEndAllowThreads(__tstate);
36993 if (PyErr_Occurred()) SWIG_fail;
36994 }
36995 resultobj = SWIG_Py_Void();
36996 return resultobj;
36997fail:
36998 return NULL;
36999}
37000
37001
37002SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37003 PyObject *resultobj = 0;
37004 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37005 wxRect *arg2 = 0 ;
37006 void *argp1 = 0 ;
37007 int res1 = 0 ;
37008 wxRect temp2 ;
37009 PyObject * obj0 = 0 ;
37010 PyObject * obj1 = 0 ;
37011 char * kwnames[] = {
37012 (char *) "self",(char *) "rect", NULL
37013 };
37014
37015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
37016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37017 if (!SWIG_IsOK(res1)) {
37018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37019 }
37020 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37021 {
37022 arg2 = &temp2;
37023 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37024 }
37025 {
37026 PyThreadState* __tstate = wxPyBeginAllowThreads();
37027 (arg1)->DrawEllipse((wxRect const &)*arg2);
37028 wxPyEndAllowThreads(__tstate);
37029 if (PyErr_Occurred()) SWIG_fail;
37030 }
37031 resultobj = SWIG_Py_Void();
37032 return resultobj;
37033fail:
37034 return NULL;
37035}
37036
37037
37038SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37039 PyObject *resultobj = 0;
37040 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37041 wxPoint *arg2 = 0 ;
37042 wxSize *arg3 = 0 ;
37043 void *argp1 = 0 ;
37044 int res1 = 0 ;
37045 wxPoint temp2 ;
37046 wxSize temp3 ;
37047 PyObject * obj0 = 0 ;
37048 PyObject * obj1 = 0 ;
37049 PyObject * obj2 = 0 ;
37050 char * kwnames[] = {
37051 (char *) "self",(char *) "pt",(char *) "sz", NULL
37052 };
37053
37054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37056 if (!SWIG_IsOK(res1)) {
37057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37058 }
37059 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37060 {
37061 arg2 = &temp2;
37062 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37063 }
37064 {
37065 arg3 = &temp3;
37066 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37067 }
37068 {
37069 PyThreadState* __tstate = wxPyBeginAllowThreads();
37070 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
37071 wxPyEndAllowThreads(__tstate);
37072 if (PyErr_Occurred()) SWIG_fail;
37073 }
37074 resultobj = SWIG_Py_Void();
37075 return resultobj;
37076fail:
37077 return NULL;
37078}
37079
37080
37081SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37082 PyObject *resultobj = 0;
37083 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37084 wxIcon *arg2 = 0 ;
37085 int arg3 ;
37086 int arg4 ;
37087 void *argp1 = 0 ;
37088 int res1 = 0 ;
37089 void *argp2 = 0 ;
37090 int res2 = 0 ;
37091 int val3 ;
37092 int ecode3 = 0 ;
37093 int val4 ;
37094 int ecode4 = 0 ;
37095 PyObject * obj0 = 0 ;
37096 PyObject * obj1 = 0 ;
37097 PyObject * obj2 = 0 ;
37098 PyObject * obj3 = 0 ;
37099 char * kwnames[] = {
37100 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
37101 };
37102
37103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37105 if (!SWIG_IsOK(res1)) {
37106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37107 }
37108 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37109 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37110 if (!SWIG_IsOK(res2)) {
37111 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37112 }
37113 if (!argp2) {
37114 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37115 }
37116 arg2 = reinterpret_cast< wxIcon * >(argp2);
37117 ecode3 = SWIG_AsVal_int(obj2, &val3);
37118 if (!SWIG_IsOK(ecode3)) {
37119 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
37120 }
37121 arg3 = static_cast< int >(val3);
37122 ecode4 = SWIG_AsVal_int(obj3, &val4);
37123 if (!SWIG_IsOK(ecode4)) {
37124 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
37125 }
37126 arg4 = static_cast< int >(val4);
37127 {
37128 PyThreadState* __tstate = wxPyBeginAllowThreads();
37129 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
37130 wxPyEndAllowThreads(__tstate);
37131 if (PyErr_Occurred()) SWIG_fail;
37132 }
37133 resultobj = SWIG_Py_Void();
37134 return resultobj;
37135fail:
37136 return NULL;
37137}
37138
37139
37140SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37141 PyObject *resultobj = 0;
37142 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37143 wxIcon *arg2 = 0 ;
37144 wxPoint *arg3 = 0 ;
37145 void *argp1 = 0 ;
37146 int res1 = 0 ;
37147 void *argp2 = 0 ;
37148 int res2 = 0 ;
37149 wxPoint temp3 ;
37150 PyObject * obj0 = 0 ;
37151 PyObject * obj1 = 0 ;
37152 PyObject * obj2 = 0 ;
37153 char * kwnames[] = {
37154 (char *) "self",(char *) "icon",(char *) "pt", NULL
37155 };
37156
37157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37159 if (!SWIG_IsOK(res1)) {
37160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37161 }
37162 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37163 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37164 if (!SWIG_IsOK(res2)) {
37165 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37166 }
37167 if (!argp2) {
37168 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37169 }
37170 arg2 = reinterpret_cast< wxIcon * >(argp2);
37171 {
37172 arg3 = &temp3;
37173 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37174 }
37175 {
37176 PyThreadState* __tstate = wxPyBeginAllowThreads();
37177 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
37178 wxPyEndAllowThreads(__tstate);
37179 if (PyErr_Occurred()) SWIG_fail;
37180 }
37181 resultobj = SWIG_Py_Void();
37182 return resultobj;
37183fail:
37184 return NULL;
37185}
37186
37187
37188SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37189 PyObject *resultobj = 0;
37190 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37191 wxBitmap *arg2 = 0 ;
37192 int arg3 ;
37193 int arg4 ;
37194 bool arg5 = (bool) false ;
37195 void *argp1 = 0 ;
37196 int res1 = 0 ;
37197 void *argp2 = 0 ;
37198 int res2 = 0 ;
37199 int val3 ;
37200 int ecode3 = 0 ;
37201 int val4 ;
37202 int ecode4 = 0 ;
37203 bool val5 ;
37204 int ecode5 = 0 ;
37205 PyObject * obj0 = 0 ;
37206 PyObject * obj1 = 0 ;
37207 PyObject * obj2 = 0 ;
37208 PyObject * obj3 = 0 ;
37209 PyObject * obj4 = 0 ;
37210 char * kwnames[] = {
37211 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
37212 };
37213
37214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37216 if (!SWIG_IsOK(res1)) {
37217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37218 }
37219 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37220 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37221 if (!SWIG_IsOK(res2)) {
37222 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37223 }
37224 if (!argp2) {
37225 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37226 }
37227 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37228 ecode3 = SWIG_AsVal_int(obj2, &val3);
37229 if (!SWIG_IsOK(ecode3)) {
37230 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
37231 }
37232 arg3 = static_cast< int >(val3);
37233 ecode4 = SWIG_AsVal_int(obj3, &val4);
37234 if (!SWIG_IsOK(ecode4)) {
37235 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
37236 }
37237 arg4 = static_cast< int >(val4);
37238 if (obj4) {
37239 ecode5 = SWIG_AsVal_bool(obj4, &val5);
37240 if (!SWIG_IsOK(ecode5)) {
37241 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
37242 }
37243 arg5 = static_cast< bool >(val5);
37244 }
37245 {
37246 PyThreadState* __tstate = wxPyBeginAllowThreads();
37247 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
37248 wxPyEndAllowThreads(__tstate);
37249 if (PyErr_Occurred()) SWIG_fail;
37250 }
37251 resultobj = SWIG_Py_Void();
37252 return resultobj;
37253fail:
37254 return NULL;
37255}
37256
37257
37258SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37259 PyObject *resultobj = 0;
37260 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37261 wxBitmap *arg2 = 0 ;
37262 wxPoint *arg3 = 0 ;
37263 bool arg4 = (bool) false ;
37264 void *argp1 = 0 ;
37265 int res1 = 0 ;
37266 void *argp2 = 0 ;
37267 int res2 = 0 ;
37268 wxPoint temp3 ;
37269 bool val4 ;
37270 int ecode4 = 0 ;
37271 PyObject * obj0 = 0 ;
37272 PyObject * obj1 = 0 ;
37273 PyObject * obj2 = 0 ;
37274 PyObject * obj3 = 0 ;
37275 char * kwnames[] = {
37276 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
37277 };
37278
37279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37281 if (!SWIG_IsOK(res1)) {
37282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37283 }
37284 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37285 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37286 if (!SWIG_IsOK(res2)) {
37287 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37288 }
37289 if (!argp2) {
37290 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37291 }
37292 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37293 {
37294 arg3 = &temp3;
37295 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37296 }
37297 if (obj3) {
37298 ecode4 = SWIG_AsVal_bool(obj3, &val4);
37299 if (!SWIG_IsOK(ecode4)) {
37300 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
37301 }
37302 arg4 = static_cast< bool >(val4);
37303 }
37304 {
37305 PyThreadState* __tstate = wxPyBeginAllowThreads();
37306 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
37307 wxPyEndAllowThreads(__tstate);
37308 if (PyErr_Occurred()) SWIG_fail;
37309 }
37310 resultobj = SWIG_Py_Void();
37311 return resultobj;
37312fail:
37313 return NULL;
37314}
37315
37316
37317SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37318 PyObject *resultobj = 0;
37319 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37320 wxString *arg2 = 0 ;
37321 int arg3 ;
37322 int arg4 ;
37323 void *argp1 = 0 ;
37324 int res1 = 0 ;
37325 bool temp2 = false ;
37326 int val3 ;
37327 int ecode3 = 0 ;
37328 int val4 ;
37329 int ecode4 = 0 ;
37330 PyObject * obj0 = 0 ;
37331 PyObject * obj1 = 0 ;
37332 PyObject * obj2 = 0 ;
37333 PyObject * obj3 = 0 ;
37334 char * kwnames[] = {
37335 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
37336 };
37337
37338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37340 if (!SWIG_IsOK(res1)) {
37341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37342 }
37343 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37344 {
37345 arg2 = wxString_in_helper(obj1);
37346 if (arg2 == NULL) SWIG_fail;
37347 temp2 = true;
37348 }
37349 ecode3 = SWIG_AsVal_int(obj2, &val3);
37350 if (!SWIG_IsOK(ecode3)) {
37351 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
37352 }
37353 arg3 = static_cast< int >(val3);
37354 ecode4 = SWIG_AsVal_int(obj3, &val4);
37355 if (!SWIG_IsOK(ecode4)) {
37356 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
37357 }
37358 arg4 = static_cast< int >(val4);
37359 {
37360 PyThreadState* __tstate = wxPyBeginAllowThreads();
37361 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
37362 wxPyEndAllowThreads(__tstate);
37363 if (PyErr_Occurred()) SWIG_fail;
37364 }
37365 resultobj = SWIG_Py_Void();
37366 {
37367 if (temp2)
37368 delete arg2;
37369 }
37370 return resultobj;
37371fail:
37372 {
37373 if (temp2)
37374 delete arg2;
37375 }
37376 return NULL;
37377}
37378
37379
37380SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37381 PyObject *resultobj = 0;
37382 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37383 wxString *arg2 = 0 ;
37384 wxPoint *arg3 = 0 ;
37385 void *argp1 = 0 ;
37386 int res1 = 0 ;
37387 bool temp2 = false ;
37388 wxPoint temp3 ;
37389 PyObject * obj0 = 0 ;
37390 PyObject * obj1 = 0 ;
37391 PyObject * obj2 = 0 ;
37392 char * kwnames[] = {
37393 (char *) "self",(char *) "text",(char *) "pt", NULL
37394 };
37395
37396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37398 if (!SWIG_IsOK(res1)) {
37399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37400 }
37401 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37402 {
37403 arg2 = wxString_in_helper(obj1);
37404 if (arg2 == NULL) SWIG_fail;
37405 temp2 = true;
37406 }
37407 {
37408 arg3 = &temp3;
37409 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37410 }
37411 {
37412 PyThreadState* __tstate = wxPyBeginAllowThreads();
37413 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
37414 wxPyEndAllowThreads(__tstate);
37415 if (PyErr_Occurred()) SWIG_fail;
37416 }
37417 resultobj = SWIG_Py_Void();
37418 {
37419 if (temp2)
37420 delete arg2;
37421 }
37422 return resultobj;
37423fail:
37424 {
37425 if (temp2)
37426 delete arg2;
37427 }
37428 return NULL;
37429}
37430
37431
37432SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37433 PyObject *resultobj = 0;
37434 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37435 wxString *arg2 = 0 ;
37436 int arg3 ;
37437 int arg4 ;
37438 double arg5 ;
37439 void *argp1 = 0 ;
37440 int res1 = 0 ;
37441 bool temp2 = false ;
37442 int val3 ;
37443 int ecode3 = 0 ;
37444 int val4 ;
37445 int ecode4 = 0 ;
37446 double val5 ;
37447 int ecode5 = 0 ;
37448 PyObject * obj0 = 0 ;
37449 PyObject * obj1 = 0 ;
37450 PyObject * obj2 = 0 ;
37451 PyObject * obj3 = 0 ;
37452 PyObject * obj4 = 0 ;
37453 char * kwnames[] = {
37454 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
37455 };
37456
37457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37459 if (!SWIG_IsOK(res1)) {
37460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37461 }
37462 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37463 {
37464 arg2 = wxString_in_helper(obj1);
37465 if (arg2 == NULL) SWIG_fail;
37466 temp2 = true;
37467 }
37468 ecode3 = SWIG_AsVal_int(obj2, &val3);
37469 if (!SWIG_IsOK(ecode3)) {
37470 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
37471 }
37472 arg3 = static_cast< int >(val3);
37473 ecode4 = SWIG_AsVal_int(obj3, &val4);
37474 if (!SWIG_IsOK(ecode4)) {
37475 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
37476 }
37477 arg4 = static_cast< int >(val4);
37478 ecode5 = SWIG_AsVal_double(obj4, &val5);
37479 if (!SWIG_IsOK(ecode5)) {
37480 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
37481 }
37482 arg5 = static_cast< double >(val5);
37483 {
37484 PyThreadState* __tstate = wxPyBeginAllowThreads();
37485 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
37486 wxPyEndAllowThreads(__tstate);
37487 if (PyErr_Occurred()) SWIG_fail;
37488 }
37489 resultobj = SWIG_Py_Void();
37490 {
37491 if (temp2)
37492 delete arg2;
37493 }
37494 return resultobj;
37495fail:
37496 {
37497 if (temp2)
37498 delete arg2;
37499 }
37500 return NULL;
37501}
37502
37503
37504SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37505 PyObject *resultobj = 0;
37506 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37507 wxString *arg2 = 0 ;
37508 wxPoint *arg3 = 0 ;
37509 double arg4 ;
37510 void *argp1 = 0 ;
37511 int res1 = 0 ;
37512 bool temp2 = false ;
37513 wxPoint temp3 ;
37514 double val4 ;
37515 int ecode4 = 0 ;
37516 PyObject * obj0 = 0 ;
37517 PyObject * obj1 = 0 ;
37518 PyObject * obj2 = 0 ;
37519 PyObject * obj3 = 0 ;
37520 char * kwnames[] = {
37521 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
37522 };
37523
37524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37526 if (!SWIG_IsOK(res1)) {
37527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37528 }
37529 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37530 {
37531 arg2 = wxString_in_helper(obj1);
37532 if (arg2 == NULL) SWIG_fail;
37533 temp2 = true;
37534 }
37535 {
37536 arg3 = &temp3;
37537 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37538 }
37539 ecode4 = SWIG_AsVal_double(obj3, &val4);
37540 if (!SWIG_IsOK(ecode4)) {
37541 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
37542 }
37543 arg4 = static_cast< double >(val4);
37544 {
37545 PyThreadState* __tstate = wxPyBeginAllowThreads();
37546 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
37547 wxPyEndAllowThreads(__tstate);
37548 if (PyErr_Occurred()) SWIG_fail;
37549 }
37550 resultobj = SWIG_Py_Void();
37551 {
37552 if (temp2)
37553 delete arg2;
37554 }
37555 return resultobj;
37556fail:
37557 {
37558 if (temp2)
37559 delete arg2;
37560 }
37561 return NULL;
37562}
37563
37564
37565SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37566 PyObject *resultobj = 0;
37567 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37568 int arg2 ;
37569 wxPoint *arg3 = (wxPoint *) 0 ;
37570 int arg4 = (int) 0 ;
37571 int arg5 = (int) 0 ;
37572 void *argp1 = 0 ;
37573 int res1 = 0 ;
37574 int val4 ;
37575 int ecode4 = 0 ;
37576 int val5 ;
37577 int ecode5 = 0 ;
37578 PyObject * obj0 = 0 ;
37579 PyObject * obj1 = 0 ;
37580 PyObject * obj2 = 0 ;
37581 PyObject * obj3 = 0 ;
37582 char * kwnames[] = {
37583 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
37584 };
37585
37586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37588 if (!SWIG_IsOK(res1)) {
37589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37590 }
37591 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37592 {
37593 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37594 if (arg3 == NULL) SWIG_fail;
37595 }
37596 if (obj2) {
37597 ecode4 = SWIG_AsVal_int(obj2, &val4);
37598 if (!SWIG_IsOK(ecode4)) {
37599 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
37600 }
37601 arg4 = static_cast< int >(val4);
37602 }
37603 if (obj3) {
37604 ecode5 = SWIG_AsVal_int(obj3, &val5);
37605 if (!SWIG_IsOK(ecode5)) {
37606 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
37607 }
37608 arg5 = static_cast< int >(val5);
37609 }
37610 {
37611 PyThreadState* __tstate = wxPyBeginAllowThreads();
37612 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
37613 wxPyEndAllowThreads(__tstate);
37614 if (PyErr_Occurred()) SWIG_fail;
37615 }
37616 resultobj = SWIG_Py_Void();
37617 {
37618 if (arg3) delete [] arg3;
37619 }
37620 return resultobj;
37621fail:
37622 {
37623 if (arg3) delete [] arg3;
37624 }
37625 return NULL;
37626}
37627
37628
37629SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37630 PyObject *resultobj = 0;
37631 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37632 int arg2 ;
37633 wxPoint *arg3 = (wxPoint *) 0 ;
37634 int arg4 = (int) 0 ;
37635 int arg5 = (int) 0 ;
37636 int arg6 = (int) wxODDEVEN_RULE ;
37637 void *argp1 = 0 ;
37638 int res1 = 0 ;
37639 int val4 ;
37640 int ecode4 = 0 ;
37641 int val5 ;
37642 int ecode5 = 0 ;
37643 int val6 ;
37644 int ecode6 = 0 ;
37645 PyObject * obj0 = 0 ;
37646 PyObject * obj1 = 0 ;
37647 PyObject * obj2 = 0 ;
37648 PyObject * obj3 = 0 ;
37649 PyObject * obj4 = 0 ;
37650 char * kwnames[] = {
37651 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
37652 };
37653
37654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37656 if (!SWIG_IsOK(res1)) {
37657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37658 }
37659 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37660 {
37661 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37662 if (arg3 == NULL) SWIG_fail;
37663 }
37664 if (obj2) {
37665 ecode4 = SWIG_AsVal_int(obj2, &val4);
37666 if (!SWIG_IsOK(ecode4)) {
37667 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
37668 }
37669 arg4 = static_cast< int >(val4);
37670 }
37671 if (obj3) {
37672 ecode5 = SWIG_AsVal_int(obj3, &val5);
37673 if (!SWIG_IsOK(ecode5)) {
37674 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
37675 }
37676 arg5 = static_cast< int >(val5);
37677 }
37678 if (obj4) {
37679 ecode6 = SWIG_AsVal_int(obj4, &val6);
37680 if (!SWIG_IsOK(ecode6)) {
37681 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
37682 }
37683 arg6 = static_cast< int >(val6);
37684 }
37685 {
37686 PyThreadState* __tstate = wxPyBeginAllowThreads();
37687 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
37688 wxPyEndAllowThreads(__tstate);
37689 if (PyErr_Occurred()) SWIG_fail;
37690 }
37691 resultobj = SWIG_Py_Void();
37692 {
37693 if (arg3) delete [] arg3;
37694 }
37695 return resultobj;
37696fail:
37697 {
37698 if (arg3) delete [] arg3;
37699 }
37700 return NULL;
37701}
37702
37703
37704SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37705 PyObject *resultobj = 0;
37706 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37707 wxString *arg2 = 0 ;
37708 wxRect *arg3 = 0 ;
37709 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
37710 int arg5 = (int) -1 ;
37711 void *argp1 = 0 ;
37712 int res1 = 0 ;
37713 bool temp2 = false ;
37714 wxRect temp3 ;
37715 int val4 ;
37716 int ecode4 = 0 ;
37717 int val5 ;
37718 int ecode5 = 0 ;
37719 PyObject * obj0 = 0 ;
37720 PyObject * obj1 = 0 ;
37721 PyObject * obj2 = 0 ;
37722 PyObject * obj3 = 0 ;
37723 PyObject * obj4 = 0 ;
37724 char * kwnames[] = {
37725 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
37726 };
37727
37728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37730 if (!SWIG_IsOK(res1)) {
37731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37732 }
37733 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37734 {
37735 arg2 = wxString_in_helper(obj1);
37736 if (arg2 == NULL) SWIG_fail;
37737 temp2 = true;
37738 }
37739 {
37740 arg3 = &temp3;
37741 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
37742 }
37743 if (obj3) {
37744 ecode4 = SWIG_AsVal_int(obj3, &val4);
37745 if (!SWIG_IsOK(ecode4)) {
37746 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
37747 }
37748 arg4 = static_cast< int >(val4);
37749 }
37750 if (obj4) {
37751 ecode5 = SWIG_AsVal_int(obj4, &val5);
37752 if (!SWIG_IsOK(ecode5)) {
37753 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
37754 }
37755 arg5 = static_cast< int >(val5);
37756 }
37757 {
37758 PyThreadState* __tstate = wxPyBeginAllowThreads();
37759 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
37760 wxPyEndAllowThreads(__tstate);
37761 if (PyErr_Occurred()) SWIG_fail;
37762 }
37763 resultobj = SWIG_Py_Void();
37764 {
37765 if (temp2)
37766 delete arg2;
37767 }
37768 return resultobj;
37769fail:
37770 {
37771 if (temp2)
37772 delete arg2;
37773 }
37774 return NULL;
37775}
37776
37777
37778SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37779 PyObject *resultobj = 0;
37780 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37781 wxString *arg2 = 0 ;
37782 wxBitmap *arg3 = 0 ;
37783 wxRect *arg4 = 0 ;
37784 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
37785 int arg6 = (int) -1 ;
37786 void *argp1 = 0 ;
37787 int res1 = 0 ;
37788 bool temp2 = false ;
37789 void *argp3 = 0 ;
37790 int res3 = 0 ;
37791 wxRect temp4 ;
37792 int val5 ;
37793 int ecode5 = 0 ;
37794 int val6 ;
37795 int ecode6 = 0 ;
37796 PyObject * obj0 = 0 ;
37797 PyObject * obj1 = 0 ;
37798 PyObject * obj2 = 0 ;
37799 PyObject * obj3 = 0 ;
37800 PyObject * obj4 = 0 ;
37801 PyObject * obj5 = 0 ;
37802 char * kwnames[] = {
37803 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
37804 };
37805
37806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37808 if (!SWIG_IsOK(res1)) {
37809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37810 }
37811 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37812 {
37813 arg2 = wxString_in_helper(obj1);
37814 if (arg2 == NULL) SWIG_fail;
37815 temp2 = true;
37816 }
37817 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
37818 if (!SWIG_IsOK(res3)) {
37819 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
37820 }
37821 if (!argp3) {
37822 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
37823 }
37824 arg3 = reinterpret_cast< wxBitmap * >(argp3);
37825 {
37826 arg4 = &temp4;
37827 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
37828 }
37829 if (obj4) {
37830 ecode5 = SWIG_AsVal_int(obj4, &val5);
37831 if (!SWIG_IsOK(ecode5)) {
37832 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
37833 }
37834 arg5 = static_cast< int >(val5);
37835 }
37836 if (obj5) {
37837 ecode6 = SWIG_AsVal_int(obj5, &val6);
37838 if (!SWIG_IsOK(ecode6)) {
37839 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
37840 }
37841 arg6 = static_cast< int >(val6);
37842 }
37843 {
37844 PyThreadState* __tstate = wxPyBeginAllowThreads();
37845 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
37846 wxPyEndAllowThreads(__tstate);
37847 if (PyErr_Occurred()) SWIG_fail;
37848 }
37849 resultobj = SWIG_Py_Void();
37850 {
37851 if (temp2)
37852 delete arg2;
37853 }
37854 return resultobj;
37855fail:
37856 {
37857 if (temp2)
37858 delete arg2;
37859 }
37860 return NULL;
37861}
37862
37863
37864SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37865 PyObject *resultobj = 0;
37866 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37867 int arg2 ;
37868 wxPoint *arg3 = (wxPoint *) 0 ;
37869 void *argp1 = 0 ;
37870 int res1 = 0 ;
37871 PyObject * obj0 = 0 ;
37872 PyObject * obj1 = 0 ;
37873 char * kwnames[] = {
37874 (char *) "self",(char *) "points", NULL
37875 };
37876
37877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
37878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37879 if (!SWIG_IsOK(res1)) {
37880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37881 }
37882 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37883 {
37884 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37885 if (arg3 == NULL) SWIG_fail;
37886 }
37887 {
37888 PyThreadState* __tstate = wxPyBeginAllowThreads();
37889 (arg1)->DrawSpline(arg2,arg3);
37890 wxPyEndAllowThreads(__tstate);
37891 if (PyErr_Occurred()) SWIG_fail;
37892 }
37893 resultobj = SWIG_Py_Void();
37894 {
37895 if (arg3) delete [] arg3;
37896 }
37897 return resultobj;
37898fail:
37899 {
37900 if (arg3) delete [] arg3;
37901 }
37902 return NULL;
37903}
37904
37905
37906SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37907 PyObject *resultobj = 0;
37908 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37909 void *argp1 = 0 ;
37910 int res1 = 0 ;
37911 PyObject *swig_obj[1] ;
37912
37913 if (!args) SWIG_fail;
37914 swig_obj[0] = args;
37915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37916 if (!SWIG_IsOK(res1)) {
37917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37918 }
37919 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37920 {
37921 PyThreadState* __tstate = wxPyBeginAllowThreads();
37922 (arg1)->Clear();
37923 wxPyEndAllowThreads(__tstate);
37924 if (PyErr_Occurred()) SWIG_fail;
37925 }
37926 resultobj = SWIG_Py_Void();
37927 return resultobj;
37928fail:
37929 return NULL;
37930}
37931
37932
37933SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37934 PyObject *resultobj = 0;
37935 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37936 wxFont *arg2 = 0 ;
37937 void *argp1 = 0 ;
37938 int res1 = 0 ;
37939 void *argp2 = 0 ;
37940 int res2 = 0 ;
37941 PyObject * obj0 = 0 ;
37942 PyObject * obj1 = 0 ;
37943 char * kwnames[] = {
37944 (char *) "self",(char *) "font", NULL
37945 };
37946
37947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
37948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37949 if (!SWIG_IsOK(res1)) {
37950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37951 }
37952 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37953 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
37954 if (!SWIG_IsOK(res2)) {
37955 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
37956 }
37957 if (!argp2) {
37958 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
37959 }
37960 arg2 = reinterpret_cast< wxFont * >(argp2);
37961 {
37962 PyThreadState* __tstate = wxPyBeginAllowThreads();
37963 (arg1)->SetFont((wxFont const &)*arg2);
37964 wxPyEndAllowThreads(__tstate);
37965 if (PyErr_Occurred()) SWIG_fail;
37966 }
37967 resultobj = SWIG_Py_Void();
37968 return resultobj;
37969fail:
37970 return NULL;
37971}
37972
37973
37974SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37975 PyObject *resultobj = 0;
37976 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37977 wxPen *arg2 = 0 ;
37978 void *argp1 = 0 ;
37979 int res1 = 0 ;
37980 void *argp2 = 0 ;
37981 int res2 = 0 ;
37982 PyObject * obj0 = 0 ;
37983 PyObject * obj1 = 0 ;
37984 char * kwnames[] = {
37985 (char *) "self",(char *) "pen", NULL
37986 };
37987
37988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
37989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37990 if (!SWIG_IsOK(res1)) {
37991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37992 }
37993 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37994 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
37995 if (!SWIG_IsOK(res2)) {
37996 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
37997 }
37998 if (!argp2) {
37999 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38000 }
38001 arg2 = reinterpret_cast< wxPen * >(argp2);
38002 {
38003 PyThreadState* __tstate = wxPyBeginAllowThreads();
38004 (arg1)->SetPen((wxPen const &)*arg2);
38005 wxPyEndAllowThreads(__tstate);
38006 if (PyErr_Occurred()) SWIG_fail;
38007 }
38008 resultobj = SWIG_Py_Void();
38009 return resultobj;
38010fail:
38011 return NULL;
38012}
38013
38014
38015SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38016 PyObject *resultobj = 0;
38017 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38018 wxBrush *arg2 = 0 ;
38019 void *argp1 = 0 ;
38020 int res1 = 0 ;
38021 void *argp2 = 0 ;
38022 int res2 = 0 ;
38023 PyObject * obj0 = 0 ;
38024 PyObject * obj1 = 0 ;
38025 char * kwnames[] = {
38026 (char *) "self",(char *) "brush", NULL
38027 };
38028
38029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
38030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38031 if (!SWIG_IsOK(res1)) {
38032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38033 }
38034 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38035 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38036 if (!SWIG_IsOK(res2)) {
38037 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38038 }
38039 if (!argp2) {
38040 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38041 }
38042 arg2 = reinterpret_cast< wxBrush * >(argp2);
38043 {
38044 PyThreadState* __tstate = wxPyBeginAllowThreads();
38045 (arg1)->SetBrush((wxBrush const &)*arg2);
38046 wxPyEndAllowThreads(__tstate);
38047 if (PyErr_Occurred()) SWIG_fail;
38048 }
38049 resultobj = SWIG_Py_Void();
38050 return resultobj;
38051fail:
38052 return NULL;
38053}
38054
38055
38056SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38057 PyObject *resultobj = 0;
38058 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38059 wxBrush *arg2 = 0 ;
38060 void *argp1 = 0 ;
38061 int res1 = 0 ;
38062 void *argp2 = 0 ;
38063 int res2 = 0 ;
38064 PyObject * obj0 = 0 ;
38065 PyObject * obj1 = 0 ;
38066 char * kwnames[] = {
38067 (char *) "self",(char *) "brush", NULL
38068 };
38069
38070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38072 if (!SWIG_IsOK(res1)) {
38073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38074 }
38075 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38076 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38077 if (!SWIG_IsOK(res2)) {
38078 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38079 }
38080 if (!argp2) {
38081 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38082 }
38083 arg2 = reinterpret_cast< wxBrush * >(argp2);
38084 {
38085 PyThreadState* __tstate = wxPyBeginAllowThreads();
38086 (arg1)->SetBackground((wxBrush const &)*arg2);
38087 wxPyEndAllowThreads(__tstate);
38088 if (PyErr_Occurred()) SWIG_fail;
38089 }
38090 resultobj = SWIG_Py_Void();
38091 return resultobj;
38092fail:
38093 return NULL;
38094}
38095
38096
38097SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38098 PyObject *resultobj = 0;
38099 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38100 int arg2 ;
38101 void *argp1 = 0 ;
38102 int res1 = 0 ;
38103 int val2 ;
38104 int ecode2 = 0 ;
38105 PyObject * obj0 = 0 ;
38106 PyObject * obj1 = 0 ;
38107 char * kwnames[] = {
38108 (char *) "self",(char *) "mode", NULL
38109 };
38110
38111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
38112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38113 if (!SWIG_IsOK(res1)) {
38114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38115 }
38116 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38117 ecode2 = SWIG_AsVal_int(obj1, &val2);
38118 if (!SWIG_IsOK(ecode2)) {
38119 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
38120 }
38121 arg2 = static_cast< int >(val2);
38122 {
38123 PyThreadState* __tstate = wxPyBeginAllowThreads();
38124 (arg1)->SetBackgroundMode(arg2);
38125 wxPyEndAllowThreads(__tstate);
38126 if (PyErr_Occurred()) SWIG_fail;
38127 }
38128 resultobj = SWIG_Py_Void();
38129 return resultobj;
38130fail:
38131 return NULL;
38132}
38133
38134
38135SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38136 PyObject *resultobj = 0;
38137 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38138 wxPalette *arg2 = 0 ;
38139 void *argp1 = 0 ;
38140 int res1 = 0 ;
38141 void *argp2 = 0 ;
38142 int res2 = 0 ;
38143 PyObject * obj0 = 0 ;
38144 PyObject * obj1 = 0 ;
38145 char * kwnames[] = {
38146 (char *) "self",(char *) "palette", NULL
38147 };
38148
38149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
38150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38151 if (!SWIG_IsOK(res1)) {
38152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38153 }
38154 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38155 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
38156 if (!SWIG_IsOK(res2)) {
38157 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38158 }
38159 if (!argp2) {
38160 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38161 }
38162 arg2 = reinterpret_cast< wxPalette * >(argp2);
38163 {
38164 PyThreadState* __tstate = wxPyBeginAllowThreads();
38165 (arg1)->SetPalette((wxPalette const &)*arg2);
38166 wxPyEndAllowThreads(__tstate);
38167 if (PyErr_Occurred()) SWIG_fail;
38168 }
38169 resultobj = SWIG_Py_Void();
38170 return resultobj;
38171fail:
38172 return NULL;
38173}
38174
38175
38176SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38177 PyObject *resultobj = 0;
38178 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38179 wxColour *arg2 = 0 ;
38180 void *argp1 = 0 ;
38181 int res1 = 0 ;
38182 wxColour temp2 ;
38183 PyObject * obj0 = 0 ;
38184 PyObject * obj1 = 0 ;
38185 char * kwnames[] = {
38186 (char *) "self",(char *) "colour", NULL
38187 };
38188
38189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
38190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38191 if (!SWIG_IsOK(res1)) {
38192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38193 }
38194 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38195 {
38196 arg2 = &temp2;
38197 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38198 }
38199 {
38200 PyThreadState* __tstate = wxPyBeginAllowThreads();
38201 (arg1)->SetTextForeground((wxColour const &)*arg2);
38202 wxPyEndAllowThreads(__tstate);
38203 if (PyErr_Occurred()) SWIG_fail;
38204 }
38205 resultobj = SWIG_Py_Void();
38206 return resultobj;
38207fail:
38208 return NULL;
38209}
38210
38211
38212SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38213 PyObject *resultobj = 0;
38214 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38215 wxColour *arg2 = 0 ;
38216 void *argp1 = 0 ;
38217 int res1 = 0 ;
38218 wxColour temp2 ;
38219 PyObject * obj0 = 0 ;
38220 PyObject * obj1 = 0 ;
38221 char * kwnames[] = {
38222 (char *) "self",(char *) "colour", NULL
38223 };
38224
38225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38227 if (!SWIG_IsOK(res1)) {
38228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38229 }
38230 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38231 {
38232 arg2 = &temp2;
38233 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38234 }
38235 {
38236 PyThreadState* __tstate = wxPyBeginAllowThreads();
38237 (arg1)->SetTextBackground((wxColour const &)*arg2);
38238 wxPyEndAllowThreads(__tstate);
38239 if (PyErr_Occurred()) SWIG_fail;
38240 }
38241 resultobj = SWIG_Py_Void();
38242 return resultobj;
38243fail:
38244 return NULL;
38245}
38246
38247
38248SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38249 PyObject *resultobj = 0;
38250 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38251 int arg2 ;
38252 void *argp1 = 0 ;
38253 int res1 = 0 ;
38254 int val2 ;
38255 int ecode2 = 0 ;
38256 PyObject * obj0 = 0 ;
38257 PyObject * obj1 = 0 ;
38258 char * kwnames[] = {
38259 (char *) "self",(char *) "function", NULL
38260 };
38261
38262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
38263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38264 if (!SWIG_IsOK(res1)) {
38265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38266 }
38267 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38268 ecode2 = SWIG_AsVal_int(obj1, &val2);
38269 if (!SWIG_IsOK(ecode2)) {
38270 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
38271 }
38272 arg2 = static_cast< int >(val2);
38273 {
38274 PyThreadState* __tstate = wxPyBeginAllowThreads();
38275 (arg1)->SetLogicalFunction(arg2);
38276 wxPyEndAllowThreads(__tstate);
38277 if (PyErr_Occurred()) SWIG_fail;
38278 }
38279 resultobj = SWIG_Py_Void();
38280 return resultobj;
38281fail:
38282 return NULL;
38283}
38284
38285
38286SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38287 PyObject *obj;
38288 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38289 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
38290 return SWIG_Py_Void();
38291}
38292
38293SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38294 return SWIG_Python_InitShadowInstance(args);
38295}
38296
38297static PyMethodDef SwigMethods[] = {
38298 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
38299 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
38300 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
38301 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
38302 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
38303 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
38304 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
38305 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38306 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
38307 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
38308 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
38309 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
fc46b7f3 38310 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
b39fe951 38311 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
27e45892
RD
38312 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38313 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38314 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38315 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
38316 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
38317 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38318 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
fc46b7f3 38319 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38320 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
38321 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
38322 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
38323 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
38324 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
38325 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38326 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38327 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
b39fe951 38328 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
27e45892
RD
38329 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
38330 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
38331 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
38332 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
38333 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
38334 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
38335 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
38336 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
38337 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
b39fe951 38338 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
27e45892
RD
38339 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
38340 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38341 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
38342 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38343 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38344 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38345 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
38346 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38347 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38348 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38349 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
38350 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
38351 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
38352 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38353 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
38354 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38355 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38356 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
38357 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
38358 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
38359 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
38360 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
b39fe951 38361 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
27e45892
RD
38362 { (char *)"Brush_MacGetTheme", (PyCFunction)_wrap_Brush_MacGetTheme, METH_O, NULL},
38363 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL},
38364 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
38365 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
38366 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38367 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
38368 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38369 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38370 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
38371 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38372 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38373 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
27e45892
RD
38374 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
38375 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
38376 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
38377 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
38378 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
38379 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
38380 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
38381 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
38382 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38383 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
38384 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
38385 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
38386 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38387 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38388 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38389 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38390 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4
RD
38391 { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38392 { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38393 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38394 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38395 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
38396 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
38397 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
38398 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38399 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
38400 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
38401 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
38402 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
38403 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
38404 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
38405 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
38406 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
38407 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
38408 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
38409 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
38410 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
38411 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
38412 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
38413 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
38414 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
38415 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38416 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
38417 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
38418 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38419 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38420 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38421 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38422 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38423 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
38424 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
38425 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
38426 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
38427 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
38428 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
38429 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
38430 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
38431 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
38432 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
38433 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
38434 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
38435 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38436 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
38437 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
38438 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38439 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38440 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38441 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38442 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38443 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
38444 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
38445 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
27e45892
RD
38446 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
38447 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
38448 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
38449 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
38450 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
38451 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
38452 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
38453 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38454 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38455 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38456 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
27e45892
RD
38457 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
38458 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
38459 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
38460 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38461 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38462 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38463 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38464 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
38465 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
38466 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38467 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
38468 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
38469 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
38470 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
38471 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
38472 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
38473 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
38474 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
38475 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
38476 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38477 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38478 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
38479 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38480 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38481 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38482 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
38483 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
38484 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
38485 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
38486 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
38487 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38488 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
27e45892
RD
38489 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
38490 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
38491 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
38492 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38493 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38494 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
38495 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
38496 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
38497 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38498 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
38499 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38500 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
38501 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
38502 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
38503 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
38504 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
38505 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38506 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
f5263701 38507 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38508 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
38509 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
38510 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38511 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
38512 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
38513 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38514 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
38515 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
38516 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38517 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
38518 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38519 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38520 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
38521 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
38522 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
38523 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
38524 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
38525 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
38526 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
38527 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
38528 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
38529 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
38530 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
38531 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
38532 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
38533 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
38534 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
38535 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
38536 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
38537 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
38538 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
38539 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
38540 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
38541 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
38542 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
38543 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
38544 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
38545 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
38546 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
38547 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
38548 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38549 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38550 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38551 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38552 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38553 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38554 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38555 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38556 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
38557 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
38558 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
38559 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
38560 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
38561 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
38562 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
38563 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
38564 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
38565 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
38566 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
38567 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
38568 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38569 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
38570 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
38571 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
38572 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38573 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38574 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
38575 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
38576 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
38577 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38578 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38579 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
38580 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38581 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
38582 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
38583 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38584 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
38585 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
38586 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38587 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
38588 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
38589 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
38590 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
38591 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
38592 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
38593 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
38594 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38595 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
38596 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
38597 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38598 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38599 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
27e45892 38600 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38601 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38602 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
38603 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
38604 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
38605 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
38606 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
38607 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
38608 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
38609 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
38610 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
38611 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
38612 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
38613 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
38614 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
38615 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38616 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38617 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38618 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38619 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38620 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38621 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38622 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38623 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38624 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
38625 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
38626 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
38627 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
38628 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
38629 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
38630 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
38631 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
38632 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38633 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
38634 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
38635 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
38636 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
38637 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38638 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
38639 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
38640 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
38641 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
38642 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38643 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
38644 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
38645 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
38646 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
38647 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
38648 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
38649 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
38650 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
38651 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
38652 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
38653 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
38654 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
38655 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
38656 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
38657 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
38658 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
38659 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
38660 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
38661 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
38662 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
38663 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
38664 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
38665 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b 38666 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38667 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
38668 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38669 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
38670 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38671 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
38672 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
38673 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
38674 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
38675 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
38676 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
38677 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
38678 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38679 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
38680 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
38681 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
38682 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
1bd55598
RD
38683 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
38684 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
38685 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
38686 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
38687 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
38688 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
38689 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
38690 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
38691 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
38692 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
38693 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
38694 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
38695 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
38696 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38697 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
38698 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
38699 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38700 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38701 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
38702 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38703 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
38704 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38705 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
38706 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38707 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
38708 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
38709 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
38710 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38711 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38712 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38713 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38714 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38715 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38716 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38717 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38718 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38719 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
38720 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38721 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38722 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
38723 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38724 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38725 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38726 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38727 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38728 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
38729 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38730 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
38731 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38732 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
38733 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4 38734 { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38735 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38736 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38737 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38738 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
38739 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
38740 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
38741 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38742 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38743 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
38744 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
38745 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
38746 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
38747 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
38748 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
38749 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
38750 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
38751 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38752 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38753 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
38754 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
38755 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
38756 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
38757 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
38758 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
38759 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
38760 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38761 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38762 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38763 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
38764 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
38765 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
38766 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
38767 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
38768 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
38769 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
38770 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
38771 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
38772 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
38773 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
38774 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
38775 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
38776 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
38777 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
38778 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
38779 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
b39fe951 38780 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
1bd55598
RD
38781 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
38782 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
38783 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
38784 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
38785 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
38786 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
38787 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
38788 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
38789 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38790 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
38791 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
38792 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
38793 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
38794 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
38795 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
38796 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
38797 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
38798 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
38799 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38800 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
38801 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
38802 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
38803 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38804 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
38805 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
38806 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
38807 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
38808 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
38809 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38810 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
38811 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
38812 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
38813 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
38814 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
38815 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
b39fe951
RD
38816 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
38817 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38818 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
38819 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
38820 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
38821 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
38822 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
38823 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
38824 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
38825 { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38826 { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL},
38827 { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL},
38828 { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL},
38829 { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38830 { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL},
38831 { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL},
38832 { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL},
38833 { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38834 { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL},
38835 { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL},
38836 { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL},
38837 { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL},
38838 { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL},
38839 { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL},
38840 { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL},
8e99bda9 38841 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38842 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
38843 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4 38844 { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38845 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
38846 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
1bd55598
RD
38847 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
38848 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
38849 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
38850 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
38851 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
38852 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
72ef6efb
RD
38853 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
38854 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
38855 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
1bd55598
RD
38856 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
38857 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
38858 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
38859 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38860 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
38861 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
24f6c4e8
RD
38862 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
38863 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
38864 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
38865 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
38866 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
38867 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38868 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
38869 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
38870 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38871 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
38872 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
8e99bda9 38873 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38874 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
38875 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
38876 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
38877 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
38878 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
38879 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
38880 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
38881 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
38882 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
38883 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
38884 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
38885 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
b39fe951 38886 { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL},
1bd55598
RD
38887 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
38888 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
38889 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
38890 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
38891 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
38892 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
38893 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
38894 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
38895 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
38896 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
38897 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
38898 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
38899 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
70d7cb34
RD
38900 { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL},
38901 { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL},
38902 { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL},
38903 { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL},
38904 { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL},
38905 { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL},
38906 { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL},
38907 { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL},
38908 { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL},
38909 { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL},
38910 { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL},
38911 { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL},
38912 { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL},
38913 { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL},
38914 { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL},
38915 { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL},
38916 { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL},
38917 { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL},
8f514ab4 38918 { (char *)"new_GraphicsMatrix", (PyCFunction)_wrap_new_GraphicsMatrix, METH_NOARGS, NULL},
5c8c7dd3
RD
38919 { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL},
38920 { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL},
38921 { (char *)"GraphicsMatrix_Copy", (PyCFunction) _wrap_GraphicsMatrix_Copy, METH_VARARGS | METH_KEYWORDS, NULL},
38922 { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38923 { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL},
38924 { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
38925 { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL},
38926 { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
38927 { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
38928 { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
38929 { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38930 { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL},
38931 { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL},
38932 { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL},
8f514ab4
RD
38933 { (char *)"GraphicsMatrix_swiginit", GraphicsMatrix_swiginit, METH_VARARGS, NULL},
38934 { (char *)"new_GraphicsPath", (PyCFunction)_wrap_new_GraphicsPath, METH_NOARGS, NULL},
72ef6efb 38935 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
70d7cb34
RD
38936 { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL},
38937 { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL},
38938 { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL},
38939 { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
38940 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
38941 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
70d7cb34 38942 { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL},
72ef6efb
RD
38943 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38944 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38945 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
38946 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34
RD
38947 { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38948 { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38949 { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL},
38950 { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL},
38951 { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL},
38952 { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL},
38953 { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL},
72ef6efb 38954 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
8f514ab4 38955 { (char *)"GraphicsPath_swiginit", GraphicsPath_swiginit, METH_VARARGS, NULL},
72ef6efb 38956 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
0a27f394
RD
38957 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
38958 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 38959 { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 38960 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
70d7cb34
RD
38961 { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
38962 { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38963 { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38964 { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38965 { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
38966 { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
38967 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
38968 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
0a27f394 38969 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 38970 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
0a27f394
RD
38971 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
38972 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
72ef6efb
RD
38973 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
38974 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
38975 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
5c8c7dd3
RD
38976 { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL},
38977 { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL},
38978 { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL},
70d7cb34
RD
38979 { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL},
38980 { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL},
38981 { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL},
72ef6efb
RD
38982 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
38983 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
38984 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
38985 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
38986 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
be68621e 38987 { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
38988 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38989 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
38990 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38991 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38992 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38993 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
f8eb59b9 38994 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
38995 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
38996 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38997 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38998 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 38999 { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL},
72ef6efb 39000 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
39001 { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL},
39002 { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL},
39003 { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL},
39004 { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL},
39005 { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
39006 { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL},
39007 { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
39008 { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39009 { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39010 { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39011 { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39012 { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39013 { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL},
72ef6efb
RD
39014 { (char *)"new_GCDC", (PyCFunction) _wrap_new_GCDC, METH_VARARGS | METH_KEYWORDS, NULL},
39015 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
0a27f394
RD
39016 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
39017 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39018 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
39019 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
b39fe951
RD
39020 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
39021 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
39022 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
39023 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
39024 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
39025 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
39026 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
39027 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
39028 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
39029 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39030 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
39031 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
39032 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
39033 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
39034 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39035 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39036 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39037 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
39038 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
39039 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
39040 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
39041 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
39042 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39043 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
39044 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
da91cb0f
RD
39045 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
39046 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
39047 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
39048 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
39049 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39050 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39051 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39052 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39053 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39054 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
39055 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
39056 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
39057 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
39058 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
39059 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
1bd55598 39060 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
da91cb0f 39061 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 39062 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 39063 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
1bd55598 39064 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
da91cb0f 39065 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 39066 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 39067 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
da91cb0f
RD
39068 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39069 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
39070 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
39071 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
1bd55598
RD
39072 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
39073 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
39074 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
39075 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
39076 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
39077 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
39078 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
39079 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
da91cb0f
RD
39080 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
39081 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
39082 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
39083 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
1bd55598
RD
39084 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
39085 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
39086 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
39087 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
39088 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
39089 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
39090 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
39091 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39092 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
39093 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39094 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39095 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39096 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
39097 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39098 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
39099 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
39100 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
39101 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
39102 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
39103 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
39104 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
39105 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
39106 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
33d6fd3b
RD
39107 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
39108 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
39109 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
39110 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
39111 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
39112 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
39113 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
39114 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
39115 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
39116 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
39117 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
39118 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
39119 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
39120 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
39121 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
39122 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
39123 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
39124 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39125 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
39126 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
39127 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
39128 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
39129 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
39130 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
39131 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
39132 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b
RD
39133 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
39134 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39135 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
39136 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
39137 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
39138 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
39139 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
2131d850
RD
39140 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
39141 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
39142 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39143 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
39144 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
39145 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
39146 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
39147 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39148 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
39149 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
27e45892
RD
39150 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
39151 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
39152 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
39153 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
39154 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
39155 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
39156 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
39157 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
39158 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
39159 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39160 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39161 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39162 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
39163 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
39164 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39165 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39166 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39167 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
39168 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
39169 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39170 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39171 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39172 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39173 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39174 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39175 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39176 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39177 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39178 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39179 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39180 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39181 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39182 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39183 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39184 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39185 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39186 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39187 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39188 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39189 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39190 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39191 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39192 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39193 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39194 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39195 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39196 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39197 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39198 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39199 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39200 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39201 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39202 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39203 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39204 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39205 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39206 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39207 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39208 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
39209 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39210 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39211 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39212 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39213 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39214 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39215 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39216 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39217 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39218 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
39219 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39220 { NULL, NULL, 0, NULL }
39221};
39222
39223
39224/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
39225
72ef6efb
RD
39226static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
39227 return (void *)((wxClientDC *) ((wxPaintDC *) x));
39228}
8e99bda9
RD
39229static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
39230 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
39231}
39232static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
39233 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
39234}
72ef6efb
RD
39235static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
39236 return (void *)((wxWindowDC *) ((wxClientDC *) x));
39237}
39238static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
39239 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
39240}
fc46b7f3
RD
39241static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
39242 return (void *)((wxLocale *) ((wxPyLocale *) x));
39243}
70d7cb34
RD
39244static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) {
39245 return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x));
39246}
39247static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) {
39248 return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x));
39249}
39250static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) {
39251 return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39252}
39253static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) {
39254 return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x));
39255}
39256static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) {
39257 return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x));
39258}
39259static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) {
39260 return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x));
39261}
1bd55598
RD
39262static void *_p_wxIconTo_p_wxGDIObject(void *x) {
39263 return (void *)((wxGDIObject *) ((wxIcon *) x));
39264}
39265static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
39266 return (void *)((wxGDIObject *) ((wxPalette *) x));
39267}
39268static void *_p_wxPenTo_p_wxGDIObject(void *x) {
39269 return (void *)((wxGDIObject *) ((wxPen *) x));
39270}
39271static void *_p_wxFontTo_p_wxGDIObject(void *x) {
39272 return (void *)((wxGDIObject *) ((wxFont *) x));
39273}
39274static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
39275 return (void *)((wxGDIObject *) ((wxCursor *) x));
39276}
39277static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
39278 return (void *)((wxGDIObject *) ((wxBitmap *) x));
39279}
39280static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
39281 return (void *)((wxGDIObject *) ((wxRegion *) x));
39282}
39283static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
39284 return (void *)((wxGDIObject *) ((wxBrush *) x));
39285}
72ef6efb
RD
39286static void *_p_wxGCDCTo_p_wxDC(void *x) {
39287 return (void *)((wxDC *) ((wxGCDC *) x));
39288}
1bd55598
RD
39289static void *_p_wxScreenDCTo_p_wxDC(void *x) {
39290 return (void *)((wxDC *) ((wxScreenDC *) x));
39291}
24f6c4e8
RD
39292static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
39293 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
39294}
1bd55598
RD
39295static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
39296 return (void *)((wxDC *) ((wxMirrorDC *) x));
39297}
39298static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
39299 return (void *)((wxDC *) ((wxMemoryDC *) x));
39300}
39301static void *_p_wxWindowDCTo_p_wxDC(void *x) {
39302 return (void *)((wxDC *) ((wxWindowDC *) x));
39303}
39304static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
39305 return (void *)((wxDC *) ((wxMetaFileDC *) x));
39306}
1bd55598 39307static void *_p_wxClientDCTo_p_wxDC(void *x) {
72ef6efb 39308 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
1bd55598
RD
39309}
39310static void *_p_wxPaintDCTo_p_wxDC(void *x) {
72ef6efb 39311 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
1bd55598 39312}
24f6c4e8
RD
39313static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
39314 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39315}
39316static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
39317 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
39318}
1bd55598
RD
39319static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
39320 return (void *)((wxDC *) ((wxPostScriptDC *) x));
39321}
39322static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
39323 return (void *)((wxDC *) ((wxPrinterDC *) x));
39324}
da91cb0f
RD
39325static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
39326 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
39327}
39328static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
39329 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
39330}
39331static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
39332 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
39333}
1bd55598
RD
39334static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
39335 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
39336}
39337static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
39338 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
39339}
39340static void *_p_wxPenTo_p_wxObject(void *x) {
39341 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
39342}
39343static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
39344 return (void *)((wxObject *) ((wxRegionIterator *) x));
39345}
1bd55598
RD
39346static void *_p_wxSizerItemTo_p_wxObject(void *x) {
39347 return (void *)((wxObject *) ((wxSizerItem *) x));
39348}
34e0a3bb
RD
39349static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
39350 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
39351}
1bd55598
RD
39352static void *_p_wxScrollEventTo_p_wxObject(void *x) {
39353 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
39354}
39355static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
39356 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
39357}
39358static void *_p_wxIconTo_p_wxObject(void *x) {
39359 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
39360}
39361static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
39362 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
39363}
39364static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
39365 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
39366}
39367static void *_p_wxSizerTo_p_wxObject(void *x) {
39368 return (void *)((wxObject *) ((wxSizer *) x));
39369}
39370static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
39371 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
39372}
39373static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
39374 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
39375}
1bd55598
RD
39376static void *_p_wxEventTo_p_wxObject(void *x) {
39377 return (void *)((wxObject *) ((wxEvent *) x));
39378}
39379static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
39380 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
39381}
39382static void *_p_wxGridSizerTo_p_wxObject(void *x) {
39383 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
39384}
39385static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
39386 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
39387}
27e45892
RD
39388static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
39389 return (void *)((wxObject *) ((wxPseudoDC *) x));
39390}
2131d850
RD
39391static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
39392 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
39393}
1bd55598
RD
39394static void *_p_wxPaintEventTo_p_wxObject(void *x) {
39395 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
39396}
39397static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
39398 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
39399}
39400static void *_p_wxDCTo_p_wxObject(void *x) {
39401 return (void *)((wxObject *) ((wxDC *) x));
39402}
39403static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
39404 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
39405}
39406static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
39407 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
39408}
39409static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
39410 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
39411}
39412static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
39413 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
39414}
39415static void *_p_wxControlTo_p_wxObject(void *x) {
39416 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
39417}
70d7cb34
RD
39418static void *_p_wxGraphicsPenTo_p_wxObject(void *x) {
39419 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x));
39420}
1bd55598
RD
39421static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
39422 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
39423}
39424static void *_p_wxClientDCTo_p_wxObject(void *x) {
72ef6efb 39425 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
1bd55598
RD
39426}
39427static void *_p_wxFSFileTo_p_wxObject(void *x) {
39428 return (void *)((wxObject *) ((wxFSFile *) x));
39429}
39430static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
39431 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
39432}
39433static void *_p_wxRegionTo_p_wxObject(void *x) {
39434 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
39435}
39436static void *_p_wxPySizerTo_p_wxObject(void *x) {
39437 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
39438}
39439static void *_p_wxWindowDCTo_p_wxObject(void *x) {
39440 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
39441}
39442static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
39443 return (void *)((wxObject *) ((wxGDIObject *) x));
39444}
70d7cb34
RD
39445static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) {
39446 return (void *)((wxObject *) ((wxGraphicsObject *) x));
39447}
39448static void *_p_wxGraphicsPathTo_p_wxObject(void *x) {
39449 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x));
39450}
1bd55598
RD
39451static void *_p_wxEffectsTo_p_wxObject(void *x) {
39452 return (void *)((wxObject *) ((wxEffects *) x));
39453}
39454static void *_p_wxPyEventTo_p_wxObject(void *x) {
39455 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
39456}
39457static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
39458 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
39459}
39460static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
39461 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
39462}
70d7cb34
RD
39463static void *_p_wxGraphicsContextTo_p_wxObject(void *x) {
39464 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x));
39465}
1bd55598
RD
39466static void *_p_wxShowEventTo_p_wxObject(void *x) {
39467 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
39468}
39469static void *_p_wxMenuItemTo_p_wxObject(void *x) {
39470 return (void *)((wxObject *) ((wxMenuItem *) x));
39471}
39472static void *_p_wxDateEventTo_p_wxObject(void *x) {
39473 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
39474}
39475static void *_p_wxIdleEventTo_p_wxObject(void *x) {
39476 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
39477}
39478static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
39479 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
39480}
39481static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
39482 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
39483}
39484static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
39485 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
39486}
39487static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
39488 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
39489}
39490static void *_p_wxSizeEventTo_p_wxObject(void *x) {
39491 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
39492}
39493static void *_p_wxMoveEventTo_p_wxObject(void *x) {
39494 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
39495}
39496static void *_p_wxActivateEventTo_p_wxObject(void *x) {
39497 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
39498}
39499static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
39500 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
39501}
39502static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
39503 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
39504}
39505static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
39506 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
39507}
39508static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
39509 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
39510}
39511static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
39512 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
39513}
39514static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
39515 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
39516}
39517static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
39518 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
39519}
39520static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
39521 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
39522}
39523static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
39524 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
39525}
39526static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
39527 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
39528}
39529static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
39530 return (void *)((wxObject *) ((wxImageHandler *) x));
39531}
39532static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
39533 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
39534}
39535static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
39536 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
39537}
580080c5
RD
39538static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
39539 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
39540}
1bd55598
RD
39541static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
39542 return (void *)((wxObject *) ((wxEvtHandler *) x));
39543}
34e0a3bb
RD
39544static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
39545 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
39546}
24f6c4e8
RD
39547static void *_p_wxPaintDCTo_p_wxObject(void *x) {
39548 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
39549}
1bd55598 39550static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
8e99bda9 39551 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
1bd55598 39552}
24f6c4e8
RD
39553static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
39554 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
1bd55598
RD
39555}
39556static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
39557 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
39558}
39559static void *_p_wxScreenDCTo_p_wxObject(void *x) {
39560 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
39561}
1bd55598
RD
39562static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
39563 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
39564}
580080c5
RD
39565static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
39566 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
39567}
1bd55598
RD
39568static void *_p_wxImageTo_p_wxObject(void *x) {
39569 return (void *)((wxObject *) ((wxImage *) x));
39570}
39571static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
39572 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
39573}
70d7cb34
RD
39574static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) {
39575 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x));
39576}
39577static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) {
39578 return (void *)((wxObject *) ((wxGraphicsRenderer *) x));
39579}
1bd55598
RD
39580static void *_p_wxPaletteTo_p_wxObject(void *x) {
39581 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
39582}
39583static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
8e99bda9 39584 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
1bd55598
RD
39585}
39586static void *_p_wxImageListTo_p_wxObject(void *x) {
39587 return (void *)((wxObject *) ((wxImageList *) x));
39588}
72ef6efb
RD
39589static void *_p_wxGCDCTo_p_wxObject(void *x) {
39590 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
39591}
1bd55598
RD
39592static void *_p_wxCursorTo_p_wxObject(void *x) {
39593 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
39594}
39595static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
39596 return (void *)((wxObject *) ((wxEncodingConverter *) x));
39597}
39598static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
39599 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
39600}
70d7cb34
RD
39601static void *_p_wxGraphicsFontTo_p_wxObject(void *x) {
39602 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x));
39603}
1bd55598
RD
39604static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
39605 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
39606}
39607static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
39608 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
39609}
39610static void *_p_wxKeyEventTo_p_wxObject(void *x) {
39611 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
39612}
39613static void *_p_wxWindowTo_p_wxObject(void *x) {
39614 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
39615}
39616static void *_p_wxMenuTo_p_wxObject(void *x) {
39617 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
39618}
39619static void *_p_wxMenuBarTo_p_wxObject(void *x) {
39620 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
39621}
39622static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
39623 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
39624}
1bd55598
RD
39625static void *_p_wxFileSystemTo_p_wxObject(void *x) {
39626 return (void *)((wxObject *) ((wxFileSystem *) x));
39627}
39628static void *_p_wxBitmapTo_p_wxObject(void *x) {
39629 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
39630}
39631static void *_p_wxMaskTo_p_wxObject(void *x) {
39632 return (void *)((wxObject *) ((wxMask *) x));
39633}
70d7cb34
RD
39634static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) {
39635 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39636}
1bd55598
RD
39637static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
39638 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
39639}
39640static void *_p_wxMenuEventTo_p_wxObject(void *x) {
39641 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
39642}
39643static void *_p_wxPyAppTo_p_wxObject(void *x) {
39644 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
39645}
39646static void *_p_wxCloseEventTo_p_wxObject(void *x) {
39647 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
39648}
39649static void *_p_wxMouseEventTo_p_wxObject(void *x) {
39650 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
39651}
39652static void *_p_wxEraseEventTo_p_wxObject(void *x) {
39653 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
39654}
39655static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
39656 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
39657}
39658static void *_p_wxCommandEventTo_p_wxObject(void *x) {
39659 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
39660}
39661static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
39662 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
39663}
39664static void *_p_wxFocusEventTo_p_wxObject(void *x) {
39665 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
39666}
39667static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
39668 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
39669}
39670static void *_p_wxFontTo_p_wxObject(void *x) {
39671 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
39672}
39673static void *_p_wxBrushTo_p_wxObject(void *x) {
39674 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
39675}
39676static void *_p_wxMetaFileTo_p_wxObject(void *x) {
39677 return (void *)((wxObject *) ((wxMetaFile *) x));
39678}
39679static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
39680 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
39681}
39682static void *_p_wxColourTo_p_wxObject(void *x) {
39683 return (void *)((wxObject *) ((wxColour *) x));
39684}
1bd55598
RD
39685static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
39686 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
39687}
39688static void *_p_wxValidatorTo_p_wxObject(void *x) {
39689 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
39690}
39691static void *_p_wxControlTo_p_wxWindow(void *x) {
39692 return (void *)((wxWindow *) ((wxControl *) x));
39693}
39694static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
39695 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
39696}
39697static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
39698 return (void *)((wxWindow *) ((wxMenuBar *) x));
39699}
fc46b7f3
RD
39700static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
39701 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
39702}
39703static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
39704 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
39705}
39706static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
1bd55598 39707static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
72ef6efb 39708static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
1bd55598
RD
39709static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
39710static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
39711static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
39712static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
39713static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
0a27f394 39714static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
fc46b7f3
RD
39715static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
39716static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
24f6c4e8 39717static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
1bd55598
RD
39718static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
39719static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
39720static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
39721static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
39722static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
fc46b7f3 39723static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
1bd55598 39724static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
72ef6efb 39725static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
1bd55598
RD
39726static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
39727static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
39728static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
39729static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
70d7cb34
RD
39730static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0};
39731static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0};
b39fe951 39732static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
70d7cb34
RD
39733static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0};
39734static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0};
1bd55598
RD
39735static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
39736static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
39737static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
39738static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
39739static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
39740static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
39741static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
72ef6efb 39742static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
da91cb0f 39743static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
1bd55598 39744static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
70d7cb34 39745static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0};
72ef6efb 39746static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
70d7cb34
RD
39747static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0};
39748static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0};
39749static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0};
72ef6efb 39750static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
70d7cb34
RD
39751static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0};
39752static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0};
33d6fd3b 39753static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
1bd55598
RD
39754static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
39755static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
39756static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
39757static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
39758static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
39759static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
39760static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
39761static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
39762static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
39763static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
39764static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
39765static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
39766static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
39767static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
fc46b7f3
RD
39768static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
39769static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
1bd55598
RD
39770static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
39771static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
1bd55598 39772static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
34e0a3bb 39773static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
1bd55598
RD
39774static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
39775static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
39776static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
39777static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
39778static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
39779static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
39780static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
39781static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
39782static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
39783static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
39784static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
39785static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
2131d850 39786static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
1bd55598
RD
39787static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
39788static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
39789static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
39790static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
39791static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
39792static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
39793static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
39794static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
39795static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
39796static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
39797static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
39798static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
39799static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
39800static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
39801static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
39802static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
39803static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
39804static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
39805static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
39806static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
39807static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
39808static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
39809static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
1bd55598 39810static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
580080c5 39811static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
70d7cb34
RD
39812static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
39813static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
39814static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
39815static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
39816static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
39817static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
24f6c4e8 39818static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
72ef6efb 39819static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
27e45892 39820static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
2131d850 39821static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
1bd55598
RD
39822static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
39823static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
39824static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
34e0a3bb 39825static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
1bd55598 39826static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
580080c5 39827static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
1bd55598
RD
39828static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
39829static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
39830static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
39831static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
39832static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
39833static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
39834static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
39835static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
39836static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
39837static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
39838static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
39839static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
39840static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
39841static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
39842static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
39843static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
39844static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
39845static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
39846static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
39847static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
b39fe951 39848static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
1bd55598
RD
39849static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
39850static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
39851static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
39852static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
39853static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
fc46b7f3 39854static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
1bd55598 39855static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
72ef6efb 39856static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
70d7cb34 39857static swig_type_info _swigt__p_wxPoint2DDouble = {"_p_wxPoint2DDouble", "wxPoint2DDouble *", 0, 0, (void*)0, 0};
1bd55598
RD
39858static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
39859static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
39860static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
27e45892 39861static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
1bd55598 39862static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
fc46b7f3 39863static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
1bd55598 39864static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
70d7cb34 39865static swig_type_info _swigt__p_wxRect2DDouble = {"_p_wxRect2DDouble", "wxRect2DDouble *", 0, 0, (void*)0, 0};
1bd55598
RD
39866static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
39867static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
39868static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
39869static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
39870static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
39871static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
39872static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
da91cb0f 39873static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
1bd55598
RD
39874static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
39875static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
39876static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
39877
39878static swig_type_info *swig_type_initial[] = {
fc46b7f3 39879 &_swigt__p_buffer,
1bd55598
RD
39880 &_swigt__p_char,
39881 &_swigt__p_double,
39882 &_swigt__p_form_ops_t,
39883 &_swigt__p_int,
39884 &_swigt__p_unsigned_char,
39885 &_swigt__p_unsigned_int,
39886 &_swigt__p_unsigned_long,
0a27f394 39887 &_swigt__p_void,
1bd55598
RD
39888 &_swigt__p_wxANIHandler,
39889 &_swigt__p_wxAcceleratorTable,
39890 &_swigt__p_wxActivateEvent,
fc46b7f3
RD
39891 &_swigt__p_wxAlphaPixelData,
39892 &_swigt__p_wxAlphaPixelData_Accessor,
24f6c4e8 39893 &_swigt__p_wxAutoBufferedPaintDC,
1bd55598
RD
39894 &_swigt__p_wxBMPHandler,
39895 &_swigt__p_wxBitmap,
39896 &_swigt__p_wxBoxSizer,
39897 &_swigt__p_wxBrush,
39898 &_swigt__p_wxBrushList,
39899 &_swigt__p_wxBufferedDC,
39900 &_swigt__p_wxBufferedPaintDC,
39901 &_swigt__p_wxCURHandler,
fc46b7f3 39902 &_swigt__p_wxChar,
1bd55598
RD
39903 &_swigt__p_wxChildFocusEvent,
39904 &_swigt__p_wxClientDC,
2131d850 39905 &_swigt__p_wxClipboardTextEvent,
1bd55598 39906 &_swigt__p_wxCloseEvent,
72ef6efb 39907 &_swigt__p_wxColor,
1bd55598
RD
39908 &_swigt__p_wxColour,
39909 &_swigt__p_wxColourDatabase,
39910 &_swigt__p_wxCommandEvent,
39911 &_swigt__p_wxContextMenuEvent,
39912 &_swigt__p_wxControl,
39913 &_swigt__p_wxControlWithItems,
39914 &_swigt__p_wxCursor,
39915 &_swigt__p_wxDC,
70d7cb34
RD
39916 &_swigt__p_wxDCBrushChanger,
39917 &_swigt__p_wxDCClipper,
b39fe951 39918 &_swigt__p_wxDCOverlay,
70d7cb34
RD
39919 &_swigt__p_wxDCPenChanger,
39920 &_swigt__p_wxDCTextColourChanger,
1bd55598
RD
39921 &_swigt__p_wxDash,
39922 &_swigt__p_wxDateEvent,
39923 &_swigt__p_wxDisplayChangedEvent,
39924 &_swigt__p_wxDropFilesEvent,
39925 &_swigt__p_wxDuplexMode,
39926 &_swigt__p_wxEffects,
39927 &_swigt__p_wxEncodingConverter,
39928 &_swigt__p_wxEraseEvent,
39929 &_swigt__p_wxEvent,
39930 &_swigt__p_wxEvtHandler,
39931 &_swigt__p_wxFSFile,
39932 &_swigt__p_wxFileSystem,
39933 &_swigt__p_wxFlexGridSizer,
39934 &_swigt__p_wxFocusEvent,
39935 &_swigt__p_wxFont,
39936 &_swigt__p_wxFontList,
39937 &_swigt__p_wxFontMapper,
39938 &_swigt__p_wxGBSizerItem,
72ef6efb 39939 &_swigt__p_wxGCDC,
da91cb0f 39940 &_swigt__p_wxGDIObjListBase,
1bd55598
RD
39941 &_swigt__p_wxGDIObject,
39942 &_swigt__p_wxGIFHandler,
70d7cb34 39943 &_swigt__p_wxGraphicsBrush,
72ef6efb 39944 &_swigt__p_wxGraphicsContext,
70d7cb34
RD
39945 &_swigt__p_wxGraphicsFont,
39946 &_swigt__p_wxGraphicsMatrix,
39947 &_swigt__p_wxGraphicsObject,
72ef6efb 39948 &_swigt__p_wxGraphicsPath,
70d7cb34
RD
39949 &_swigt__p_wxGraphicsPen,
39950 &_swigt__p_wxGraphicsRenderer,
1bd55598
RD
39951 &_swigt__p_wxGridBagSizer,
39952 &_swigt__p_wxGridSizer,
33d6fd3b 39953 &_swigt__p_wxHeaderButtonParams,
1bd55598
RD
39954 &_swigt__p_wxICOHandler,
39955 &_swigt__p_wxIcon,
39956 &_swigt__p_wxIconBundle,
39957 &_swigt__p_wxIconLocation,
39958 &_swigt__p_wxIconizeEvent,
39959 &_swigt__p_wxIdleEvent,
39960 &_swigt__p_wxImage,
39961 &_swigt__p_wxImageHandler,
39962 &_swigt__p_wxImageList,
39963 &_swigt__p_wxIndividualLayoutConstraint,
39964 &_swigt__p_wxInitDialogEvent,
39965 &_swigt__p_wxJPEGHandler,
39966 &_swigt__p_wxKeyEvent,
39967 &_swigt__p_wxLanguageInfo,
39968 &_swigt__p_wxLayoutConstraints,
39969 &_swigt__p_wxLocale,
39970 &_swigt__p_wxMask,
39971 &_swigt__p_wxMaximizeEvent,
39972 &_swigt__p_wxMemoryDC,
39973 &_swigt__p_wxMenu,
39974 &_swigt__p_wxMenuBar,
39975 &_swigt__p_wxMenuEvent,
39976 &_swigt__p_wxMenuItem,
39977 &_swigt__p_wxMetaFile,
39978 &_swigt__p_wxMetaFileDC,
39979 &_swigt__p_wxMirrorDC,
39980 &_swigt__p_wxMouseCaptureChangedEvent,
34e0a3bb 39981 &_swigt__p_wxMouseCaptureLostEvent,
1bd55598
RD
39982 &_swigt__p_wxMouseEvent,
39983 &_swigt__p_wxMoveEvent,
39984 &_swigt__p_wxNativeEncodingInfo,
39985 &_swigt__p_wxNativeFontInfo,
fc46b7f3
RD
39986 &_swigt__p_wxNativePixelData,
39987 &_swigt__p_wxNativePixelData_Accessor,
1bd55598
RD
39988 &_swigt__p_wxNavigationKeyEvent,
39989 &_swigt__p_wxNcPaintEvent,
39990 &_swigt__p_wxNotifyEvent,
39991 &_swigt__p_wxObject,
b39fe951 39992 &_swigt__p_wxOverlay,
1bd55598
RD
39993 &_swigt__p_wxPCXHandler,
39994 &_swigt__p_wxPNGHandler,
39995 &_swigt__p_wxPNMHandler,
39996 &_swigt__p_wxPaintDC,
39997 &_swigt__p_wxPaintEvent,
39998 &_swigt__p_wxPalette,
39999 &_swigt__p_wxPaletteChangedEvent,
40000 &_swigt__p_wxPaperSize,
40001 &_swigt__p_wxPen,
40002 &_swigt__p_wxPenList,
fc46b7f3 40003 &_swigt__p_wxPixelDataBase,
1bd55598 40004 &_swigt__p_wxPoint,
72ef6efb 40005 &_swigt__p_wxPoint2D,
70d7cb34 40006 &_swigt__p_wxPoint2DDouble,
1bd55598
RD
40007 &_swigt__p_wxPostScriptDC,
40008 &_swigt__p_wxPrintData,
40009 &_swigt__p_wxPrinterDC,
27e45892 40010 &_swigt__p_wxPseudoDC,
1bd55598
RD
40011 &_swigt__p_wxPyApp,
40012 &_swigt__p_wxPyCommandEvent,
40013 &_swigt__p_wxPyEvent,
40014 &_swigt__p_wxPyFontEnumerator,
40015 &_swigt__p_wxPyImageHandler,
fc46b7f3 40016 &_swigt__p_wxPyLocale,
1bd55598
RD
40017 &_swigt__p_wxPySizer,
40018 &_swigt__p_wxPyValidator,
40019 &_swigt__p_wxQueryNewPaletteEvent,
40020 &_swigt__p_wxRect,
70d7cb34 40021 &_swigt__p_wxRect2DDouble,
1bd55598
RD
40022 &_swigt__p_wxRegion,
40023 &_swigt__p_wxRegionIterator,
40024 &_swigt__p_wxRendererNative,
40025 &_swigt__p_wxRendererVersion,
40026 &_swigt__p_wxScreenDC,
40027 &_swigt__p_wxScrollEvent,
40028 &_swigt__p_wxScrollWinEvent,
40029 &_swigt__p_wxSetCursorEvent,
40030 &_swigt__p_wxShowEvent,
40031 &_swigt__p_wxSize,
40032 &_swigt__p_wxSizeEvent,
40033 &_swigt__p_wxSizer,
40034 &_swigt__p_wxSizerItem,
40035 &_swigt__p_wxSplitterRenderParams,
40036 &_swigt__p_wxStaticBoxSizer,
40037 &_swigt__p_wxStdDialogButtonSizer,
da91cb0f 40038 &_swigt__p_wxStockGDI,
1bd55598
RD
40039 &_swigt__p_wxString,
40040 &_swigt__p_wxSysColourChangedEvent,
580080c5 40041 &_swigt__p_wxTGAHandler,
1bd55598
RD
40042 &_swigt__p_wxTIFFHandler,
40043 &_swigt__p_wxUpdateUIEvent,
40044 &_swigt__p_wxValidator,
40045 &_swigt__p_wxWindow,
40046 &_swigt__p_wxWindowCreateEvent,
40047 &_swigt__p_wxWindowDC,
40048 &_swigt__p_wxWindowDestroyEvent,
40049 &_swigt__p_wxXPMHandler,
40050};
40051
fc46b7f3 40052static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40053static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
40054static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
40055static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
40056static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
40057static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
40058static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
40059static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
0a27f394 40060static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
40061static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
40062static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40063static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40064static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
40065static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
40066static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
40067static 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}};
40068static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40069static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb
RD
40070static 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}};
40071static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40072static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
40073static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
40074static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40075static 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
40076static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}};
40077static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}};
b39fe951 40078static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40079static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}};
40080static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40081static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
40082static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
40083static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
40084static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
40085static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
40086static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
40087static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40088static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
da91cb0f 40089static 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 40090static 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 40091static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40092static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40093static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}};
40094static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}};
40095static 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 40096static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40097static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}};
40098static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}};
33d6fd3b 40099static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40100static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
40101static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
40102static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
40103static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
40104static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
40105static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40106static 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 40107static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
8e99bda9 40108static 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
40109static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
40110static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
40111static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
40112static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
40113static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
40114static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
40115static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40116static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40117static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 40118static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40119static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
40120static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
40121static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40122static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40123static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
40124static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
40125static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
40126static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
40127static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
40128static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40129static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40130static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 40131static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40132static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40133static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40134static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40135static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40136static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40137static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40138static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
40139static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
40140static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
40141static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
40142static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
40143static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
40144static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
40145static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
40146static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
40147static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
40148static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
40149static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
40150static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40151static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40152static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40153static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
40154static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40155static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
580080c5 40156static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40157static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
40158static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
40159static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40160static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40161static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
40162static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40163static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40164static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
27e45892 40165static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 40166static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40167static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
40168static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
40169static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 40170static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40171static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
580080c5 40172static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40173static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
40174static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
40175static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40176static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40177static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
40178static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
40179static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40180static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40181static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
40182static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
40183static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
40184static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
40185static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40186static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40187static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
40188static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40189static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40190static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
40191static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
40192static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
580080c5 40193static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegionIterator, _p_wxRegionIteratorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPen, _p_wxPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMask, _p_wxMaskTo_p_wxObject, 0, 0}, {&_swigt__p_wxPseudoDC, _p_wxPseudoDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsPen, _p_wxGraphicsPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxFont, _p_wxFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegion, _p_wxRegionTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxDC, _p_wxDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxIcon, _p_wxIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGDIObject, _p_wxGDIObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsObject, _p_wxGraphicsObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsPath, _p_wxGraphicsPathTo_p_wxObject, 0, 0}, {&_swigt__p_wxEffects, _p_wxEffectsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsContext, _p_wxGraphicsContextTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTGAHandler, _p_wxTGAHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxAutoBufferedPaintDC, _p_wxAutoBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsBrush, _p_wxGraphicsBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsRenderer, _p_wxGraphicsRendererTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPalette, _p_wxPaletteTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageList, _p_wxImageListTo_p_wxObject, 0, 0}, {&_swigt__p_wxCursor, _p_wxCursorTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxGraphicsFont, _p_wxGraphicsFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxEncodingConverter, _p_wxEncodingConverterTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmap, _p_wxBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsMatrix, _p_wxGraphicsMatrixTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBrush, _p_wxBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFile, _p_wxMetaFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxColour, _p_wxColourTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
b39fe951 40194static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40195static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40196static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
40197static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
40198static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
40199static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40200static 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 40201static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40202static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34 40203static swig_cast_info _swigc__p_wxPoint2DDouble[] = { {&_swigt__p_wxPoint2DDouble, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40204static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
40205static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
40206static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
27e45892 40207static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40208static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40209static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40210static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34 40211static swig_cast_info _swigc__p_wxRect2DDouble[] = { {&_swigt__p_wxRect2DDouble, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40212static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
40213static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
40214static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
40215static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
40216static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
40217static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
40218static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
da91cb0f 40219static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40220static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
40221static 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 40222static 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
40223
40224static swig_cast_info *swig_cast_initial[] = {
fc46b7f3 40225 _swigc__p_buffer,
1bd55598
RD
40226 _swigc__p_char,
40227 _swigc__p_double,
40228 _swigc__p_form_ops_t,
40229 _swigc__p_int,
40230 _swigc__p_unsigned_char,
40231 _swigc__p_unsigned_int,
40232 _swigc__p_unsigned_long,
0a27f394 40233 _swigc__p_void,
1bd55598
RD
40234 _swigc__p_wxANIHandler,
40235 _swigc__p_wxAcceleratorTable,
40236 _swigc__p_wxActivateEvent,
fc46b7f3
RD
40237 _swigc__p_wxAlphaPixelData,
40238 _swigc__p_wxAlphaPixelData_Accessor,
24f6c4e8 40239 _swigc__p_wxAutoBufferedPaintDC,
1bd55598
RD
40240 _swigc__p_wxBMPHandler,
40241 _swigc__p_wxBitmap,
40242 _swigc__p_wxBoxSizer,
40243 _swigc__p_wxBrush,
40244 _swigc__p_wxBrushList,
40245 _swigc__p_wxBufferedDC,
40246 _swigc__p_wxBufferedPaintDC,
40247 _swigc__p_wxCURHandler,
fc46b7f3 40248 _swigc__p_wxChar,
1bd55598
RD
40249 _swigc__p_wxChildFocusEvent,
40250 _swigc__p_wxClientDC,
2131d850 40251 _swigc__p_wxClipboardTextEvent,
1bd55598 40252 _swigc__p_wxCloseEvent,
72ef6efb 40253 _swigc__p_wxColor,
1bd55598
RD
40254 _swigc__p_wxColour,
40255 _swigc__p_wxColourDatabase,
40256 _swigc__p_wxCommandEvent,
40257 _swigc__p_wxContextMenuEvent,
40258 _swigc__p_wxControl,
40259 _swigc__p_wxControlWithItems,
40260 _swigc__p_wxCursor,
40261 _swigc__p_wxDC,
70d7cb34
RD
40262 _swigc__p_wxDCBrushChanger,
40263 _swigc__p_wxDCClipper,
b39fe951 40264 _swigc__p_wxDCOverlay,
70d7cb34
RD
40265 _swigc__p_wxDCPenChanger,
40266 _swigc__p_wxDCTextColourChanger,
1bd55598
RD
40267 _swigc__p_wxDash,
40268 _swigc__p_wxDateEvent,
40269 _swigc__p_wxDisplayChangedEvent,
40270 _swigc__p_wxDropFilesEvent,
40271 _swigc__p_wxDuplexMode,
40272 _swigc__p_wxEffects,
40273 _swigc__p_wxEncodingConverter,
40274 _swigc__p_wxEraseEvent,
40275 _swigc__p_wxEvent,
40276 _swigc__p_wxEvtHandler,
40277 _swigc__p_wxFSFile,
40278 _swigc__p_wxFileSystem,
40279 _swigc__p_wxFlexGridSizer,
40280 _swigc__p_wxFocusEvent,
40281 _swigc__p_wxFont,
40282 _swigc__p_wxFontList,
40283 _swigc__p_wxFontMapper,
40284 _swigc__p_wxGBSizerItem,
72ef6efb 40285 _swigc__p_wxGCDC,
da91cb0f 40286 _swigc__p_wxGDIObjListBase,
1bd55598
RD
40287 _swigc__p_wxGDIObject,
40288 _swigc__p_wxGIFHandler,
70d7cb34 40289 _swigc__p_wxGraphicsBrush,
72ef6efb 40290 _swigc__p_wxGraphicsContext,
70d7cb34
RD
40291 _swigc__p_wxGraphicsFont,
40292 _swigc__p_wxGraphicsMatrix,
40293 _swigc__p_wxGraphicsObject,
72ef6efb 40294 _swigc__p_wxGraphicsPath,
70d7cb34
RD
40295 _swigc__p_wxGraphicsPen,
40296 _swigc__p_wxGraphicsRenderer,
1bd55598
RD
40297 _swigc__p_wxGridBagSizer,
40298 _swigc__p_wxGridSizer,
33d6fd3b 40299 _swigc__p_wxHeaderButtonParams,
1bd55598
RD
40300 _swigc__p_wxICOHandler,
40301 _swigc__p_wxIcon,
40302 _swigc__p_wxIconBundle,
40303 _swigc__p_wxIconLocation,
40304 _swigc__p_wxIconizeEvent,
40305 _swigc__p_wxIdleEvent,
40306 _swigc__p_wxImage,
40307 _swigc__p_wxImageHandler,
40308 _swigc__p_wxImageList,
40309 _swigc__p_wxIndividualLayoutConstraint,
40310 _swigc__p_wxInitDialogEvent,
40311 _swigc__p_wxJPEGHandler,
40312 _swigc__p_wxKeyEvent,
40313 _swigc__p_wxLanguageInfo,
40314 _swigc__p_wxLayoutConstraints,
40315 _swigc__p_wxLocale,
40316 _swigc__p_wxMask,
40317 _swigc__p_wxMaximizeEvent,
40318 _swigc__p_wxMemoryDC,
40319 _swigc__p_wxMenu,
40320 _swigc__p_wxMenuBar,
40321 _swigc__p_wxMenuEvent,
40322 _swigc__p_wxMenuItem,
40323 _swigc__p_wxMetaFile,
40324 _swigc__p_wxMetaFileDC,
40325 _swigc__p_wxMirrorDC,
40326 _swigc__p_wxMouseCaptureChangedEvent,
34e0a3bb 40327 _swigc__p_wxMouseCaptureLostEvent,
1bd55598
RD
40328 _swigc__p_wxMouseEvent,
40329 _swigc__p_wxMoveEvent,
40330 _swigc__p_wxNativeEncodingInfo,
40331 _swigc__p_wxNativeFontInfo,
fc46b7f3
RD
40332 _swigc__p_wxNativePixelData,
40333 _swigc__p_wxNativePixelData_Accessor,
1bd55598
RD
40334 _swigc__p_wxNavigationKeyEvent,
40335 _swigc__p_wxNcPaintEvent,
40336 _swigc__p_wxNotifyEvent,
40337 _swigc__p_wxObject,
b39fe951 40338 _swigc__p_wxOverlay,
1bd55598
RD
40339 _swigc__p_wxPCXHandler,
40340 _swigc__p_wxPNGHandler,
40341 _swigc__p_wxPNMHandler,
40342 _swigc__p_wxPaintDC,
40343 _swigc__p_wxPaintEvent,
40344 _swigc__p_wxPalette,
40345 _swigc__p_wxPaletteChangedEvent,
40346 _swigc__p_wxPaperSize,
40347 _swigc__p_wxPen,
40348 _swigc__p_wxPenList,
fc46b7f3 40349 _swigc__p_wxPixelDataBase,
1bd55598 40350 _swigc__p_wxPoint,
72ef6efb 40351 _swigc__p_wxPoint2D,
70d7cb34 40352 _swigc__p_wxPoint2DDouble,
1bd55598
RD
40353 _swigc__p_wxPostScriptDC,
40354 _swigc__p_wxPrintData,
40355 _swigc__p_wxPrinterDC,
27e45892 40356 _swigc__p_wxPseudoDC,
1bd55598
RD
40357 _swigc__p_wxPyApp,
40358 _swigc__p_wxPyCommandEvent,
40359 _swigc__p_wxPyEvent,
40360 _swigc__p_wxPyFontEnumerator,
40361 _swigc__p_wxPyImageHandler,
fc46b7f3 40362 _swigc__p_wxPyLocale,
1bd55598
RD
40363 _swigc__p_wxPySizer,
40364 _swigc__p_wxPyValidator,
40365 _swigc__p_wxQueryNewPaletteEvent,
40366 _swigc__p_wxRect,
70d7cb34 40367 _swigc__p_wxRect2DDouble,
1bd55598
RD
40368 _swigc__p_wxRegion,
40369 _swigc__p_wxRegionIterator,
40370 _swigc__p_wxRendererNative,
40371 _swigc__p_wxRendererVersion,
40372 _swigc__p_wxScreenDC,
40373 _swigc__p_wxScrollEvent,
40374 _swigc__p_wxScrollWinEvent,
40375 _swigc__p_wxSetCursorEvent,
40376 _swigc__p_wxShowEvent,
40377 _swigc__p_wxSize,
40378 _swigc__p_wxSizeEvent,
40379 _swigc__p_wxSizer,
40380 _swigc__p_wxSizerItem,
40381 _swigc__p_wxSplitterRenderParams,
40382 _swigc__p_wxStaticBoxSizer,
40383 _swigc__p_wxStdDialogButtonSizer,
da91cb0f 40384 _swigc__p_wxStockGDI,
1bd55598
RD
40385 _swigc__p_wxString,
40386 _swigc__p_wxSysColourChangedEvent,
580080c5 40387 _swigc__p_wxTGAHandler,
1bd55598
RD
40388 _swigc__p_wxTIFFHandler,
40389 _swigc__p_wxUpdateUIEvent,
40390 _swigc__p_wxValidator,
40391 _swigc__p_wxWindow,
40392 _swigc__p_wxWindowCreateEvent,
40393 _swigc__p_wxWindowDC,
40394 _swigc__p_wxWindowDestroyEvent,
40395 _swigc__p_wxXPMHandler,
40396};
40397
40398
40399/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
40400
40401static swig_const_info swig_const_table[] = {
40402{0, 0, 0, 0.0, 0, 0}};
40403
40404#ifdef __cplusplus
40405}
40406#endif
40407/* -----------------------------------------------------------------------------
40408 * Type initialization:
40409 * This problem is tough by the requirement that no dynamic
40410 * memory is used. Also, since swig_type_info structures store pointers to
40411 * swig_cast_info structures and swig_cast_info structures store pointers back
40412 * to swig_type_info structures, we need some lookup code at initialization.
40413 * The idea is that swig generates all the structures that are needed.
40414 * The runtime then collects these partially filled structures.
40415 * The SWIG_InitializeModule function takes these initial arrays out of
40416 * swig_module, and does all the lookup, filling in the swig_module.types
40417 * array with the correct data and linking the correct swig_cast_info
40418 * structures together.
40419 *
40420 * The generated swig_type_info structures are assigned staticly to an initial
40421 * array. We just loop though that array, and handle each type individually.
40422 * First we lookup if this type has been already loaded, and if so, use the
40423 * loaded structure instead of the generated one. Then we have to fill in the
40424 * cast linked list. The cast data is initially stored in something like a
40425 * two-dimensional array. Each row corresponds to a type (there are the same
40426 * number of rows as there are in the swig_type_initial array). Each entry in
40427 * a column is one of the swig_cast_info structures for that type.
40428 * The cast_initial array is actually an array of arrays, because each row has
40429 * a variable number of columns. So to actually build the cast linked list,
40430 * we find the array of casts associated with the type, and loop through it
40431 * adding the casts to the list. The one last trick we need to do is making
40432 * sure the type pointer in the swig_cast_info struct is correct.
40433 *
40434 * First off, we lookup the cast->type name to see if it is already loaded.
40435 * There are three cases to handle:
40436 * 1) If the cast->type has already been loaded AND the type we are adding
40437 * casting info to has not been loaded (it is in this module), THEN we
40438 * replace the cast->type pointer with the type pointer that has already
40439 * been loaded.
40440 * 2) If BOTH types (the one we are adding casting info to, and the
40441 * cast->type) are loaded, THEN the cast info has already been loaded by
40442 * the previous module so we just ignore it.
40443 * 3) Finally, if cast->type has not already been loaded, then we add that
40444 * swig_cast_info to the linked list (because the cast->type) pointer will
40445 * be correct.
40446 * ----------------------------------------------------------------------------- */
40447
40448#ifdef __cplusplus
40449extern "C" {
40450#if 0
40451} /* c-mode */
40452#endif
40453#endif
40454
40455#if 0
40456#define SWIGRUNTIME_DEBUG
40457#endif
40458
40459SWIGRUNTIME void
40460SWIG_InitializeModule(void *clientdata) {
40461 size_t i;
40462 swig_module_info *module_head;
40463 static int init_run = 0;
40464
40465 clientdata = clientdata;
40466
40467 if (init_run) return;
40468 init_run = 1;
40469
40470 /* Initialize the swig_module */
40471 swig_module.type_initial = swig_type_initial;
40472 swig_module.cast_initial = swig_cast_initial;
40473
40474 /* Try and load any already created modules */
40475 module_head = SWIG_GetModule(clientdata);
40476 if (module_head) {
40477 swig_module.next = module_head->next;
40478 module_head->next = &swig_module;
40479 } else {
40480 /* This is the first module loaded */
40481 swig_module.next = &swig_module;
40482 SWIG_SetModule(clientdata, &swig_module);
40483 }
40484
40485 /* Now work on filling in swig_module.types */
40486#ifdef SWIGRUNTIME_DEBUG
40487 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
40488#endif
40489 for (i = 0; i < swig_module.size; ++i) {
40490 swig_type_info *type = 0;
40491 swig_type_info *ret;
40492 swig_cast_info *cast;
40493
40494#ifdef SWIGRUNTIME_DEBUG
40495 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40496#endif
40497
40498 /* if there is another module already loaded */
40499 if (swig_module.next != &swig_module) {
40500 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
be9b1dca 40501 }
1bd55598
RD
40502 if (type) {
40503 /* Overwrite clientdata field */
40504#ifdef SWIGRUNTIME_DEBUG
40505 printf("SWIG_InitializeModule: found type %s\n", type->name);
40506#endif
40507 if (swig_module.type_initial[i]->clientdata) {
40508 type->clientdata = swig_module.type_initial[i]->clientdata;
40509#ifdef SWIGRUNTIME_DEBUG
40510 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
40511#endif
40512 }
40513 } else {
40514 type = swig_module.type_initial[i];
be9b1dca 40515 }
1bd55598
RD
40516
40517 /* Insert casting types */
40518 cast = swig_module.cast_initial[i];
40519 while (cast->type) {
40520 /* Don't need to add information already in the list */
40521 ret = 0;
40522#ifdef SWIGRUNTIME_DEBUG
40523 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
40524#endif
40525 if (swig_module.next != &swig_module) {
40526 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
40527#ifdef SWIGRUNTIME_DEBUG
40528 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
40529#endif
40530 }
40531 if (ret) {
40532 if (type == swig_module.type_initial[i]) {
40533#ifdef SWIGRUNTIME_DEBUG
40534 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
40535#endif
40536 cast->type = ret;
40537 ret = 0;
40538 } else {
40539 /* Check for casting already in the list */
40540 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
40541#ifdef SWIGRUNTIME_DEBUG
40542 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
40543#endif
40544 if (!ocast) ret = 0;
40545 }
40546 }
40547
40548 if (!ret) {
40549#ifdef SWIGRUNTIME_DEBUG
40550 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
40551#endif
40552 if (type->cast) {
40553 type->cast->prev = cast;
40554 cast->next = type->cast;
40555 }
40556 type->cast = cast;
40557 }
40558 cast++;
be9b1dca 40559 }
1bd55598
RD
40560 /* Set entry in modules->types array equal to the type */
40561 swig_module.types[i] = type;
40562 }
40563 swig_module.types[i] = 0;
40564
40565#ifdef SWIGRUNTIME_DEBUG
40566 printf("**** SWIG_InitializeModule: Cast List ******\n");
40567 for (i = 0; i < swig_module.size; ++i) {
40568 int j = 0;
40569 swig_cast_info *cast = swig_module.cast_initial[i];
40570 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40571 while (cast->type) {
40572 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
40573 cast++;
40574 ++j;
40575 }
40576 printf("---- Total casts: %d\n",j);
40577 }
40578 printf("**** SWIG_InitializeModule: Cast List ******\n");
40579#endif
40580}
40581
40582/* This function will propagate the clientdata field of type to
40583* any new swig_type_info structures that have been added into the list
40584* of equivalent types. It is like calling
40585* SWIG_TypeClientData(type, clientdata) a second time.
40586*/
40587SWIGRUNTIME void
40588SWIG_PropagateClientData(void) {
40589 size_t i;
40590 swig_cast_info *equiv;
40591 static int init_run = 0;
40592
40593 if (init_run) return;
40594 init_run = 1;
40595
40596 for (i = 0; i < swig_module.size; i++) {
40597 if (swig_module.types[i]->clientdata) {
40598 equiv = swig_module.types[i]->cast;
40599 while (equiv) {
40600 if (!equiv->converter) {
40601 if (equiv->type && !equiv->type->clientdata)
40602 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
40603 }
40604 equiv = equiv->next;
40605 }
be9b1dca 40606 }
1bd55598
RD
40607 }
40608}
40609
40610#ifdef __cplusplus
40611#if 0
40612{
40613 /* c-mode */
40614#endif
40615}
40616#endif
40617
40618
40619
40620#ifdef __cplusplus
40621extern "C" {
40622#endif
40623
40624 /* Python-specific SWIG API */
40625#define SWIG_newvarlink() SWIG_Python_newvarlink()
40626#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
40627#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
40628
40629 /* -----------------------------------------------------------------------------
40630 * global variable support code.
40631 * ----------------------------------------------------------------------------- */
40632
40633 typedef struct swig_globalvar {
40634 char *name; /* Name of global variable */
40635 PyObject *(*get_attr)(void); /* Return the current value */
40636 int (*set_attr)(PyObject *); /* Set the value */
40637 struct swig_globalvar *next;
40638 } swig_globalvar;
40639
40640 typedef struct swig_varlinkobject {
40641 PyObject_HEAD
40642 swig_globalvar *vars;
40643 } swig_varlinkobject;
40644
40645 SWIGINTERN PyObject *
40646 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
40647 return PyString_FromString("<Swig global variables>");
40648 }
40649
40650 SWIGINTERN PyObject *
40651 swig_varlink_str(swig_varlinkobject *v) {
40652 PyObject *str = PyString_FromString("(");
40653 swig_globalvar *var;
40654 for (var = v->vars; var; var=var->next) {
40655 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
40656 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
40657 }
40658 PyString_ConcatAndDel(&str,PyString_FromString(")"));
40659 return str;
40660 }
40661
40662 SWIGINTERN int
40663 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
40664 PyObject *str = swig_varlink_str(v);
40665 fprintf(fp,"Swig global variables ");
40666 fprintf(fp,"%s\n", PyString_AsString(str));
40667 Py_DECREF(str);
40668 return 0;
40669 }
40670
40671 SWIGINTERN void
40672 swig_varlink_dealloc(swig_varlinkobject *v) {
40673 swig_globalvar *var = v->vars;
40674 while (var) {
40675 swig_globalvar *n = var->next;
40676 free(var->name);
40677 free(var);
40678 var = n;
be9b1dca 40679 }
1bd55598
RD
40680 }
40681
40682 SWIGINTERN PyObject *
40683 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
40684 PyObject *res = NULL;
40685 swig_globalvar *var = v->vars;
40686 while (var) {
40687 if (strcmp(var->name,n) == 0) {
40688 res = (*var->get_attr)();
40689 break;
40690 }
40691 var = var->next;
be9b1dca 40692 }
1bd55598
RD
40693 if (res == NULL && !PyErr_Occurred()) {
40694 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 40695 }
1bd55598
RD
40696 return res;
40697 }
40698
40699 SWIGINTERN int
40700 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
40701 int res = 1;
40702 swig_globalvar *var = v->vars;
40703 while (var) {
40704 if (strcmp(var->name,n) == 0) {
40705 res = (*var->set_attr)(p);
40706 break;
40707 }
40708 var = var->next;
be9b1dca 40709 }
1bd55598
RD
40710 if (res == 1 && !PyErr_Occurred()) {
40711 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 40712 }
1bd55598
RD
40713 return res;
40714 }
40715
40716 SWIGINTERN PyTypeObject*
40717 swig_varlink_type(void) {
40718 static char varlink__doc__[] = "Swig var link object";
40719 static PyTypeObject varlink_type;
40720 static int type_init = 0;
40721 if (!type_init) {
40722 const PyTypeObject tmp
40723 = {
40724 PyObject_HEAD_INIT(NULL)
40725 0, /* Number of items in variable part (ob_size) */
40726 (char *)"swigvarlink", /* Type name (tp_name) */
40727 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
40728 0, /* Itemsize (tp_itemsize) */
40729 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
40730 (printfunc) swig_varlink_print, /* Print (tp_print) */
40731 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
40732 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
40733 0, /* tp_compare */
40734 (reprfunc) swig_varlink_repr, /* tp_repr */
40735 0, /* tp_as_number */
40736 0, /* tp_as_sequence */
40737 0, /* tp_as_mapping */
40738 0, /* tp_hash */
40739 0, /* tp_call */
40740 (reprfunc)swig_varlink_str, /* tp_str */
40741 0, /* tp_getattro */
40742 0, /* tp_setattro */
40743 0, /* tp_as_buffer */
40744 0, /* tp_flags */
40745 varlink__doc__, /* tp_doc */
40746 0, /* tp_traverse */
40747 0, /* tp_clear */
40748 0, /* tp_richcompare */
40749 0, /* tp_weaklistoffset */
40750#if PY_VERSION_HEX >= 0x02020000
40751 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
40752#endif
40753#if PY_VERSION_HEX >= 0x02030000
40754 0, /* tp_del */
40755#endif
40756#ifdef COUNT_ALLOCS
40757 0,0,0,0 /* tp_alloc -> tp_next */
40758#endif
40759 };
40760 varlink_type = tmp;
40761 varlink_type.ob_type = &PyType_Type;
40762 type_init = 1;
be9b1dca 40763 }
1bd55598
RD
40764 return &varlink_type;
40765 }
40766
40767 /* Create a variable linking object for use later */
40768 SWIGINTERN PyObject *
40769 SWIG_Python_newvarlink(void) {
40770 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
40771 if (result) {
40772 result->vars = 0;
40773 }
40774 return ((PyObject*) result);
40775 }
40776
40777 SWIGINTERN void
40778 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
40779 swig_varlinkobject *v = (swig_varlinkobject *) p;
40780 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
40781 if (gv) {
40782 size_t size = strlen(name)+1;
40783 gv->name = (char *)malloc(size);
40784 if (gv->name) {
40785 strncpy(gv->name,name,size);
40786 gv->get_attr = get_attr;
40787 gv->set_attr = set_attr;
40788 gv->next = v->vars;
40789 }
be9b1dca 40790 }
1bd55598
RD
40791 v->vars = gv;
40792 }
40793
40794 SWIGINTERN PyObject *
40795 SWIG_globals() {
40796 static PyObject *_SWIG_globals = 0;
40797 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
40798 return _SWIG_globals;
40799 }
40800
40801 /* -----------------------------------------------------------------------------
40802 * constants/methods manipulation
40803 * ----------------------------------------------------------------------------- */
40804
40805 /* Install Constants */
40806 SWIGINTERN void
40807 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
40808 PyObject *obj = 0;
40809 size_t i;
40810 for (i = 0; constants[i].type; ++i) {
40811 switch(constants[i].type) {
40812 case SWIG_PY_POINTER:
40813 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
40814 break;
40815 case SWIG_PY_BINARY:
40816 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
40817 break;
40818 default:
40819 obj = 0;
40820 break;
40821 }
40822 if (obj) {
40823 PyDict_SetItemString(d, constants[i].name, obj);
40824 Py_DECREF(obj);
40825 }
be9b1dca 40826 }
1bd55598
RD
40827 }
40828
40829 /* -----------------------------------------------------------------------------*/
40830 /* Fix SwigMethods to carry the callback ptrs when needed */
40831 /* -----------------------------------------------------------------------------*/
40832
40833 SWIGINTERN void
40834 SWIG_Python_FixMethods(PyMethodDef *methods,
40835 swig_const_info *const_table,
40836 swig_type_info **types,
40837 swig_type_info **types_initial) {
40838 size_t i;
40839 for (i = 0; methods[i].ml_name; ++i) {
3d6c9062 40840 const char *c = methods[i].ml_doc;
1bd55598
RD
40841 if (c && (c = strstr(c, "swig_ptr: "))) {
40842 int j;
40843 swig_const_info *ci = 0;
3d6c9062 40844 const char *name = c + 10;
1bd55598
RD
40845 for (j = 0; const_table[j].type; ++j) {
40846 if (strncmp(const_table[j].name, name,
40847 strlen(const_table[j].name)) == 0) {
40848 ci = &(const_table[j]);
40849 break;
40850 }
40851 }
40852 if (ci) {
40853 size_t shift = (ci->ptype) - types;
40854 swig_type_info *ty = types_initial[shift];
40855 size_t ldoc = (c - methods[i].ml_doc);
40856 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
40857 char *ndoc = (char*)malloc(ldoc + lptr + 10);
40858 if (ndoc) {
40859 char *buff = ndoc;
40860 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
40861 if (ptr) {
40862 strncpy(buff, methods[i].ml_doc, ldoc);
40863 buff += ldoc;
40864 strncpy(buff, "swig_ptr: ", 10);
40865 buff += 10;
40866 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
40867 methods[i].ml_doc = ndoc;
40868 }
40869 }
40870 }
40871 }
be9b1dca 40872 }
1bd55598
RD
40873 }
40874
40875#ifdef __cplusplus
40876}
40877#endif
40878
40879/* -----------------------------------------------------------------------------*
40880 * Partial Init method
40881 * -----------------------------------------------------------------------------*/
40882
40883#ifdef __cplusplus
40884extern "C"
40885#endif
40886SWIGEXPORT void SWIG_init(void) {
40887 PyObject *m, *d;
40888
40889 /* Fix SwigMethods to carry the callback ptrs when needed */
40890 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
40891
40892 m = Py_InitModule((char *) SWIG_name, SwigMethods);
40893 d = PyModule_GetDict(m);
40894
40895 SWIG_InitializeModule(0);
40896 SWIG_InstallConstants(d,swig_const_table);
40897
40898
2131d850
RD
40899 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
40900 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
40901 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
fc46b7f3
RD
40902 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
40903 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
1bd55598
RD
40904 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
40905 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
40906 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
40907 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
40908 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
40909 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
40910 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
40911 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
40912 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
40913 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
40914 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
40915 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
40916 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
40917 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
40918 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
40919 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
40920 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
40921 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
40922 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
40923 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
40924 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
40925 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
40926 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
40927 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
40928 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
40929 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
40930 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
40931 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
40932 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
40933 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
40934 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
40935 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
40936 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
40937 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
40938 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
40939 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
40940 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
40941 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
40942 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
40943 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
40944 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
40945 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
40946 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
40947 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
40948 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
40949 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
40950 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
40951 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
40952 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
40953 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
40954 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
40955 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
40956 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
40957 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
40958 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
40959 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
40960 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
40961 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
40962 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
40963 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
40964 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
40965 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
40966 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
40967 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
40968 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
40969 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
40970 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
40971 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
40972 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
40973 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
40974 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
40975 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
40976 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
40977 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
40978 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
40979 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
40980 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
40981 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
40982 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
40983 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
40984 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
40985 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
40986 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
40987 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
40988 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
40989 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
40990 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
40991 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
40992 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
40993 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
40994 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
40995 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
40996 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
40997 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
40998 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
40999 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
41000 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
41001 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
41002 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
41003 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
41004 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
41005 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
41006 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
41007 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
41008 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
41009 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
41010 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
41011 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
41012 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
41013 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
41014 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
41015 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
41016 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
41017 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
41018 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
41019 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
41020 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
41021 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
41022 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
41023 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
41024 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
41025 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
41026 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
41027 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
41028 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
41029 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
41030 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
41031
41032 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
41033
41034 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
41035 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
41036 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
41037 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
41038 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
41039 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
41040 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
41041 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
41042 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
41043 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
41044 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
41045 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
41046 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
41047 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
41048 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
41049 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
41050 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
41051 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
41052 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
41053 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
41054 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
41055 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
41056 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
41057 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
41058 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
41059 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
41060 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
41061 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
41062 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
41063 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
41064 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
41065 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
41066 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
41067 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
41068 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
41069 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
41070 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
41071 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
41072 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
41073 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
41074 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
41075 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
41076 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
41077 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
41078 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
41079 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
41080 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
41081 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
41082 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
41083 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
41084 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
41085 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
41086 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
41087 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
41088 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
41089 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
41090 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
41091 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
41092 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
41093 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
41094 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
41095 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
41096 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
41097 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
41098 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
41099 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
41100 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
41101 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
41102 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
41103 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
41104 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
41105 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
41106 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
41107 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
41108 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
41109 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
41110 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
41111 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
41112 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
41113 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
41114 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
41115 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
41116 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
41117 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
41118 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
41119 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
41120 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
41121 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
41122 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
41123 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
41124 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
41125 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
41126 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
41127 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
41128 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
41129 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
41130 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
41131 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
41132 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
41133 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
41134 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
41135 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
41136 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
41137 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
41138 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
41139 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
41140 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
41141 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
41142 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
41143 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
41144 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
41145 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
41146 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
41147 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
41148 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
41149 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
41150 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
41151 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
41152 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
41153 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
41154 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
41155 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
41156 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
41157 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
41158 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
41159 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
41160 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
41161 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
41162 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
41163 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
41164 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
41165 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
41166 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
41167 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
41168 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
41169 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
41170 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
41171 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
41172 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
41173 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
41174 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
41175 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
41176 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
41177 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
41178 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
41179 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
41180 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
41181 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
41182 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
41183 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
41184 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
41185 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
41186 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
41187 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
41188 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
41189 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
41190 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
41191 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
41192 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
41193 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
41194 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
41195 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
41196 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
41197 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
41198 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
41199 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
41200 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
41201 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
41202 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
41203 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
41204 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
41205 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
41206 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
41207 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
41208 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
41209 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
41210 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
41211 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
41212 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
41213 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
41214 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
41215 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
41216 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
41217 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
41218 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
41219 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
41220 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
41221 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
41222 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
41223 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
41224 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
41225 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
41226 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
41227 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
41228 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
41229 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
41230 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
41231 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
41232 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
41233 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
41234 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
41235 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
41236 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
41237 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
41238 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
41239 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
41240 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
41241 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
41242 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
41243 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
41244 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
41245 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
41246 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
41247 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
41248 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
41249 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
41250 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
41251 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
41252 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
41253 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
41254 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
41255 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
41256 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
41257 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
41258 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
41259 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
41260 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
41261 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
41262 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
41263 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
41264 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
41265 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
41266 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
41267 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
41268 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
41269 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
41270 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
41271 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
41272 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
41273 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
41274 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
41275 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
41276 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
41277 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
41278 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
41279 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
41280 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
41281 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
70d7cb34
RD
41282 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
41283 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set);
41284 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set);
41285 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set);
5c8c7dd3
RD
41286 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set);
41287 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set);
1bd55598
RD
41288 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
41289 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
41290 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
41291 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
41292 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
41293 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
41294 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
da91cb0f
RD
41295 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
41296 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
41297 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
41298 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
41299 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
41300 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
41301 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
41302 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
41303 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
41304 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
41305 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
41306 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
41307 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
41308 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
41309 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
41310 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
41311 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
41312 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
41313 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
41314 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
41315 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
41316 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
41317 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
41318 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
41319 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
41320 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
41321 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
41322 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
41323 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
41324 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
41325 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
41326 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
41327 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
41328 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
41329 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
1bd55598
RD
41330 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
41331 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
41332 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
41333 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
41334 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
41335 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
41336 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
41337 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
1bd55598
RD
41338 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
41339 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
41340 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
79df624a 41341 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
1bd55598
RD
41342 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
41343 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
41344 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
79df624a 41345 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
1bd55598
RD
41346 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
41347 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
41348 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
41349 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
41350 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
41351 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
41352 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
33d6fd3b
RD
41353 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
41354 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
41355 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
1bd55598
RD
41356 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
41357 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
41358
41359 // Work around a chicken/egg problem in drawlist.cpp
41360 wxPyDrawList_SetAPIPtr();
41361
d55e5bfc
RD
41362}
41363