]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/_gdi_wrap.cpp
protect gs_allThreads with a mutex (modified patch 1518719)
[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]
2474#define SWIGTYPE_p_wxANIHandler swig_types[8]
2475#define SWIGTYPE_p_wxAcceleratorTable swig_types[9]
2476#define SWIGTYPE_p_wxActivateEvent swig_types[10]
2477#define SWIGTYPE_p_wxAlphaPixelData swig_types[11]
2478#define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[12]
b39fe951
RD
2479#define SWIGTYPE_p_wxBMPHandler swig_types[13]
2480#define SWIGTYPE_p_wxBitmap swig_types[14]
2481#define SWIGTYPE_p_wxBoxSizer swig_types[15]
2482#define SWIGTYPE_p_wxBrush swig_types[16]
2483#define SWIGTYPE_p_wxBrushList swig_types[17]
2484#define SWIGTYPE_p_wxBufferedDC swig_types[18]
2485#define SWIGTYPE_p_wxBufferedPaintDC swig_types[19]
2486#define SWIGTYPE_p_wxCURHandler swig_types[20]
2487#define SWIGTYPE_p_wxChar swig_types[21]
2488#define SWIGTYPE_p_wxChildFocusEvent swig_types[22]
2489#define SWIGTYPE_p_wxClientDC swig_types[23]
2490#define SWIGTYPE_p_wxClipboardTextEvent swig_types[24]
2491#define SWIGTYPE_p_wxCloseEvent swig_types[25]
2492#define SWIGTYPE_p_wxColor swig_types[26]
2493#define SWIGTYPE_p_wxColour swig_types[27]
2494#define SWIGTYPE_p_wxColourDatabase swig_types[28]
2495#define SWIGTYPE_p_wxCommandEvent swig_types[29]
2496#define SWIGTYPE_p_wxContextMenuEvent swig_types[30]
2497#define SWIGTYPE_p_wxControl swig_types[31]
2498#define SWIGTYPE_p_wxControlWithItems swig_types[32]
2499#define SWIGTYPE_p_wxCursor swig_types[33]
2500#define SWIGTYPE_p_wxDC swig_types[34]
2501#define SWIGTYPE_p_wxDCOverlay swig_types[35]
72ef6efb
RD
2502#define SWIGTYPE_p_wxDash swig_types[36]
2503#define SWIGTYPE_p_wxDateEvent swig_types[37]
2504#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[38]
2505#define SWIGTYPE_p_wxDropFilesEvent swig_types[39]
2506#define SWIGTYPE_p_wxDuplexMode swig_types[40]
2507#define SWIGTYPE_p_wxEffects swig_types[41]
2508#define SWIGTYPE_p_wxEncodingConverter swig_types[42]
2509#define SWIGTYPE_p_wxEraseEvent swig_types[43]
2510#define SWIGTYPE_p_wxEvent swig_types[44]
2511#define SWIGTYPE_p_wxEvtHandler swig_types[45]
2512#define SWIGTYPE_p_wxFSFile swig_types[46]
2513#define SWIGTYPE_p_wxFileSystem swig_types[47]
2514#define SWIGTYPE_p_wxFlexGridSizer swig_types[48]
2515#define SWIGTYPE_p_wxFocusEvent swig_types[49]
2516#define SWIGTYPE_p_wxFont swig_types[50]
2517#define SWIGTYPE_p_wxFontList swig_types[51]
2518#define SWIGTYPE_p_wxFontMapper swig_types[52]
2519#define SWIGTYPE_p_wxGBSizerItem swig_types[53]
2520#define SWIGTYPE_p_wxGCDC swig_types[54]
2521#define SWIGTYPE_p_wxGDIObjListBase swig_types[55]
2522#define SWIGTYPE_p_wxGDIObject swig_types[56]
2523#define SWIGTYPE_p_wxGIFHandler swig_types[57]
2524#define SWIGTYPE_p_wxGraphicsContext swig_types[58]
2525#define SWIGTYPE_p_wxGraphicsPath swig_types[59]
2526#define SWIGTYPE_p_wxGridBagSizer swig_types[60]
2527#define SWIGTYPE_p_wxGridSizer swig_types[61]
2528#define SWIGTYPE_p_wxHeaderButtonParams swig_types[62]
2529#define SWIGTYPE_p_wxICOHandler swig_types[63]
2530#define SWIGTYPE_p_wxIcon swig_types[64]
2531#define SWIGTYPE_p_wxIconBundle swig_types[65]
2532#define SWIGTYPE_p_wxIconLocation swig_types[66]
2533#define SWIGTYPE_p_wxIconizeEvent swig_types[67]
2534#define SWIGTYPE_p_wxIdleEvent swig_types[68]
2535#define SWIGTYPE_p_wxImage swig_types[69]
2536#define SWIGTYPE_p_wxImageHandler swig_types[70]
2537#define SWIGTYPE_p_wxImageList swig_types[71]
2538#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[72]
2539#define SWIGTYPE_p_wxInitDialogEvent swig_types[73]
2540#define SWIGTYPE_p_wxJPEGHandler swig_types[74]
2541#define SWIGTYPE_p_wxKeyEvent swig_types[75]
2542#define SWIGTYPE_p_wxLanguageInfo swig_types[76]
2543#define SWIGTYPE_p_wxLayoutConstraints swig_types[77]
2544#define SWIGTYPE_p_wxLocale swig_types[78]
2545#define SWIGTYPE_p_wxMask swig_types[79]
2546#define SWIGTYPE_p_wxMaximizeEvent swig_types[80]
2547#define SWIGTYPE_p_wxMemoryDC swig_types[81]
2548#define SWIGTYPE_p_wxMenu swig_types[82]
2549#define SWIGTYPE_p_wxMenuBar swig_types[83]
2550#define SWIGTYPE_p_wxMenuEvent swig_types[84]
2551#define SWIGTYPE_p_wxMenuItem swig_types[85]
2552#define SWIGTYPE_p_wxMetaFile swig_types[86]
2553#define SWIGTYPE_p_wxMetaFileDC swig_types[87]
2554#define SWIGTYPE_p_wxMirrorDC swig_types[88]
2555#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[89]
2556#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[90]
2557#define SWIGTYPE_p_wxMouseEvent swig_types[91]
2558#define SWIGTYPE_p_wxMoveEvent swig_types[92]
2559#define SWIGTYPE_p_wxNativeEncodingInfo swig_types[93]
2560#define SWIGTYPE_p_wxNativeFontInfo swig_types[94]
2561#define SWIGTYPE_p_wxNativePixelData swig_types[95]
2562#define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[96]
2563#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[97]
2564#define SWIGTYPE_p_wxNcPaintEvent swig_types[98]
2565#define SWIGTYPE_p_wxNotifyEvent swig_types[99]
2566#define SWIGTYPE_p_wxObject swig_types[100]
b39fe951
RD
2567#define SWIGTYPE_p_wxOverlay swig_types[101]
2568#define SWIGTYPE_p_wxPCXHandler swig_types[102]
2569#define SWIGTYPE_p_wxPNGHandler swig_types[103]
2570#define SWIGTYPE_p_wxPNMHandler swig_types[104]
2571#define SWIGTYPE_p_wxPaintDC swig_types[105]
2572#define SWIGTYPE_p_wxPaintEvent swig_types[106]
2573#define SWIGTYPE_p_wxPalette swig_types[107]
2574#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[108]
2575#define SWIGTYPE_p_wxPaperSize swig_types[109]
2576#define SWIGTYPE_p_wxPen swig_types[110]
2577#define SWIGTYPE_p_wxPenList swig_types[111]
2578#define SWIGTYPE_p_wxPixelDataBase swig_types[112]
2579#define SWIGTYPE_p_wxPoint swig_types[113]
2580#define SWIGTYPE_p_wxPoint2D swig_types[114]
2581#define SWIGTYPE_p_wxPostScriptDC swig_types[115]
2582#define SWIGTYPE_p_wxPrintData swig_types[116]
2583#define SWIGTYPE_p_wxPrinterDC swig_types[117]
2584#define SWIGTYPE_p_wxPseudoDC swig_types[118]
2585#define SWIGTYPE_p_wxPyApp swig_types[119]
2586#define SWIGTYPE_p_wxPyCommandEvent swig_types[120]
2587#define SWIGTYPE_p_wxPyEvent swig_types[121]
2588#define SWIGTYPE_p_wxPyFontEnumerator swig_types[122]
2589#define SWIGTYPE_p_wxPyImageHandler swig_types[123]
2590#define SWIGTYPE_p_wxPyLocale swig_types[124]
2591#define SWIGTYPE_p_wxPySizer swig_types[125]
2592#define SWIGTYPE_p_wxPyValidator swig_types[126]
2593#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[127]
2594#define SWIGTYPE_p_wxRect swig_types[128]
2595#define SWIGTYPE_p_wxRegion swig_types[129]
2596#define SWIGTYPE_p_wxRegionIterator swig_types[130]
2597#define SWIGTYPE_p_wxRendererNative swig_types[131]
2598#define SWIGTYPE_p_wxRendererVersion swig_types[132]
2599#define SWIGTYPE_p_wxScreenDC swig_types[133]
2600#define SWIGTYPE_p_wxScrollEvent swig_types[134]
2601#define SWIGTYPE_p_wxScrollWinEvent swig_types[135]
2602#define SWIGTYPE_p_wxSetCursorEvent swig_types[136]
2603#define SWIGTYPE_p_wxShowEvent swig_types[137]
2604#define SWIGTYPE_p_wxSize swig_types[138]
2605#define SWIGTYPE_p_wxSizeEvent swig_types[139]
2606#define SWIGTYPE_p_wxSizer swig_types[140]
2607#define SWIGTYPE_p_wxSizerItem swig_types[141]
2608#define SWIGTYPE_p_wxSplitterRenderParams swig_types[142]
2609#define SWIGTYPE_p_wxStaticBoxSizer swig_types[143]
2610#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[144]
2611#define SWIGTYPE_p_wxStockGDI swig_types[145]
2612#define SWIGTYPE_p_wxString swig_types[146]
2613#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[147]
2614#define SWIGTYPE_p_wxTIFFHandler swig_types[148]
2615#define SWIGTYPE_p_wxUpdateUIEvent swig_types[149]
2616#define SWIGTYPE_p_wxValidator swig_types[150]
2617#define SWIGTYPE_p_wxWindow swig_types[151]
2618#define SWIGTYPE_p_wxWindowCreateEvent swig_types[152]
2619#define SWIGTYPE_p_wxWindowDC swig_types[153]
2620#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[154]
2621#define SWIGTYPE_p_wxXPMHandler swig_types[155]
2622static swig_type_info *swig_types[157];
2623static swig_module_info swig_module = {swig_types, 156, 0, 0, 0, 0};
32fe5131
RD
2624#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2625#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
d55e5bfc 2626
36ed4f51 2627/* -------- TYPES TABLE (END) -------- */
d55e5bfc 2628
1bd55598
RD
2629#if (PY_VERSION_HEX <= 0x02000000)
2630# if !defined(SWIG_PYTHON_CLASSIC)
2631# error "This python version requires to use swig with the '-classic' option"
2632# endif
2633#endif
2634#if (PY_VERSION_HEX <= 0x02020000)
2635# error "This python version requires to use swig with the '-nomodern' option"
2636#endif
2637#if (PY_VERSION_HEX <= 0x02020000)
2638# error "This python version requires to use swig with the '-nomodernargs' option"
2639#endif
2640#ifndef METH_O
2641# error "This python version requires to use swig with the '-nofastunpack' option"
2642#endif
d55e5bfc 2643
36ed4f51
RD
2644/*-----------------------------------------------
2645 @(target):= _gdi_.so
2646 ------------------------------------------------*/
2647#define SWIG_init init_gdi_
d55e5bfc 2648
36ed4f51 2649#define SWIG_name "_gdi_"
d55e5bfc 2650
1bd55598 2651#define SWIGVERSION 0x010329
d55e5bfc 2652
d55e5bfc 2653
1bd55598
RD
2654#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2655#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
d55e5bfc
RD
2656
2657
1bd55598
RD
2658#include <stdexcept>
2659
2660
2661namespace swig {
2662 class PyObject_ptr {
2663 protected:
2664 PyObject *_obj;
2665
2666 public:
2667 PyObject_ptr() :_obj(0)
2668 {
36ed4f51 2669 }
1bd55598
RD
2670
2671 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2672 {
2673 Py_XINCREF(_obj);
36ed4f51 2674 }
1bd55598
RD
2675
2676 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2677 {
2678 if (initial_ref) Py_XINCREF(_obj);
2679 }
2680
2681 PyObject_ptr & operator=(const PyObject_ptr& item)
2682 {
2683 Py_XINCREF(item._obj);
2684 Py_XDECREF(_obj);
2685 _obj = item._obj;
2686 return *this;
2687 }
2688
2689 ~PyObject_ptr()
2690 {
2691 Py_XDECREF(_obj);
2692 }
2693
2694 operator PyObject *() const
2695 {
2696 return _obj;
2697 }
2698
2699 PyObject *operator->() const
2700 {
2701 return _obj;
2702 }
2703 };
36ed4f51 2704}
d55e5bfc 2705
d55e5bfc 2706
1bd55598
RD
2707namespace swig {
2708 struct PyObject_var : PyObject_ptr {
2709 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2710
2711 PyObject_var & operator = (PyObject* obj)
2712 {
2713 Py_XDECREF(_obj);
2714 _obj = obj;
2715 return *this;
d55e5bfc 2716 }
1bd55598 2717 };
d55e5bfc
RD
2718}
2719
2720
1bd55598
RD
2721#include "wx/wxPython/wxPython.h"
2722#include "wx/wxPython/pyclasses.h"
2723
2724
2725 static const wxString wxPyEmptyString(wxEmptyString);
2726
2131d850
RD
2727 #define SWIG_From_long PyInt_FromLong
2728
2729
2730SWIGINTERNINLINE PyObject *
2731SWIG_From_int (int value)
2732{
2733 return SWIG_From_long (value);
2734}
2735
2736
1bd55598
RD
2737#include <limits.h>
2738#ifndef LLONG_MIN
2739# define LLONG_MIN LONG_LONG_MIN
2740#endif
2741#ifndef LLONG_MAX
2742# define LLONG_MAX LONG_LONG_MAX
2743#endif
2744#ifndef ULLONG_MAX
2745# define ULLONG_MAX ULONG_LONG_MAX
2746#endif
d55e5bfc
RD
2747
2748
da91cb0f
RD
2749SWIGINTERN int
2750SWIG_AsVal_long (PyObject* obj, long* val)
2751{
2752 if (PyNumber_Check(obj)) {
2753 if (val) *val = PyInt_AsLong(obj);
2754 return SWIG_OK;
2755 }
2756 return SWIG_TypeError;
2757}
2758
2759
36ed4f51 2760SWIGINTERN int
1bd55598 2761SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
36ed4f51
RD
2762{
2763 long v = 0;
2764 if (SWIG_AsVal_long(obj, &v) && v < 0) {
1bd55598 2765 return SWIG_TypeError;
36ed4f51
RD
2766 }
2767 else if (val)
2768 *val = (unsigned long)v;
1bd55598 2769 return SWIG_OK;
36ed4f51 2770}
d55e5bfc
RD
2771
2772
36ed4f51 2773SWIGINTERN int
1bd55598
RD
2774SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2775{
36ed4f51 2776 unsigned long v;
1bd55598
RD
2777 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2778 if (SWIG_IsOK(res)) {
2779 if ((v > UCHAR_MAX)) {
2780 return SWIG_OverflowError;
36ed4f51 2781 } else {
1bd55598 2782 if (val) *val = static_cast< unsigned char >(v);
36ed4f51 2783 }
1bd55598
RD
2784 }
2785 return res;
36ed4f51 2786}
d55e5bfc 2787
d55e5bfc 2788
1bd55598
RD
2789SWIGINTERNINLINE PyObject*
2790SWIG_From_unsigned_SS_long (unsigned long value)
36ed4f51 2791{
1bd55598
RD
2792 return (value > LONG_MAX) ?
2793 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
d55e5bfc
RD
2794}
2795
2796
1bd55598
RD
2797SWIGINTERNINLINE PyObject *
2798SWIG_From_unsigned_SS_char (unsigned char value)
2799{
2800 return SWIG_From_unsigned_SS_long (value);
2801}
d55e5bfc 2802
e9d6f3a4
RD
2803SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2804 wxColour temp, *obj = &temp;
2805 if ( other == Py_None ) return false;
2806 if ( ! wxColour_helper(other, &obj) ) {
2807 PyErr_Clear();
2808 return false;
2809 }
2810 return self->operator==(*obj);
2811 }
2812SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2813 wxColour temp, *obj = &temp;
2814 if ( other == Py_None ) return true;
2815 if ( ! wxColour_helper(other, &obj)) {
2816 PyErr_Clear();
2817 return true;
2818 }
2819 return self->operator!=(*obj);
2820 }
fc46b7f3
RD
2821
2822SWIGINTERN int
2823SWIG_AsVal_bool (PyObject *obj, bool *val)
2824{
2825 if (obj == Py_True) {
2826 if (val) *val = true;
2827 return SWIG_OK;
2828 } else if (obj == Py_False) {
2829 if (val) *val = false;
2830 return SWIG_OK;
2831 } else {
2832 long v = 0;
2833 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2834 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2835 return res;
2836 }
2837}
2838
2839SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2840 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
36ed4f51
RD
2841 int red = -1;
2842 int green = -1;
2843 int blue = -1;
fc46b7f3 2844 int alpha = wxALPHA_OPAQUE;
b39fe951 2845 if (self->IsOk()) {
36ed4f51
RD
2846 red = self->Red();
2847 green = self->Green();
2848 blue = self->Blue();
fc46b7f3 2849 alpha = self->Alpha();
36ed4f51
RD
2850 }
2851 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2852 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2853 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
fc46b7f3
RD
2854 if (includeAlpha)
2855 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
36ed4f51
RD
2856 return rv;
2857 }
1bd55598 2858SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
36ed4f51
RD
2859 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2860 }
d55e5bfc 2861
1bd55598
RD
2862SWIGINTERN int
2863SWIG_AsVal_int (PyObject * obj, int *val)
36ed4f51 2864{
1bd55598
RD
2865 long v;
2866 int res = SWIG_AsVal_long (obj, &v);
2867 if (SWIG_IsOK(res)) {
2868 if ((v < INT_MIN || v > INT_MAX)) {
2869 return SWIG_OverflowError;
2870 } else {
2871 if (val) *val = static_cast< int >(v);
2872 }
2873 }
2874 return res;
d55e5bfc
RD
2875}
2876
1bd55598 2877SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
36ed4f51
RD
2878 wxDash* dashes;
2879 int count = self->GetDashes(&dashes);
5a446332 2880 wxPyBlock_t blocked = wxPyBeginBlockThreads();
36ed4f51
RD
2881 PyObject* retval = PyList_New(0);
2882 for (int x=0; x<count; x++) {
2883 PyObject* pyint = PyInt_FromLong(dashes[x]);
2884 PyList_Append(retval, pyint);
2885 Py_DECREF(pyint);
2886 }
2887 wxPyEndBlockThreads(blocked);
2888 return retval;
2889 }
1bd55598 2890SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
5a446332 2891 wxPyBlock_t blocked = wxPyBeginBlockThreads();
36ed4f51
RD
2892 int size = PyList_Size(pyDashes);
2893 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
d55e5bfc 2894
36ed4f51
RD
2895 // black magic warning! The array of wxDashes needs to exist as
2896 // long as the pen does because wxPen does not copy the array. So
2897 // stick a copy in a Python string object and attach it to _self,
2898 // and then call SetDashes with a pointer to that array. Then
2899 // when the Python pen object is destroyed the array will be
2900 // cleaned up too.
2901 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2902 PyObject_SetAttrString(_self, "_dashes", strDashes);
2903
2904 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2905 delete [] dashes;
2906 Py_DECREF(strDashes);
2907 wxPyEndBlockThreads(blocked);
2908 }
1bd55598
RD
2909SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2910SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
d55e5bfc 2911
1bd55598
RD
2912SWIGINTERNINLINE PyObject *
2913SWIG_From_short (short value)
2914{
2915 return SWIG_From_long (value);
2916}
d55e5bfc
RD
2917
2918
36ed4f51 2919SWIGINTERN int
1bd55598
RD
2920SWIG_AsVal_short (PyObject * obj, short *val)
2921{
36ed4f51 2922 long v;
1bd55598
RD
2923 int res = SWIG_AsVal_long (obj, &v);
2924 if (SWIG_IsOK(res)) {
2925 if ((v < SHRT_MIN || v > SHRT_MAX)) {
2926 return SWIG_OverflowError;
36ed4f51 2927 } else {
1bd55598
RD
2928 if (val) *val = static_cast< short >(v);
2929 }
2930 }
2931 return res;
d55e5bfc
RD
2932}
2933
2934
fc46b7f3
RD
2935#include <wx/rawbmp.h>
2936
2937
36ed4f51 2938#include <wx/image.h>
d55e5bfc 2939
36ed4f51
RD
2940 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2941 char** cArray = NULL;
2942 int count;
d55e5bfc 2943
36ed4f51
RD
2944 if (!PyList_Check(listOfStrings)) {
2945 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2946 return NULL;
2947 }
2948 count = PyList_Size(listOfStrings);
2949 cArray = new char*[count];
d55e5bfc 2950
36ed4f51
RD
2951 for(int x=0; x<count; x++) {
2952 // TODO: Need some validation and error checking here
2953 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2954 }
2955 return cArray;
d55e5bfc 2956 }
d55e5bfc
RD
2957
2958
1bd55598 2959SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
fc46b7f3
RD
2960 char** cArray = NULL;
2961 wxBitmap* bmp;
2962
2963 cArray = ConvertListOfStrings(listOfStrings);
2964 if (! cArray)
2965 return NULL;
2966 bmp = new wxBitmap(cArray);
2967 delete [] cArray;
2968 return bmp;
2969 }
1bd55598 2970SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
fc46b7f3
RD
2971 char* buf;
2972 Py_ssize_t length;
2973 PyString_AsStringAndSize(bits, &buf, &length);
2974 return new wxBitmap(buf, width, height, depth);
2975 }
1bd55598 2976SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
36ed4f51
RD
2977 wxSize size(self->GetWidth(), self->GetHeight());
2978 return size;
2979 }
1bd55598 2980SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
36ed4f51
RD
2981 wxMask *mask = new wxMask(*self, colour);
2982 self->SetMask(mask);
2983 }
1bd55598 2984SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
36ed4f51
RD
2985 self->SetWidth(size.x);
2986 self->SetHeight(size.y);
2987 }
1bd55598
RD
2988SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2989SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
fc46b7f3
RD
2990
2991// See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2992// appears to me that the other platforms are already doing it, so I'll just
2993// automatically do it for wxMSW here.
2994#ifdef __WXMSW__
195a89b4
RD
2995#define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2996#define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
fc46b7f3
RD
2997#else
2998#define wxPy_premultiply(p, a) (p)
2999#define wxPy_unpremultiply(p, a) (p)
3000#endif
3001
3002
3003 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
3004 buffer data, int DATASIZE,
3005 buffer alpha, int ALPHASIZE)
3006 {
3007 if (DATASIZE != width*height*3) {
3008 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3009 return NULL;
3010 }
3011
3012 if (ALPHASIZE != width*height) {
3013 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3014 return NULL;
3015 }
3016
3017 wxBitmap* bmp = new wxBitmap(width, height, 32);
3018 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3019 if (! pixData) {
3020 // raise an exception...
3021 wxPyErr_SetString(PyExc_RuntimeError,
3022 "Failed to gain raw access to bitmap data.");
3023 return NULL;
3024 }
3025
3026 pixData.UseAlpha();
3027 wxAlphaPixelData::Iterator p(pixData);
3028 for (int y=0; y<height; y++) {
3029 wxAlphaPixelData::Iterator rowStart = p;
3030 for (int x=0; x<width; x++) {
3031 byte a = *(alpha++);
3032 p.Red() = wxPy_premultiply(*(data++), a);
3033 p.Green() = wxPy_premultiply(*(data++), a);
3034 p.Blue() = wxPy_premultiply(*(data++), a);
3035 p.Alpha() = a;
3036 ++p;
3037 }
3038 p = rowStart;
3039 p.OffsetY(pixData, 1);
3040 }
3041 return bmp;
3042 }
3043
3044 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3045 {
3046 if (DATASIZE != width*height*3) {
3047 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3048 return NULL;
3049 }
3050
3051 wxBitmap* bmp = new wxBitmap(width, height, 24);
3052 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3053 if (! pixData) {
3054 // raise an exception...
3055 wxPyErr_SetString(PyExc_RuntimeError,
3056 "Failed to gain raw access to bitmap data.");
3057 return NULL;
3058 }
3059
3060 wxNativePixelData::Iterator p(pixData);
3061 for (int y=0; y<height; y++) {
3062 wxNativePixelData::Iterator rowStart = p;
3063 for (int x=0; x<width; x++) {
3064 p.Red() = *(data++);
3065 p.Green() = *(data++);
3066 p.Blue() = *(data++);
3067 ++p;
3068 }
3069 p = rowStart;
3070 p.OffsetY(pixData, 1);
3071 }
3072 return bmp;
3073 }
3074
3075
3076 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3077 {
3078 if (DATASIZE != width*height*4) {
3079 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3080 return NULL;
3081 }
3082
3083 wxBitmap* bmp = new wxBitmap(width, height, 32);
3084 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3085 if (! pixData) {
3086 // raise an exception...
3087 wxPyErr_SetString(PyExc_RuntimeError,
3088 "Failed to gain raw access to bitmap data.");
3089 return NULL;
3090 }
3091
3092 pixData.UseAlpha();
3093 wxAlphaPixelData::Iterator p(pixData);
3094 for (int y=0; y<height; y++) {
3095 wxAlphaPixelData::Iterator rowStart = p;
3096 for (int x=0; x<width; x++) {
3097 byte a = data[3];
3098 p.Red() = wxPy_premultiply(*(data++), a);
3099 p.Green() = wxPy_premultiply(*(data++), a);
3100 p.Blue() = wxPy_premultiply(*(data++), a);
3101 p.Alpha() = a; data++;
3102 ++p;
3103 }
3104 p = rowStart;
3105 p.OffsetY(pixData, 1);
3106 }
3107 return bmp;
3108 }
3109
3110
3111 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3112
3113SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3114SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3115SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3116 self->Red() = red;
3117 self->Green() = green;
3118 self->Blue() = blue;
3119 }
3120SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3121 PyObject* rv = PyTuple_New(3);
3122 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3123 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3124 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3125 return rv;
3126 }
3127
3128 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3129
3130SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3131SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3132SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3133 self->Red() = wxPy_premultiply(red, alpha);
3134 self->Green() = wxPy_premultiply(green, alpha);
3135 self->Blue() = wxPy_premultiply(blue, alpha);
3136 self->Alpha() = alpha;
3137 }
3138SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3139 PyObject* rv = PyTuple_New(4);
3140 int red = self->Red();
3141 int green = self->Green();
3142 int blue = self->Blue();
3143 int alpha = self->Alpha();
3144
3145 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3146 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3147 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3148 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3149 return rv;
3150 }
1bd55598 3151SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
b39fe951 3152 if ( !colour.IsOk() )
36ed4f51
RD
3153 return new wxMask(bitmap, *wxBLACK);
3154 else
3155 return new wxMask(bitmap, colour);
3156 }
d55e5bfc 3157
36ed4f51 3158#include <wx/iconbndl.h>
d55e5bfc 3159
1bd55598 3160SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
36ed4f51
RD
3161 wxIcon* icon = new wxIcon();
3162 icon->CopyFromBitmap(bmp);
3163 return icon;
3164 }
1bd55598 3165SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
36ed4f51
RD
3166 char** cArray = NULL;
3167 wxIcon* icon;
d55e5bfc 3168
36ed4f51
RD
3169 cArray = ConvertListOfStrings(listOfStrings);
3170 if (! cArray)
3171 return NULL;
3172 icon = new wxIcon(cArray);
3173 delete [] cArray;
3174 return icon;
3175 }
1bd55598 3176SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
d55e5bfc
RD
3177
3178
d55e5bfc 3179
36ed4f51 3180 return new wxIconLocation(*filename);
d55e5bfc 3181
36ed4f51 3182 }
1bd55598 3183SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
d55e5bfc
RD
3184
3185
d55e5bfc 3186
36ed4f51 3187 // do nothing
d55e5bfc 3188
36ed4f51 3189 }
1bd55598 3190SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
5cbf236d
RD
3191
3192
d55e5bfc 3193
36ed4f51 3194 return -1;
d55e5bfc 3195
36ed4f51 3196 }
1bd55598 3197SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
36ed4f51 3198#ifdef __WXGTK__
fef4c27a
RD
3199 wxImage img(cursorName, type);
3200 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3201 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3202 return new wxCursor(img);
36ed4f51 3203#else
fef4c27a 3204 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
36ed4f51
RD
3205#endif
3206 }
d55e5bfc 3207
d55e5bfc 3208
1bd55598 3209SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
36ed4f51
RD
3210 (*self) ++;
3211 }
1bd55598 3212SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
36ed4f51
RD
3213 return self->operator bool();
3214 }
d55e5bfc 3215
36ed4f51
RD
3216#include <wx/fontutil.h>
3217#include <wx/fontmap.h>
3218#include <wx/fontenum.h>
d55e5bfc 3219
1bd55598 3220SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
36ed4f51
RD
3221 return self->ToString();
3222 }
d55e5bfc 3223
36ed4f51
RD
3224 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3225 static wxNativeEncodingInfo info;
3226 if ( wxGetNativeFontEncoding(encoding, &info) )
3227 return &info;
3228 else
3229 return NULL;
d55e5bfc 3230 }
d55e5bfc 3231
1bd55598
RD
3232
3233SWIGINTERNINLINE PyObject *
3234SWIG_From_size_t (size_t value)
3235{
3236 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3237}
3238
3239
3240SWIGINTERNINLINE int
3241SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3242{
3243 unsigned long v;
3244 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3245 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3246 return res;
3247}
3248
3249SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
36ed4f51
RD
3250 wxFontEncoding alt_enc;
3251 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3252 return PyInt_FromLong(alt_enc);
3253 else {
3254 Py_INCREF(Py_None);
3255 return Py_None;
3256 }
3257 }
1bd55598 3258SWIGINTERN wxFont *new_wxFont(wxString const &info){
a97cefba
RD
3259 wxNativeFontInfo nfi;
3260 nfi.FromString(info);
3261 return new wxFont(nfi);
3262 }
1bd55598 3263SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3264 return wxFont::New(pointSize, family, flags, face, encoding);
3265 }
1bd55598 3266SWIGINTERN 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
3267 return wxFontBase::New(pixelSize, family,
3268 style, weight, underlined,
3269 face, encoding);
3270 }
1bd55598 3271SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3272 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3273 }
1bd55598
RD
3274SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3275SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
d55e5bfc 3276
36ed4f51
RD
3277class wxPyFontEnumerator : public wxFontEnumerator {
3278public:
3279 wxPyFontEnumerator() {}
3280 ~wxPyFontEnumerator() {}
d55e5bfc 3281
36ed4f51
RD
3282 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3283 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
d55e5bfc 3284
36ed4f51
RD
3285 PYPRIVATE;
3286};
d55e5bfc 3287
36ed4f51
RD
3288IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3289IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
d55e5bfc 3290
36ed4f51 3291
704eda0c 3292SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
e9d6f3a4 3293 PyObject* ret;
704eda0c 3294 wxArrayString arr = wxFontEnumerator::GetEncodings();
e9d6f3a4 3295 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3296 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3297 wxPyEndBlockThreads(blocked);
3298 return ret;
36ed4f51 3299 }
704eda0c 3300SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
e9d6f3a4 3301 PyObject* ret;
704eda0c 3302 wxArrayString arr = wxFontEnumerator::GetFacenames();
e9d6f3a4 3303 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3304 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3305 wxPyEndBlockThreads(blocked);
3306 return ret;
36ed4f51
RD
3307 }
3308
3309#include <locale.h>
3310
1bd55598 3311SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
36ed4f51
RD
3312 wxLocale* loc;
3313 if (language == -1)
3314 loc = new wxLocale();
3315 else
3316 loc = new wxLocale(language, flags);
3317 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3318 // for the floating point conversions and such to work right.
3319#if PY_VERSION_HEX < 0x02040000
3320 setlocale(LC_NUMERIC, "C");
3321#endif
3322 return loc;
3323 }
1bd55598 3324SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
36ed4f51
RD
3325 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3326 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3327 // for the floating point conversions and such to work right.
3328#if PY_VERSION_HEX < 0x02040000
3329 setlocale(LC_NUMERIC, "C");
3330#endif
3331 return rc;
3332 }
1bd55598 3333SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
36ed4f51
RD
3334 bool rc = self->Init(language, flags);
3335 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3336 // for the floating point conversions and such to work right.
3337#if PY_VERSION_HEX < 0x02040000
3338 setlocale(LC_NUMERIC, "C");
3339#endif
3340 return rc;
3341 }
3342
fc46b7f3
RD
3343class wxPyLocale : public wxLocale
3344{
3345public:
3346 wxPyLocale();
3347
3348 wxPyLocale(const wxChar *szName, // name (for messages)
3349 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3350 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3351 bool bLoadDefault = true, // preload wxstd.mo?
3352 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3353
3354 wxPyLocale(int language, // wxLanguage id or custom language
3355 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3356
3357 ~wxPyLocale();
3358
3359 virtual const wxChar *GetString(const wxChar *szOrigString,
3360 const wxChar *szDomain = NULL) const;
3361 virtual const wxChar *GetString(const wxChar *szOrigString,
3362 const wxChar *szOrigString2, size_t n,
3363 const wxChar *szDomain = NULL) const;
3364
3365 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3366 const wxChar *szDomain = NULL) const;
3367 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3368 const wxChar *szOrigString2, size_t n,
3369 const wxChar *szDomain = NULL) const;
3370
3371 PYPRIVATE;
3372private:
3373 DECLARE_NO_COPY_CLASS(wxPyLocale)
3374};
3375
3376wxPyLocale::wxPyLocale() : wxLocale()
3377{
3378}
3379
3380wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3381 const wxChar *szShort, // dir prefix (for msg files)
3382 const wxChar *szLocale, // locale (for setlocale)
3383 bool bLoadDefault, // preload wxstd.mo?
3384 bool bConvertEncoding) // convert Win<->Unix if necessary?
3385 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3386{
3387}
3388
3389wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3390 int flags) : wxLocale(language, flags)
3391{
3392}
3393
3394wxPyLocale::~wxPyLocale()
3395{
3396}
3397
3398const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3399 const wxChar *szDomain) const
3400{
3401 wxChar *str = GetSingularString(szOrigString, szDomain);
3402 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3403}
3404
3405const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3406 const wxChar *szOrigString2, size_t n,
3407 const wxChar *szDomain) const
3408{
3409 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3410 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3411}
3412
3413wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3414 const wxChar *szDomain) const
3415{
3416 bool found;
3417 static wxString str;
3418 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.
3419 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3420 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3421 PyObject* param1 = wx2PyString(szOrigString);
3422 PyObject* param2 = wx2PyString(szDomain);
3423 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3424 Py_DECREF(param1);
3425 Py_DECREF(param2);
3426 if (ret) {
3427 str = Py2wxString(ret);
3428 Py_DECREF(ret);
3429 }
3430 }
3431 wxPyEndBlockThreads(blocked);
3432 return (found ? (wxChar*)str.c_str() : NULL);
3433}
3434
3435wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3436 const wxChar *szOrigString2, size_t n,
3437 const wxChar *szDomain) const
3438{
3439 bool found;
3440 static wxString str;
3441 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.
3442 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3443 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3444 PyObject* param1 = wx2PyString(szOrigString);
3445 PyObject* param2 = wx2PyString(szOrigString2);
3446 PyObject* param4 = wx2PyString(szDomain);
3447 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3448 Py_DECREF(param1);
3449 Py_DECREF(param2);
3450 Py_DECREF(param4);
3451 if( ret) {
3452 str = Py2wxString(ret);
3453 Py_DECREF(ret);
3454 }
3455 }
3456 wxPyEndBlockThreads(blocked);
3457 return (found ? (wxChar*)str.c_str() : NULL);
3458}
3459
3460SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3461 wxPyLocale* loc;
3462 if (language == -1)
3463 loc = new wxPyLocale();
3464 else
3465 loc = new wxPyLocale(language, flags);
3466 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3467 // for the floating point conversions and such to work right.
3468#if PY_VERSION_HEX < 0x02040000
3469 setlocale(LC_NUMERIC, "C");
3470#endif
3471 return loc;
3472 }
3473
36ed4f51
RD
3474#include "wx/wxPython/pydrawxxx.h"
3475
1bd55598 3476SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
36ed4f51
RD
3477 wxColour col;
3478 self->GetPixel(x, y, &col);
3479 return col;
3480 }
1bd55598 3481SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
36ed4f51
RD
3482 wxColour col;
3483 self->GetPixel(pt, &col);
3484 return col;
3485 }
3486
3487SWIGINTERN int
1bd55598 3488SWIG_AsVal_double (PyObject *obj, double* val)
36ed4f51
RD
3489{
3490 if (PyNumber_Check(obj)) {
3491 if (val) *val = PyFloat_AsDouble(obj);
1bd55598 3492 return SWIG_OK;
d55e5bfc 3493 }
1bd55598 3494 return SWIG_TypeError;
36ed4f51
RD
3495}
3496
1bd55598 3497SWIGINTERN 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
3498 wxRect rv;
3499 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3500 return rv;
3501 }
1bd55598 3502SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
36ed4f51
RD
3503 wxRect rect;
3504 self->GetClippingBox(rect);
3505 return rect;
3506 }
1bd55598 3507SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
36ed4f51
RD
3508 wxArrayInt widths;
3509 self->GetPartialTextExtents(text, widths);
3510 return widths;
3511 }
3512
1bd55598 3513 #define SWIG_From_double PyFloat_FromDouble
36ed4f51 3514
1bd55598 3515SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3516 self->SetLogicalOrigin(point.x, point.y);
3517 }
1bd55598 3518SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3519 self->SetDeviceOrigin(point.x, point.y);
3520 }
1bd55598 3521SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3522 self->CalcBoundingBox(point.x, point.y);
3523 }
1bd55598 3524SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3525 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3526 }
1bd55598 3527SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3528 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3529 }
1bd55598 3530SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3531 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3532 }
1bd55598 3533SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3534 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3535 }
1bd55598 3536SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3537 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3538 }
1bd55598 3539SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
36ed4f51
RD
3540 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3541 }
3542
3543static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3544 *x1 = dc->MinX();
3545 *y1 = dc->MinY();
3546 *x2 = dc->MaxX();
3547 *y2 = dc->MaxY();
3548}
3549
3550
3551#include <wx/dcbuffer.h>
3552
3553
3554#include <wx/dcps.h>
3555
3556
3557#include <wx/metafile.h>
3558
3559
72ef6efb
RD
3560#include <wx/graphics.h>
3561
3562
3563#if !wxUSE_GRAPHICS_CONTEXT
3564// C++ stub classes for platforms that don't have wxGraphicsContext yet.
3565
3566class wxGraphicsPath
3567{
3568public :
3569 wxGraphicsPath() {
3570 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3571 PyErr_SetString(PyExc_NotImplementedError,
3572 "wxGraphicsPath is not available on this platform.");
3573 wxPyEndBlockThreads(blocked);
3574 }
3575 virtual ~wxGraphicsPath() {}
3576
3577 void MoveToPoint( wxDouble, wxDouble ) {}
3578 void AddLineToPoint( wxDouble, wxDouble ) {}
3579 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
3580 void CloseSubpath() {}
3581 void GetCurrentPoint( wxDouble&, wxDouble&) {}
3582 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
3583
3584 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3585 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3586 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3587 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3588
3589 wxPoint2DDouble GetCurrentPoint() { return wxPoint2DDouble(0,0); }
3590 void MoveToPoint( const wxPoint2DDouble& ) {}
3591 void AddLineToPoint( const wxPoint2DDouble&) {}
3592 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3593 void AddArc( const wxPoint2DDouble&, wxDouble, wxDouble, wxDouble, bool) {}
3594};
3595
3596
3597class wxGraphicsContext
3598{
3599public:
3600 wxGraphicsContext() {
3601 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3602 PyErr_SetString(PyExc_NotImplementedError,
3603 "wxGraphicsContext is not available on this platform.");
3604 wxPyEndBlockThreads(blocked);
3605 }
3606 virtual ~wxGraphicsContext() {}
3607
3608 static wxGraphicsContext* Create( const wxWindowDC&) {
3609 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3610 PyErr_SetString(PyExc_NotImplementedError,
3611 "wxGraphicsPath is not available on this platform.");
3612 wxPyEndBlockThreads(blocked);
3613 return NULL;
3614 }
3615
3616 wxGraphicsPath * CreatePath() { return NULL; }
3617 void PushState() {}
3618 void PopState() {}
3619 void Clip( const wxRegion & ) {}
3620 void Translate( wxDouble , wxDouble ) {}
3621 void Scale( wxDouble , wxDouble ) {}
3622 void Rotate( wxDouble ) {}
3623 void SetPen( const wxPen & ) {}
3624 void SetBrush( const wxBrush & ) {}
3625 void SetLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3626 const wxColour&, const wxColour&) {}
3627 void SetRadialGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3628 const wxColour &, const wxColour &) {}
3629 void SetFont( const wxFont & ) {}
3630 void SetTextColor( const wxColour & ) {}
3631 void StrokePath( const wxGraphicsPath * ) {}
3632 void FillPath( const wxGraphicsPath *, int ) {}
3633 void DrawPath( const wxGraphicsPath *, int ) {}
3634 void DrawText( const wxString &, wxDouble , wxDouble ) {}
3635 void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3636 void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3637 wxDouble *, wxDouble * ) const {}
3638 void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3639 void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3640 void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3641 void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3642 void StrokeLines( size_t , const wxPoint2DDouble *) {}
3643 void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3644 void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3645 void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3646 void DrawEllipse( wxDouble , wxDouble, wxDouble , wxDouble) {}
3647 void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3648};
3649
3650
3651class wxGCDC: public wxWindowDC
3652{
3653public:
3654 wxGCDC(const wxWindowDC&) {
3655 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3656 PyErr_SetString(PyExc_NotImplementedError,
3657 "wxGCDC is not available on this platform.");
3658 wxPyEndBlockThreads(blocked);
3659 }
3660
3661 wxGCDC() {
3662 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3663 PyErr_SetString(PyExc_NotImplementedError,
3664 "wxGCDC is not available on this platform.");
3665 wxPyEndBlockThreads(blocked);
3666 }
3667
3668 virtual ~wxGCDC() {}
3669
3670 wxGraphicsContext* GetGraphicContext() { return NULL; }
3671};
3672
3673#endif
3674
b39fe951
RD
3675SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3676 wxArrayDouble widths;
3677 self->GetPartialTextExtents(text, widths);
3678 return widths;
3679 }
3680SWIGINTERN void wxGraphicsContext_StrokeDisconnectedLines(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
3681 size_t c1, c2, count;
3682 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3683 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3684
3685 if ( beginP != NULL && endP != NULL )
3686 {
3687 count = wxMin(c1, c2);
3688 self->StrokeLines(count, beginP, endP);
3689 }
3690 delete [] beginP;
3691 delete [] endP;
3692 }
72ef6efb 3693
36ed4f51 3694
1bd55598 3695SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
36ed4f51
RD
3696 self->AddColour(name, wxColour(red, green, blue));
3697 }
3698
da91cb0f
RD
3699 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3700 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3701 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3702 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3703
3704
36ed4f51
RD
3705#include <wx/effects.h>
3706
be9b1dca
RD
3707
3708#include "wx/renderer.h"
3709
3710
32fe5131 3711SWIGINTERNINLINE PyObject*
1bd55598 3712 SWIG_From_bool (bool value)
be9b1dca 3713{
1bd55598 3714 return PyBool_FromLong(value ? 1 : 0);
be9b1dca
RD
3715}
3716
27e45892
RD
3717
3718#include "wx/wxPython/pseudodc.h"
3719
3720SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3721 wxRect rect;
3722 self->GetIdBounds(id, rect);
3723 return rect;
3724 }
36ed4f51
RD
3725#ifdef __cplusplus
3726extern "C" {
3727#endif
1bd55598
RD
3728SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3729 PyObject *resultobj = 0;
3730 wxGDIObject *result = 0 ;
3731
3732 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3733 {
3734 if (!wxPyCheckForApp()) SWIG_fail;
3735 PyThreadState* __tstate = wxPyBeginAllowThreads();
3736 result = (wxGDIObject *)new wxGDIObject();
3737 wxPyEndAllowThreads(__tstate);
3738 if (PyErr_Occurred()) SWIG_fail;
3739 }
3740 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3741 return resultobj;
3742fail:
3743 return NULL;
d55e5bfc
RD
3744}
3745
3746
1bd55598
RD
3747SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3748 PyObject *resultobj = 0;
3749 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3750 void *argp1 = 0 ;
3751 int res1 = 0 ;
3752 PyObject *swig_obj[1] ;
3753
3754 if (!args) SWIG_fail;
3755 swig_obj[0] = args;
3756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3757 if (!SWIG_IsOK(res1)) {
3758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3759 }
3760 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3761 {
3762 PyThreadState* __tstate = wxPyBeginAllowThreads();
3763 delete arg1;
d55e5bfc 3764
1bd55598
RD
3765 wxPyEndAllowThreads(__tstate);
3766 if (PyErr_Occurred()) SWIG_fail;
3767 }
3768 resultobj = SWIG_Py_Void();
3769 return resultobj;
3770fail:
3771 return NULL;
d55e5bfc
RD
3772}
3773
3774
1bd55598
RD
3775SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3776 PyObject *resultobj = 0;
3777 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3778 bool result;
3779 void *argp1 = 0 ;
3780 int res1 = 0 ;
3781 PyObject *swig_obj[1] ;
3782
3783 if (!args) SWIG_fail;
3784 swig_obj[0] = args;
3785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3786 if (!SWIG_IsOK(res1)) {
3787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3788 }
3789 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3790 {
3791 PyThreadState* __tstate = wxPyBeginAllowThreads();
3792 result = (bool)(arg1)->IsNull();
3793 wxPyEndAllowThreads(__tstate);
3794 if (PyErr_Occurred()) SWIG_fail;
3795 }
3796 {
3797 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3798 }
3799 return resultobj;
3800fail:
3801 return NULL;
3802}
3803
3804
3805SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3806 PyObject *obj;
3807 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3808 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3809 return SWIG_Py_Void();
3810}
3811
3812SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3813 return SWIG_Python_InitShadowInstance(args);
3814}
3815
3816SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3817 PyObject *resultobj = 0;
3818 byte arg1 = (byte) 0 ;
3819 byte arg2 = (byte) 0 ;
3820 byte arg3 = (byte) 0 ;
fc46b7f3 3821 byte arg4 = (byte) wxALPHA_OPAQUE ;
1bd55598
RD
3822 wxColour *result = 0 ;
3823 unsigned char val1 ;
3824 int ecode1 = 0 ;
3825 unsigned char val2 ;
3826 int ecode2 = 0 ;
3827 unsigned char val3 ;
3828 int ecode3 = 0 ;
fc46b7f3
RD
3829 unsigned char val4 ;
3830 int ecode4 = 0 ;
1bd55598
RD
3831 PyObject * obj0 = 0 ;
3832 PyObject * obj1 = 0 ;
3833 PyObject * obj2 = 0 ;
fc46b7f3 3834 PyObject * obj3 = 0 ;
1bd55598 3835 char * kwnames[] = {
fc46b7f3 3836 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
1bd55598
RD
3837 };
3838
fc46b7f3 3839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
3840 if (obj0) {
3841 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3842 if (!SWIG_IsOK(ecode1)) {
3843 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3844 }
3845 arg1 = static_cast< byte >(val1);
3846 }
3847 if (obj1) {
3848 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3849 if (!SWIG_IsOK(ecode2)) {
3850 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3851 }
3852 arg2 = static_cast< byte >(val2);
3853 }
3854 if (obj2) {
3855 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3856 if (!SWIG_IsOK(ecode3)) {
3857 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3858 }
3859 arg3 = static_cast< byte >(val3);
3860 }
fc46b7f3
RD
3861 if (obj3) {
3862 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3863 if (!SWIG_IsOK(ecode4)) {
3864 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
3865 }
3866 arg4 = static_cast< byte >(val4);
3867 }
1bd55598
RD
3868 {
3869 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 3870 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
1bd55598
RD
3871 wxPyEndAllowThreads(__tstate);
3872 if (PyErr_Occurred()) SWIG_fail;
3873 }
3874 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3875 return resultobj;
3876fail:
3877 return NULL;
d55e5bfc
RD
3878}
3879
3880
1bd55598
RD
3881SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3882 PyObject *resultobj = 0;
3883 wxString *arg1 = 0 ;
3884 wxColour *result = 0 ;
3885 bool temp1 = false ;
3886 PyObject * obj0 = 0 ;
3887 char * kwnames[] = {
3888 (char *) "colorName", NULL
3889 };
3890
3891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3892 {
3893 arg1 = wxString_in_helper(obj0);
3894 if (arg1 == NULL) SWIG_fail;
3895 temp1 = true;
3896 }
3897 {
3898 if (!wxPyCheckForApp()) SWIG_fail;
3899 PyThreadState* __tstate = wxPyBeginAllowThreads();
3900 result = (wxColour *)new wxColour((wxString const &)*arg1);
3901 wxPyEndAllowThreads(__tstate);
3902 if (PyErr_Occurred()) SWIG_fail;
3903 }
3904 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3905 {
3906 if (temp1)
3907 delete arg1;
3908 }
3909 return resultobj;
3910fail:
3911 {
3912 if (temp1)
3913 delete arg1;
3914 }
3915 return NULL;
36ed4f51
RD
3916}
3917
3918
1bd55598
RD
3919SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3920 PyObject *resultobj = 0;
3921 unsigned long arg1 ;
3922 wxColour *result = 0 ;
3923 unsigned long val1 ;
3924 int ecode1 = 0 ;
3925 PyObject * obj0 = 0 ;
3926 char * kwnames[] = {
3927 (char *) "colRGB", NULL
3928 };
3929
3930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3931 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3932 if (!SWIG_IsOK(ecode1)) {
3933 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3934 }
3935 arg1 = static_cast< unsigned long >(val1);
3936 {
3937 PyThreadState* __tstate = wxPyBeginAllowThreads();
3938 result = (wxColour *)new wxColour(arg1);
3939 wxPyEndAllowThreads(__tstate);
3940 if (PyErr_Occurred()) SWIG_fail;
3941 }
3942 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3943 return resultobj;
3944fail:
3945 return NULL;
d55e5bfc
RD
3946}
3947
3948
1bd55598
RD
3949SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3950 PyObject *resultobj = 0;
3951 wxColour *arg1 = (wxColour *) 0 ;
3952 void *argp1 = 0 ;
3953 int res1 = 0 ;
3954 PyObject *swig_obj[1] ;
3955
3956 if (!args) SWIG_fail;
3957 swig_obj[0] = args;
3958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3959 if (!SWIG_IsOK(res1)) {
3960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3961 }
3962 arg1 = reinterpret_cast< wxColour * >(argp1);
3963 {
3964 PyThreadState* __tstate = wxPyBeginAllowThreads();
3965 delete arg1;
d55e5bfc 3966
1bd55598
RD
3967 wxPyEndAllowThreads(__tstate);
3968 if (PyErr_Occurred()) SWIG_fail;
3969 }
3970 resultobj = SWIG_Py_Void();
3971 return resultobj;
3972fail:
3973 return NULL;
d55e5bfc
RD
3974}
3975
3976
1bd55598
RD
3977SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3978 PyObject *resultobj = 0;
3979 wxColour *arg1 = (wxColour *) 0 ;
3980 byte result;
3981 void *argp1 = 0 ;
3982 int res1 = 0 ;
3983 PyObject *swig_obj[1] ;
3984
3985 if (!args) SWIG_fail;
3986 swig_obj[0] = args;
3987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3988 if (!SWIG_IsOK(res1)) {
3989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3990 }
3991 arg1 = reinterpret_cast< wxColour * >(argp1);
3992 {
3993 PyThreadState* __tstate = wxPyBeginAllowThreads();
3994 result = (byte)(arg1)->Red();
3995 wxPyEndAllowThreads(__tstate);
3996 if (PyErr_Occurred()) SWIG_fail;
3997 }
3998 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3999 return resultobj;
4000fail:
4001 return NULL;
d55e5bfc
RD
4002}
4003
4004
1bd55598
RD
4005SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4006 PyObject *resultobj = 0;
4007 wxColour *arg1 = (wxColour *) 0 ;
4008 byte result;
4009 void *argp1 = 0 ;
4010 int res1 = 0 ;
4011 PyObject *swig_obj[1] ;
4012
4013 if (!args) SWIG_fail;
4014 swig_obj[0] = args;
4015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4016 if (!SWIG_IsOK(res1)) {
4017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4018 }
4019 arg1 = reinterpret_cast< wxColour * >(argp1);
4020 {
4021 PyThreadState* __tstate = wxPyBeginAllowThreads();
4022 result = (byte)(arg1)->Green();
4023 wxPyEndAllowThreads(__tstate);
4024 if (PyErr_Occurred()) SWIG_fail;
4025 }
4026 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4027 return resultobj;
4028fail:
4029 return NULL;
d55e5bfc
RD
4030}
4031
4032
1bd55598
RD
4033SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4034 PyObject *resultobj = 0;
4035 wxColour *arg1 = (wxColour *) 0 ;
4036 byte result;
4037 void *argp1 = 0 ;
4038 int res1 = 0 ;
4039 PyObject *swig_obj[1] ;
4040
4041 if (!args) SWIG_fail;
4042 swig_obj[0] = args;
4043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4044 if (!SWIG_IsOK(res1)) {
4045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4046 }
4047 arg1 = reinterpret_cast< wxColour * >(argp1);
4048 {
4049 PyThreadState* __tstate = wxPyBeginAllowThreads();
4050 result = (byte)(arg1)->Blue();
4051 wxPyEndAllowThreads(__tstate);
4052 if (PyErr_Occurred()) SWIG_fail;
4053 }
4054 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4055 return resultobj;
4056fail:
4057 return NULL;
d55e5bfc
RD
4058}
4059
4060
fc46b7f3
RD
4061SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4062 PyObject *resultobj = 0;
4063 wxColour *arg1 = (wxColour *) 0 ;
4064 byte result;
4065 void *argp1 = 0 ;
4066 int res1 = 0 ;
4067 PyObject *swig_obj[1] ;
4068
4069 if (!args) SWIG_fail;
4070 swig_obj[0] = args;
4071 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4072 if (!SWIG_IsOK(res1)) {
4073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4074 }
4075 arg1 = reinterpret_cast< wxColour * >(argp1);
4076 {
4077 PyThreadState* __tstate = wxPyBeginAllowThreads();
4078 result = (byte)(arg1)->Alpha();
4079 wxPyEndAllowThreads(__tstate);
4080 if (PyErr_Occurred()) SWIG_fail;
4081 }
4082 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4083 return resultobj;
4084fail:
4085 return NULL;
4086}
4087
4088
b39fe951 4089SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
4090 PyObject *resultobj = 0;
4091 wxColour *arg1 = (wxColour *) 0 ;
4092 bool result;
4093 void *argp1 = 0 ;
4094 int res1 = 0 ;
4095 PyObject *swig_obj[1] ;
4096
4097 if (!args) SWIG_fail;
4098 swig_obj[0] = args;
4099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4100 if (!SWIG_IsOK(res1)) {
b39fe951 4101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4102 }
4103 arg1 = reinterpret_cast< wxColour * >(argp1);
4104 {
4105 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4106 result = (bool)(arg1)->IsOk();
1bd55598
RD
4107 wxPyEndAllowThreads(__tstate);
4108 if (PyErr_Occurred()) SWIG_fail;
4109 }
4110 {
4111 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4112 }
4113 return resultobj;
4114fail:
4115 return NULL;
4116}
4117
4118
4119SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4120 PyObject *resultobj = 0;
4121 wxColour *arg1 = (wxColour *) 0 ;
4122 byte arg2 ;
4123 byte arg3 ;
4124 byte arg4 ;
fc46b7f3 4125 byte arg5 = (byte) wxALPHA_OPAQUE ;
1bd55598
RD
4126 void *argp1 = 0 ;
4127 int res1 = 0 ;
4128 unsigned char val2 ;
4129 int ecode2 = 0 ;
4130 unsigned char val3 ;
4131 int ecode3 = 0 ;
4132 unsigned char val4 ;
4133 int ecode4 = 0 ;
fc46b7f3
RD
4134 unsigned char val5 ;
4135 int ecode5 = 0 ;
1bd55598
RD
4136 PyObject * obj0 = 0 ;
4137 PyObject * obj1 = 0 ;
4138 PyObject * obj2 = 0 ;
4139 PyObject * obj3 = 0 ;
fc46b7f3 4140 PyObject * obj4 = 0 ;
1bd55598 4141 char * kwnames[] = {
fc46b7f3 4142 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
1bd55598
RD
4143 };
4144
fc46b7f3 4145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
1bd55598
RD
4146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4147 if (!SWIG_IsOK(res1)) {
4148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4149 }
4150 arg1 = reinterpret_cast< wxColour * >(argp1);
4151 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4152 if (!SWIG_IsOK(ecode2)) {
4153 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4154 }
4155 arg2 = static_cast< byte >(val2);
4156 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4157 if (!SWIG_IsOK(ecode3)) {
4158 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4159 }
4160 arg3 = static_cast< byte >(val3);
4161 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4162 if (!SWIG_IsOK(ecode4)) {
4163 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4164 }
4165 arg4 = static_cast< byte >(val4);
fc46b7f3
RD
4166 if (obj4) {
4167 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4168 if (!SWIG_IsOK(ecode5)) {
4169 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4170 }
4171 arg5 = static_cast< byte >(val5);
4172 }
1bd55598
RD
4173 {
4174 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4175 (arg1)->Set(arg2,arg3,arg4,arg5);
1bd55598
RD
4176 wxPyEndAllowThreads(__tstate);
4177 if (PyErr_Occurred()) SWIG_fail;
4178 }
4179 resultobj = SWIG_Py_Void();
4180 return resultobj;
4181fail:
4182 return NULL;
4183}
4184
4185
4186SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4187 PyObject *resultobj = 0;
4188 wxColour *arg1 = (wxColour *) 0 ;
4189 unsigned long arg2 ;
4190 void *argp1 = 0 ;
4191 int res1 = 0 ;
4192 unsigned long val2 ;
4193 int ecode2 = 0 ;
4194 PyObject * obj0 = 0 ;
4195 PyObject * obj1 = 0 ;
4196 char * kwnames[] = {
4197 (char *) "self",(char *) "colRGB", NULL
4198 };
4199
4200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4202 if (!SWIG_IsOK(res1)) {
4203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4204 }
4205 arg1 = reinterpret_cast< wxColour * >(argp1);
4206 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4207 if (!SWIG_IsOK(ecode2)) {
4208 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4209 }
4210 arg2 = static_cast< unsigned long >(val2);
4211 {
4212 PyThreadState* __tstate = wxPyBeginAllowThreads();
4213 (arg1)->Set(arg2);
4214 wxPyEndAllowThreads(__tstate);
4215 if (PyErr_Occurred()) SWIG_fail;
4216 }
4217 resultobj = SWIG_Py_Void();
4218 return resultobj;
4219fail:
4220 return NULL;
4221}
4222
4223
4224SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4225 PyObject *resultobj = 0;
4226 wxColour *arg1 = (wxColour *) 0 ;
4227 wxString *arg2 = 0 ;
4228 void *argp1 = 0 ;
4229 int res1 = 0 ;
4230 bool temp2 = false ;
4231 PyObject * obj0 = 0 ;
4232 PyObject * obj1 = 0 ;
4233 char * kwnames[] = {
4234 (char *) "self",(char *) "colourName", NULL
4235 };
4236
4237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4239 if (!SWIG_IsOK(res1)) {
4240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4241 }
4242 arg1 = reinterpret_cast< wxColour * >(argp1);
4243 {
4244 arg2 = wxString_in_helper(obj1);
4245 if (arg2 == NULL) SWIG_fail;
4246 temp2 = true;
4247 }
4248 {
4249 PyThreadState* __tstate = wxPyBeginAllowThreads();
72ef6efb 4250 (arg1)->Set((wxString const &)*arg2);
1bd55598
RD
4251 wxPyEndAllowThreads(__tstate);
4252 if (PyErr_Occurred()) SWIG_fail;
4253 }
4254 resultobj = SWIG_Py_Void();
4255 {
4256 if (temp2)
4257 delete arg2;
4258 }
4259 return resultobj;
4260fail:
4261 {
4262 if (temp2)
4263 delete arg2;
4264 }
4265 return NULL;
d55e5bfc
RD
4266}
4267
4268
2131d850
RD
4269SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4270 PyObject *resultobj = 0;
4271 wxColour *arg1 = (wxColour *) 0 ;
4272 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4273 wxString result;
4274 void *argp1 = 0 ;
4275 int res1 = 0 ;
4276 long val2 ;
4277 int ecode2 = 0 ;
4278 PyObject * obj0 = 0 ;
4279 PyObject * obj1 = 0 ;
4280 char * kwnames[] = {
4281 (char *) "self",(char *) "flags", NULL
4282 };
4283
4284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4286 if (!SWIG_IsOK(res1)) {
4287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4288 }
4289 arg1 = reinterpret_cast< wxColour * >(argp1);
4290 if (obj1) {
4291 ecode2 = SWIG_AsVal_long(obj1, &val2);
4292 if (!SWIG_IsOK(ecode2)) {
4293 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4294 }
4295 arg2 = static_cast< long >(val2);
4296 }
4297 {
4298 PyThreadState* __tstate = wxPyBeginAllowThreads();
4299 result = ((wxColour const *)arg1)->GetAsString(arg2);
4300 wxPyEndAllowThreads(__tstate);
4301 if (PyErr_Occurred()) SWIG_fail;
4302 }
4303 {
4304#if wxUSE_UNICODE
4305 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4306#else
4307 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4308#endif
4309 }
4310 return resultobj;
4311fail:
4312 return NULL;
4313}
4314
4315
1bd55598
RD
4316SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4317 PyObject *resultobj = 0;
4318 wxColour *arg1 = (wxColour *) 0 ;
4319 long result;
4320 void *argp1 = 0 ;
4321 int res1 = 0 ;
4322 PyObject *swig_obj[1] ;
4323
4324 if (!args) SWIG_fail;
4325 swig_obj[0] = args;
4326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4327 if (!SWIG_IsOK(res1)) {
4328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4329 }
4330 arg1 = reinterpret_cast< wxColour * >(argp1);
4331 {
4332 PyThreadState* __tstate = wxPyBeginAllowThreads();
4333 result = (long)((wxColour const *)arg1)->GetPixel();
4334 wxPyEndAllowThreads(__tstate);
4335 if (PyErr_Occurred()) SWIG_fail;
4336 }
4337 resultobj = SWIG_From_long(static_cast< long >(result));
4338 return resultobj;
4339fail:
4340 return NULL;
4341}
4342
4343
4344SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4345 PyObject *resultobj = 0;
4346 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4347 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
4348 bool result;
4349 void *argp1 = 0 ;
4350 int res1 = 0 ;
1bd55598
RD
4351 PyObject * obj0 = 0 ;
4352 PyObject * obj1 = 0 ;
4353 char * kwnames[] = {
e9d6f3a4 4354 (char *) "self",(char *) "other", NULL
1bd55598
RD
4355 };
4356
4357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4359 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4361 }
4362 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4363 arg2 = obj1;
1bd55598 4364 {
e9d6f3a4 4365 result = (bool)wxColour___eq__(arg1,arg2);
1bd55598
RD
4366 if (PyErr_Occurred()) SWIG_fail;
4367 }
4368 {
4369 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4370 }
4371 return resultobj;
4372fail:
4373 return NULL;
4374}
4375
4376
4377SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4378 PyObject *resultobj = 0;
4379 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4380 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
4381 bool result;
4382 void *argp1 = 0 ;
4383 int res1 = 0 ;
1bd55598
RD
4384 PyObject * obj0 = 0 ;
4385 PyObject * obj1 = 0 ;
4386 char * kwnames[] = {
e9d6f3a4 4387 (char *) "self",(char *) "other", NULL
1bd55598
RD
4388 };
4389
4390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4392 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4394 }
4395 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4396 arg2 = obj1;
1bd55598 4397 {
e9d6f3a4 4398 result = (bool)wxColour___ne__(arg1,arg2);
1bd55598
RD
4399 if (PyErr_Occurred()) SWIG_fail;
4400 }
4401 {
4402 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4403 }
4404 return resultobj;
4405fail:
4406 return NULL;
d55e5bfc
RD
4407}
4408
4409
fc46b7f3 4410SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
4411 PyObject *resultobj = 0;
4412 wxColour *arg1 = (wxColour *) 0 ;
fc46b7f3 4413 bool arg2 = (bool) false ;
1bd55598
RD
4414 PyObject *result = 0 ;
4415 void *argp1 = 0 ;
4416 int res1 = 0 ;
fc46b7f3
RD
4417 bool val2 ;
4418 int ecode2 = 0 ;
4419 PyObject * obj0 = 0 ;
4420 PyObject * obj1 = 0 ;
4421 char * kwnames[] = {
4422 (char *) "self",(char *) "includeAlpha", NULL
4423 };
1bd55598 4424
fc46b7f3
RD
4425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
1bd55598
RD
4427 if (!SWIG_IsOK(res1)) {
4428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4429 }
4430 arg1 = reinterpret_cast< wxColour * >(argp1);
fc46b7f3
RD
4431 if (obj1) {
4432 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4433 if (!SWIG_IsOK(ecode2)) {
4434 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4435 }
4436 arg2 = static_cast< bool >(val2);
4437 }
1bd55598 4438 {
fc46b7f3 4439 result = (PyObject *)wxColour_Get(arg1,arg2);
1bd55598
RD
4440 if (PyErr_Occurred()) SWIG_fail;
4441 }
4442 resultobj = result;
4443 return resultobj;
4444fail:
4445 return NULL;
d55e5bfc
RD
4446}
4447
4448
1bd55598
RD
4449SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4450 PyObject *resultobj = 0;
4451 wxColour *arg1 = (wxColour *) 0 ;
4452 unsigned long result;
4453 void *argp1 = 0 ;
4454 int res1 = 0 ;
4455 PyObject *swig_obj[1] ;
4456
4457 if (!args) SWIG_fail;
4458 swig_obj[0] = args;
4459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4460 if (!SWIG_IsOK(res1)) {
4461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4462 }
4463 arg1 = reinterpret_cast< wxColour * >(argp1);
4464 {
1bd55598 4465 result = (unsigned long)wxColour_GetRGB(arg1);
1bd55598
RD
4466 if (PyErr_Occurred()) SWIG_fail;
4467 }
4468 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4469 return resultobj;
4470fail:
4471 return NULL;
4472}
4473
4474
4475SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4476 PyObject *obj;
4477 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4478 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4479 return SWIG_Py_Void();
4480}
4481
4482SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4483 return SWIG_Python_InitShadowInstance(args);
4484}
4485
4486SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4487 PyObject *resultobj = 0;
4488 int arg1 ;
4489 unsigned char *arg2 = (unsigned char *) 0 ;
4490 unsigned char *arg3 = (unsigned char *) 0 ;
4491 unsigned char *arg4 = (unsigned char *) 0 ;
4492 wxPalette *result = 0 ;
4493 int val1 ;
4494 int ecode1 = 0 ;
4495 void *argp2 = 0 ;
4496 int res2 = 0 ;
4497 void *argp3 = 0 ;
4498 int res3 = 0 ;
4499 void *argp4 = 0 ;
4500 int res4 = 0 ;
4501 PyObject * obj0 = 0 ;
4502 PyObject * obj1 = 0 ;
4503 PyObject * obj2 = 0 ;
4504 PyObject * obj3 = 0 ;
4505 char * kwnames[] = {
4506 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4507 };
4508
4509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4510 ecode1 = SWIG_AsVal_int(obj0, &val1);
4511 if (!SWIG_IsOK(ecode1)) {
4512 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4513 }
4514 arg1 = static_cast< int >(val1);
4515 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4516 if (!SWIG_IsOK(res2)) {
4517 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4518 }
4519 arg2 = reinterpret_cast< unsigned char * >(argp2);
4520 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4521 if (!SWIG_IsOK(res3)) {
4522 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4523 }
4524 arg3 = reinterpret_cast< unsigned char * >(argp3);
4525 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4526 if (!SWIG_IsOK(res4)) {
4527 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4528 }
4529 arg4 = reinterpret_cast< unsigned char * >(argp4);
4530 {
4531 if (!wxPyCheckForApp()) SWIG_fail;
4532 PyThreadState* __tstate = wxPyBeginAllowThreads();
4533 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4534 wxPyEndAllowThreads(__tstate);
4535 if (PyErr_Occurred()) SWIG_fail;
4536 }
4537 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4538 return resultobj;
4539fail:
4540 return NULL;
d55e5bfc
RD
4541}
4542
4543
1bd55598
RD
4544SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4545 PyObject *resultobj = 0;
4546 wxPalette *arg1 = (wxPalette *) 0 ;
4547 void *argp1 = 0 ;
4548 int res1 = 0 ;
4549 PyObject *swig_obj[1] ;
4550
4551 if (!args) SWIG_fail;
4552 swig_obj[0] = args;
4553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4554 if (!SWIG_IsOK(res1)) {
4555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4556 }
4557 arg1 = reinterpret_cast< wxPalette * >(argp1);
4558 {
4559 PyThreadState* __tstate = wxPyBeginAllowThreads();
4560 delete arg1;
d55e5bfc 4561
1bd55598
RD
4562 wxPyEndAllowThreads(__tstate);
4563 if (PyErr_Occurred()) SWIG_fail;
4564 }
4565 resultobj = SWIG_Py_Void();
4566 return resultobj;
4567fail:
4568 return NULL;
4569}
4570
4571
4572SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4573 PyObject *resultobj = 0;
4574 wxPalette *arg1 = (wxPalette *) 0 ;
4575 byte arg2 ;
4576 byte arg3 ;
4577 byte arg4 ;
4578 int result;
4579 void *argp1 = 0 ;
4580 int res1 = 0 ;
4581 unsigned char val2 ;
4582 int ecode2 = 0 ;
4583 unsigned char val3 ;
4584 int ecode3 = 0 ;
4585 unsigned char val4 ;
4586 int ecode4 = 0 ;
4587 PyObject * obj0 = 0 ;
4588 PyObject * obj1 = 0 ;
4589 PyObject * obj2 = 0 ;
4590 PyObject * obj3 = 0 ;
4591 char * kwnames[] = {
4592 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4593 };
4594
4595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4597 if (!SWIG_IsOK(res1)) {
4598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4599 }
4600 arg1 = reinterpret_cast< wxPalette * >(argp1);
4601 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4602 if (!SWIG_IsOK(ecode2)) {
4603 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4604 }
4605 arg2 = static_cast< byte >(val2);
4606 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4607 if (!SWIG_IsOK(ecode3)) {
4608 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4609 }
4610 arg3 = static_cast< byte >(val3);
4611 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4612 if (!SWIG_IsOK(ecode4)) {
4613 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4614 }
4615 arg4 = static_cast< byte >(val4);
4616 {
4617 PyThreadState* __tstate = wxPyBeginAllowThreads();
4618 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4619 wxPyEndAllowThreads(__tstate);
4620 if (PyErr_Occurred()) SWIG_fail;
4621 }
4622 resultobj = SWIG_From_int(static_cast< int >(result));
4623 return resultobj;
4624fail:
4625 return NULL;
4626}
4627
4628
4629SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4630 PyObject *resultobj = 0;
4631 wxPalette *arg1 = (wxPalette *) 0 ;
4632 int arg2 ;
4633 byte *arg3 = (byte *) 0 ;
4634 byte *arg4 = (byte *) 0 ;
4635 byte *arg5 = (byte *) 0 ;
4636 bool result;
4637 void *argp1 = 0 ;
4638 int res1 = 0 ;
4639 int val2 ;
4640 int ecode2 = 0 ;
4641 byte temp3 ;
4642 int res3 = SWIG_TMPOBJ ;
4643 byte temp4 ;
4644 int res4 = SWIG_TMPOBJ ;
4645 byte temp5 ;
4646 int res5 = SWIG_TMPOBJ ;
4647 PyObject * obj0 = 0 ;
4648 PyObject * obj1 = 0 ;
4649 char * kwnames[] = {
4650 (char *) "self",(char *) "pixel", NULL
4651 };
4652
4653 arg3 = &temp3;
4654 arg4 = &temp4;
4655 arg5 = &temp5;
4656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4658 if (!SWIG_IsOK(res1)) {
4659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4660 }
4661 arg1 = reinterpret_cast< wxPalette * >(argp1);
4662 ecode2 = SWIG_AsVal_int(obj1, &val2);
4663 if (!SWIG_IsOK(ecode2)) {
4664 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4665 }
4666 arg2 = static_cast< int >(val2);
4667 {
4668 PyThreadState* __tstate = wxPyBeginAllowThreads();
4669 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4670 wxPyEndAllowThreads(__tstate);
4671 if (PyErr_Occurred()) SWIG_fail;
4672 }
4673 {
4674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4675 }
4676 if (SWIG_IsTmpObj(res3)) {
4677 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4678 } else {
4679 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4680 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4681 }
4682 if (SWIG_IsTmpObj(res4)) {
4683 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4684 } else {
4685 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4686 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4687 }
4688 if (SWIG_IsTmpObj(res5)) {
4689 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4690 } else {
4691 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4692 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4693 }
4694 return resultobj;
4695fail:
4696 return NULL;
d55e5bfc
RD
4697}
4698
4699
1bd55598
RD
4700SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4701 PyObject *resultobj = 0;
4702 wxPalette *arg1 = (wxPalette *) 0 ;
4703 int result;
4704 void *argp1 = 0 ;
4705 int res1 = 0 ;
4706 PyObject *swig_obj[1] ;
4707
4708 if (!args) SWIG_fail;
4709 swig_obj[0] = args;
4710 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4711 if (!SWIG_IsOK(res1)) {
4712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4713 }
4714 arg1 = reinterpret_cast< wxPalette * >(argp1);
4715 {
4716 PyThreadState* __tstate = wxPyBeginAllowThreads();
4717 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4718 wxPyEndAllowThreads(__tstate);
4719 if (PyErr_Occurred()) SWIG_fail;
4720 }
4721 resultobj = SWIG_From_int(static_cast< int >(result));
4722 return resultobj;
4723fail:
4724 return NULL;
d55e5bfc
RD
4725}
4726
4727
b39fe951 4728SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
4729 PyObject *resultobj = 0;
4730 wxPalette *arg1 = (wxPalette *) 0 ;
4731 bool result;
4732 void *argp1 = 0 ;
4733 int res1 = 0 ;
4734 PyObject *swig_obj[1] ;
4735
4736 if (!args) SWIG_fail;
4737 swig_obj[0] = args;
4738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4739 if (!SWIG_IsOK(res1)) {
b39fe951 4740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
1bd55598
RD
4741 }
4742 arg1 = reinterpret_cast< wxPalette * >(argp1);
4743 {
4744 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4745 result = (bool)(arg1)->IsOk();
1bd55598
RD
4746 wxPyEndAllowThreads(__tstate);
4747 if (PyErr_Occurred()) SWIG_fail;
4748 }
4749 {
4750 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4751 }
4752 return resultobj;
4753fail:
4754 return NULL;
4755}
4756
4757
4758SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4759 PyObject *obj;
4760 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4761 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4762 return SWIG_Py_Void();
4763}
4764
4765SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4766 return SWIG_Python_InitShadowInstance(args);
4767}
4768
4769SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4770 PyObject *resultobj = 0;
4771 wxColour *arg1 = 0 ;
4772 int arg2 = (int) 1 ;
4773 int arg3 = (int) wxSOLID ;
4774 wxPen *result = 0 ;
4775 wxColour temp1 ;
4776 int val2 ;
4777 int ecode2 = 0 ;
4778 int val3 ;
4779 int ecode3 = 0 ;
4780 PyObject * obj0 = 0 ;
4781 PyObject * obj1 = 0 ;
4782 PyObject * obj2 = 0 ;
4783 char * kwnames[] = {
4784 (char *) "colour",(char *) "width",(char *) "style", NULL
4785 };
4786
4787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4788 {
4789 arg1 = &temp1;
4790 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4791 }
4792 if (obj1) {
4793 ecode2 = SWIG_AsVal_int(obj1, &val2);
4794 if (!SWIG_IsOK(ecode2)) {
4795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4796 }
4797 arg2 = static_cast< int >(val2);
4798 }
4799 if (obj2) {
4800 ecode3 = SWIG_AsVal_int(obj2, &val3);
4801 if (!SWIG_IsOK(ecode3)) {
4802 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4803 }
4804 arg3 = static_cast< int >(val3);
4805 }
4806 {
4807 if (!wxPyCheckForApp()) SWIG_fail;
4808 PyThreadState* __tstate = wxPyBeginAllowThreads();
4809 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4810 wxPyEndAllowThreads(__tstate);
4811 if (PyErr_Occurred()) SWIG_fail;
4812 }
4813 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4814 return resultobj;
4815fail:
4816 return NULL;
d55e5bfc
RD
4817}
4818
4819
1bd55598
RD
4820SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4821 PyObject *resultobj = 0;
4822 wxPen *arg1 = (wxPen *) 0 ;
4823 void *argp1 = 0 ;
4824 int res1 = 0 ;
4825 PyObject *swig_obj[1] ;
4826
4827 if (!args) SWIG_fail;
4828 swig_obj[0] = args;
4829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4830 if (!SWIG_IsOK(res1)) {
4831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4832 }
4833 arg1 = reinterpret_cast< wxPen * >(argp1);
4834 {
4835 PyThreadState* __tstate = wxPyBeginAllowThreads();
4836 delete arg1;
f78cc896 4837
1bd55598
RD
4838 wxPyEndAllowThreads(__tstate);
4839 if (PyErr_Occurred()) SWIG_fail;
4840 }
4841 resultobj = SWIG_Py_Void();
4842 return resultobj;
4843fail:
4844 return NULL;
f78cc896
RD
4845}
4846
4847
1bd55598
RD
4848SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4849 PyObject *resultobj = 0;
4850 wxPen *arg1 = (wxPen *) 0 ;
4851 int result;
4852 void *argp1 = 0 ;
4853 int res1 = 0 ;
4854 PyObject *swig_obj[1] ;
4855
4856 if (!args) SWIG_fail;
4857 swig_obj[0] = args;
4858 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4859 if (!SWIG_IsOK(res1)) {
4860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4861 }
4862 arg1 = reinterpret_cast< wxPen * >(argp1);
4863 {
4864 PyThreadState* __tstate = wxPyBeginAllowThreads();
4865 result = (int)(arg1)->GetCap();
4866 wxPyEndAllowThreads(__tstate);
4867 if (PyErr_Occurred()) SWIG_fail;
4868 }
4869 resultobj = SWIG_From_int(static_cast< int >(result));
4870 return resultobj;
4871fail:
4872 return NULL;
d55e5bfc
RD
4873}
4874
4875
1bd55598
RD
4876SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4877 PyObject *resultobj = 0;
4878 wxPen *arg1 = (wxPen *) 0 ;
4879 wxColour result;
4880 void *argp1 = 0 ;
4881 int res1 = 0 ;
4882 PyObject *swig_obj[1] ;
4883
4884 if (!args) SWIG_fail;
4885 swig_obj[0] = args;
4886 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4887 if (!SWIG_IsOK(res1)) {
4888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4889 }
4890 arg1 = reinterpret_cast< wxPen * >(argp1);
4891 {
4892 PyThreadState* __tstate = wxPyBeginAllowThreads();
4893 result = (arg1)->GetColour();
4894 wxPyEndAllowThreads(__tstate);
4895 if (PyErr_Occurred()) SWIG_fail;
4896 }
4897 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4898 return resultobj;
4899fail:
4900 return NULL;
d55e5bfc
RD
4901}
4902
4903
1bd55598
RD
4904SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4905 PyObject *resultobj = 0;
4906 wxPen *arg1 = (wxPen *) 0 ;
4907 int result;
4908 void *argp1 = 0 ;
4909 int res1 = 0 ;
4910 PyObject *swig_obj[1] ;
4911
4912 if (!args) SWIG_fail;
4913 swig_obj[0] = args;
4914 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4915 if (!SWIG_IsOK(res1)) {
4916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4917 }
4918 arg1 = reinterpret_cast< wxPen * >(argp1);
4919 {
4920 PyThreadState* __tstate = wxPyBeginAllowThreads();
4921 result = (int)(arg1)->GetJoin();
4922 wxPyEndAllowThreads(__tstate);
4923 if (PyErr_Occurred()) SWIG_fail;
4924 }
4925 resultobj = SWIG_From_int(static_cast< int >(result));
4926 return resultobj;
4927fail:
4928 return NULL;
d55e5bfc
RD
4929}
4930
4931
1bd55598
RD
4932SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4933 PyObject *resultobj = 0;
4934 wxPen *arg1 = (wxPen *) 0 ;
4935 int result;
4936 void *argp1 = 0 ;
4937 int res1 = 0 ;
4938 PyObject *swig_obj[1] ;
4939
4940 if (!args) SWIG_fail;
4941 swig_obj[0] = args;
4942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4943 if (!SWIG_IsOK(res1)) {
4944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4945 }
4946 arg1 = reinterpret_cast< wxPen * >(argp1);
4947 {
4948 PyThreadState* __tstate = wxPyBeginAllowThreads();
4949 result = (int)(arg1)->GetStyle();
4950 wxPyEndAllowThreads(__tstate);
4951 if (PyErr_Occurred()) SWIG_fail;
4952 }
4953 resultobj = SWIG_From_int(static_cast< int >(result));
4954 return resultobj;
4955fail:
4956 return NULL;
d55e5bfc
RD
4957}
4958
4959
1bd55598
RD
4960SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4961 PyObject *resultobj = 0;
4962 wxPen *arg1 = (wxPen *) 0 ;
4963 int result;
4964 void *argp1 = 0 ;
4965 int res1 = 0 ;
4966 PyObject *swig_obj[1] ;
4967
4968 if (!args) SWIG_fail;
4969 swig_obj[0] = args;
4970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4971 if (!SWIG_IsOK(res1)) {
4972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4973 }
4974 arg1 = reinterpret_cast< wxPen * >(argp1);
4975 {
4976 PyThreadState* __tstate = wxPyBeginAllowThreads();
4977 result = (int)(arg1)->GetWidth();
4978 wxPyEndAllowThreads(__tstate);
4979 if (PyErr_Occurred()) SWIG_fail;
4980 }
4981 resultobj = SWIG_From_int(static_cast< int >(result));
4982 return resultobj;
4983fail:
4984 return NULL;
d55e5bfc
RD
4985}
4986
4987
b39fe951 4988SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
4989 PyObject *resultobj = 0;
4990 wxPen *arg1 = (wxPen *) 0 ;
4991 bool result;
4992 void *argp1 = 0 ;
4993 int res1 = 0 ;
4994 PyObject *swig_obj[1] ;
4995
4996 if (!args) SWIG_fail;
4997 swig_obj[0] = args;
4998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4999 if (!SWIG_IsOK(res1)) {
b39fe951 5000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
1bd55598
RD
5001 }
5002 arg1 = reinterpret_cast< wxPen * >(argp1);
5003 {
5004 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5005 result = (bool)(arg1)->IsOk();
1bd55598
RD
5006 wxPyEndAllowThreads(__tstate);
5007 if (PyErr_Occurred()) SWIG_fail;
5008 }
5009 {
5010 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5011 }
5012 return resultobj;
5013fail:
5014 return NULL;
5015}
5016
5017
5018SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5019 PyObject *resultobj = 0;
5020 wxPen *arg1 = (wxPen *) 0 ;
5021 int arg2 ;
5022 void *argp1 = 0 ;
5023 int res1 = 0 ;
5024 int val2 ;
5025 int ecode2 = 0 ;
5026 PyObject * obj0 = 0 ;
5027 PyObject * obj1 = 0 ;
5028 char * kwnames[] = {
5029 (char *) "self",(char *) "cap_style", NULL
5030 };
5031
5032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5034 if (!SWIG_IsOK(res1)) {
5035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5036 }
5037 arg1 = reinterpret_cast< wxPen * >(argp1);
5038 ecode2 = SWIG_AsVal_int(obj1, &val2);
5039 if (!SWIG_IsOK(ecode2)) {
5040 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5041 }
5042 arg2 = static_cast< int >(val2);
5043 {
5044 PyThreadState* __tstate = wxPyBeginAllowThreads();
5045 (arg1)->SetCap(arg2);
5046 wxPyEndAllowThreads(__tstate);
5047 if (PyErr_Occurred()) SWIG_fail;
5048 }
5049 resultobj = SWIG_Py_Void();
5050 return resultobj;
5051fail:
5052 return NULL;
5053}
5054
5055
5056SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5057 PyObject *resultobj = 0;
5058 wxPen *arg1 = (wxPen *) 0 ;
5059 wxColour *arg2 = 0 ;
5060 void *argp1 = 0 ;
5061 int res1 = 0 ;
5062 wxColour temp2 ;
5063 PyObject * obj0 = 0 ;
5064 PyObject * obj1 = 0 ;
5065 char * kwnames[] = {
5066 (char *) "self",(char *) "colour", NULL
5067 };
5068
5069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5071 if (!SWIG_IsOK(res1)) {
5072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5073 }
5074 arg1 = reinterpret_cast< wxPen * >(argp1);
5075 {
5076 arg2 = &temp2;
5077 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5078 }
5079 {
5080 PyThreadState* __tstate = wxPyBeginAllowThreads();
5081 (arg1)->SetColour(*arg2);
5082 wxPyEndAllowThreads(__tstate);
5083 if (PyErr_Occurred()) SWIG_fail;
5084 }
5085 resultobj = SWIG_Py_Void();
5086 return resultobj;
5087fail:
5088 return NULL;
5089}
5090
5091
5092SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5093 PyObject *resultobj = 0;
5094 wxPen *arg1 = (wxPen *) 0 ;
5095 int arg2 ;
5096 void *argp1 = 0 ;
5097 int res1 = 0 ;
5098 int val2 ;
5099 int ecode2 = 0 ;
5100 PyObject * obj0 = 0 ;
5101 PyObject * obj1 = 0 ;
5102 char * kwnames[] = {
5103 (char *) "self",(char *) "join_style", NULL
5104 };
5105
5106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5108 if (!SWIG_IsOK(res1)) {
5109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5110 }
5111 arg1 = reinterpret_cast< wxPen * >(argp1);
5112 ecode2 = SWIG_AsVal_int(obj1, &val2);
5113 if (!SWIG_IsOK(ecode2)) {
5114 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5115 }
5116 arg2 = static_cast< int >(val2);
5117 {
5118 PyThreadState* __tstate = wxPyBeginAllowThreads();
5119 (arg1)->SetJoin(arg2);
5120 wxPyEndAllowThreads(__tstate);
5121 if (PyErr_Occurred()) SWIG_fail;
5122 }
5123 resultobj = SWIG_Py_Void();
5124 return resultobj;
5125fail:
5126 return NULL;
5127}
5128
5129
5130SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5131 PyObject *resultobj = 0;
5132 wxPen *arg1 = (wxPen *) 0 ;
5133 int arg2 ;
5134 void *argp1 = 0 ;
5135 int res1 = 0 ;
5136 int val2 ;
5137 int ecode2 = 0 ;
5138 PyObject * obj0 = 0 ;
5139 PyObject * obj1 = 0 ;
5140 char * kwnames[] = {
5141 (char *) "self",(char *) "style", NULL
5142 };
5143
5144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5146 if (!SWIG_IsOK(res1)) {
5147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5148 }
5149 arg1 = reinterpret_cast< wxPen * >(argp1);
5150 ecode2 = SWIG_AsVal_int(obj1, &val2);
5151 if (!SWIG_IsOK(ecode2)) {
5152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5153 }
5154 arg2 = static_cast< int >(val2);
5155 {
5156 PyThreadState* __tstate = wxPyBeginAllowThreads();
5157 (arg1)->SetStyle(arg2);
5158 wxPyEndAllowThreads(__tstate);
5159 if (PyErr_Occurred()) SWIG_fail;
5160 }
5161 resultobj = SWIG_Py_Void();
5162 return resultobj;
5163fail:
5164 return NULL;
5165}
5166
5167
5168SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5169 PyObject *resultobj = 0;
5170 wxPen *arg1 = (wxPen *) 0 ;
5171 int arg2 ;
5172 void *argp1 = 0 ;
5173 int res1 = 0 ;
5174 int val2 ;
5175 int ecode2 = 0 ;
5176 PyObject * obj0 = 0 ;
5177 PyObject * obj1 = 0 ;
5178 char * kwnames[] = {
5179 (char *) "self",(char *) "width", NULL
5180 };
5181
5182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5184 if (!SWIG_IsOK(res1)) {
5185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5186 }
5187 arg1 = reinterpret_cast< wxPen * >(argp1);
5188 ecode2 = SWIG_AsVal_int(obj1, &val2);
5189 if (!SWIG_IsOK(ecode2)) {
5190 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5191 }
5192 arg2 = static_cast< int >(val2);
5193 {
5194 PyThreadState* __tstate = wxPyBeginAllowThreads();
5195 (arg1)->SetWidth(arg2);
5196 wxPyEndAllowThreads(__tstate);
5197 if (PyErr_Occurred()) SWIG_fail;
5198 }
5199 resultobj = SWIG_Py_Void();
5200 return resultobj;
5201fail:
5202 return NULL;
5203}
5204
5205
5206SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5207 PyObject *resultobj = 0;
5208 wxPen *arg1 = (wxPen *) 0 ;
5209 int arg2 ;
5210 wxDash *arg3 = (wxDash *) 0 ;
5211 void *argp1 = 0 ;
5212 int res1 = 0 ;
5213 PyObject * obj0 = 0 ;
5214 PyObject * obj1 = 0 ;
5215 char * kwnames[] = {
5216 (char *) "self",(char *) "dashes", NULL
5217 };
5218
5219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5221 if (!SWIG_IsOK(res1)) {
5222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5223 }
5224 arg1 = reinterpret_cast< wxPen * >(argp1);
5225 {
5226 arg2 = PyList_Size(obj1);
5227 arg3 = (wxDash*)byte_LIST_helper(obj1);
5228 if (arg3 == NULL) SWIG_fail;
5229 }
5230 {
5231 PyThreadState* __tstate = wxPyBeginAllowThreads();
5232 (arg1)->SetDashes(arg2,arg3);
5233 wxPyEndAllowThreads(__tstate);
5234 if (PyErr_Occurred()) SWIG_fail;
5235 }
5236 resultobj = SWIG_Py_Void();
5237 {
5238 if (arg3) delete [] arg3;
5239 }
5240 return resultobj;
5241fail:
5242 {
5243 if (arg3) delete [] arg3;
5244 }
5245 return NULL;
d6c14a4c
RD
5246}
5247
5248
1bd55598
RD
5249SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5250 PyObject *resultobj = 0;
5251 wxPen *arg1 = (wxPen *) 0 ;
5252 PyObject *result = 0 ;
5253 void *argp1 = 0 ;
5254 int res1 = 0 ;
5255 PyObject *swig_obj[1] ;
5256
5257 if (!args) SWIG_fail;
5258 swig_obj[0] = args;
5259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5260 if (!SWIG_IsOK(res1)) {
5261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5262 }
5263 arg1 = reinterpret_cast< wxPen * >(argp1);
5264 {
5265 PyThreadState* __tstate = wxPyBeginAllowThreads();
5266 result = (PyObject *)wxPen_GetDashes(arg1);
5267 wxPyEndAllowThreads(__tstate);
5268 if (PyErr_Occurred()) SWIG_fail;
5269 }
5270 resultobj = result;
5271 return resultobj;
5272fail:
5273 return NULL;
5274}
5275
5276
5277SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5278 PyObject *resultobj = 0;
5279 wxPen *arg1 = (wxPen *) 0 ;
5280 PyObject *arg2 = (PyObject *) 0 ;
5281 PyObject *arg3 = (PyObject *) 0 ;
5282 void *argp1 = 0 ;
5283 int res1 = 0 ;
5284 PyObject * obj0 = 0 ;
5285 PyObject * obj1 = 0 ;
5286 PyObject * obj2 = 0 ;
5287 char * kwnames[] = {
5288 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5289 };
5290
5291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5293 if (!SWIG_IsOK(res1)) {
5294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5295 }
5296 arg1 = reinterpret_cast< wxPen * >(argp1);
5297 arg2 = obj1;
5298 arg3 = obj2;
5299 {
5300 PyThreadState* __tstate = wxPyBeginAllowThreads();
5301 wxPen__SetDashes(arg1,arg2,arg3);
5302 wxPyEndAllowThreads(__tstate);
5303 if (PyErr_Occurred()) SWIG_fail;
5304 }
5305 resultobj = SWIG_Py_Void();
5306 return resultobj;
5307fail:
5308 return NULL;
5309}
5310
5311
5312SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5313 PyObject *resultobj = 0;
5314 wxPen *arg1 = (wxPen *) 0 ;
5315 wxPen *arg2 = (wxPen *) 0 ;
5316 bool result;
5317 void *argp1 = 0 ;
5318 int res1 = 0 ;
5319 void *argp2 = 0 ;
5320 int res2 = 0 ;
5321 PyObject * obj0 = 0 ;
5322 PyObject * obj1 = 0 ;
5323 char * kwnames[] = {
5324 (char *) "self",(char *) "other", NULL
5325 };
5326
5327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5329 if (!SWIG_IsOK(res1)) {
5330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5331 }
5332 arg1 = reinterpret_cast< wxPen * >(argp1);
5333 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5334 if (!SWIG_IsOK(res2)) {
5335 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5336 }
5337 arg2 = reinterpret_cast< wxPen * >(argp2);
5338 {
5339 PyThreadState* __tstate = wxPyBeginAllowThreads();
5340 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5341 wxPyEndAllowThreads(__tstate);
5342 if (PyErr_Occurred()) SWIG_fail;
5343 }
5344 {
5345 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5346 }
5347 return resultobj;
5348fail:
5349 return NULL;
5350}
5351
5352
5353SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5354 PyObject *resultobj = 0;
5355 wxPen *arg1 = (wxPen *) 0 ;
5356 wxPen *arg2 = (wxPen *) 0 ;
5357 bool result;
5358 void *argp1 = 0 ;
5359 int res1 = 0 ;
5360 void *argp2 = 0 ;
5361 int res2 = 0 ;
5362 PyObject * obj0 = 0 ;
5363 PyObject * obj1 = 0 ;
5364 char * kwnames[] = {
5365 (char *) "self",(char *) "other", NULL
5366 };
5367
5368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5370 if (!SWIG_IsOK(res1)) {
5371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5372 }
5373 arg1 = reinterpret_cast< wxPen * >(argp1);
5374 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5375 if (!SWIG_IsOK(res2)) {
5376 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5377 }
5378 arg2 = reinterpret_cast< wxPen * >(argp2);
5379 {
5380 PyThreadState* __tstate = wxPyBeginAllowThreads();
5381 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5382 wxPyEndAllowThreads(__tstate);
5383 if (PyErr_Occurred()) SWIG_fail;
5384 }
5385 {
5386 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5387 }
5388 return resultobj;
5389fail:
5390 return NULL;
5391}
d55e5bfc
RD
5392
5393
1bd55598
RD
5394SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5395 PyObject *obj;
5396 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5397 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5398 return SWIG_Py_Void();
d55e5bfc
RD
5399}
5400
1bd55598
RD
5401SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5402 return SWIG_Python_InitShadowInstance(args);
5403}
d55e5bfc 5404
1bd55598
RD
5405SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5406 PyObject *resultobj = 0;
5407 wxColour *arg1 = 0 ;
5408 int arg2 = (int) wxSOLID ;
5409 wxBrush *result = 0 ;
5410 wxColour temp1 ;
5411 int val2 ;
5412 int ecode2 = 0 ;
5413 PyObject * obj0 = 0 ;
5414 PyObject * obj1 = 0 ;
5415 char * kwnames[] = {
5416 (char *) "colour",(char *) "style", NULL
5417 };
5418
5419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5420 {
5421 arg1 = &temp1;
5422 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5423 }
5424 if (obj1) {
5425 ecode2 = SWIG_AsVal_int(obj1, &val2);
5426 if (!SWIG_IsOK(ecode2)) {
5427 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5428 }
5429 arg2 = static_cast< int >(val2);
5430 }
5431 {
5432 if (!wxPyCheckForApp()) SWIG_fail;
5433 PyThreadState* __tstate = wxPyBeginAllowThreads();
5434 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5435 wxPyEndAllowThreads(__tstate);
5436 if (PyErr_Occurred()) SWIG_fail;
5437 }
5438 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5439 return resultobj;
5440fail:
5441 return NULL;
5442}
5443
5444
5445SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5446 PyObject *resultobj = 0;
5447 wxBitmap *arg1 = 0 ;
5448 wxBrush *result = 0 ;
5449 void *argp1 = 0 ;
5450 int res1 = 0 ;
5451 PyObject * obj0 = 0 ;
5452 char * kwnames[] = {
5453 (char *) "stippleBitmap", NULL
5454 };
5455
5456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5457 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5458 if (!SWIG_IsOK(res1)) {
5459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5460 }
5461 if (!argp1) {
5462 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5463 }
5464 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5465 {
5466 if (!wxPyCheckForApp()) SWIG_fail;
5467 PyThreadState* __tstate = wxPyBeginAllowThreads();
5468 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5469 wxPyEndAllowThreads(__tstate);
5470 if (PyErr_Occurred()) SWIG_fail;
5471 }
5472 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5473 return resultobj;
5474fail:
5475 return NULL;
d55e5bfc
RD
5476}
5477
5478
1bd55598
RD
5479SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5480 PyObject *resultobj = 0;
5481 wxBrush *arg1 = (wxBrush *) 0 ;
5482 void *argp1 = 0 ;
5483 int res1 = 0 ;
5484 PyObject *swig_obj[1] ;
5485
5486 if (!args) SWIG_fail;
5487 swig_obj[0] = args;
5488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5489 if (!SWIG_IsOK(res1)) {
5490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5491 }
5492 arg1 = reinterpret_cast< wxBrush * >(argp1);
5493 {
5494 PyThreadState* __tstate = wxPyBeginAllowThreads();
5495 delete arg1;
d55e5bfc 5496
1bd55598
RD
5497 wxPyEndAllowThreads(__tstate);
5498 if (PyErr_Occurred()) SWIG_fail;
5499 }
5500 resultobj = SWIG_Py_Void();
5501 return resultobj;
5502fail:
5503 return NULL;
5504}
5505
5506
5507SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5508 PyObject *resultobj = 0;
5509 wxBrush *arg1 = (wxBrush *) 0 ;
5510 wxColour *arg2 = 0 ;
5511 void *argp1 = 0 ;
5512 int res1 = 0 ;
5513 wxColour temp2 ;
5514 PyObject * obj0 = 0 ;
5515 PyObject * obj1 = 0 ;
5516 char * kwnames[] = {
5517 (char *) "self",(char *) "col", NULL
5518 };
5519
5520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5522 if (!SWIG_IsOK(res1)) {
5523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5524 }
5525 arg1 = reinterpret_cast< wxBrush * >(argp1);
5526 {
5527 arg2 = &temp2;
5528 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5529 }
5530 {
5531 PyThreadState* __tstate = wxPyBeginAllowThreads();
5532 (arg1)->SetColour((wxColour const &)*arg2);
5533 wxPyEndAllowThreads(__tstate);
5534 if (PyErr_Occurred()) SWIG_fail;
5535 }
5536 resultobj = SWIG_Py_Void();
5537 return resultobj;
5538fail:
5539 return NULL;
5540}
5541
5542
5543SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5544 PyObject *resultobj = 0;
5545 wxBrush *arg1 = (wxBrush *) 0 ;
5546 int arg2 ;
5547 void *argp1 = 0 ;
5548 int res1 = 0 ;
5549 int val2 ;
5550 int ecode2 = 0 ;
5551 PyObject * obj0 = 0 ;
5552 PyObject * obj1 = 0 ;
5553 char * kwnames[] = {
5554 (char *) "self",(char *) "style", NULL
5555 };
5556
5557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5559 if (!SWIG_IsOK(res1)) {
5560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5561 }
5562 arg1 = reinterpret_cast< wxBrush * >(argp1);
5563 ecode2 = SWIG_AsVal_int(obj1, &val2);
5564 if (!SWIG_IsOK(ecode2)) {
5565 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5566 }
5567 arg2 = static_cast< int >(val2);
5568 {
5569 PyThreadState* __tstate = wxPyBeginAllowThreads();
5570 (arg1)->SetStyle(arg2);
5571 wxPyEndAllowThreads(__tstate);
5572 if (PyErr_Occurred()) SWIG_fail;
5573 }
5574 resultobj = SWIG_Py_Void();
5575 return resultobj;
5576fail:
5577 return NULL;
5578}
5579
5580
5581SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5582 PyObject *resultobj = 0;
5583 wxBrush *arg1 = (wxBrush *) 0 ;
5584 wxBitmap *arg2 = 0 ;
5585 void *argp1 = 0 ;
5586 int res1 = 0 ;
5587 void *argp2 = 0 ;
5588 int res2 = 0 ;
5589 PyObject * obj0 = 0 ;
5590 PyObject * obj1 = 0 ;
5591 char * kwnames[] = {
5592 (char *) "self",(char *) "stipple", NULL
5593 };
5594
5595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5597 if (!SWIG_IsOK(res1)) {
5598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5599 }
5600 arg1 = reinterpret_cast< wxBrush * >(argp1);
5601 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5602 if (!SWIG_IsOK(res2)) {
5603 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5604 }
5605 if (!argp2) {
5606 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5607 }
5608 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5609 {
5610 PyThreadState* __tstate = wxPyBeginAllowThreads();
5611 (arg1)->SetStipple((wxBitmap const &)*arg2);
5612 wxPyEndAllowThreads(__tstate);
5613 if (PyErr_Occurred()) SWIG_fail;
5614 }
5615 resultobj = SWIG_Py_Void();
5616 return resultobj;
5617fail:
5618 return NULL;
d55e5bfc
RD
5619}
5620
5621
1bd55598
RD
5622SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5623 PyObject *resultobj = 0;
5624 wxBrush *arg1 = (wxBrush *) 0 ;
5625 wxColour result;
5626 void *argp1 = 0 ;
5627 int res1 = 0 ;
5628 PyObject *swig_obj[1] ;
5629
5630 if (!args) SWIG_fail;
5631 swig_obj[0] = args;
5632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5633 if (!SWIG_IsOK(res1)) {
5634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5635 }
5636 arg1 = reinterpret_cast< wxBrush * >(argp1);
5637 {
5638 PyThreadState* __tstate = wxPyBeginAllowThreads();
5639 result = ((wxBrush const *)arg1)->GetColour();
5640 wxPyEndAllowThreads(__tstate);
5641 if (PyErr_Occurred()) SWIG_fail;
5642 }
5643 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5644 return resultobj;
5645fail:
5646 return NULL;
d55e5bfc
RD
5647}
5648
5649
1bd55598
RD
5650SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5651 PyObject *resultobj = 0;
5652 wxBrush *arg1 = (wxBrush *) 0 ;
5653 int result;
5654 void *argp1 = 0 ;
5655 int res1 = 0 ;
5656 PyObject *swig_obj[1] ;
5657
5658 if (!args) SWIG_fail;
5659 swig_obj[0] = args;
5660 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5661 if (!SWIG_IsOK(res1)) {
5662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5663 }
5664 arg1 = reinterpret_cast< wxBrush * >(argp1);
5665 {
5666 PyThreadState* __tstate = wxPyBeginAllowThreads();
5667 result = (int)((wxBrush const *)arg1)->GetStyle();
5668 wxPyEndAllowThreads(__tstate);
5669 if (PyErr_Occurred()) SWIG_fail;
5670 }
5671 resultobj = SWIG_From_int(static_cast< int >(result));
5672 return resultobj;
5673fail:
5674 return NULL;
d55e5bfc
RD
5675}
5676
5677
1bd55598
RD
5678SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5679 PyObject *resultobj = 0;
5680 wxBrush *arg1 = (wxBrush *) 0 ;
5681 wxBitmap *result = 0 ;
5682 void *argp1 = 0 ;
5683 int res1 = 0 ;
5684 PyObject *swig_obj[1] ;
5685
5686 if (!args) SWIG_fail;
5687 swig_obj[0] = args;
5688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5689 if (!SWIG_IsOK(res1)) {
5690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5691 }
5692 arg1 = reinterpret_cast< wxBrush * >(argp1);
5693 {
5694 PyThreadState* __tstate = wxPyBeginAllowThreads();
5695 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5696 wxPyEndAllowThreads(__tstate);
5697 if (PyErr_Occurred()) SWIG_fail;
5698 }
5699 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5700 return resultobj;
5701fail:
5702 return NULL;
d55e5bfc
RD
5703}
5704
5705
1bd55598
RD
5706SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5707 PyObject *resultobj = 0;
5708 wxBrush *arg1 = (wxBrush *) 0 ;
5709 bool result;
5710 void *argp1 = 0 ;
5711 int res1 = 0 ;
5712 PyObject *swig_obj[1] ;
5713
5714 if (!args) SWIG_fail;
5715 swig_obj[0] = args;
5716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5717 if (!SWIG_IsOK(res1)) {
5718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5719 }
5720 arg1 = reinterpret_cast< wxBrush * >(argp1);
5721 {
5722 PyThreadState* __tstate = wxPyBeginAllowThreads();
5723 result = (bool)((wxBrush const *)arg1)->IsHatch();
5724 wxPyEndAllowThreads(__tstate);
5725 if (PyErr_Occurred()) SWIG_fail;
5726 }
5727 {
5728 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5729 }
5730 return resultobj;
5731fail:
5732 return NULL;
d55e5bfc
RD
5733}
5734
5735
b39fe951 5736SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
5737 PyObject *resultobj = 0;
5738 wxBrush *arg1 = (wxBrush *) 0 ;
5739 bool result;
5740 void *argp1 = 0 ;
5741 int res1 = 0 ;
5742 PyObject *swig_obj[1] ;
5743
5744 if (!args) SWIG_fail;
5745 swig_obj[0] = args;
5746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5747 if (!SWIG_IsOK(res1)) {
b39fe951 5748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
1bd55598
RD
5749 }
5750 arg1 = reinterpret_cast< wxBrush * >(argp1);
5751 {
5752 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5753 result = (bool)(arg1)->IsOk();
1bd55598
RD
5754 wxPyEndAllowThreads(__tstate);
5755 if (PyErr_Occurred()) SWIG_fail;
5756 }
5757 {
5758 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5759 }
5760 return resultobj;
5761fail:
5762 return NULL;
d55e5bfc
RD
5763}
5764
5765
1bd55598
RD
5766SWIGINTERN PyObject *_wrap_Brush_MacGetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5767 PyObject *resultobj = 0;
5768 wxBrush *arg1 = (wxBrush *) 0 ;
5769 short result;
5770 void *argp1 = 0 ;
5771 int res1 = 0 ;
5772 PyObject *swig_obj[1] ;
5773
5774 if (!args) SWIG_fail;
5775 swig_obj[0] = args;
5776 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5777 if (!SWIG_IsOK(res1)) {
5778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacGetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
5779 }
5780 arg1 = reinterpret_cast< wxBrush * >(argp1);
5781 {
5782 PyThreadState* __tstate = wxPyBeginAllowThreads();
5783 result = (short)(arg1)->MacGetTheme();
5784 wxPyEndAllowThreads(__tstate);
5785 if (PyErr_Occurred()) SWIG_fail;
5786 }
5787 resultobj = SWIG_From_short(static_cast< short >(result));
5788 return resultobj;
5789fail:
5790 return NULL;
5791}
5792
5793
5794SWIGINTERN PyObject *_wrap_Brush_MacSetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5795 PyObject *resultobj = 0;
5796 wxBrush *arg1 = (wxBrush *) 0 ;
5797 short arg2 ;
5798 void *argp1 = 0 ;
5799 int res1 = 0 ;
5800 short val2 ;
5801 int ecode2 = 0 ;
5802 PyObject * obj0 = 0 ;
5803 PyObject * obj1 = 0 ;
5804 char * kwnames[] = {
5805 (char *) "self",(char *) "macThemeBrush", NULL
5806 };
5807
5808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) SWIG_fail;
5809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5810 if (!SWIG_IsOK(res1)) {
5811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacSetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
5812 }
5813 arg1 = reinterpret_cast< wxBrush * >(argp1);
5814 ecode2 = SWIG_AsVal_short(obj1, &val2);
5815 if (!SWIG_IsOK(ecode2)) {
5816 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_MacSetTheme" "', expected argument " "2"" of type '" "short""'");
5817 }
5818 arg2 = static_cast< short >(val2);
5819 {
5820 PyThreadState* __tstate = wxPyBeginAllowThreads();
5821 (arg1)->MacSetTheme(arg2);
5822 wxPyEndAllowThreads(__tstate);
5823 if (PyErr_Occurred()) SWIG_fail;
5824 }
5825 resultobj = SWIG_Py_Void();
5826 return resultobj;
5827fail:
5828 return NULL;
d55e5bfc
RD
5829}
5830
5831
1bd55598
RD
5832SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5833 PyObject *obj;
5834 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5835 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5836 return SWIG_Py_Void();
d55e5bfc
RD
5837}
5838
1bd55598
RD
5839SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5840 return SWIG_Python_InitShadowInstance(args);
5841}
d55e5bfc 5842
1bd55598
RD
5843SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5844 PyObject *resultobj = 0;
5845 wxString *arg1 = 0 ;
5846 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5847 wxBitmap *result = 0 ;
5848 bool temp1 = false ;
5849 int val2 ;
5850 int ecode2 = 0 ;
5851 PyObject * obj0 = 0 ;
5852 PyObject * obj1 = 0 ;
5853 char * kwnames[] = {
5854 (char *) "name",(char *) "type", NULL
5855 };
5856
5857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5858 {
5859 arg1 = wxString_in_helper(obj0);
5860 if (arg1 == NULL) SWIG_fail;
5861 temp1 = true;
5862 }
5863 if (obj1) {
5864 ecode2 = SWIG_AsVal_int(obj1, &val2);
5865 if (!SWIG_IsOK(ecode2)) {
5866 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5867 }
5868 arg2 = static_cast< wxBitmapType >(val2);
5869 }
5870 {
5871 if (!wxPyCheckForApp()) SWIG_fail;
5872 PyThreadState* __tstate = wxPyBeginAllowThreads();
5873 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5874 wxPyEndAllowThreads(__tstate);
5875 if (PyErr_Occurred()) SWIG_fail;
5876 }
5877 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5878 {
5879 if (temp1)
5880 delete arg1;
5881 }
5882 return resultobj;
5883fail:
5884 {
5885 if (temp1)
5886 delete arg1;
5887 }
5888 return NULL;
d55e5bfc
RD
5889}
5890
5891
1bd55598
RD
5892SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5893 PyObject *resultobj = 0;
5894 wxBitmap *arg1 = (wxBitmap *) 0 ;
5895 void *argp1 = 0 ;
5896 int res1 = 0 ;
5897 PyObject *swig_obj[1] ;
5898
5899 if (!args) SWIG_fail;
5900 swig_obj[0] = args;
5901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5902 if (!SWIG_IsOK(res1)) {
5903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5904 }
5905 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5906 {
1bd55598 5907 delete arg1;
d55e5bfc 5908
1bd55598
RD
5909 if (PyErr_Occurred()) SWIG_fail;
5910 }
5911 resultobj = SWIG_Py_Void();
5912 return resultobj;
5913fail:
5914 return NULL;
5915}
5916
5917
5918SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5919 PyObject *resultobj = 0;
5920 int arg1 ;
5921 int arg2 ;
5922 int arg3 = (int) -1 ;
5923 wxBitmap *result = 0 ;
5924 int val1 ;
5925 int ecode1 = 0 ;
5926 int val2 ;
5927 int ecode2 = 0 ;
5928 int val3 ;
5929 int ecode3 = 0 ;
5930 PyObject * obj0 = 0 ;
5931 PyObject * obj1 = 0 ;
5932 PyObject * obj2 = 0 ;
5933 char * kwnames[] = {
5934 (char *) "width",(char *) "height",(char *) "depth", NULL
5935 };
5936
5937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5938 ecode1 = SWIG_AsVal_int(obj0, &val1);
5939 if (!SWIG_IsOK(ecode1)) {
5940 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5941 }
5942 arg1 = static_cast< int >(val1);
5943 ecode2 = SWIG_AsVal_int(obj1, &val2);
5944 if (!SWIG_IsOK(ecode2)) {
5945 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5946 }
5947 arg2 = static_cast< int >(val2);
5948 if (obj2) {
5949 ecode3 = SWIG_AsVal_int(obj2, &val3);
5950 if (!SWIG_IsOK(ecode3)) {
5951 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5952 }
5953 arg3 = static_cast< int >(val3);
5954 }
5955 {
5956 if (!wxPyCheckForApp()) SWIG_fail;
5957 PyThreadState* __tstate = wxPyBeginAllowThreads();
5958 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5959 wxPyEndAllowThreads(__tstate);
5960 if (PyErr_Occurred()) SWIG_fail;
5961 }
5962 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5963 return resultobj;
5964fail:
5965 return NULL;
5966}
5967
5968
5969SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5970 PyObject *resultobj = 0;
5971 wxIcon *arg1 = 0 ;
5972 wxBitmap *result = 0 ;
5973 void *argp1 = 0 ;
5974 int res1 = 0 ;
5975 PyObject * obj0 = 0 ;
5976 char * kwnames[] = {
5977 (char *) "icon", NULL
5978 };
5979
5980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5981 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5982 if (!SWIG_IsOK(res1)) {
5983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5984 }
5985 if (!argp1) {
5986 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5987 }
5988 arg1 = reinterpret_cast< wxIcon * >(argp1);
5989 {
5990 if (!wxPyCheckForApp()) SWIG_fail;
5991 PyThreadState* __tstate = wxPyBeginAllowThreads();
5992 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
5993 wxPyEndAllowThreads(__tstate);
5994 if (PyErr_Occurred()) SWIG_fail;
5995 }
5996 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5997 return resultobj;
5998fail:
5999 return NULL;
6000}
6001
6002
6003SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6004 PyObject *resultobj = 0;
6005 wxImage *arg1 = 0 ;
6006 int arg2 = (int) -1 ;
6007 wxBitmap *result = 0 ;
6008 void *argp1 = 0 ;
6009 int res1 = 0 ;
6010 int val2 ;
6011 int ecode2 = 0 ;
6012 PyObject * obj0 = 0 ;
6013 PyObject * obj1 = 0 ;
6014 char * kwnames[] = {
6015 (char *) "image",(char *) "depth", NULL
6016 };
6017
6018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6019 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6020 if (!SWIG_IsOK(res1)) {
6021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6022 }
6023 if (!argp1) {
6024 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6025 }
6026 arg1 = reinterpret_cast< wxImage * >(argp1);
6027 if (obj1) {
6028 ecode2 = SWIG_AsVal_int(obj1, &val2);
6029 if (!SWIG_IsOK(ecode2)) {
6030 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6031 }
6032 arg2 = static_cast< int >(val2);
6033 }
6034 {
6035 if (!wxPyCheckForApp()) SWIG_fail;
6036 PyThreadState* __tstate = wxPyBeginAllowThreads();
6037 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6038 wxPyEndAllowThreads(__tstate);
6039 if (PyErr_Occurred()) SWIG_fail;
6040 }
6041 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6042 return resultobj;
6043fail:
6044 return NULL;
d55e5bfc
RD
6045}
6046
6047
1bd55598
RD
6048SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6049 PyObject *resultobj = 0;
6050 PyObject *arg1 = (PyObject *) 0 ;
6051 wxBitmap *result = 0 ;
6052 PyObject * obj0 = 0 ;
6053 char * kwnames[] = {
6054 (char *) "listOfStrings", NULL
6055 };
6056
6057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6058 arg1 = obj0;
6059 {
6060 if (!wxPyCheckForApp()) SWIG_fail;
6061 PyThreadState* __tstate = wxPyBeginAllowThreads();
6062 result = (wxBitmap *)new_wxBitmap(arg1);
6063 wxPyEndAllowThreads(__tstate);
6064 if (PyErr_Occurred()) SWIG_fail;
6065 }
6066 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6067 return resultobj;
6068fail:
6069 return NULL;
6070}
6071
6072
6073SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6074 PyObject *resultobj = 0;
6075 PyObject *arg1 = (PyObject *) 0 ;
6076 int arg2 ;
6077 int arg3 ;
6078 int arg4 = (int) 1 ;
6079 wxBitmap *result = 0 ;
6080 int val2 ;
6081 int ecode2 = 0 ;
6082 int val3 ;
6083 int ecode3 = 0 ;
6084 int val4 ;
6085 int ecode4 = 0 ;
6086 PyObject * obj0 = 0 ;
6087 PyObject * obj1 = 0 ;
6088 PyObject * obj2 = 0 ;
6089 PyObject * obj3 = 0 ;
6090 char * kwnames[] = {
6091 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6092 };
6093
6094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6095 arg1 = obj0;
6096 ecode2 = SWIG_AsVal_int(obj1, &val2);
6097 if (!SWIG_IsOK(ecode2)) {
6098 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6099 }
6100 arg2 = static_cast< int >(val2);
6101 ecode3 = SWIG_AsVal_int(obj2, &val3);
6102 if (!SWIG_IsOK(ecode3)) {
6103 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6104 }
6105 arg3 = static_cast< int >(val3);
6106 if (obj3) {
6107 ecode4 = SWIG_AsVal_int(obj3, &val4);
6108 if (!SWIG_IsOK(ecode4)) {
6109 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6110 }
6111 arg4 = static_cast< int >(val4);
6112 }
6113 {
6114 if (!wxPyCheckForApp()) SWIG_fail;
6115 PyThreadState* __tstate = wxPyBeginAllowThreads();
6116 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6117 wxPyEndAllowThreads(__tstate);
6118 if (PyErr_Occurred()) SWIG_fail;
6119 }
6120 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6121 return resultobj;
6122fail:
6123 return NULL;
d55e5bfc
RD
6124}
6125
6126
b39fe951 6127SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
6128 PyObject *resultobj = 0;
6129 wxBitmap *arg1 = (wxBitmap *) 0 ;
6130 bool result;
6131 void *argp1 = 0 ;
6132 int res1 = 0 ;
6133 PyObject *swig_obj[1] ;
6134
6135 if (!args) SWIG_fail;
6136 swig_obj[0] = args;
6137 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6138 if (!SWIG_IsOK(res1)) {
b39fe951 6139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
1bd55598
RD
6140 }
6141 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6142 {
b39fe951 6143 result = (bool)(arg1)->IsOk();
1bd55598
RD
6144 if (PyErr_Occurred()) SWIG_fail;
6145 }
6146 {
6147 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6148 }
6149 return resultobj;
6150fail:
6151 return NULL;
d55e5bfc
RD
6152}
6153
6154
1bd55598
RD
6155SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6156 PyObject *resultobj = 0;
6157 wxBitmap *arg1 = (wxBitmap *) 0 ;
6158 int result;
6159 void *argp1 = 0 ;
6160 int res1 = 0 ;
6161 PyObject *swig_obj[1] ;
6162
6163 if (!args) SWIG_fail;
6164 swig_obj[0] = args;
6165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6166 if (!SWIG_IsOK(res1)) {
6167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6168 }
6169 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6170 {
1bd55598 6171 result = (int)(arg1)->GetWidth();
1bd55598
RD
6172 if (PyErr_Occurred()) SWIG_fail;
6173 }
6174 resultobj = SWIG_From_int(static_cast< int >(result));
6175 return resultobj;
6176fail:
6177 return NULL;
070c48b4
RD
6178}
6179
6180
1bd55598
RD
6181SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6182 PyObject *resultobj = 0;
6183 wxBitmap *arg1 = (wxBitmap *) 0 ;
6184 int result;
6185 void *argp1 = 0 ;
6186 int res1 = 0 ;
6187 PyObject *swig_obj[1] ;
6188
6189 if (!args) SWIG_fail;
6190 swig_obj[0] = args;
6191 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6192 if (!SWIG_IsOK(res1)) {
6193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6194 }
6195 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6196 {
1bd55598 6197 result = (int)(arg1)->GetHeight();
1bd55598
RD
6198 if (PyErr_Occurred()) SWIG_fail;
6199 }
6200 resultobj = SWIG_From_int(static_cast< int >(result));
6201 return resultobj;
6202fail:
6203 return NULL;
d55e5bfc
RD
6204}
6205
6206
1bd55598
RD
6207SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6208 PyObject *resultobj = 0;
6209 wxBitmap *arg1 = (wxBitmap *) 0 ;
6210 int result;
6211 void *argp1 = 0 ;
6212 int res1 = 0 ;
6213 PyObject *swig_obj[1] ;
6214
6215 if (!args) SWIG_fail;
6216 swig_obj[0] = args;
6217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6218 if (!SWIG_IsOK(res1)) {
6219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6220 }
6221 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6222 {
1bd55598 6223 result = (int)(arg1)->GetDepth();
1bd55598
RD
6224 if (PyErr_Occurred()) SWIG_fail;
6225 }
6226 resultobj = SWIG_From_int(static_cast< int >(result));
6227 return resultobj;
6228fail:
6229 return NULL;
d55e5bfc
RD
6230}
6231
6232
1bd55598
RD
6233SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6234 PyObject *resultobj = 0;
6235 wxBitmap *arg1 = (wxBitmap *) 0 ;
6236 wxSize result;
6237 void *argp1 = 0 ;
6238 int res1 = 0 ;
6239 PyObject *swig_obj[1] ;
6240
6241 if (!args) SWIG_fail;
6242 swig_obj[0] = args;
6243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6244 if (!SWIG_IsOK(res1)) {
6245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6246 }
6247 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6248 {
1bd55598 6249 result = wxBitmap_GetSize(arg1);
1bd55598
RD
6250 if (PyErr_Occurred()) SWIG_fail;
6251 }
6252 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6253 return resultobj;
6254fail:
6255 return NULL;
d55e5bfc
RD
6256}
6257
6258
1bd55598
RD
6259SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6260 PyObject *resultobj = 0;
6261 wxBitmap *arg1 = (wxBitmap *) 0 ;
6262 SwigValueWrapper<wxImage > result;
6263 void *argp1 = 0 ;
6264 int res1 = 0 ;
6265 PyObject *swig_obj[1] ;
6266
6267 if (!args) SWIG_fail;
6268 swig_obj[0] = args;
6269 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6270 if (!SWIG_IsOK(res1)) {
6271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6272 }
6273 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6274 {
1bd55598 6275 result = ((wxBitmap const *)arg1)->ConvertToImage();
1bd55598
RD
6276 if (PyErr_Occurred()) SWIG_fail;
6277 }
6278 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6279 return resultobj;
6280fail:
6281 return NULL;
d55e5bfc
RD
6282}
6283
6284
1bd55598
RD
6285SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6286 PyObject *resultobj = 0;
6287 wxBitmap *arg1 = (wxBitmap *) 0 ;
6288 wxMask *result = 0 ;
6289 void *argp1 = 0 ;
6290 int res1 = 0 ;
6291 PyObject *swig_obj[1] ;
6292
6293 if (!args) SWIG_fail;
6294 swig_obj[0] = args;
6295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6296 if (!SWIG_IsOK(res1)) {
6297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6298 }
6299 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6300 {
1bd55598 6301 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
1bd55598
RD
6302 if (PyErr_Occurred()) SWIG_fail;
6303 }
6304 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6305 return resultobj;
6306fail:
6307 return NULL;
6308}
6309
6310
6311SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6312 PyObject *resultobj = 0;
6313 wxBitmap *arg1 = (wxBitmap *) 0 ;
6314 wxMask *arg2 = (wxMask *) 0 ;
6315 void *argp1 = 0 ;
6316 int res1 = 0 ;
6317 int res2 = 0 ;
6318 PyObject * obj0 = 0 ;
6319 PyObject * obj1 = 0 ;
6320 char * kwnames[] = {
6321 (char *) "self",(char *) "mask", NULL
6322 };
6323
6324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6326 if (!SWIG_IsOK(res1)) {
6327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6328 }
6329 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6330 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6331 if (!SWIG_IsOK(res2)) {
6332 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6333 }
6334 {
1bd55598 6335 (arg1)->SetMask(arg2);
1bd55598
RD
6336 if (PyErr_Occurred()) SWIG_fail;
6337 }
6338 resultobj = SWIG_Py_Void();
6339 return resultobj;
6340fail:
6341 return NULL;
6342}
6343
6344
6345SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6346 PyObject *resultobj = 0;
6347 wxBitmap *arg1 = (wxBitmap *) 0 ;
6348 wxColour *arg2 = 0 ;
6349 void *argp1 = 0 ;
6350 int res1 = 0 ;
6351 wxColour temp2 ;
6352 PyObject * obj0 = 0 ;
6353 PyObject * obj1 = 0 ;
6354 char * kwnames[] = {
6355 (char *) "self",(char *) "colour", NULL
6356 };
6357
6358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6360 if (!SWIG_IsOK(res1)) {
6361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6362 }
6363 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6364 {
6365 arg2 = &temp2;
6366 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6367 }
6368 {
1bd55598 6369 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
1bd55598
RD
6370 if (PyErr_Occurred()) SWIG_fail;
6371 }
6372 resultobj = SWIG_Py_Void();
6373 return resultobj;
6374fail:
6375 return NULL;
6376}
6377
6378
6379SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6380 PyObject *resultobj = 0;
6381 wxBitmap *arg1 = (wxBitmap *) 0 ;
6382 wxRect *arg2 = 0 ;
6383 SwigValueWrapper<wxBitmap > result;
6384 void *argp1 = 0 ;
6385 int res1 = 0 ;
6386 wxRect temp2 ;
6387 PyObject * obj0 = 0 ;
6388 PyObject * obj1 = 0 ;
6389 char * kwnames[] = {
6390 (char *) "self",(char *) "rect", NULL
6391 };
6392
6393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6395 if (!SWIG_IsOK(res1)) {
6396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6397 }
6398 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6399 {
6400 arg2 = &temp2;
6401 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6402 }
6403 {
1bd55598 6404 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
1bd55598
RD
6405 if (PyErr_Occurred()) SWIG_fail;
6406 }
6407 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6408 return resultobj;
6409fail:
6410 return NULL;
6411}
6412
6413
6414SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6415 PyObject *resultobj = 0;
6416 wxBitmap *arg1 = (wxBitmap *) 0 ;
6417 wxString *arg2 = 0 ;
6418 wxBitmapType arg3 ;
6419 wxPalette *arg4 = (wxPalette *) NULL ;
6420 bool result;
6421 void *argp1 = 0 ;
6422 int res1 = 0 ;
6423 bool temp2 = false ;
6424 int val3 ;
6425 int ecode3 = 0 ;
6426 void *argp4 = 0 ;
6427 int res4 = 0 ;
6428 PyObject * obj0 = 0 ;
6429 PyObject * obj1 = 0 ;
6430 PyObject * obj2 = 0 ;
6431 PyObject * obj3 = 0 ;
6432 char * kwnames[] = {
6433 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6434 };
6435
6436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6438 if (!SWIG_IsOK(res1)) {
6439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6440 }
6441 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6442 {
6443 arg2 = wxString_in_helper(obj1);
6444 if (arg2 == NULL) SWIG_fail;
6445 temp2 = true;
6446 }
6447 ecode3 = SWIG_AsVal_int(obj2, &val3);
6448 if (!SWIG_IsOK(ecode3)) {
6449 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6450 }
6451 arg3 = static_cast< wxBitmapType >(val3);
6452 if (obj3) {
6453 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6454 if (!SWIG_IsOK(res4)) {
6455 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
d04418a7 6456 }
1bd55598
RD
6457 arg4 = reinterpret_cast< wxPalette * >(argp4);
6458 }
6459 {
1bd55598 6460 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
1bd55598
RD
6461 if (PyErr_Occurred()) SWIG_fail;
6462 }
6463 {
6464 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6465 }
6466 {
6467 if (temp2)
6468 delete arg2;
6469 }
6470 return resultobj;
6471fail:
6472 {
6473 if (temp2)
6474 delete arg2;
6475 }
6476 return NULL;
6477}
6478
6479
6480SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6481 PyObject *resultobj = 0;
6482 wxBitmap *arg1 = (wxBitmap *) 0 ;
6483 wxString *arg2 = 0 ;
6484 wxBitmapType arg3 ;
6485 bool result;
6486 void *argp1 = 0 ;
6487 int res1 = 0 ;
6488 bool temp2 = false ;
6489 int val3 ;
6490 int ecode3 = 0 ;
6491 PyObject * obj0 = 0 ;
6492 PyObject * obj1 = 0 ;
6493 PyObject * obj2 = 0 ;
6494 char * kwnames[] = {
6495 (char *) "self",(char *) "name",(char *) "type", NULL
6496 };
6497
6498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6500 if (!SWIG_IsOK(res1)) {
6501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6502 }
6503 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6504 {
6505 arg2 = wxString_in_helper(obj1);
6506 if (arg2 == NULL) SWIG_fail;
6507 temp2 = true;
6508 }
6509 ecode3 = SWIG_AsVal_int(obj2, &val3);
6510 if (!SWIG_IsOK(ecode3)) {
6511 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6512 }
6513 arg3 = static_cast< wxBitmapType >(val3);
6514 {
1bd55598 6515 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
1bd55598
RD
6516 if (PyErr_Occurred()) SWIG_fail;
6517 }
6518 {
6519 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6520 }
6521 {
6522 if (temp2)
6523 delete arg2;
6524 }
6525 return resultobj;
6526fail:
6527 {
6528 if (temp2)
6529 delete arg2;
6530 }
6531 return NULL;
d04418a7
RD
6532}
6533
6534
1bd55598
RD
6535SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6536 PyObject *resultobj = 0;
6537 wxBitmap *arg1 = (wxBitmap *) 0 ;
6538 wxPalette *result = 0 ;
6539 void *argp1 = 0 ;
6540 int res1 = 0 ;
6541 PyObject *swig_obj[1] ;
6542
6543 if (!args) SWIG_fail;
6544 swig_obj[0] = args;
6545 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6546 if (!SWIG_IsOK(res1)) {
6547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6548 }
6549 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6550 {
1bd55598 6551 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
1bd55598
RD
6552 if (PyErr_Occurred()) SWIG_fail;
6553 }
6554 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6555 return resultobj;
6556fail:
6557 return NULL;
6558}
6559
6560
6561SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6562 PyObject *resultobj = 0;
6563 wxBitmap *arg1 = (wxBitmap *) 0 ;
6564 wxIcon *arg2 = 0 ;
6565 bool result;
6566 void *argp1 = 0 ;
6567 int res1 = 0 ;
6568 void *argp2 = 0 ;
6569 int res2 = 0 ;
6570 PyObject * obj0 = 0 ;
6571 PyObject * obj1 = 0 ;
6572 char * kwnames[] = {
6573 (char *) "self",(char *) "icon", NULL
6574 };
6575
6576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",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_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6580 }
6581 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6582 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6583 if (!SWIG_IsOK(res2)) {
6584 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6585 }
6586 if (!argp2) {
6587 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6588 }
6589 arg2 = reinterpret_cast< wxIcon * >(argp2);
6590 {
1bd55598 6591 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
1bd55598
RD
6592 if (PyErr_Occurred()) SWIG_fail;
6593 }
6594 {
6595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6596 }
6597 return resultobj;
6598fail:
6599 return NULL;
6600}
6601
6602
6603SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6604 PyObject *resultobj = 0;
6605 wxBitmap *arg1 = (wxBitmap *) 0 ;
6606 int arg2 ;
6607 void *argp1 = 0 ;
6608 int res1 = 0 ;
6609 int val2 ;
6610 int ecode2 = 0 ;
6611 PyObject * obj0 = 0 ;
6612 PyObject * obj1 = 0 ;
6613 char * kwnames[] = {
6614 (char *) "self",(char *) "height", NULL
6615 };
6616
6617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6619 if (!SWIG_IsOK(res1)) {
6620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6621 }
6622 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6623 ecode2 = SWIG_AsVal_int(obj1, &val2);
6624 if (!SWIG_IsOK(ecode2)) {
6625 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6626 }
6627 arg2 = static_cast< int >(val2);
6628 {
1bd55598 6629 (arg1)->SetHeight(arg2);
1bd55598
RD
6630 if (PyErr_Occurred()) SWIG_fail;
6631 }
6632 resultobj = SWIG_Py_Void();
6633 return resultobj;
6634fail:
6635 return NULL;
6636}
6637
6638
6639SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6640 PyObject *resultobj = 0;
6641 wxBitmap *arg1 = (wxBitmap *) 0 ;
6642 int arg2 ;
6643 void *argp1 = 0 ;
6644 int res1 = 0 ;
6645 int val2 ;
6646 int ecode2 = 0 ;
6647 PyObject * obj0 = 0 ;
6648 PyObject * obj1 = 0 ;
6649 char * kwnames[] = {
6650 (char *) "self",(char *) "width", NULL
6651 };
6652
6653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6655 if (!SWIG_IsOK(res1)) {
6656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6657 }
6658 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6659 ecode2 = SWIG_AsVal_int(obj1, &val2);
6660 if (!SWIG_IsOK(ecode2)) {
6661 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6662 }
6663 arg2 = static_cast< int >(val2);
6664 {
1bd55598 6665 (arg1)->SetWidth(arg2);
1bd55598
RD
6666 if (PyErr_Occurred()) SWIG_fail;
6667 }
6668 resultobj = SWIG_Py_Void();
6669 return resultobj;
6670fail:
6671 return NULL;
6672}
6673
6674
6675SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6676 PyObject *resultobj = 0;
6677 wxBitmap *arg1 = (wxBitmap *) 0 ;
6678 int arg2 ;
6679 void *argp1 = 0 ;
6680 int res1 = 0 ;
6681 int val2 ;
6682 int ecode2 = 0 ;
6683 PyObject * obj0 = 0 ;
6684 PyObject * obj1 = 0 ;
6685 char * kwnames[] = {
6686 (char *) "self",(char *) "depth", NULL
6687 };
6688
6689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6691 if (!SWIG_IsOK(res1)) {
6692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6693 }
6694 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6695 ecode2 = SWIG_AsVal_int(obj1, &val2);
6696 if (!SWIG_IsOK(ecode2)) {
6697 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6698 }
6699 arg2 = static_cast< int >(val2);
6700 {
1bd55598 6701 (arg1)->SetDepth(arg2);
1bd55598
RD
6702 if (PyErr_Occurred()) SWIG_fail;
6703 }
6704 resultobj = SWIG_Py_Void();
6705 return resultobj;
6706fail:
6707 return NULL;
6708}
6709
6710
6711SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6712 PyObject *resultobj = 0;
6713 wxBitmap *arg1 = (wxBitmap *) 0 ;
6714 wxSize *arg2 = 0 ;
6715 void *argp1 = 0 ;
6716 int res1 = 0 ;
6717 wxSize temp2 ;
6718 PyObject * obj0 = 0 ;
6719 PyObject * obj1 = 0 ;
6720 char * kwnames[] = {
6721 (char *) "self",(char *) "size", NULL
6722 };
6723
6724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6726 if (!SWIG_IsOK(res1)) {
6727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6728 }
6729 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6730 {
6731 arg2 = &temp2;
6732 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6733 }
6734 {
1bd55598 6735 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
1bd55598
RD
6736 if (PyErr_Occurred()) SWIG_fail;
6737 }
6738 resultobj = SWIG_Py_Void();
6739 return resultobj;
6740fail:
6741 return NULL;
6742}
6743
6744
6745SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6746 PyObject *resultobj = 0;
6747 wxBitmap *arg1 = (wxBitmap *) 0 ;
6748 wxBitmap *arg2 = (wxBitmap *) 0 ;
6749 bool result;
6750 void *argp1 = 0 ;
6751 int res1 = 0 ;
6752 void *argp2 = 0 ;
6753 int res2 = 0 ;
6754 PyObject * obj0 = 0 ;
6755 PyObject * obj1 = 0 ;
6756 char * kwnames[] = {
6757 (char *) "self",(char *) "other", NULL
6758 };
6759
6760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6762 if (!SWIG_IsOK(res1)) {
6763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6764 }
6765 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6766 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6767 if (!SWIG_IsOK(res2)) {
6768 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6769 }
6770 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6771 {
1bd55598 6772 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
1bd55598
RD
6773 if (PyErr_Occurred()) SWIG_fail;
6774 }
6775 {
fc46b7f3
RD
6776 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6777 }
6778 return resultobj;
6779fail:
6780 return NULL;
6781}
6782
6783
6784SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6785 PyObject *resultobj = 0;
6786 wxBitmap *arg1 = (wxBitmap *) 0 ;
6787 wxBitmap *arg2 = (wxBitmap *) 0 ;
6788 bool result;
6789 void *argp1 = 0 ;
6790 int res1 = 0 ;
6791 void *argp2 = 0 ;
6792 int res2 = 0 ;
6793 PyObject * obj0 = 0 ;
6794 PyObject * obj1 = 0 ;
6795 char * kwnames[] = {
6796 (char *) "self",(char *) "other", NULL
6797 };
6798
6799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6801 if (!SWIG_IsOK(res1)) {
6802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6803 }
6804 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6805 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6806 if (!SWIG_IsOK(res2)) {
6807 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6808 }
6809 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6810 {
6811 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6812 if (PyErr_Occurred()) SWIG_fail;
6813 }
6814 {
6815 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6816 }
6817 return resultobj;
6818fail:
6819 return NULL;
6820}
6821
6822
6823SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6824 PyObject *obj;
6825 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6826 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6827 return SWIG_Py_Void();
6828}
6829
6830SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6831 return SWIG_Python_InitShadowInstance(args);
6832}
6833
6834SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6835 PyObject *resultobj = 0;
6836 int arg1 ;
6837 int arg2 ;
6838 buffer arg3 ;
6839 int arg4 ;
6840 buffer arg5 ;
6841 int arg6 ;
6842 wxBitmap *result = 0 ;
6843 int val1 ;
6844 int ecode1 = 0 ;
6845 int val2 ;
6846 int ecode2 = 0 ;
8c9c423b
RD
6847 Py_ssize_t temp3 ;
6848 Py_ssize_t temp5 ;
fc46b7f3
RD
6849 PyObject * obj0 = 0 ;
6850 PyObject * obj1 = 0 ;
6851 PyObject * obj2 = 0 ;
6852 PyObject * obj3 = 0 ;
6853 char * kwnames[] = {
6854 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
6855 };
6856
6857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6858 ecode1 = SWIG_AsVal_int(obj0, &val1);
6859 if (!SWIG_IsOK(ecode1)) {
6860 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
6861 }
6862 arg1 = static_cast< int >(val1);
6863 ecode2 = SWIG_AsVal_int(obj1, &val2);
6864 if (!SWIG_IsOK(ecode2)) {
6865 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
6866 }
6867 arg2 = static_cast< int >(val2);
6868 {
8c9c423b
RD
6869 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6870 arg4 = (int)temp3;
fc46b7f3
RD
6871 }
6872 {
6873 if (obj3 != Py_None) {
8c9c423b
RD
6874 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
6875 arg6 = (int)temp5;
fc46b7f3
RD
6876 }
6877 }
6878 {
6879 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
6880 if (PyErr_Occurred()) SWIG_fail;
6881 }
6882 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6883 return resultobj;
6884fail:
6885 return NULL;
6886}
6887
6888
6889SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6890 PyObject *resultobj = 0;
6891 int arg1 ;
6892 int arg2 ;
6893 buffer arg3 ;
6894 int arg4 ;
6895 wxBitmap *result = 0 ;
6896 int val1 ;
6897 int ecode1 = 0 ;
6898 int val2 ;
6899 int ecode2 = 0 ;
8c9c423b 6900 Py_ssize_t temp3 ;
fc46b7f3
RD
6901 PyObject * obj0 = 0 ;
6902 PyObject * obj1 = 0 ;
6903 PyObject * obj2 = 0 ;
6904 char * kwnames[] = {
6905 (char *) "width",(char *) "height",(char *) "data", NULL
6906 };
6907
6908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6909 ecode1 = SWIG_AsVal_int(obj0, &val1);
6910 if (!SWIG_IsOK(ecode1)) {
6911 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
6912 }
6913 arg1 = static_cast< int >(val1);
6914 ecode2 = SWIG_AsVal_int(obj1, &val2);
6915 if (!SWIG_IsOK(ecode2)) {
6916 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
6917 }
6918 arg2 = static_cast< int >(val2);
6919 {
8c9c423b
RD
6920 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6921 arg4 = (int)temp3;
fc46b7f3
RD
6922 }
6923 {
6924 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
6925 if (PyErr_Occurred()) SWIG_fail;
6926 }
6927 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6928 return resultobj;
6929fail:
6930 return NULL;
6931}
6932
6933
6934SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6935 PyObject *resultobj = 0;
6936 int arg1 ;
6937 int arg2 ;
6938 buffer arg3 ;
6939 int arg4 ;
6940 wxBitmap *result = 0 ;
6941 int val1 ;
6942 int ecode1 = 0 ;
6943 int val2 ;
6944 int ecode2 = 0 ;
8c9c423b 6945 Py_ssize_t temp3 ;
fc46b7f3
RD
6946 PyObject * obj0 = 0 ;
6947 PyObject * obj1 = 0 ;
6948 PyObject * obj2 = 0 ;
6949 char * kwnames[] = {
6950 (char *) "width",(char *) "height",(char *) "data", NULL
6951 };
6952
6953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6954 ecode1 = SWIG_AsVal_int(obj0, &val1);
6955 if (!SWIG_IsOK(ecode1)) {
6956 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
6957 }
6958 arg1 = static_cast< int >(val1);
6959 ecode2 = SWIG_AsVal_int(obj1, &val2);
6960 if (!SWIG_IsOK(ecode2)) {
6961 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
6962 }
6963 arg2 = static_cast< int >(val2);
6964 {
8c9c423b
RD
6965 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6966 arg4 = (int)temp3;
fc46b7f3
RD
6967 }
6968 {
6969 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
6970 if (PyErr_Occurred()) SWIG_fail;
6971 }
6972 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6973 return resultobj;
6974fail:
6975 return NULL;
6976}
6977
6978
6979SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6980 PyObject *resultobj = 0;
6981 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6982 wxPoint result;
6983 void *argp1 = 0 ;
6984 int res1 = 0 ;
6985 PyObject *swig_obj[1] ;
6986
6987 if (!args) SWIG_fail;
6988 swig_obj[0] = args;
6989 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6990 if (!SWIG_IsOK(res1)) {
6991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6992 }
6993 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6994 {
6995 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
6996 if (PyErr_Occurred()) SWIG_fail;
6997 }
6998 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
6999 return resultobj;
7000fail:
7001 return NULL;
7002}
7003
7004
7005SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7006 PyObject *resultobj = 0;
7007 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7008 int result;
7009 void *argp1 = 0 ;
7010 int res1 = 0 ;
7011 PyObject *swig_obj[1] ;
7012
7013 if (!args) SWIG_fail;
7014 swig_obj[0] = args;
7015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7016 if (!SWIG_IsOK(res1)) {
7017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7018 }
7019 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7020 {
7021 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7022 if (PyErr_Occurred()) SWIG_fail;
7023 }
7024 resultobj = SWIG_From_int(static_cast< int >(result));
7025 return resultobj;
7026fail:
7027 return NULL;
7028}
7029
7030
7031SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7032 PyObject *resultobj = 0;
7033 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7034 int result;
7035 void *argp1 = 0 ;
7036 int res1 = 0 ;
7037 PyObject *swig_obj[1] ;
7038
7039 if (!args) SWIG_fail;
7040 swig_obj[0] = args;
7041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7042 if (!SWIG_IsOK(res1)) {
7043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7044 }
7045 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7046 {
7047 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7048 if (PyErr_Occurred()) SWIG_fail;
7049 }
7050 resultobj = SWIG_From_int(static_cast< int >(result));
7051 return resultobj;
7052fail:
7053 return NULL;
7054}
7055
7056
7057SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7058 PyObject *resultobj = 0;
7059 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7060 wxSize result;
7061 void *argp1 = 0 ;
7062 int res1 = 0 ;
7063 PyObject *swig_obj[1] ;
7064
7065 if (!args) SWIG_fail;
7066 swig_obj[0] = args;
7067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7068 if (!SWIG_IsOK(res1)) {
7069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7070 }
7071 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7072 {
7073 result = ((wxPixelDataBase const *)arg1)->GetSize();
7074 if (PyErr_Occurred()) SWIG_fail;
7075 }
7076 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7077 return resultobj;
7078fail:
7079 return NULL;
7080}
7081
7082
7083SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7084 PyObject *resultobj = 0;
7085 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7086 int result;
7087 void *argp1 = 0 ;
7088 int res1 = 0 ;
7089 PyObject *swig_obj[1] ;
7090
7091 if (!args) SWIG_fail;
7092 swig_obj[0] = args;
7093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7094 if (!SWIG_IsOK(res1)) {
7095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7096 }
7097 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7098 {
7099 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7100 if (PyErr_Occurred()) SWIG_fail;
7101 }
7102 resultobj = SWIG_From_int(static_cast< int >(result));
7103 return resultobj;
7104fail:
7105 return NULL;
7106}
7107
7108
7109SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7110 PyObject *obj;
7111 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7112 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7113 return SWIG_Py_Void();
7114}
7115
7116SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7117 PyObject *resultobj = 0;
7118 wxBitmap *arg1 = 0 ;
7119 wxNativePixelData *result = 0 ;
7120 void *argp1 = 0 ;
7121 int res1 = 0 ;
7122
7123 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7125 if (!SWIG_IsOK(res1)) {
7126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7127 }
7128 if (!argp1) {
7129 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7130 }
7131 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7132 {
7133 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7134 if (PyErr_Occurred()) SWIG_fail;
7135 }
7136 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7137 return resultobj;
7138fail:
7139 return NULL;
7140}
7141
7142
7143SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7144 PyObject *resultobj = 0;
7145 wxBitmap *arg1 = 0 ;
7146 wxRect *arg2 = 0 ;
7147 wxNativePixelData *result = 0 ;
7148 void *argp1 = 0 ;
7149 int res1 = 0 ;
7150 wxRect temp2 ;
7151
7152 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7153 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7154 if (!SWIG_IsOK(res1)) {
7155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7156 }
7157 if (!argp1) {
7158 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7159 }
7160 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7161 {
7162 arg2 = &temp2;
7163 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7164 }
7165 {
7166 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7167 if (PyErr_Occurred()) SWIG_fail;
7168 }
7169 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7170 return resultobj;
7171fail:
7172 return NULL;
7173}
7174
7175
7176SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7177 PyObject *resultobj = 0;
7178 wxBitmap *arg1 = 0 ;
7179 wxPoint *arg2 = 0 ;
7180 wxSize *arg3 = 0 ;
7181 wxNativePixelData *result = 0 ;
7182 void *argp1 = 0 ;
7183 int res1 = 0 ;
7184 wxPoint temp2 ;
7185 wxSize temp3 ;
7186
7187 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7189 if (!SWIG_IsOK(res1)) {
7190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7191 }
7192 if (!argp1) {
7193 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7194 }
7195 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7196 {
7197 arg2 = &temp2;
7198 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7199 }
7200 {
7201 arg3 = &temp3;
7202 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7203 }
7204 {
7205 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7206 if (PyErr_Occurred()) SWIG_fail;
7207 }
7208 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7209 return resultobj;
7210fail:
7211 return NULL;
7212}
7213
7214
7215SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7216 int argc;
7217 PyObject *argv[4];
7218
7219 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7220 --argc;
7221 if (argc == 1) {
7222 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7223 }
7224 if (argc == 2) {
7225 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7226 }
7227 if (argc == 3) {
7228 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7229 }
7230
7231fail:
7232 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7233 return NULL;
7234}
7235
7236
7237SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7238 PyObject *resultobj = 0;
7239 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7240 void *argp1 = 0 ;
7241 int res1 = 0 ;
7242 PyObject *swig_obj[1] ;
7243
7244 if (!args) SWIG_fail;
7245 swig_obj[0] = args;
7246 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7247 if (!SWIG_IsOK(res1)) {
7248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7249 }
7250 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7251 {
7252 delete arg1;
7253
7254 if (PyErr_Occurred()) SWIG_fail;
7255 }
7256 resultobj = SWIG_Py_Void();
7257 return resultobj;
7258fail:
7259 return NULL;
7260}
7261
7262
7263SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7264 PyObject *resultobj = 0;
7265 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7266 wxNativePixelData_Accessor result;
7267 void *argp1 = 0 ;
7268 int res1 = 0 ;
7269 PyObject *swig_obj[1] ;
7270
7271 if (!args) SWIG_fail;
7272 swig_obj[0] = args;
7273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7274 if (!SWIG_IsOK(res1)) {
7275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7276 }
7277 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7278 {
7279 result = ((wxNativePixelData const *)arg1)->GetPixels();
7280 if (PyErr_Occurred()) SWIG_fail;
7281 }
7282 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7283 return resultobj;
7284fail:
7285 return NULL;
7286}
7287
7288
7289SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7290 PyObject *resultobj = 0;
7291 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7292 void *argp1 = 0 ;
7293 int res1 = 0 ;
7294 PyObject *swig_obj[1] ;
7295
7296 if (!args) SWIG_fail;
7297 swig_obj[0] = args;
7298 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7299 if (!SWIG_IsOK(res1)) {
7300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7301 }
7302 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7303 {
7304 (arg1)->UseAlpha();
7305 if (PyErr_Occurred()) SWIG_fail;
7306 }
7307 resultobj = SWIG_Py_Void();
7308 return resultobj;
7309fail:
7310 return NULL;
7311}
7312
7313
7314SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7315 PyObject *resultobj = 0;
7316 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7317 bool result;
7318 void *argp1 = 0 ;
7319 int res1 = 0 ;
7320 PyObject *swig_obj[1] ;
7321
7322 if (!args) SWIG_fail;
7323 swig_obj[0] = args;
7324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7325 if (!SWIG_IsOK(res1)) {
7326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7327 }
7328 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7329 {
7330 result = (bool)wxNativePixelData___nonzero__(arg1);
7331 if (PyErr_Occurred()) SWIG_fail;
7332 }
7333 {
7334 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7335 }
7336 return resultobj;
7337fail:
7338 return NULL;
7339}
7340
7341
7342SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7343 PyObject *obj;
7344 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7345 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7346 return SWIG_Py_Void();
7347}
7348
7349SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7350 return SWIG_Python_InitShadowInstance(args);
7351}
7352
7353SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7354 PyObject *resultobj = 0;
7355 wxNativePixelData *arg1 = 0 ;
7356 wxNativePixelData_Accessor *result = 0 ;
7357 void *argp1 = 0 ;
7358 int res1 = 0 ;
7359
7360 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7362 if (!SWIG_IsOK(res1)) {
7363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7364 }
7365 if (!argp1) {
7366 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7367 }
7368 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7369 {
7370 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7371 if (PyErr_Occurred()) SWIG_fail;
7372 }
7373 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7374 return resultobj;
7375fail:
7376 return NULL;
7377}
7378
7379
7380SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7381 PyObject *resultobj = 0;
7382 wxBitmap *arg1 = 0 ;
7383 wxNativePixelData *arg2 = 0 ;
7384 wxNativePixelData_Accessor *result = 0 ;
7385 void *argp1 = 0 ;
7386 int res1 = 0 ;
7387 void *argp2 = 0 ;
7388 int res2 = 0 ;
7389
7390 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7392 if (!SWIG_IsOK(res1)) {
7393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7394 }
7395 if (!argp1) {
7396 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7397 }
7398 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7399 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7400 if (!SWIG_IsOK(res2)) {
7401 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7402 }
7403 if (!argp2) {
7404 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7405 }
7406 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7407 {
7408 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7409 if (PyErr_Occurred()) SWIG_fail;
7410 }
7411 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7412 return resultobj;
7413fail:
7414 return NULL;
7415}
7416
7417
7418SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7419 PyObject *resultobj = 0;
7420 wxNativePixelData_Accessor *result = 0 ;
7421
7422 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7423 {
7424 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7425 if (PyErr_Occurred()) SWIG_fail;
7426 }
7427 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7428 return resultobj;
7429fail:
7430 return NULL;
7431}
7432
7433
7434SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7435 int argc;
7436 PyObject *argv[3];
7437
7438 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7439 --argc;
7440 if (argc == 0) {
7441 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7442 }
7443 if (argc == 1) {
7444 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7445 }
7446 if (argc == 2) {
7447 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7448 }
7449
7450fail:
7451 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7452 return NULL;
7453}
7454
7455
7456SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7457 PyObject *resultobj = 0;
7458 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7459 void *argp1 = 0 ;
7460 int res1 = 0 ;
7461 PyObject *swig_obj[1] ;
7462
7463 if (!args) SWIG_fail;
7464 swig_obj[0] = args;
7465 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7466 if (!SWIG_IsOK(res1)) {
7467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7468 }
7469 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7470 {
7471 delete arg1;
7472
7473 if (PyErr_Occurred()) SWIG_fail;
7474 }
7475 resultobj = SWIG_Py_Void();
7476 return resultobj;
7477fail:
7478 return NULL;
7479}
7480
7481
7482SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7483 PyObject *resultobj = 0;
7484 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7485 wxNativePixelData *arg2 = 0 ;
7486 void *argp1 = 0 ;
7487 int res1 = 0 ;
7488 void *argp2 = 0 ;
7489 int res2 = 0 ;
7490 PyObject * obj0 = 0 ;
7491 PyObject * obj1 = 0 ;
7492 char * kwnames[] = {
7493 (char *) "self",(char *) "data", NULL
7494 };
7495
7496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7498 if (!SWIG_IsOK(res1)) {
7499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7500 }
7501 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7502 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7503 if (!SWIG_IsOK(res2)) {
7504 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7505 }
7506 if (!argp2) {
7507 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7508 }
7509 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7510 {
7511 (arg1)->Reset((wxNativePixelData const &)*arg2);
7512 if (PyErr_Occurred()) SWIG_fail;
7513 }
7514 resultobj = SWIG_Py_Void();
7515 return resultobj;
7516fail:
7517 return NULL;
7518}
7519
7520
7521SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7522 PyObject *resultobj = 0;
7523 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7524 bool result;
7525 void *argp1 = 0 ;
7526 int res1 = 0 ;
7527 PyObject *swig_obj[1] ;
7528
7529 if (!args) SWIG_fail;
7530 swig_obj[0] = args;
7531 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7532 if (!SWIG_IsOK(res1)) {
7533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7534 }
7535 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7536 {
7537 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7538 if (PyErr_Occurred()) SWIG_fail;
7539 }
7540 {
7541 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7542 }
7543 return resultobj;
7544fail:
7545 return NULL;
7546}
7547
7548
7549SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7550 PyObject *resultobj = 0;
7551 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7552 void *argp1 = 0 ;
7553 int res1 = 0 ;
7554 PyObject *swig_obj[1] ;
7555
7556 if (!args) SWIG_fail;
7557 swig_obj[0] = args;
7558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7559 if (!SWIG_IsOK(res1)) {
7560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7561 }
7562 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7563 {
7564 wxNativePixelData_Accessor_nextPixel(arg1);
7565 if (PyErr_Occurred()) SWIG_fail;
7566 }
7567 resultobj = SWIG_Py_Void();
7568 return resultobj;
7569fail:
7570 return NULL;
7571}
7572
7573
7574SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7575 PyObject *resultobj = 0;
7576 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7577 wxNativePixelData *arg2 = 0 ;
7578 int arg3 ;
7579 int arg4 ;
7580 void *argp1 = 0 ;
7581 int res1 = 0 ;
7582 void *argp2 = 0 ;
7583 int res2 = 0 ;
7584 int val3 ;
7585 int ecode3 = 0 ;
7586 int val4 ;
7587 int ecode4 = 0 ;
7588 PyObject * obj0 = 0 ;
7589 PyObject * obj1 = 0 ;
7590 PyObject * obj2 = 0 ;
7591 PyObject * obj3 = 0 ;
7592 char * kwnames[] = {
7593 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7594 };
7595
7596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7598 if (!SWIG_IsOK(res1)) {
7599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7600 }
7601 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7602 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7603 if (!SWIG_IsOK(res2)) {
7604 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7605 }
7606 if (!argp2) {
7607 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7608 }
7609 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7610 ecode3 = SWIG_AsVal_int(obj2, &val3);
7611 if (!SWIG_IsOK(ecode3)) {
7612 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7613 }
7614 arg3 = static_cast< int >(val3);
7615 ecode4 = SWIG_AsVal_int(obj3, &val4);
7616 if (!SWIG_IsOK(ecode4)) {
7617 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7618 }
7619 arg4 = static_cast< int >(val4);
7620 {
7621 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7622 if (PyErr_Occurred()) SWIG_fail;
7623 }
7624 resultobj = SWIG_Py_Void();
7625 return resultobj;
7626fail:
7627 return NULL;
7628}
7629
7630
7631SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7632 PyObject *resultobj = 0;
7633 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7634 wxNativePixelData *arg2 = 0 ;
7635 int arg3 ;
7636 void *argp1 = 0 ;
7637 int res1 = 0 ;
7638 void *argp2 = 0 ;
7639 int res2 = 0 ;
7640 int val3 ;
7641 int ecode3 = 0 ;
7642 PyObject * obj0 = 0 ;
7643 PyObject * obj1 = 0 ;
7644 PyObject * obj2 = 0 ;
7645 char * kwnames[] = {
7646 (char *) "self",(char *) "data",(char *) "x", NULL
7647 };
7648
7649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7651 if (!SWIG_IsOK(res1)) {
7652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7653 }
7654 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7655 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7656 if (!SWIG_IsOK(res2)) {
7657 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7658 }
7659 if (!argp2) {
7660 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7661 }
7662 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7663 ecode3 = SWIG_AsVal_int(obj2, &val3);
7664 if (!SWIG_IsOK(ecode3)) {
7665 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7666 }
7667 arg3 = static_cast< int >(val3);
7668 {
7669 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7670 if (PyErr_Occurred()) SWIG_fail;
7671 }
7672 resultobj = SWIG_Py_Void();
7673 return resultobj;
7674fail:
7675 return NULL;
7676}
7677
7678
7679SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7680 PyObject *resultobj = 0;
7681 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7682 wxNativePixelData *arg2 = 0 ;
7683 int arg3 ;
7684 void *argp1 = 0 ;
7685 int res1 = 0 ;
7686 void *argp2 = 0 ;
7687 int res2 = 0 ;
7688 int val3 ;
7689 int ecode3 = 0 ;
7690 PyObject * obj0 = 0 ;
7691 PyObject * obj1 = 0 ;
7692 PyObject * obj2 = 0 ;
7693 char * kwnames[] = {
7694 (char *) "self",(char *) "data",(char *) "y", NULL
7695 };
7696
7697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7699 if (!SWIG_IsOK(res1)) {
7700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7701 }
7702 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7703 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7704 if (!SWIG_IsOK(res2)) {
7705 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7706 }
7707 if (!argp2) {
7708 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7709 }
7710 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7711 ecode3 = SWIG_AsVal_int(obj2, &val3);
7712 if (!SWIG_IsOK(ecode3)) {
7713 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
7714 }
7715 arg3 = static_cast< int >(val3);
7716 {
7717 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
7718 if (PyErr_Occurred()) SWIG_fail;
7719 }
7720 resultobj = SWIG_Py_Void();
7721 return resultobj;
7722fail:
7723 return NULL;
7724}
7725
7726
7727SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7728 PyObject *resultobj = 0;
7729 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7730 wxNativePixelData *arg2 = 0 ;
7731 int arg3 ;
7732 int arg4 ;
7733 void *argp1 = 0 ;
7734 int res1 = 0 ;
7735 void *argp2 = 0 ;
7736 int res2 = 0 ;
7737 int val3 ;
7738 int ecode3 = 0 ;
7739 int val4 ;
7740 int ecode4 = 0 ;
7741 PyObject * obj0 = 0 ;
7742 PyObject * obj1 = 0 ;
7743 PyObject * obj2 = 0 ;
7744 PyObject * obj3 = 0 ;
7745 char * kwnames[] = {
7746 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7747 };
7748
7749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7751 if (!SWIG_IsOK(res1)) {
7752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7753 }
7754 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7755 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7756 if (!SWIG_IsOK(res2)) {
7757 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7758 }
7759 if (!argp2) {
7760 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7761 }
7762 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7763 ecode3 = SWIG_AsVal_int(obj2, &val3);
7764 if (!SWIG_IsOK(ecode3)) {
7765 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
7766 }
7767 arg3 = static_cast< int >(val3);
7768 ecode4 = SWIG_AsVal_int(obj3, &val4);
7769 if (!SWIG_IsOK(ecode4)) {
7770 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
7771 }
7772 arg4 = static_cast< int >(val4);
7773 {
7774 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
7775 if (PyErr_Occurred()) SWIG_fail;
7776 }
7777 resultobj = SWIG_Py_Void();
7778 return resultobj;
7779fail:
7780 return NULL;
7781}
7782
7783
7784SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7785 PyObject *resultobj = 0;
7786 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7787 byte arg2 ;
7788 byte arg3 ;
7789 byte arg4 ;
7790 void *argp1 = 0 ;
7791 int res1 = 0 ;
7792 unsigned char val2 ;
7793 int ecode2 = 0 ;
7794 unsigned char val3 ;
7795 int ecode3 = 0 ;
7796 unsigned char val4 ;
7797 int ecode4 = 0 ;
7798 PyObject * obj0 = 0 ;
7799 PyObject * obj1 = 0 ;
7800 PyObject * obj2 = 0 ;
7801 PyObject * obj3 = 0 ;
7802 char * kwnames[] = {
7803 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
7804 };
7805
7806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7808 if (!SWIG_IsOK(res1)) {
7809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7810 }
7811 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7812 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
7813 if (!SWIG_IsOK(ecode2)) {
7814 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
7815 }
7816 arg2 = static_cast< byte >(val2);
7817 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
7818 if (!SWIG_IsOK(ecode3)) {
7819 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
7820 }
7821 arg3 = static_cast< byte >(val3);
7822 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
7823 if (!SWIG_IsOK(ecode4)) {
7824 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
7825 }
7826 arg4 = static_cast< byte >(val4);
7827 {
7828 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
7829 if (PyErr_Occurred()) SWIG_fail;
7830 }
7831 resultobj = SWIG_Py_Void();
7832 return resultobj;
7833fail:
7834 return NULL;
7835}
7836
7837
7838SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7839 PyObject *resultobj = 0;
7840 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7841 PyObject *result = 0 ;
7842 void *argp1 = 0 ;
7843 int res1 = 0 ;
7844 PyObject *swig_obj[1] ;
7845
7846 if (!args) SWIG_fail;
7847 swig_obj[0] = args;
7848 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7849 if (!SWIG_IsOK(res1)) {
7850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7851 }
7852 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7853 {
7854 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
7855 if (PyErr_Occurred()) SWIG_fail;
7856 }
7857 resultobj = result;
7858 return resultobj;
7859fail:
7860 return NULL;
7861}
7862
7863
7864SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7865 PyObject *obj;
7866 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7867 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
7868 return SWIG_Py_Void();
7869}
7870
7871SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7872 return SWIG_Python_InitShadowInstance(args);
7873}
7874
7875SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7876 PyObject *resultobj = 0;
7877 wxBitmap *arg1 = 0 ;
7878 wxAlphaPixelData *result = 0 ;
7879 void *argp1 = 0 ;
7880 int res1 = 0 ;
7881
7882 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7884 if (!SWIG_IsOK(res1)) {
7885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7886 }
7887 if (!argp1) {
7888 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7889 }
7890 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7891 {
7892 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
7893 if (PyErr_Occurred()) SWIG_fail;
7894 }
7895 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7896 return resultobj;
7897fail:
7898 return NULL;
7899}
7900
7901
7902SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7903 PyObject *resultobj = 0;
7904 wxBitmap *arg1 = 0 ;
7905 wxRect *arg2 = 0 ;
7906 wxAlphaPixelData *result = 0 ;
7907 void *argp1 = 0 ;
7908 int res1 = 0 ;
7909 wxRect temp2 ;
7910
7911 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7913 if (!SWIG_IsOK(res1)) {
7914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7915 }
7916 if (!argp1) {
7917 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7918 }
7919 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7920 {
7921 arg2 = &temp2;
7922 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7923 }
7924 {
7925 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
7926 if (PyErr_Occurred()) SWIG_fail;
7927 }
7928 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7929 return resultobj;
7930fail:
7931 return NULL;
7932}
7933
7934
7935SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7936 PyObject *resultobj = 0;
7937 wxBitmap *arg1 = 0 ;
7938 wxPoint *arg2 = 0 ;
7939 wxSize *arg3 = 0 ;
7940 wxAlphaPixelData *result = 0 ;
7941 void *argp1 = 0 ;
7942 int res1 = 0 ;
7943 wxPoint temp2 ;
7944 wxSize temp3 ;
7945
7946 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7947 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7948 if (!SWIG_IsOK(res1)) {
7949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7950 }
7951 if (!argp1) {
7952 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7953 }
7954 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7955 {
7956 arg2 = &temp2;
7957 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7958 }
7959 {
7960 arg3 = &temp3;
7961 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7962 }
7963 {
7964 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7965 if (PyErr_Occurred()) SWIG_fail;
7966 }
7967 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7968 return resultobj;
7969fail:
7970 return NULL;
7971}
7972
7973
7974SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
7975 int argc;
7976 PyObject *argv[4];
7977
7978 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
7979 --argc;
7980 if (argc == 1) {
7981 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
7982 }
7983 if (argc == 2) {
7984 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
7985 }
7986 if (argc == 3) {
7987 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
7988 }
7989
7990fail:
7991 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
7992 return NULL;
7993}
7994
7995
7996SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7997 PyObject *resultobj = 0;
7998 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
7999 void *argp1 = 0 ;
8000 int res1 = 0 ;
8001 PyObject *swig_obj[1] ;
8002
8003 if (!args) SWIG_fail;
8004 swig_obj[0] = args;
8005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8006 if (!SWIG_IsOK(res1)) {
8007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8008 }
8009 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8010 {
8011 delete arg1;
8012
8013 if (PyErr_Occurred()) SWIG_fail;
8014 }
8015 resultobj = SWIG_Py_Void();
8016 return resultobj;
8017fail:
8018 return NULL;
8019}
8020
8021
8022SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8023 PyObject *resultobj = 0;
8024 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8025 wxAlphaPixelData_Accessor result;
8026 void *argp1 = 0 ;
8027 int res1 = 0 ;
8028 PyObject *swig_obj[1] ;
8029
8030 if (!args) SWIG_fail;
8031 swig_obj[0] = args;
8032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8033 if (!SWIG_IsOK(res1)) {
8034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8035 }
8036 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8037 {
8038 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8039 if (PyErr_Occurred()) SWIG_fail;
8040 }
8041 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8042 return resultobj;
8043fail:
8044 return NULL;
8045}
8046
8047
8048SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8049 PyObject *resultobj = 0;
8050 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8051 void *argp1 = 0 ;
8052 int res1 = 0 ;
8053 PyObject *swig_obj[1] ;
8054
8055 if (!args) SWIG_fail;
8056 swig_obj[0] = args;
8057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8058 if (!SWIG_IsOK(res1)) {
8059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8060 }
8061 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8062 {
8063 (arg1)->UseAlpha();
8064 if (PyErr_Occurred()) SWIG_fail;
8065 }
8066 resultobj = SWIG_Py_Void();
8067 return resultobj;
8068fail:
8069 return NULL;
8070}
8071
8072
8073SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8074 PyObject *resultobj = 0;
8075 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8076 bool result;
8077 void *argp1 = 0 ;
8078 int res1 = 0 ;
8079 PyObject *swig_obj[1] ;
8080
8081 if (!args) SWIG_fail;
8082 swig_obj[0] = args;
8083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8084 if (!SWIG_IsOK(res1)) {
8085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8086 }
8087 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8088 {
8089 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8090 if (PyErr_Occurred()) SWIG_fail;
8091 }
8092 {
8093 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8094 }
8095 return resultobj;
8096fail:
8097 return NULL;
8098}
8099
8100
8101SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8102 PyObject *obj;
8103 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8104 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8105 return SWIG_Py_Void();
8106}
8107
8108SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8109 return SWIG_Python_InitShadowInstance(args);
8110}
8111
8112SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8113 PyObject *resultobj = 0;
8114 wxAlphaPixelData *arg1 = 0 ;
8115 wxAlphaPixelData_Accessor *result = 0 ;
8116 void *argp1 = 0 ;
8117 int res1 = 0 ;
8118
8119 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8121 if (!SWIG_IsOK(res1)) {
8122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8123 }
8124 if (!argp1) {
8125 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8126 }
8127 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8128 {
8129 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8130 if (PyErr_Occurred()) SWIG_fail;
8131 }
8132 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8133 return resultobj;
8134fail:
8135 return NULL;
8136}
8137
8138
8139SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8140 PyObject *resultobj = 0;
8141 wxBitmap *arg1 = 0 ;
8142 wxAlphaPixelData *arg2 = 0 ;
8143 wxAlphaPixelData_Accessor *result = 0 ;
8144 void *argp1 = 0 ;
8145 int res1 = 0 ;
8146 void *argp2 = 0 ;
8147 int res2 = 0 ;
8148
8149 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8150 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8151 if (!SWIG_IsOK(res1)) {
8152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8153 }
8154 if (!argp1) {
8155 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8156 }
8157 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8158 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8159 if (!SWIG_IsOK(res2)) {
8160 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8161 }
8162 if (!argp2) {
8163 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8164 }
8165 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8166 {
8167 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8168 if (PyErr_Occurred()) SWIG_fail;
8169 }
8170 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8171 return resultobj;
8172fail:
8173 return NULL;
8174}
8175
8176
8177SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8178 PyObject *resultobj = 0;
8179 wxAlphaPixelData_Accessor *result = 0 ;
8180
8181 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8182 {
8183 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8184 if (PyErr_Occurred()) SWIG_fail;
8185 }
8186 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8187 return resultobj;
8188fail:
8189 return NULL;
8190}
8191
8192
8193SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8194 int argc;
8195 PyObject *argv[3];
8196
8197 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8198 --argc;
8199 if (argc == 0) {
8200 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8201 }
8202 if (argc == 1) {
8203 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8204 }
8205 if (argc == 2) {
8206 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8207 }
8208
8209fail:
8210 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8211 return NULL;
8212}
8213
8214
8215SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8216 PyObject *resultobj = 0;
8217 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8218 void *argp1 = 0 ;
8219 int res1 = 0 ;
8220 PyObject *swig_obj[1] ;
8221
8222 if (!args) SWIG_fail;
8223 swig_obj[0] = args;
8224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8225 if (!SWIG_IsOK(res1)) {
8226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8227 }
8228 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8229 {
8230 delete arg1;
8231
8232 if (PyErr_Occurred()) SWIG_fail;
8233 }
8234 resultobj = SWIG_Py_Void();
8235 return resultobj;
8236fail:
8237 return NULL;
8238}
8239
8240
8241SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8242 PyObject *resultobj = 0;
8243 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8244 wxAlphaPixelData *arg2 = 0 ;
8245 void *argp1 = 0 ;
8246 int res1 = 0 ;
8247 void *argp2 = 0 ;
8248 int res2 = 0 ;
8249 PyObject * obj0 = 0 ;
8250 PyObject * obj1 = 0 ;
8251 char * kwnames[] = {
8252 (char *) "self",(char *) "data", NULL
8253 };
8254
8255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8257 if (!SWIG_IsOK(res1)) {
8258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8259 }
8260 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8261 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8262 if (!SWIG_IsOK(res2)) {
8263 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8264 }
8265 if (!argp2) {
8266 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8267 }
8268 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8269 {
8270 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8271 if (PyErr_Occurred()) SWIG_fail;
8272 }
8273 resultobj = SWIG_Py_Void();
8274 return resultobj;
8275fail:
8276 return NULL;
8277}
8278
8279
8280SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8281 PyObject *resultobj = 0;
8282 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8283 bool result;
8284 void *argp1 = 0 ;
8285 int res1 = 0 ;
8286 PyObject *swig_obj[1] ;
8287
8288 if (!args) SWIG_fail;
8289 swig_obj[0] = args;
8290 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8291 if (!SWIG_IsOK(res1)) {
8292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8293 }
8294 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8295 {
8296 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8297 if (PyErr_Occurred()) SWIG_fail;
8298 }
8299 {
8300 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8301 }
8302 return resultobj;
8303fail:
8304 return NULL;
8305}
8306
8307
8308SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8309 PyObject *resultobj = 0;
8310 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8311 void *argp1 = 0 ;
8312 int res1 = 0 ;
8313 PyObject *swig_obj[1] ;
8314
8315 if (!args) SWIG_fail;
8316 swig_obj[0] = args;
8317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8318 if (!SWIG_IsOK(res1)) {
8319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8320 }
8321 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8322 {
8323 wxAlphaPixelData_Accessor_nextPixel(arg1);
8324 if (PyErr_Occurred()) SWIG_fail;
8325 }
8326 resultobj = SWIG_Py_Void();
8327 return resultobj;
8328fail:
8329 return NULL;
8330}
8331
8332
8333SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8334 PyObject *resultobj = 0;
8335 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8336 wxAlphaPixelData *arg2 = 0 ;
8337 int arg3 ;
8338 int arg4 ;
8339 void *argp1 = 0 ;
8340 int res1 = 0 ;
8341 void *argp2 = 0 ;
8342 int res2 = 0 ;
8343 int val3 ;
8344 int ecode3 = 0 ;
8345 int val4 ;
8346 int ecode4 = 0 ;
8347 PyObject * obj0 = 0 ;
8348 PyObject * obj1 = 0 ;
8349 PyObject * obj2 = 0 ;
8350 PyObject * obj3 = 0 ;
8351 char * kwnames[] = {
8352 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8353 };
8354
8355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8357 if (!SWIG_IsOK(res1)) {
8358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8359 }
8360 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8361 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8362 if (!SWIG_IsOK(res2)) {
8363 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8364 }
8365 if (!argp2) {
8366 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8367 }
8368 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8369 ecode3 = SWIG_AsVal_int(obj2, &val3);
8370 if (!SWIG_IsOK(ecode3)) {
8371 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8372 }
8373 arg3 = static_cast< int >(val3);
8374 ecode4 = SWIG_AsVal_int(obj3, &val4);
8375 if (!SWIG_IsOK(ecode4)) {
8376 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8377 }
8378 arg4 = static_cast< int >(val4);
8379 {
8380 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8381 if (PyErr_Occurred()) SWIG_fail;
8382 }
8383 resultobj = SWIG_Py_Void();
8384 return resultobj;
8385fail:
8386 return NULL;
8387}
8388
8389
8390SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8391 PyObject *resultobj = 0;
8392 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8393 wxAlphaPixelData *arg2 = 0 ;
8394 int arg3 ;
8395 void *argp1 = 0 ;
8396 int res1 = 0 ;
8397 void *argp2 = 0 ;
8398 int res2 = 0 ;
8399 int val3 ;
8400 int ecode3 = 0 ;
8401 PyObject * obj0 = 0 ;
8402 PyObject * obj1 = 0 ;
8403 PyObject * obj2 = 0 ;
8404 char * kwnames[] = {
8405 (char *) "self",(char *) "data",(char *) "x", NULL
8406 };
8407
8408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8410 if (!SWIG_IsOK(res1)) {
8411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8412 }
8413 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8414 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8415 if (!SWIG_IsOK(res2)) {
8416 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8417 }
8418 if (!argp2) {
8419 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8420 }
8421 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8422 ecode3 = SWIG_AsVal_int(obj2, &val3);
8423 if (!SWIG_IsOK(ecode3)) {
8424 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8425 }
8426 arg3 = static_cast< int >(val3);
8427 {
8428 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8429 if (PyErr_Occurred()) SWIG_fail;
8430 }
8431 resultobj = SWIG_Py_Void();
8432 return resultobj;
8433fail:
8434 return NULL;
8435}
8436
8437
8438SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8439 PyObject *resultobj = 0;
8440 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8441 wxAlphaPixelData *arg2 = 0 ;
8442 int arg3 ;
8443 void *argp1 = 0 ;
8444 int res1 = 0 ;
8445 void *argp2 = 0 ;
8446 int res2 = 0 ;
8447 int val3 ;
8448 int ecode3 = 0 ;
8449 PyObject * obj0 = 0 ;
8450 PyObject * obj1 = 0 ;
8451 PyObject * obj2 = 0 ;
8452 char * kwnames[] = {
8453 (char *) "self",(char *) "data",(char *) "y", NULL
8454 };
8455
8456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8458 if (!SWIG_IsOK(res1)) {
8459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8460 }
8461 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8462 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8463 if (!SWIG_IsOK(res2)) {
8464 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8465 }
8466 if (!argp2) {
8467 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8468 }
8469 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8470 ecode3 = SWIG_AsVal_int(obj2, &val3);
8471 if (!SWIG_IsOK(ecode3)) {
8472 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8473 }
8474 arg3 = static_cast< int >(val3);
8475 {
8476 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8477 if (PyErr_Occurred()) SWIG_fail;
8478 }
8479 resultobj = SWIG_Py_Void();
8480 return resultobj;
8481fail:
8482 return NULL;
8483}
8484
8485
8486SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8487 PyObject *resultobj = 0;
8488 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8489 wxAlphaPixelData *arg2 = 0 ;
8490 int arg3 ;
8491 int arg4 ;
8492 void *argp1 = 0 ;
8493 int res1 = 0 ;
8494 void *argp2 = 0 ;
8495 int res2 = 0 ;
8496 int val3 ;
8497 int ecode3 = 0 ;
8498 int val4 ;
8499 int ecode4 = 0 ;
8500 PyObject * obj0 = 0 ;
8501 PyObject * obj1 = 0 ;
8502 PyObject * obj2 = 0 ;
8503 PyObject * obj3 = 0 ;
8504 char * kwnames[] = {
8505 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8506 };
8507
8508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8510 if (!SWIG_IsOK(res1)) {
8511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8512 }
8513 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8514 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8515 if (!SWIG_IsOK(res2)) {
8516 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8517 }
8518 if (!argp2) {
8519 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8520 }
8521 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8522 ecode3 = SWIG_AsVal_int(obj2, &val3);
8523 if (!SWIG_IsOK(ecode3)) {
8524 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8525 }
8526 arg3 = static_cast< int >(val3);
8527 ecode4 = SWIG_AsVal_int(obj3, &val4);
8528 if (!SWIG_IsOK(ecode4)) {
8529 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8530 }
8531 arg4 = static_cast< int >(val4);
8532 {
8533 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8534 if (PyErr_Occurred()) SWIG_fail;
8535 }
8536 resultobj = SWIG_Py_Void();
8537 return resultobj;
8538fail:
8539 return NULL;
8540}
8541
8542
8543SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8544 PyObject *resultobj = 0;
8545 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8546 byte arg2 ;
8547 byte arg3 ;
8548 byte arg4 ;
8549 byte arg5 ;
8550 void *argp1 = 0 ;
8551 int res1 = 0 ;
8552 unsigned char val2 ;
8553 int ecode2 = 0 ;
8554 unsigned char val3 ;
8555 int ecode3 = 0 ;
8556 unsigned char val4 ;
8557 int ecode4 = 0 ;
8558 unsigned char val5 ;
8559 int ecode5 = 0 ;
8560 PyObject * obj0 = 0 ;
8561 PyObject * obj1 = 0 ;
8562 PyObject * obj2 = 0 ;
8563 PyObject * obj3 = 0 ;
8564 PyObject * obj4 = 0 ;
8565 char * kwnames[] = {
8566 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8567 };
8568
8569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8571 if (!SWIG_IsOK(res1)) {
8572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8573 }
8574 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8575 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8576 if (!SWIG_IsOK(ecode2)) {
8577 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8578 }
8579 arg2 = static_cast< byte >(val2);
8580 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8581 if (!SWIG_IsOK(ecode3)) {
8582 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8583 }
8584 arg3 = static_cast< byte >(val3);
8585 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8586 if (!SWIG_IsOK(ecode4)) {
8587 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8588 }
8589 arg4 = static_cast< byte >(val4);
8590 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8591 if (!SWIG_IsOK(ecode5)) {
8592 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8593 }
8594 arg5 = static_cast< byte >(val5);
8595 {
8596 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8597 if (PyErr_Occurred()) SWIG_fail;
1bd55598 8598 }
fc46b7f3 8599 resultobj = SWIG_Py_Void();
1bd55598
RD
8600 return resultobj;
8601fail:
8602 return NULL;
8603}
8604
8605
fc46b7f3 8606SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 8607 PyObject *resultobj = 0;
fc46b7f3
RD
8608 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8609 PyObject *result = 0 ;
1bd55598
RD
8610 void *argp1 = 0 ;
8611 int res1 = 0 ;
fc46b7f3 8612 PyObject *swig_obj[1] ;
1bd55598 8613
fc46b7f3
RD
8614 if (!args) SWIG_fail;
8615 swig_obj[0] = args;
8616 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
1bd55598 8617 if (!SWIG_IsOK(res1)) {
fc46b7f3 8618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
1bd55598 8619 }
fc46b7f3 8620 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
1bd55598 8621 {
fc46b7f3 8622 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
1bd55598
RD
8623 if (PyErr_Occurred()) SWIG_fail;
8624 }
fc46b7f3 8625 resultobj = result;
1bd55598
RD
8626 return resultobj;
8627fail:
8628 return NULL;
d55e5bfc
RD
8629}
8630
8631
fc46b7f3 8632SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
8633 PyObject *obj;
8634 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 8635 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
1bd55598 8636 return SWIG_Py_Void();
d55e5bfc
RD
8637}
8638
fc46b7f3 8639SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 8640 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
8641}
8642
1bd55598
RD
8643SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8644 PyObject *resultobj = 0;
8645 wxBitmap *arg1 = 0 ;
8646 wxColour const &arg2_defvalue = wxNullColour ;
8647 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8648 wxMask *result = 0 ;
8649 void *argp1 = 0 ;
8650 int res1 = 0 ;
8651 wxColour temp2 ;
8652 PyObject * obj0 = 0 ;
8653 PyObject * obj1 = 0 ;
8654 char * kwnames[] = {
8655 (char *) "bitmap",(char *) "colour", NULL
8656 };
8657
8658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8659 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8660 if (!SWIG_IsOK(res1)) {
8661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8662 }
8663 if (!argp1) {
8664 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8665 }
8666 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8667 if (obj1) {
d55e5bfc 8668 {
1bd55598
RD
8669 arg2 = &temp2;
8670 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 8671 }
1bd55598
RD
8672 }
8673 {
8674 if (!wxPyCheckForApp()) SWIG_fail;
8675 PyThreadState* __tstate = wxPyBeginAllowThreads();
8676 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8677 wxPyEndAllowThreads(__tstate);
8678 if (PyErr_Occurred()) SWIG_fail;
8679 }
8680 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
8681 return resultobj;
8682fail:
8683 return NULL;
d55e5bfc
RD
8684}
8685
8686
1bd55598
RD
8687SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8688 PyObject *resultobj = 0;
8689 wxMask *arg1 = (wxMask *) 0 ;
8690 void *argp1 = 0 ;
8691 int res1 = 0 ;
8692 PyObject *swig_obj[1] ;
8693
8694 if (!args) SWIG_fail;
8695 swig_obj[0] = args;
8696 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
8697 if (!SWIG_IsOK(res1)) {
8698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
8699 }
8700 arg1 = reinterpret_cast< wxMask * >(argp1);
8701 {
1bd55598 8702 delete arg1;
d55e5bfc 8703
1bd55598
RD
8704 if (PyErr_Occurred()) SWIG_fail;
8705 }
8706 resultobj = SWIG_Py_Void();
8707 return resultobj;
8708fail:
8709 return NULL;
8710}
8711
8712
8713SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8714 PyObject *obj;
8715 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8716 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
8717 return SWIG_Py_Void();
8718}
8719
8720SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8721 return SWIG_Python_InitShadowInstance(args);
8722}
8723
8724SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8725 PyObject *resultobj = 0;
8726 wxString *arg1 = 0 ;
8727 wxBitmapType arg2 ;
8728 int arg3 = (int) -1 ;
8729 int arg4 = (int) -1 ;
8730 wxIcon *result = 0 ;
8731 bool temp1 = false ;
8732 int val2 ;
8733 int ecode2 = 0 ;
8734 int val3 ;
8735 int ecode3 = 0 ;
8736 int val4 ;
8737 int ecode4 = 0 ;
8738 PyObject * obj0 = 0 ;
8739 PyObject * obj1 = 0 ;
8740 PyObject * obj2 = 0 ;
8741 PyObject * obj3 = 0 ;
8742 char * kwnames[] = {
8743 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
8744 };
8745
8746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8747 {
8748 arg1 = wxString_in_helper(obj0);
8749 if (arg1 == NULL) SWIG_fail;
8750 temp1 = true;
8751 }
8752 ecode2 = SWIG_AsVal_int(obj1, &val2);
8753 if (!SWIG_IsOK(ecode2)) {
8754 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
8755 }
8756 arg2 = static_cast< wxBitmapType >(val2);
8757 if (obj2) {
8758 ecode3 = SWIG_AsVal_int(obj2, &val3);
8759 if (!SWIG_IsOK(ecode3)) {
8760 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
8761 }
8762 arg3 = static_cast< int >(val3);
8763 }
8764 if (obj3) {
8765 ecode4 = SWIG_AsVal_int(obj3, &val4);
8766 if (!SWIG_IsOK(ecode4)) {
8767 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
8768 }
8769 arg4 = static_cast< int >(val4);
8770 }
8771 {
8772 if (!wxPyCheckForApp()) SWIG_fail;
8773 PyThreadState* __tstate = wxPyBeginAllowThreads();
8774 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
8775 wxPyEndAllowThreads(__tstate);
8776 if (PyErr_Occurred()) SWIG_fail;
8777 }
8778 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
8779 {
8780 if (temp1)
8781 delete arg1;
8782 }
8783 return resultobj;
8784fail:
8785 {
8786 if (temp1)
8787 delete arg1;
8788 }
8789 return NULL;
d55e5bfc
RD
8790}
8791
8792
1bd55598
RD
8793SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8794 PyObject *resultobj = 0;
8795 wxIcon *arg1 = (wxIcon *) 0 ;
8796 void *argp1 = 0 ;
8797 int res1 = 0 ;
8798 PyObject *swig_obj[1] ;
8799
8800 if (!args) SWIG_fail;
8801 swig_obj[0] = args;
8802 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
8803 if (!SWIG_IsOK(res1)) {
8804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
8805 }
8806 arg1 = reinterpret_cast< wxIcon * >(argp1);
8807 {
8808 PyThreadState* __tstate = wxPyBeginAllowThreads();
8809 delete arg1;
d55e5bfc 8810
1bd55598
RD
8811 wxPyEndAllowThreads(__tstate);
8812 if (PyErr_Occurred()) SWIG_fail;
8813 }
8814 resultobj = SWIG_Py_Void();
8815 return resultobj;
8816fail:
8817 return NULL;
d55e5bfc
RD
8818}
8819
8820
1bd55598
RD
8821SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8822 PyObject *resultobj = 0;
8823 wxIcon *result = 0 ;
8824
8825 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
8826 {
8827 if (!wxPyCheckForApp()) SWIG_fail;
8828 PyThreadState* __tstate = wxPyBeginAllowThreads();
8829 result = (wxIcon *)new wxIcon();
8830 wxPyEndAllowThreads(__tstate);
8831 if (PyErr_Occurred()) SWIG_fail;
8832 }
8833 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8834 return resultobj;
8835fail:
8836 return NULL;
8837}
8838
8839
8840SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8841 PyObject *resultobj = 0;
8842 wxIconLocation *arg1 = 0 ;
8843 wxIcon *result = 0 ;
8844 void *argp1 = 0 ;
8845 int res1 = 0 ;
8846 PyObject * obj0 = 0 ;
8847 char * kwnames[] = {
8848 (char *) "loc", NULL
8849 };
8850
8851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
8852 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
8853 if (!SWIG_IsOK(res1)) {
8854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8855 }
8856 if (!argp1) {
8857 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8858 }
8859 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
8860 {
8861 if (!wxPyCheckForApp()) SWIG_fail;
8862 PyThreadState* __tstate = wxPyBeginAllowThreads();
8863 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
8864 wxPyEndAllowThreads(__tstate);
8865 if (PyErr_Occurred()) SWIG_fail;
8866 }
8867 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8868 return resultobj;
8869fail:
8870 return NULL;
8871}
8872
8873
8874SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8875 PyObject *resultobj = 0;
8876 wxBitmap *arg1 = 0 ;
8877 wxIcon *result = 0 ;
8878 void *argp1 = 0 ;
8879 int res1 = 0 ;
8880 PyObject * obj0 = 0 ;
8881 char * kwnames[] = {
8882 (char *) "bmp", NULL
8883 };
8884
8885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
8886 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8887 if (!SWIG_IsOK(res1)) {
8888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8889 }
8890 if (!argp1) {
8891 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8892 }
8893 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8894 {
8895 if (!wxPyCheckForApp()) SWIG_fail;
8896 PyThreadState* __tstate = wxPyBeginAllowThreads();
8897 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
8898 wxPyEndAllowThreads(__tstate);
8899 if (PyErr_Occurred()) SWIG_fail;
8900 }
8901 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8902 return resultobj;
8903fail:
8904 return NULL;
d55e5bfc
RD
8905}
8906
8907
1bd55598
RD
8908SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8909 PyObject *resultobj = 0;
8910 PyObject *arg1 = (PyObject *) 0 ;
8911 wxIcon *result = 0 ;
8912 PyObject * obj0 = 0 ;
8913 char * kwnames[] = {
8914 (char *) "listOfStrings", NULL
8915 };
8916
8917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
8918 arg1 = obj0;
8919 {
8920 if (!wxPyCheckForApp()) SWIG_fail;
8921 PyThreadState* __tstate = wxPyBeginAllowThreads();
8922 result = (wxIcon *)new_wxIcon(arg1);
8923 wxPyEndAllowThreads(__tstate);
8924 if (PyErr_Occurred()) SWIG_fail;
8925 }
8926 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8927 return resultobj;
8928fail:
8929 return NULL;
d55e5bfc
RD
8930}
8931
8932
b39fe951 8933SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
8934 PyObject *resultobj = 0;
8935 wxIcon *arg1 = (wxIcon *) 0 ;
8936 bool result;
8937 void *argp1 = 0 ;
8938 int res1 = 0 ;
8939 PyObject *swig_obj[1] ;
8940
8941 if (!args) SWIG_fail;
8942 swig_obj[0] = args;
8943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8944 if (!SWIG_IsOK(res1)) {
b39fe951 8945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
1bd55598
RD
8946 }
8947 arg1 = reinterpret_cast< wxIcon * >(argp1);
8948 {
8949 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 8950 result = (bool)(arg1)->IsOk();
1bd55598
RD
8951 wxPyEndAllowThreads(__tstate);
8952 if (PyErr_Occurred()) SWIG_fail;
8953 }
8954 {
8955 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8956 }
8957 return resultobj;
8958fail:
8959 return NULL;
d55e5bfc
RD
8960}
8961
8962
1bd55598
RD
8963SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8964 PyObject *resultobj = 0;
8965 wxIcon *arg1 = (wxIcon *) 0 ;
8966 int result;
8967 void *argp1 = 0 ;
8968 int res1 = 0 ;
8969 PyObject *swig_obj[1] ;
8970
8971 if (!args) SWIG_fail;
8972 swig_obj[0] = args;
8973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8974 if (!SWIG_IsOK(res1)) {
8975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
8976 }
8977 arg1 = reinterpret_cast< wxIcon * >(argp1);
8978 {
8979 PyThreadState* __tstate = wxPyBeginAllowThreads();
8980 result = (int)(arg1)->GetWidth();
8981 wxPyEndAllowThreads(__tstate);
8982 if (PyErr_Occurred()) SWIG_fail;
8983 }
8984 resultobj = SWIG_From_int(static_cast< int >(result));
8985 return resultobj;
8986fail:
8987 return NULL;
d55e5bfc
RD
8988}
8989
8990
1bd55598
RD
8991SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8992 PyObject *resultobj = 0;
8993 wxIcon *arg1 = (wxIcon *) 0 ;
8994 int result;
8995 void *argp1 = 0 ;
8996 int res1 = 0 ;
8997 PyObject *swig_obj[1] ;
8998
8999 if (!args) SWIG_fail;
9000 swig_obj[0] = args;
9001 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9002 if (!SWIG_IsOK(res1)) {
9003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9004 }
9005 arg1 = reinterpret_cast< wxIcon * >(argp1);
9006 {
9007 PyThreadState* __tstate = wxPyBeginAllowThreads();
9008 result = (int)(arg1)->GetHeight();
9009 wxPyEndAllowThreads(__tstate);
9010 if (PyErr_Occurred()) SWIG_fail;
9011 }
9012 resultobj = SWIG_From_int(static_cast< int >(result));
9013 return resultobj;
9014fail:
9015 return NULL;
d55e5bfc
RD
9016}
9017
9018
1bd55598
RD
9019SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9020 PyObject *resultobj = 0;
9021 wxIcon *arg1 = (wxIcon *) 0 ;
9022 int result;
9023 void *argp1 = 0 ;
9024 int res1 = 0 ;
9025 PyObject *swig_obj[1] ;
9026
9027 if (!args) SWIG_fail;
9028 swig_obj[0] = args;
9029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9030 if (!SWIG_IsOK(res1)) {
9031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9032 }
9033 arg1 = reinterpret_cast< wxIcon * >(argp1);
9034 {
9035 PyThreadState* __tstate = wxPyBeginAllowThreads();
9036 result = (int)(arg1)->GetDepth();
9037 wxPyEndAllowThreads(__tstate);
9038 if (PyErr_Occurred()) SWIG_fail;
9039 }
9040 resultobj = SWIG_From_int(static_cast< int >(result));
9041 return resultobj;
9042fail:
9043 return NULL;
9044}
9045
9046
9047SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9048 PyObject *resultobj = 0;
9049 wxIcon *arg1 = (wxIcon *) 0 ;
9050 int arg2 ;
9051 void *argp1 = 0 ;
9052 int res1 = 0 ;
9053 int val2 ;
9054 int ecode2 = 0 ;
9055 PyObject * obj0 = 0 ;
9056 PyObject * obj1 = 0 ;
9057 char * kwnames[] = {
9058 (char *) "self",(char *) "w", NULL
9059 };
9060
9061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9063 if (!SWIG_IsOK(res1)) {
9064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9065 }
9066 arg1 = reinterpret_cast< wxIcon * >(argp1);
9067 ecode2 = SWIG_AsVal_int(obj1, &val2);
9068 if (!SWIG_IsOK(ecode2)) {
9069 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9070 }
9071 arg2 = static_cast< int >(val2);
9072 {
9073 PyThreadState* __tstate = wxPyBeginAllowThreads();
9074 (arg1)->SetWidth(arg2);
9075 wxPyEndAllowThreads(__tstate);
9076 if (PyErr_Occurred()) SWIG_fail;
9077 }
9078 resultobj = SWIG_Py_Void();
9079 return resultobj;
9080fail:
9081 return NULL;
9082}
9083
9084
9085SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9086 PyObject *resultobj = 0;
9087 wxIcon *arg1 = (wxIcon *) 0 ;
9088 int arg2 ;
9089 void *argp1 = 0 ;
9090 int res1 = 0 ;
9091 int val2 ;
9092 int ecode2 = 0 ;
9093 PyObject * obj0 = 0 ;
9094 PyObject * obj1 = 0 ;
9095 char * kwnames[] = {
9096 (char *) "self",(char *) "h", NULL
9097 };
9098
9099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9101 if (!SWIG_IsOK(res1)) {
9102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9103 }
9104 arg1 = reinterpret_cast< wxIcon * >(argp1);
9105 ecode2 = SWIG_AsVal_int(obj1, &val2);
9106 if (!SWIG_IsOK(ecode2)) {
9107 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9108 }
9109 arg2 = static_cast< int >(val2);
9110 {
9111 PyThreadState* __tstate = wxPyBeginAllowThreads();
9112 (arg1)->SetHeight(arg2);
9113 wxPyEndAllowThreads(__tstate);
9114 if (PyErr_Occurred()) SWIG_fail;
9115 }
9116 resultobj = SWIG_Py_Void();
9117 return resultobj;
9118fail:
9119 return NULL;
9120}
9121
9122
9123SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9124 PyObject *resultobj = 0;
9125 wxIcon *arg1 = (wxIcon *) 0 ;
9126 int arg2 ;
9127 void *argp1 = 0 ;
9128 int res1 = 0 ;
9129 int val2 ;
9130 int ecode2 = 0 ;
9131 PyObject * obj0 = 0 ;
9132 PyObject * obj1 = 0 ;
9133 char * kwnames[] = {
9134 (char *) "self",(char *) "d", NULL
9135 };
9136
9137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9139 if (!SWIG_IsOK(res1)) {
9140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9141 }
9142 arg1 = reinterpret_cast< wxIcon * >(argp1);
9143 ecode2 = SWIG_AsVal_int(obj1, &val2);
9144 if (!SWIG_IsOK(ecode2)) {
9145 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9146 }
9147 arg2 = static_cast< int >(val2);
9148 {
9149 PyThreadState* __tstate = wxPyBeginAllowThreads();
9150 (arg1)->SetDepth(arg2);
9151 wxPyEndAllowThreads(__tstate);
9152 if (PyErr_Occurred()) SWIG_fail;
9153 }
9154 resultobj = SWIG_Py_Void();
9155 return resultobj;
9156fail:
9157 return NULL;
9158}
9159
9160
9161SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9162 PyObject *resultobj = 0;
9163 wxIcon *arg1 = (wxIcon *) 0 ;
9164 wxBitmap *arg2 = 0 ;
9165 void *argp1 = 0 ;
9166 int res1 = 0 ;
9167 void *argp2 = 0 ;
9168 int res2 = 0 ;
9169 PyObject * obj0 = 0 ;
9170 PyObject * obj1 = 0 ;
9171 char * kwnames[] = {
9172 (char *) "self",(char *) "bmp", NULL
9173 };
9174
9175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9177 if (!SWIG_IsOK(res1)) {
9178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9179 }
9180 arg1 = reinterpret_cast< wxIcon * >(argp1);
9181 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9182 if (!SWIG_IsOK(res2)) {
9183 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9184 }
9185 if (!argp2) {
9186 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9187 }
9188 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9189 {
9190 PyThreadState* __tstate = wxPyBeginAllowThreads();
9191 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9192 wxPyEndAllowThreads(__tstate);
9193 if (PyErr_Occurred()) SWIG_fail;
9194 }
9195 resultobj = SWIG_Py_Void();
9196 return resultobj;
9197fail:
9198 return NULL;
d55e5bfc
RD
9199}
9200
9201
1bd55598
RD
9202SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9203 PyObject *obj;
9204 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9205 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9206 return SWIG_Py_Void();
d55e5bfc
RD
9207}
9208
1bd55598
RD
9209SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9210 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
9211}
9212
1bd55598
RD
9213SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9214 PyObject *resultobj = 0;
9215 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9216 int arg2 = (int) 0 ;
9217 wxIconLocation *result = 0 ;
9218 bool temp1 = false ;
9219 int val2 ;
9220 int ecode2 = 0 ;
9221 PyObject * obj0 = 0 ;
9222 PyObject * obj1 = 0 ;
9223 char * kwnames[] = {
9224 (char *) "filename",(char *) "num", NULL
9225 };
9226
9227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9228 if (obj0) {
d55e5bfc 9229 {
1bd55598
RD
9230 arg1 = wxString_in_helper(obj0);
9231 if (arg1 == NULL) SWIG_fail;
9232 temp1 = true;
d55e5bfc 9233 }
1bd55598
RD
9234 }
9235 if (obj1) {
9236 ecode2 = SWIG_AsVal_int(obj1, &val2);
9237 if (!SWIG_IsOK(ecode2)) {
9238 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9239 }
9240 arg2 = static_cast< int >(val2);
9241 }
9242 {
9243 PyThreadState* __tstate = wxPyBeginAllowThreads();
9244 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9245 wxPyEndAllowThreads(__tstate);
9246 if (PyErr_Occurred()) SWIG_fail;
9247 }
9248 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9249 {
9250 if (temp1)
9251 delete arg1;
9252 }
9253 return resultobj;
9254fail:
9255 {
9256 if (temp1)
9257 delete arg1;
9258 }
9259 return NULL;
d55e5bfc
RD
9260}
9261
9262
1bd55598
RD
9263SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9264 PyObject *resultobj = 0;
9265 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9266 void *argp1 = 0 ;
9267 int res1 = 0 ;
9268 PyObject *swig_obj[1] ;
9269
9270 if (!args) SWIG_fail;
9271 swig_obj[0] = args;
9272 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9273 if (!SWIG_IsOK(res1)) {
9274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9275 }
9276 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9277 {
9278 PyThreadState* __tstate = wxPyBeginAllowThreads();
9279 delete arg1;
d55e5bfc 9280
1bd55598
RD
9281 wxPyEndAllowThreads(__tstate);
9282 if (PyErr_Occurred()) SWIG_fail;
9283 }
9284 resultobj = SWIG_Py_Void();
9285 return resultobj;
9286fail:
9287 return NULL;
d55e5bfc
RD
9288}
9289
9290
1bd55598
RD
9291SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9292 PyObject *resultobj = 0;
9293 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9294 bool result;
9295 void *argp1 = 0 ;
9296 int res1 = 0 ;
9297 PyObject *swig_obj[1] ;
9298
9299 if (!args) SWIG_fail;
9300 swig_obj[0] = args;
9301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9302 if (!SWIG_IsOK(res1)) {
9303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9304 }
9305 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9306 {
9307 PyThreadState* __tstate = wxPyBeginAllowThreads();
9308 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9309 wxPyEndAllowThreads(__tstate);
9310 if (PyErr_Occurred()) SWIG_fail;
9311 }
9312 {
9313 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9314 }
9315 return resultobj;
9316fail:
9317 return NULL;
9318}
9319
9320
9321SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9322 PyObject *resultobj = 0;
9323 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9324 wxString *arg2 = 0 ;
9325 void *argp1 = 0 ;
9326 int res1 = 0 ;
9327 bool temp2 = false ;
9328 PyObject * obj0 = 0 ;
9329 PyObject * obj1 = 0 ;
9330 char * kwnames[] = {
9331 (char *) "self",(char *) "filename", NULL
9332 };
9333
9334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9336 if (!SWIG_IsOK(res1)) {
9337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9338 }
9339 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9340 {
9341 arg2 = wxString_in_helper(obj1);
9342 if (arg2 == NULL) SWIG_fail;
9343 temp2 = true;
9344 }
9345 {
9346 PyThreadState* __tstate = wxPyBeginAllowThreads();
9347 (arg1)->SetFileName((wxString const &)*arg2);
9348 wxPyEndAllowThreads(__tstate);
9349 if (PyErr_Occurred()) SWIG_fail;
9350 }
9351 resultobj = SWIG_Py_Void();
9352 {
9353 if (temp2)
9354 delete arg2;
9355 }
9356 return resultobj;
9357fail:
9358 {
9359 if (temp2)
9360 delete arg2;
9361 }
9362 return NULL;
d55e5bfc
RD
9363}
9364
9365
1bd55598
RD
9366SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9367 PyObject *resultobj = 0;
9368 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9369 wxString *result = 0 ;
9370 void *argp1 = 0 ;
9371 int res1 = 0 ;
9372 PyObject *swig_obj[1] ;
9373
9374 if (!args) SWIG_fail;
9375 swig_obj[0] = args;
9376 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9377 if (!SWIG_IsOK(res1)) {
9378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9379 }
9380 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9381 {
9382 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 9383 {
1bd55598
RD
9384 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9385 result = (wxString *) &_result_ref;
d55e5bfc 9386 }
1bd55598
RD
9387 wxPyEndAllowThreads(__tstate);
9388 if (PyErr_Occurred()) SWIG_fail;
9389 }
9390 {
9391#if wxUSE_UNICODE
9392 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9393#else
9394 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9395#endif
9396 }
9397 return resultobj;
9398fail:
9399 return NULL;
9400}
9401
9402
9403SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9404 PyObject *resultobj = 0;
9405 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9406 int arg2 ;
9407 void *argp1 = 0 ;
9408 int res1 = 0 ;
9409 int val2 ;
9410 int ecode2 = 0 ;
9411 PyObject * obj0 = 0 ;
9412 PyObject * obj1 = 0 ;
9413 char * kwnames[] = {
9414 (char *) "self",(char *) "num", NULL
9415 };
9416
9417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9419 if (!SWIG_IsOK(res1)) {
9420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9421 }
9422 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9423 ecode2 = SWIG_AsVal_int(obj1, &val2);
9424 if (!SWIG_IsOK(ecode2)) {
9425 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9426 }
9427 arg2 = static_cast< int >(val2);
9428 {
9429 PyThreadState* __tstate = wxPyBeginAllowThreads();
9430 wxIconLocation_SetIndex(arg1,arg2);
9431 wxPyEndAllowThreads(__tstate);
9432 if (PyErr_Occurred()) SWIG_fail;
9433 }
9434 resultobj = SWIG_Py_Void();
9435 return resultobj;
9436fail:
9437 return NULL;
d55e5bfc
RD
9438}
9439
9440
1bd55598
RD
9441SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9442 PyObject *resultobj = 0;
9443 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9444 int result;
9445 void *argp1 = 0 ;
9446 int res1 = 0 ;
9447 PyObject *swig_obj[1] ;
9448
9449 if (!args) SWIG_fail;
9450 swig_obj[0] = args;
9451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9452 if (!SWIG_IsOK(res1)) {
9453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9454 }
9455 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9456 {
9457 PyThreadState* __tstate = wxPyBeginAllowThreads();
9458 result = (int)wxIconLocation_GetIndex(arg1);
9459 wxPyEndAllowThreads(__tstate);
9460 if (PyErr_Occurred()) SWIG_fail;
9461 }
9462 resultobj = SWIG_From_int(static_cast< int >(result));
9463 return resultobj;
9464fail:
9465 return NULL;
d55e5bfc
RD
9466}
9467
9468
1bd55598
RD
9469SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9470 PyObject *obj;
9471 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9472 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9473 return SWIG_Py_Void();
d55e5bfc
RD
9474}
9475
1bd55598
RD
9476SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9477 return SWIG_Python_InitShadowInstance(args);
9478}
d55e5bfc 9479
1bd55598
RD
9480SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9481 PyObject *resultobj = 0;
9482 wxIconBundle *result = 0 ;
9483
9484 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9485 {
9486 PyThreadState* __tstate = wxPyBeginAllowThreads();
9487 result = (wxIconBundle *)new wxIconBundle();
9488 wxPyEndAllowThreads(__tstate);
9489 if (PyErr_Occurred()) SWIG_fail;
9490 }
9491 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9492 return resultobj;
9493fail:
9494 return NULL;
9495}
9496
9497
9498SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9499 PyObject *resultobj = 0;
9500 wxString *arg1 = 0 ;
9501 long arg2 ;
9502 wxIconBundle *result = 0 ;
9503 bool temp1 = false ;
9504 long val2 ;
9505 int ecode2 = 0 ;
9506 PyObject * obj0 = 0 ;
9507 PyObject * obj1 = 0 ;
9508 char * kwnames[] = {
9509 (char *) "file",(char *) "type", NULL
9510 };
9511
9512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9513 {
9514 arg1 = wxString_in_helper(obj0);
9515 if (arg1 == NULL) SWIG_fail;
9516 temp1 = true;
9517 }
9518 ecode2 = SWIG_AsVal_long(obj1, &val2);
9519 if (!SWIG_IsOK(ecode2)) {
9520 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9521 }
9522 arg2 = static_cast< long >(val2);
9523 {
9524 PyThreadState* __tstate = wxPyBeginAllowThreads();
9525 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9526 wxPyEndAllowThreads(__tstate);
9527 if (PyErr_Occurred()) SWIG_fail;
9528 }
9529 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9530 {
9531 if (temp1)
9532 delete arg1;
9533 }
9534 return resultobj;
9535fail:
9536 {
9537 if (temp1)
9538 delete arg1;
9539 }
9540 return NULL;
d55e5bfc
RD
9541}
9542
9543
1bd55598
RD
9544SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9545 PyObject *resultobj = 0;
9546 wxIcon *arg1 = 0 ;
9547 wxIconBundle *result = 0 ;
9548 void *argp1 = 0 ;
9549 int res1 = 0 ;
9550 PyObject * obj0 = 0 ;
9551 char * kwnames[] = {
9552 (char *) "icon", NULL
9553 };
9554
9555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9556 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9557 if (!SWIG_IsOK(res1)) {
9558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9559 }
9560 if (!argp1) {
9561 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9562 }
9563 arg1 = reinterpret_cast< wxIcon * >(argp1);
9564 {
9565 PyThreadState* __tstate = wxPyBeginAllowThreads();
9566 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9567 wxPyEndAllowThreads(__tstate);
9568 if (PyErr_Occurred()) SWIG_fail;
9569 }
9570 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9571 return resultobj;
9572fail:
9573 return NULL;
d55e5bfc
RD
9574}
9575
9576
1bd55598
RD
9577SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9578 PyObject *resultobj = 0;
9579 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9580 void *argp1 = 0 ;
9581 int res1 = 0 ;
9582 PyObject *swig_obj[1] ;
9583
9584 if (!args) SWIG_fail;
9585 swig_obj[0] = args;
9586 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9587 if (!SWIG_IsOK(res1)) {
9588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9589 }
9590 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9591 {
9592 PyThreadState* __tstate = wxPyBeginAllowThreads();
9593 delete arg1;
d55e5bfc 9594
1bd55598
RD
9595 wxPyEndAllowThreads(__tstate);
9596 if (PyErr_Occurred()) SWIG_fail;
9597 }
9598 resultobj = SWIG_Py_Void();
9599 return resultobj;
9600fail:
9601 return NULL;
9602}
9603
9604
9605SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9606 PyObject *resultobj = 0;
9607 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9608 wxIcon *arg2 = 0 ;
9609 void *argp1 = 0 ;
9610 int res1 = 0 ;
9611 void *argp2 = 0 ;
9612 int res2 = 0 ;
9613 PyObject * obj0 = 0 ;
9614 PyObject * obj1 = 0 ;
9615 char * kwnames[] = {
9616 (char *) "self",(char *) "icon", NULL
9617 };
9618
9619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9621 if (!SWIG_IsOK(res1)) {
9622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9623 }
9624 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9625 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9626 if (!SWIG_IsOK(res2)) {
9627 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9628 }
9629 if (!argp2) {
9630 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9631 }
9632 arg2 = reinterpret_cast< wxIcon * >(argp2);
9633 {
9634 PyThreadState* __tstate = wxPyBeginAllowThreads();
9635 (arg1)->AddIcon((wxIcon const &)*arg2);
9636 wxPyEndAllowThreads(__tstate);
9637 if (PyErr_Occurred()) SWIG_fail;
9638 }
9639 resultobj = SWIG_Py_Void();
9640 return resultobj;
9641fail:
9642 return NULL;
9643}
9644
9645
9646SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9647 PyObject *resultobj = 0;
9648 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9649 wxString *arg2 = 0 ;
9650 long arg3 ;
9651 void *argp1 = 0 ;
9652 int res1 = 0 ;
9653 bool temp2 = false ;
9654 long val3 ;
9655 int ecode3 = 0 ;
9656 PyObject * obj0 = 0 ;
9657 PyObject * obj1 = 0 ;
9658 PyObject * obj2 = 0 ;
9659 char * kwnames[] = {
9660 (char *) "self",(char *) "file",(char *) "type", NULL
9661 };
9662
9663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9665 if (!SWIG_IsOK(res1)) {
9666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9667 }
9668 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9669 {
9670 arg2 = wxString_in_helper(obj1);
9671 if (arg2 == NULL) SWIG_fail;
9672 temp2 = true;
9673 }
9674 ecode3 = SWIG_AsVal_long(obj2, &val3);
9675 if (!SWIG_IsOK(ecode3)) {
9676 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
9677 }
9678 arg3 = static_cast< long >(val3);
9679 {
9680 PyThreadState* __tstate = wxPyBeginAllowThreads();
9681 (arg1)->AddIcon((wxString const &)*arg2,arg3);
9682 wxPyEndAllowThreads(__tstate);
9683 if (PyErr_Occurred()) SWIG_fail;
9684 }
9685 resultobj = SWIG_Py_Void();
9686 {
9687 if (temp2)
9688 delete arg2;
9689 }
9690 return resultobj;
9691fail:
9692 {
9693 if (temp2)
9694 delete arg2;
9695 }
9696 return NULL;
9697}
9698
9699
9700SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9701 PyObject *resultobj = 0;
9702 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9703 wxSize *arg2 = 0 ;
9704 wxIcon *result = 0 ;
9705 void *argp1 = 0 ;
9706 int res1 = 0 ;
9707 wxSize temp2 ;
9708 PyObject * obj0 = 0 ;
9709 PyObject * obj1 = 0 ;
9710 char * kwnames[] = {
9711 (char *) "self",(char *) "size", NULL
9712 };
9713
9714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9716 if (!SWIG_IsOK(res1)) {
9717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
9718 }
9719 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9720 {
9721 arg2 = &temp2;
9722 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9723 }
9724 {
9725 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 9726 {
1bd55598
RD
9727 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
9728 result = (wxIcon *) &_result_ref;
d55e5bfc 9729 }
1bd55598
RD
9730 wxPyEndAllowThreads(__tstate);
9731 if (PyErr_Occurred()) SWIG_fail;
9732 }
9733 {
9734 wxIcon* resultptr = new wxIcon(*result);
9735 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
9736 }
9737 return resultobj;
9738fail:
9739 return NULL;
9740}
9741
9742
9743SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9744 PyObject *obj;
9745 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9746 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
9747 return SWIG_Py_Void();
9748}
9749
9750SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9751 return SWIG_Python_InitShadowInstance(args);
9752}
9753
9754SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9755 PyObject *resultobj = 0;
9756 wxString *arg1 = 0 ;
9757 long arg2 ;
9758 int arg3 = (int) 0 ;
9759 int arg4 = (int) 0 ;
9760 wxCursor *result = 0 ;
9761 bool temp1 = false ;
9762 long val2 ;
9763 int ecode2 = 0 ;
9764 int val3 ;
9765 int ecode3 = 0 ;
9766 int val4 ;
9767 int ecode4 = 0 ;
9768 PyObject * obj0 = 0 ;
9769 PyObject * obj1 = 0 ;
9770 PyObject * obj2 = 0 ;
9771 PyObject * obj3 = 0 ;
9772 char * kwnames[] = {
9773 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
9774 };
9775
9776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9777 {
9778 arg1 = wxString_in_helper(obj0);
9779 if (arg1 == NULL) SWIG_fail;
9780 temp1 = true;
9781 }
9782 ecode2 = SWIG_AsVal_long(obj1, &val2);
9783 if (!SWIG_IsOK(ecode2)) {
9784 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
9785 }
9786 arg2 = static_cast< long >(val2);
9787 if (obj2) {
9788 ecode3 = SWIG_AsVal_int(obj2, &val3);
9789 if (!SWIG_IsOK(ecode3)) {
9790 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
9791 }
9792 arg3 = static_cast< int >(val3);
9793 }
9794 if (obj3) {
9795 ecode4 = SWIG_AsVal_int(obj3, &val4);
9796 if (!SWIG_IsOK(ecode4)) {
9797 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
9798 }
9799 arg4 = static_cast< int >(val4);
9800 }
9801 {
9802 if (!wxPyCheckForApp()) SWIG_fail;
9803 PyThreadState* __tstate = wxPyBeginAllowThreads();
9804 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
9805 wxPyEndAllowThreads(__tstate);
9806 if (PyErr_Occurred()) SWIG_fail;
9807 }
9808 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
9809 {
9810 if (temp1)
9811 delete arg1;
9812 }
9813 return resultobj;
9814fail:
9815 {
9816 if (temp1)
9817 delete arg1;
9818 }
9819 return NULL;
d55e5bfc
RD
9820}
9821
9822
1bd55598
RD
9823SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9824 PyObject *resultobj = 0;
9825 wxCursor *arg1 = (wxCursor *) 0 ;
9826 void *argp1 = 0 ;
9827 int res1 = 0 ;
9828 PyObject *swig_obj[1] ;
9829
9830 if (!args) SWIG_fail;
9831 swig_obj[0] = args;
9832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
9833 if (!SWIG_IsOK(res1)) {
9834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
9835 }
9836 arg1 = reinterpret_cast< wxCursor * >(argp1);
9837 {
9838 PyThreadState* __tstate = wxPyBeginAllowThreads();
9839 delete arg1;
d55e5bfc 9840
1bd55598
RD
9841 wxPyEndAllowThreads(__tstate);
9842 if (PyErr_Occurred()) SWIG_fail;
9843 }
9844 resultobj = SWIG_Py_Void();
9845 return resultobj;
9846fail:
9847 return NULL;
9848}
9849
9850
9851SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9852 PyObject *resultobj = 0;
9853 int arg1 ;
9854 wxCursor *result = 0 ;
9855 int val1 ;
9856 int ecode1 = 0 ;
9857 PyObject * obj0 = 0 ;
9858 char * kwnames[] = {
9859 (char *) "id", NULL
9860 };
9861
9862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
9863 ecode1 = SWIG_AsVal_int(obj0, &val1);
9864 if (!SWIG_IsOK(ecode1)) {
9865 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
9866 }
9867 arg1 = static_cast< int >(val1);
9868 {
9869 if (!wxPyCheckForApp()) SWIG_fail;
9870 PyThreadState* __tstate = wxPyBeginAllowThreads();
9871 result = (wxCursor *)new wxCursor(arg1);
9872 wxPyEndAllowThreads(__tstate);
9873 if (PyErr_Occurred()) SWIG_fail;
9874 }
9875 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
9876 return resultobj;
9877fail:
9878 return NULL;
9879}
9880
9881
9882SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9883 PyObject *resultobj = 0;
9884 wxImage *arg1 = 0 ;
9885 wxCursor *result = 0 ;
9886 void *argp1 = 0 ;
9887 int res1 = 0 ;
9888 PyObject * obj0 = 0 ;
9889 char * kwnames[] = {
9890 (char *) "image", NULL
9891 };
9892
9893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
9894 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
9895 if (!SWIG_IsOK(res1)) {
9896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
9897 }
9898 if (!argp1) {
9899 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
9900 }
9901 arg1 = reinterpret_cast< wxImage * >(argp1);
9902 {
9903 if (!wxPyCheckForApp()) SWIG_fail;
9904 PyThreadState* __tstate = wxPyBeginAllowThreads();
9905 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
9906 wxPyEndAllowThreads(__tstate);
9907 if (PyErr_Occurred()) SWIG_fail;
9908 }
9909 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
9910 return resultobj;
9911fail:
9912 return NULL;
d55e5bfc
RD
9913}
9914
9915
b39fe951 9916SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
9917 PyObject *resultobj = 0;
9918 wxCursor *arg1 = (wxCursor *) 0 ;
9919 bool result;
9920 void *argp1 = 0 ;
9921 int res1 = 0 ;
9922 PyObject *swig_obj[1] ;
9923
9924 if (!args) SWIG_fail;
9925 swig_obj[0] = args;
9926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
9927 if (!SWIG_IsOK(res1)) {
b39fe951 9928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
1bd55598
RD
9929 }
9930 arg1 = reinterpret_cast< wxCursor * >(argp1);
9931 {
9932 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 9933 result = (bool)(arg1)->IsOk();
1bd55598
RD
9934 wxPyEndAllowThreads(__tstate);
9935 if (PyErr_Occurred()) SWIG_fail;
9936 }
9937 {
9938 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9939 }
9940 return resultobj;
9941fail:
9942 return NULL;
9943}
9944
9945
9946SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9947 PyObject *obj;
9948 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9949 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
9950 return SWIG_Py_Void();
9951}
9952
9953SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9954 return SWIG_Python_InitShadowInstance(args);
9955}
9956
9957SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9958 PyObject *resultobj = 0;
9959 int arg1 = (int) 0 ;
9960 int arg2 = (int) 0 ;
9961 int arg3 = (int) 0 ;
9962 int arg4 = (int) 0 ;
9963 wxRegion *result = 0 ;
9964 int val1 ;
9965 int ecode1 = 0 ;
9966 int val2 ;
9967 int ecode2 = 0 ;
9968 int val3 ;
9969 int ecode3 = 0 ;
9970 int val4 ;
9971 int ecode4 = 0 ;
9972 PyObject * obj0 = 0 ;
9973 PyObject * obj1 = 0 ;
9974 PyObject * obj2 = 0 ;
9975 PyObject * obj3 = 0 ;
9976 char * kwnames[] = {
9977 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9978 };
9979
9980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9981 if (obj0) {
9982 ecode1 = SWIG_AsVal_int(obj0, &val1);
9983 if (!SWIG_IsOK(ecode1)) {
9984 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
9985 }
9986 arg1 = static_cast< int >(val1);
9987 }
9988 if (obj1) {
9989 ecode2 = SWIG_AsVal_int(obj1, &val2);
9990 if (!SWIG_IsOK(ecode2)) {
9991 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
9992 }
9993 arg2 = static_cast< int >(val2);
9994 }
9995 if (obj2) {
9996 ecode3 = SWIG_AsVal_int(obj2, &val3);
9997 if (!SWIG_IsOK(ecode3)) {
9998 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
9999 }
10000 arg3 = static_cast< int >(val3);
10001 }
10002 if (obj3) {
10003 ecode4 = SWIG_AsVal_int(obj3, &val4);
10004 if (!SWIG_IsOK(ecode4)) {
10005 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10006 }
10007 arg4 = static_cast< int >(val4);
10008 }
10009 {
10010 if (!wxPyCheckForApp()) SWIG_fail;
10011 PyThreadState* __tstate = wxPyBeginAllowThreads();
10012 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10013 wxPyEndAllowThreads(__tstate);
10014 if (PyErr_Occurred()) SWIG_fail;
10015 }
10016 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10017 return resultobj;
10018fail:
10019 return NULL;
10020}
10021
10022
10023SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10024 PyObject *resultobj = 0;
10025 wxBitmap *arg1 = 0 ;
10026 wxRegion *result = 0 ;
10027 void *argp1 = 0 ;
10028 int res1 = 0 ;
10029 PyObject * obj0 = 0 ;
10030 char * kwnames[] = {
10031 (char *) "bmp", NULL
10032 };
10033
10034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10035 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10036 if (!SWIG_IsOK(res1)) {
10037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10038 }
10039 if (!argp1) {
10040 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10041 }
10042 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10043 {
10044 if (!wxPyCheckForApp()) SWIG_fail;
10045 PyThreadState* __tstate = wxPyBeginAllowThreads();
10046 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10047 wxPyEndAllowThreads(__tstate);
10048 if (PyErr_Occurred()) SWIG_fail;
10049 }
10050 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10051 return resultobj;
10052fail:
10053 return NULL;
10054}
10055
10056
10057SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10058 PyObject *resultobj = 0;
10059 wxBitmap *arg1 = 0 ;
10060 wxColour *arg2 = 0 ;
10061 int arg3 = (int) 0 ;
10062 wxRegion *result = 0 ;
10063 void *argp1 = 0 ;
10064 int res1 = 0 ;
10065 wxColour temp2 ;
10066 int val3 ;
10067 int ecode3 = 0 ;
10068 PyObject * obj0 = 0 ;
10069 PyObject * obj1 = 0 ;
10070 PyObject * obj2 = 0 ;
10071 char * kwnames[] = {
10072 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10073 };
10074
10075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10076 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10077 if (!SWIG_IsOK(res1)) {
10078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10079 }
10080 if (!argp1) {
10081 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10082 }
10083 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10084 {
10085 arg2 = &temp2;
10086 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10087 }
10088 if (obj2) {
10089 ecode3 = SWIG_AsVal_int(obj2, &val3);
10090 if (!SWIG_IsOK(ecode3)) {
10091 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10092 }
10093 arg3 = static_cast< int >(val3);
10094 }
10095 {
10096 if (!wxPyCheckForApp()) SWIG_fail;
10097 PyThreadState* __tstate = wxPyBeginAllowThreads();
10098 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10099 wxPyEndAllowThreads(__tstate);
10100 if (PyErr_Occurred()) SWIG_fail;
10101 }
10102 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10103 return resultobj;
10104fail:
10105 return NULL;
10106}
10107
10108
10109SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10110 PyObject *resultobj = 0;
10111 int arg1 ;
10112 wxPoint *arg2 = (wxPoint *) 0 ;
10113 int arg3 = (int) wxWINDING_RULE ;
10114 wxRegion *result = 0 ;
10115 int val3 ;
10116 int ecode3 = 0 ;
10117 PyObject * obj0 = 0 ;
10118 PyObject * obj1 = 0 ;
10119 char * kwnames[] = {
10120 (char *) "points",(char *) "fillStyle", NULL
10121 };
10122
10123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10124 {
10125 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10126 if (arg2 == NULL) SWIG_fail;
10127 }
10128 if (obj1) {
10129 ecode3 = SWIG_AsVal_int(obj1, &val3);
10130 if (!SWIG_IsOK(ecode3)) {
10131 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10132 }
10133 arg3 = static_cast< int >(val3);
10134 }
10135 {
10136 if (!wxPyCheckForApp()) SWIG_fail;
10137 PyThreadState* __tstate = wxPyBeginAllowThreads();
10138 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10139 wxPyEndAllowThreads(__tstate);
10140 if (PyErr_Occurred()) SWIG_fail;
10141 }
10142 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10143 {
10144 if (arg2) delete [] arg2;
10145 }
10146 return resultobj;
10147fail:
10148 {
10149 if (arg2) delete [] arg2;
10150 }
10151 return NULL;
d55e5bfc
RD
10152}
10153
10154
1bd55598
RD
10155SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10156 PyObject *resultobj = 0;
10157 wxRegion *arg1 = (wxRegion *) 0 ;
10158 void *argp1 = 0 ;
10159 int res1 = 0 ;
10160 PyObject *swig_obj[1] ;
10161
10162 if (!args) SWIG_fail;
10163 swig_obj[0] = args;
10164 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10165 if (!SWIG_IsOK(res1)) {
10166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10167 }
10168 arg1 = reinterpret_cast< wxRegion * >(argp1);
10169 {
10170 PyThreadState* __tstate = wxPyBeginAllowThreads();
10171 delete arg1;
d55e5bfc 10172
1bd55598
RD
10173 wxPyEndAllowThreads(__tstate);
10174 if (PyErr_Occurred()) SWIG_fail;
10175 }
10176 resultobj = SWIG_Py_Void();
10177 return resultobj;
10178fail:
10179 return NULL;
d55e5bfc
RD
10180}
10181
10182
1bd55598
RD
10183SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10184 PyObject *resultobj = 0;
10185 wxRegion *arg1 = (wxRegion *) 0 ;
10186 void *argp1 = 0 ;
10187 int res1 = 0 ;
10188 PyObject *swig_obj[1] ;
10189
10190 if (!args) SWIG_fail;
10191 swig_obj[0] = args;
10192 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10193 if (!SWIG_IsOK(res1)) {
10194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10195 }
10196 arg1 = reinterpret_cast< wxRegion * >(argp1);
10197 {
10198 PyThreadState* __tstate = wxPyBeginAllowThreads();
10199 (arg1)->Clear();
10200 wxPyEndAllowThreads(__tstate);
10201 if (PyErr_Occurred()) SWIG_fail;
10202 }
10203 resultobj = SWIG_Py_Void();
10204 return resultobj;
10205fail:
10206 return NULL;
10207}
10208
10209
10210SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10211 PyObject *resultobj = 0;
10212 wxRegion *arg1 = (wxRegion *) 0 ;
10213 int arg2 ;
10214 int arg3 ;
10215 bool result;
10216 void *argp1 = 0 ;
10217 int res1 = 0 ;
10218 int val2 ;
10219 int ecode2 = 0 ;
10220 int val3 ;
10221 int ecode3 = 0 ;
10222 PyObject * obj0 = 0 ;
10223 PyObject * obj1 = 0 ;
10224 PyObject * obj2 = 0 ;
10225 char * kwnames[] = {
10226 (char *) "self",(char *) "x",(char *) "y", NULL
10227 };
10228
10229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10231 if (!SWIG_IsOK(res1)) {
10232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10233 }
10234 arg1 = reinterpret_cast< wxRegion * >(argp1);
10235 ecode2 = SWIG_AsVal_int(obj1, &val2);
10236 if (!SWIG_IsOK(ecode2)) {
10237 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10238 }
10239 arg2 = static_cast< int >(val2);
10240 ecode3 = SWIG_AsVal_int(obj2, &val3);
10241 if (!SWIG_IsOK(ecode3)) {
10242 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10243 }
10244 arg3 = static_cast< int >(val3);
10245 {
10246 PyThreadState* __tstate = wxPyBeginAllowThreads();
10247 result = (bool)(arg1)->Offset(arg2,arg3);
10248 wxPyEndAllowThreads(__tstate);
10249 if (PyErr_Occurred()) SWIG_fail;
10250 }
10251 {
10252 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10253 }
10254 return resultobj;
10255fail:
10256 return NULL;
10257}
10258
10259
10260SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10261 PyObject *resultobj = 0;
10262 wxRegion *arg1 = (wxRegion *) 0 ;
10263 int arg2 ;
10264 int arg3 ;
10265 wxRegionContain result;
10266 void *argp1 = 0 ;
10267 int res1 = 0 ;
10268 int val2 ;
10269 int ecode2 = 0 ;
10270 int val3 ;
10271 int ecode3 = 0 ;
10272 PyObject * obj0 = 0 ;
10273 PyObject * obj1 = 0 ;
10274 PyObject * obj2 = 0 ;
10275 char * kwnames[] = {
10276 (char *) "self",(char *) "x",(char *) "y", NULL
10277 };
10278
10279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10281 if (!SWIG_IsOK(res1)) {
10282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10283 }
10284 arg1 = reinterpret_cast< wxRegion * >(argp1);
10285 ecode2 = SWIG_AsVal_int(obj1, &val2);
10286 if (!SWIG_IsOK(ecode2)) {
10287 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10288 }
10289 arg2 = static_cast< int >(val2);
10290 ecode3 = SWIG_AsVal_int(obj2, &val3);
10291 if (!SWIG_IsOK(ecode3)) {
10292 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10293 }
10294 arg3 = static_cast< int >(val3);
10295 {
10296 PyThreadState* __tstate = wxPyBeginAllowThreads();
10297 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10298 wxPyEndAllowThreads(__tstate);
10299 if (PyErr_Occurred()) SWIG_fail;
10300 }
10301 resultobj = SWIG_From_int(static_cast< int >(result));
10302 return resultobj;
10303fail:
10304 return NULL;
10305}
10306
10307
10308SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10309 PyObject *resultobj = 0;
10310 wxRegion *arg1 = (wxRegion *) 0 ;
10311 wxPoint *arg2 = 0 ;
10312 wxRegionContain result;
10313 void *argp1 = 0 ;
10314 int res1 = 0 ;
10315 wxPoint temp2 ;
10316 PyObject * obj0 = 0 ;
10317 PyObject * obj1 = 0 ;
10318 char * kwnames[] = {
10319 (char *) "self",(char *) "pt", NULL
10320 };
10321
10322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10324 if (!SWIG_IsOK(res1)) {
10325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10326 }
10327 arg1 = reinterpret_cast< wxRegion * >(argp1);
10328 {
10329 arg2 = &temp2;
10330 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10331 }
10332 {
10333 PyThreadState* __tstate = wxPyBeginAllowThreads();
10334 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10335 wxPyEndAllowThreads(__tstate);
10336 if (PyErr_Occurred()) SWIG_fail;
10337 }
10338 resultobj = SWIG_From_int(static_cast< int >(result));
10339 return resultobj;
10340fail:
10341 return NULL;
10342}
10343
10344
10345SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10346 PyObject *resultobj = 0;
10347 wxRegion *arg1 = (wxRegion *) 0 ;
10348 wxRect *arg2 = 0 ;
10349 wxRegionContain result;
10350 void *argp1 = 0 ;
10351 int res1 = 0 ;
10352 wxRect temp2 ;
10353 PyObject * obj0 = 0 ;
10354 PyObject * obj1 = 0 ;
10355 char * kwnames[] = {
10356 (char *) "self",(char *) "rect", NULL
10357 };
10358
10359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10361 if (!SWIG_IsOK(res1)) {
10362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10363 }
10364 arg1 = reinterpret_cast< wxRegion * >(argp1);
10365 {
10366 arg2 = &temp2;
10367 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10368 }
10369 {
10370 PyThreadState* __tstate = wxPyBeginAllowThreads();
10371 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10372 wxPyEndAllowThreads(__tstate);
10373 if (PyErr_Occurred()) SWIG_fail;
10374 }
10375 resultobj = SWIG_From_int(static_cast< int >(result));
10376 return resultobj;
10377fail:
10378 return NULL;
10379}
10380
10381
10382SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10383 PyObject *resultobj = 0;
10384 wxRegion *arg1 = (wxRegion *) 0 ;
10385 int arg2 ;
10386 int arg3 ;
10387 int arg4 ;
10388 int arg5 ;
10389 wxRegionContain result;
10390 void *argp1 = 0 ;
10391 int res1 = 0 ;
10392 int val2 ;
10393 int ecode2 = 0 ;
10394 int val3 ;
10395 int ecode3 = 0 ;
10396 int val4 ;
10397 int ecode4 = 0 ;
10398 int val5 ;
10399 int ecode5 = 0 ;
10400 PyObject * obj0 = 0 ;
10401 PyObject * obj1 = 0 ;
10402 PyObject * obj2 = 0 ;
10403 PyObject * obj3 = 0 ;
10404 PyObject * obj4 = 0 ;
10405 char * kwnames[] = {
10406 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10407 };
10408
10409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10411 if (!SWIG_IsOK(res1)) {
10412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10413 }
10414 arg1 = reinterpret_cast< wxRegion * >(argp1);
10415 ecode2 = SWIG_AsVal_int(obj1, &val2);
10416 if (!SWIG_IsOK(ecode2)) {
10417 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10418 }
10419 arg2 = static_cast< int >(val2);
10420 ecode3 = SWIG_AsVal_int(obj2, &val3);
10421 if (!SWIG_IsOK(ecode3)) {
10422 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10423 }
10424 arg3 = static_cast< int >(val3);
10425 ecode4 = SWIG_AsVal_int(obj3, &val4);
10426 if (!SWIG_IsOK(ecode4)) {
10427 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10428 }
10429 arg4 = static_cast< int >(val4);
10430 ecode5 = SWIG_AsVal_int(obj4, &val5);
10431 if (!SWIG_IsOK(ecode5)) {
10432 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10433 }
10434 arg5 = static_cast< int >(val5);
10435 {
10436 PyThreadState* __tstate = wxPyBeginAllowThreads();
10437 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10438 wxPyEndAllowThreads(__tstate);
10439 if (PyErr_Occurred()) SWIG_fail;
10440 }
10441 resultobj = SWIG_From_int(static_cast< int >(result));
10442 return resultobj;
10443fail:
10444 return NULL;
d55e5bfc
RD
10445}
10446
10447
1bd55598
RD
10448SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10449 PyObject *resultobj = 0;
10450 wxRegion *arg1 = (wxRegion *) 0 ;
10451 wxRect result;
10452 void *argp1 = 0 ;
10453 int res1 = 0 ;
10454 PyObject *swig_obj[1] ;
10455
10456 if (!args) SWIG_fail;
10457 swig_obj[0] = args;
10458 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10459 if (!SWIG_IsOK(res1)) {
10460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10461 }
10462 arg1 = reinterpret_cast< wxRegion * >(argp1);
10463 {
10464 PyThreadState* __tstate = wxPyBeginAllowThreads();
10465 result = (arg1)->GetBox();
10466 wxPyEndAllowThreads(__tstate);
10467 if (PyErr_Occurred()) SWIG_fail;
10468 }
10469 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10470 return resultobj;
10471fail:
10472 return NULL;
10473}
10474
10475
10476SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10477 PyObject *resultobj = 0;
10478 wxRegion *arg1 = (wxRegion *) 0 ;
10479 int arg2 ;
10480 int arg3 ;
10481 int arg4 ;
10482 int arg5 ;
10483 bool result;
10484 void *argp1 = 0 ;
10485 int res1 = 0 ;
10486 int val2 ;
10487 int ecode2 = 0 ;
10488 int val3 ;
10489 int ecode3 = 0 ;
10490 int val4 ;
10491 int ecode4 = 0 ;
10492 int val5 ;
10493 int ecode5 = 0 ;
10494 PyObject * obj0 = 0 ;
10495 PyObject * obj1 = 0 ;
10496 PyObject * obj2 = 0 ;
10497 PyObject * obj3 = 0 ;
10498 PyObject * obj4 = 0 ;
10499 char * kwnames[] = {
10500 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10501 };
10502
10503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10505 if (!SWIG_IsOK(res1)) {
10506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10507 }
10508 arg1 = reinterpret_cast< wxRegion * >(argp1);
10509 ecode2 = SWIG_AsVal_int(obj1, &val2);
10510 if (!SWIG_IsOK(ecode2)) {
10511 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10512 }
10513 arg2 = static_cast< int >(val2);
10514 ecode3 = SWIG_AsVal_int(obj2, &val3);
10515 if (!SWIG_IsOK(ecode3)) {
10516 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10517 }
10518 arg3 = static_cast< int >(val3);
10519 ecode4 = SWIG_AsVal_int(obj3, &val4);
10520 if (!SWIG_IsOK(ecode4)) {
10521 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10522 }
10523 arg4 = static_cast< int >(val4);
10524 ecode5 = SWIG_AsVal_int(obj4, &val5);
10525 if (!SWIG_IsOK(ecode5)) {
10526 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10527 }
10528 arg5 = static_cast< int >(val5);
10529 {
10530 PyThreadState* __tstate = wxPyBeginAllowThreads();
10531 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10532 wxPyEndAllowThreads(__tstate);
10533 if (PyErr_Occurred()) SWIG_fail;
10534 }
10535 {
10536 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10537 }
10538 return resultobj;
10539fail:
10540 return NULL;
10541}
10542
10543
10544SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10545 PyObject *resultobj = 0;
10546 wxRegion *arg1 = (wxRegion *) 0 ;
10547 wxRect *arg2 = 0 ;
10548 bool result;
10549 void *argp1 = 0 ;
10550 int res1 = 0 ;
10551 wxRect temp2 ;
10552 PyObject * obj0 = 0 ;
10553 PyObject * obj1 = 0 ;
10554 char * kwnames[] = {
10555 (char *) "self",(char *) "rect", NULL
10556 };
10557
10558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10560 if (!SWIG_IsOK(res1)) {
10561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10562 }
10563 arg1 = reinterpret_cast< wxRegion * >(argp1);
10564 {
10565 arg2 = &temp2;
10566 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10567 }
10568 {
10569 PyThreadState* __tstate = wxPyBeginAllowThreads();
10570 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10571 wxPyEndAllowThreads(__tstate);
10572 if (PyErr_Occurred()) SWIG_fail;
10573 }
10574 {
10575 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10576 }
10577 return resultobj;
10578fail:
10579 return NULL;
10580}
10581
10582
10583SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10584 PyObject *resultobj = 0;
10585 wxRegion *arg1 = (wxRegion *) 0 ;
10586 wxRegion *arg2 = 0 ;
10587 bool result;
10588 void *argp1 = 0 ;
10589 int res1 = 0 ;
10590 void *argp2 = 0 ;
10591 int res2 = 0 ;
10592 PyObject * obj0 = 0 ;
10593 PyObject * obj1 = 0 ;
10594 char * kwnames[] = {
10595 (char *) "self",(char *) "region", NULL
10596 };
10597
10598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10600 if (!SWIG_IsOK(res1)) {
10601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10602 }
10603 arg1 = reinterpret_cast< wxRegion * >(argp1);
10604 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10605 if (!SWIG_IsOK(res2)) {
10606 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10607 }
10608 if (!argp2) {
10609 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10610 }
10611 arg2 = reinterpret_cast< wxRegion * >(argp2);
10612 {
10613 PyThreadState* __tstate = wxPyBeginAllowThreads();
10614 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10615 wxPyEndAllowThreads(__tstate);
10616 if (PyErr_Occurred()) SWIG_fail;
10617 }
10618 {
10619 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10620 }
10621 return resultobj;
10622fail:
10623 return NULL;
d55e5bfc
RD
10624}
10625
10626
1bd55598
RD
10627SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10628 PyObject *resultobj = 0;
10629 wxRegion *arg1 = (wxRegion *) 0 ;
10630 bool result;
10631 void *argp1 = 0 ;
10632 int res1 = 0 ;
10633 PyObject *swig_obj[1] ;
10634
10635 if (!args) SWIG_fail;
10636 swig_obj[0] = args;
10637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10638 if (!SWIG_IsOK(res1)) {
10639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
10640 }
10641 arg1 = reinterpret_cast< wxRegion * >(argp1);
10642 {
10643 PyThreadState* __tstate = wxPyBeginAllowThreads();
10644 result = (bool)(arg1)->IsEmpty();
10645 wxPyEndAllowThreads(__tstate);
10646 if (PyErr_Occurred()) SWIG_fail;
10647 }
10648 {
10649 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10650 }
10651 return resultobj;
10652fail:
10653 return NULL;
10654}
10655
10656
f5263701
RD
10657SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10658 PyObject *resultobj = 0;
10659 wxRegion *arg1 = (wxRegion *) 0 ;
10660 wxRegion *arg2 = 0 ;
10661 bool result;
10662 void *argp1 = 0 ;
10663 int res1 = 0 ;
10664 void *argp2 = 0 ;
10665 int res2 = 0 ;
10666 PyObject * obj0 = 0 ;
10667 PyObject * obj1 = 0 ;
10668 char * kwnames[] = {
10669 (char *) "self",(char *) "region", NULL
10670 };
10671
10672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
10673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10674 if (!SWIG_IsOK(res1)) {
10675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
10676 }
10677 arg1 = reinterpret_cast< wxRegion * >(argp1);
10678 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10679 if (!SWIG_IsOK(res2)) {
10680 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
10681 }
10682 if (!argp2) {
10683 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
10684 }
10685 arg2 = reinterpret_cast< wxRegion * >(argp2);
10686 {
10687 PyThreadState* __tstate = wxPyBeginAllowThreads();
10688 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
10689 wxPyEndAllowThreads(__tstate);
10690 if (PyErr_Occurred()) SWIG_fail;
10691 }
10692 {
10693 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10694 }
10695 return resultobj;
10696fail:
10697 return NULL;
10698}
10699
10700
1bd55598
RD
10701SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10702 PyObject *resultobj = 0;
10703 wxRegion *arg1 = (wxRegion *) 0 ;
10704 int arg2 ;
10705 int arg3 ;
10706 int arg4 ;
10707 int arg5 ;
10708 bool result;
10709 void *argp1 = 0 ;
10710 int res1 = 0 ;
10711 int val2 ;
10712 int ecode2 = 0 ;
10713 int val3 ;
10714 int ecode3 = 0 ;
10715 int val4 ;
10716 int ecode4 = 0 ;
10717 int val5 ;
10718 int ecode5 = 0 ;
10719 PyObject * obj0 = 0 ;
10720 PyObject * obj1 = 0 ;
10721 PyObject * obj2 = 0 ;
10722 PyObject * obj3 = 0 ;
10723 PyObject * obj4 = 0 ;
10724 char * kwnames[] = {
10725 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10726 };
10727
10728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10730 if (!SWIG_IsOK(res1)) {
10731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
10732 }
10733 arg1 = reinterpret_cast< wxRegion * >(argp1);
10734 ecode2 = SWIG_AsVal_int(obj1, &val2);
10735 if (!SWIG_IsOK(ecode2)) {
10736 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
10737 }
10738 arg2 = static_cast< int >(val2);
10739 ecode3 = SWIG_AsVal_int(obj2, &val3);
10740 if (!SWIG_IsOK(ecode3)) {
10741 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
10742 }
10743 arg3 = static_cast< int >(val3);
10744 ecode4 = SWIG_AsVal_int(obj3, &val4);
10745 if (!SWIG_IsOK(ecode4)) {
10746 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
10747 }
10748 arg4 = static_cast< int >(val4);
10749 ecode5 = SWIG_AsVal_int(obj4, &val5);
10750 if (!SWIG_IsOK(ecode5)) {
10751 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
10752 }
10753 arg5 = static_cast< int >(val5);
10754 {
10755 PyThreadState* __tstate = wxPyBeginAllowThreads();
10756 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
10757 wxPyEndAllowThreads(__tstate);
10758 if (PyErr_Occurred()) SWIG_fail;
10759 }
10760 {
10761 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10762 }
10763 return resultobj;
10764fail:
10765 return NULL;
10766}
10767
10768
10769SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10770 PyObject *resultobj = 0;
10771 wxRegion *arg1 = (wxRegion *) 0 ;
10772 wxRect *arg2 = 0 ;
10773 bool result;
10774 void *argp1 = 0 ;
10775 int res1 = 0 ;
10776 wxRect temp2 ;
10777 PyObject * obj0 = 0 ;
10778 PyObject * obj1 = 0 ;
10779 char * kwnames[] = {
10780 (char *) "self",(char *) "rect", NULL
10781 };
10782
10783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
10784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10785 if (!SWIG_IsOK(res1)) {
10786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10787 }
10788 arg1 = reinterpret_cast< wxRegion * >(argp1);
10789 {
10790 arg2 = &temp2;
10791 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10792 }
10793 {
10794 PyThreadState* __tstate = wxPyBeginAllowThreads();
10795 result = (bool)(arg1)->Union((wxRect const &)*arg2);
10796 wxPyEndAllowThreads(__tstate);
10797 if (PyErr_Occurred()) SWIG_fail;
10798 }
10799 {
10800 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10801 }
10802 return resultobj;
10803fail:
10804 return NULL;
10805}
10806
10807
10808SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10809 PyObject *resultobj = 0;
10810 wxRegion *arg1 = (wxRegion *) 0 ;
10811 wxRegion *arg2 = 0 ;
10812 bool result;
10813 void *argp1 = 0 ;
10814 int res1 = 0 ;
10815 void *argp2 = 0 ;
10816 int res2 = 0 ;
10817 PyObject * obj0 = 0 ;
10818 PyObject * obj1 = 0 ;
10819 char * kwnames[] = {
10820 (char *) "self",(char *) "region", NULL
10821 };
10822
10823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10825 if (!SWIG_IsOK(res1)) {
10826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10827 }
10828 arg1 = reinterpret_cast< wxRegion * >(argp1);
10829 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10830 if (!SWIG_IsOK(res2)) {
10831 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10832 }
10833 if (!argp2) {
10834 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10835 }
10836 arg2 = reinterpret_cast< wxRegion * >(argp2);
10837 {
10838 PyThreadState* __tstate = wxPyBeginAllowThreads();
10839 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
10840 wxPyEndAllowThreads(__tstate);
10841 if (PyErr_Occurred()) SWIG_fail;
10842 }
10843 {
10844 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10845 }
10846 return resultobj;
10847fail:
10848 return NULL;
10849}
10850
10851
10852SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10853 PyObject *resultobj = 0;
10854 wxRegion *arg1 = (wxRegion *) 0 ;
10855 int arg2 ;
10856 int arg3 ;
10857 int arg4 ;
10858 int arg5 ;
10859 bool result;
10860 void *argp1 = 0 ;
10861 int res1 = 0 ;
10862 int val2 ;
10863 int ecode2 = 0 ;
10864 int val3 ;
10865 int ecode3 = 0 ;
10866 int val4 ;
10867 int ecode4 = 0 ;
10868 int val5 ;
10869 int ecode5 = 0 ;
10870 PyObject * obj0 = 0 ;
10871 PyObject * obj1 = 0 ;
10872 PyObject * obj2 = 0 ;
10873 PyObject * obj3 = 0 ;
10874 PyObject * obj4 = 0 ;
10875 char * kwnames[] = {
10876 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10877 };
10878
10879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10881 if (!SWIG_IsOK(res1)) {
10882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
10883 }
10884 arg1 = reinterpret_cast< wxRegion * >(argp1);
10885 ecode2 = SWIG_AsVal_int(obj1, &val2);
10886 if (!SWIG_IsOK(ecode2)) {
10887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
10888 }
10889 arg2 = static_cast< int >(val2);
10890 ecode3 = SWIG_AsVal_int(obj2, &val3);
10891 if (!SWIG_IsOK(ecode3)) {
10892 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
10893 }
10894 arg3 = static_cast< int >(val3);
10895 ecode4 = SWIG_AsVal_int(obj3, &val4);
10896 if (!SWIG_IsOK(ecode4)) {
10897 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
10898 }
10899 arg4 = static_cast< int >(val4);
10900 ecode5 = SWIG_AsVal_int(obj4, &val5);
10901 if (!SWIG_IsOK(ecode5)) {
10902 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
10903 }
10904 arg5 = static_cast< int >(val5);
10905 {
10906 PyThreadState* __tstate = wxPyBeginAllowThreads();
10907 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
10908 wxPyEndAllowThreads(__tstate);
10909 if (PyErr_Occurred()) SWIG_fail;
10910 }
10911 {
10912 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10913 }
10914 return resultobj;
10915fail:
10916 return NULL;
10917}
10918
10919
10920SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10921 PyObject *resultobj = 0;
10922 wxRegion *arg1 = (wxRegion *) 0 ;
10923 wxRect *arg2 = 0 ;
10924 bool result;
10925 void *argp1 = 0 ;
10926 int res1 = 0 ;
10927 wxRect temp2 ;
10928 PyObject * obj0 = 0 ;
10929 PyObject * obj1 = 0 ;
10930 char * kwnames[] = {
10931 (char *) "self",(char *) "rect", NULL
10932 };
10933
10934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
10935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10936 if (!SWIG_IsOK(res1)) {
10937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10938 }
10939 arg1 = reinterpret_cast< wxRegion * >(argp1);
10940 {
10941 arg2 = &temp2;
10942 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10943 }
10944 {
10945 PyThreadState* __tstate = wxPyBeginAllowThreads();
10946 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
10947 wxPyEndAllowThreads(__tstate);
10948 if (PyErr_Occurred()) SWIG_fail;
10949 }
10950 {
10951 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10952 }
10953 return resultobj;
10954fail:
10955 return NULL;
10956}
10957
10958
10959SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10960 PyObject *resultobj = 0;
10961 wxRegion *arg1 = (wxRegion *) 0 ;
10962 wxRegion *arg2 = 0 ;
10963 bool result;
10964 void *argp1 = 0 ;
10965 int res1 = 0 ;
10966 void *argp2 = 0 ;
10967 int res2 = 0 ;
10968 PyObject * obj0 = 0 ;
10969 PyObject * obj1 = 0 ;
10970 char * kwnames[] = {
10971 (char *) "self",(char *) "region", NULL
10972 };
10973
10974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10976 if (!SWIG_IsOK(res1)) {
10977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10978 }
10979 arg1 = reinterpret_cast< wxRegion * >(argp1);
10980 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10981 if (!SWIG_IsOK(res2)) {
10982 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10983 }
10984 if (!argp2) {
10985 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10986 }
10987 arg2 = reinterpret_cast< wxRegion * >(argp2);
10988 {
10989 PyThreadState* __tstate = wxPyBeginAllowThreads();
10990 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
10991 wxPyEndAllowThreads(__tstate);
10992 if (PyErr_Occurred()) SWIG_fail;
10993 }
10994 {
10995 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10996 }
10997 return resultobj;
10998fail:
10999 return NULL;
11000}
11001
11002
11003SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11004 PyObject *resultobj = 0;
11005 wxRegion *arg1 = (wxRegion *) 0 ;
11006 int arg2 ;
11007 int arg3 ;
11008 int arg4 ;
11009 int arg5 ;
11010 bool result;
11011 void *argp1 = 0 ;
11012 int res1 = 0 ;
11013 int val2 ;
11014 int ecode2 = 0 ;
11015 int val3 ;
11016 int ecode3 = 0 ;
11017 int val4 ;
11018 int ecode4 = 0 ;
11019 int val5 ;
11020 int ecode5 = 0 ;
11021 PyObject * obj0 = 0 ;
11022 PyObject * obj1 = 0 ;
11023 PyObject * obj2 = 0 ;
11024 PyObject * obj3 = 0 ;
11025 PyObject * obj4 = 0 ;
11026 char * kwnames[] = {
11027 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11028 };
11029
11030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11032 if (!SWIG_IsOK(res1)) {
11033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11034 }
11035 arg1 = reinterpret_cast< wxRegion * >(argp1);
11036 ecode2 = SWIG_AsVal_int(obj1, &val2);
11037 if (!SWIG_IsOK(ecode2)) {
11038 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11039 }
11040 arg2 = static_cast< int >(val2);
11041 ecode3 = SWIG_AsVal_int(obj2, &val3);
11042 if (!SWIG_IsOK(ecode3)) {
11043 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11044 }
11045 arg3 = static_cast< int >(val3);
11046 ecode4 = SWIG_AsVal_int(obj3, &val4);
11047 if (!SWIG_IsOK(ecode4)) {
11048 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11049 }
11050 arg4 = static_cast< int >(val4);
11051 ecode5 = SWIG_AsVal_int(obj4, &val5);
11052 if (!SWIG_IsOK(ecode5)) {
11053 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11054 }
11055 arg5 = static_cast< int >(val5);
11056 {
11057 PyThreadState* __tstate = wxPyBeginAllowThreads();
11058 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11059 wxPyEndAllowThreads(__tstate);
11060 if (PyErr_Occurred()) SWIG_fail;
11061 }
11062 {
11063 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11064 }
11065 return resultobj;
11066fail:
11067 return NULL;
11068}
11069
11070
11071SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11072 PyObject *resultobj = 0;
11073 wxRegion *arg1 = (wxRegion *) 0 ;
11074 wxRect *arg2 = 0 ;
11075 bool result;
11076 void *argp1 = 0 ;
11077 int res1 = 0 ;
11078 wxRect temp2 ;
11079 PyObject * obj0 = 0 ;
11080 PyObject * obj1 = 0 ;
11081 char * kwnames[] = {
11082 (char *) "self",(char *) "rect", NULL
11083 };
11084
11085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11087 if (!SWIG_IsOK(res1)) {
11088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11089 }
11090 arg1 = reinterpret_cast< wxRegion * >(argp1);
11091 {
11092 arg2 = &temp2;
11093 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11094 }
11095 {
11096 PyThreadState* __tstate = wxPyBeginAllowThreads();
11097 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11098 wxPyEndAllowThreads(__tstate);
11099 if (PyErr_Occurred()) SWIG_fail;
11100 }
11101 {
11102 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11103 }
11104 return resultobj;
11105fail:
11106 return NULL;
11107}
11108
11109
11110SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11111 PyObject *resultobj = 0;
11112 wxRegion *arg1 = (wxRegion *) 0 ;
11113 wxRegion *arg2 = 0 ;
11114 bool result;
11115 void *argp1 = 0 ;
11116 int res1 = 0 ;
11117 void *argp2 = 0 ;
11118 int res2 = 0 ;
11119 PyObject * obj0 = 0 ;
11120 PyObject * obj1 = 0 ;
11121 char * kwnames[] = {
11122 (char *) "self",(char *) "region", NULL
11123 };
11124
11125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11127 if (!SWIG_IsOK(res1)) {
11128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11129 }
11130 arg1 = reinterpret_cast< wxRegion * >(argp1);
11131 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11132 if (!SWIG_IsOK(res2)) {
11133 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11134 }
11135 if (!argp2) {
11136 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11137 }
11138 arg2 = reinterpret_cast< wxRegion * >(argp2);
11139 {
11140 PyThreadState* __tstate = wxPyBeginAllowThreads();
11141 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11142 wxPyEndAllowThreads(__tstate);
11143 if (PyErr_Occurred()) SWIG_fail;
11144 }
11145 {
11146 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11147 }
11148 return resultobj;
11149fail:
11150 return NULL;
d55e5bfc
RD
11151}
11152
11153
1bd55598
RD
11154SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11155 PyObject *resultobj = 0;
11156 wxRegion *arg1 = (wxRegion *) 0 ;
11157 SwigValueWrapper<wxBitmap > result;
11158 void *argp1 = 0 ;
11159 int res1 = 0 ;
11160 PyObject *swig_obj[1] ;
11161
11162 if (!args) SWIG_fail;
11163 swig_obj[0] = args;
11164 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11165 if (!SWIG_IsOK(res1)) {
11166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11167 }
11168 arg1 = reinterpret_cast< wxRegion * >(argp1);
11169 {
11170 PyThreadState* __tstate = wxPyBeginAllowThreads();
11171 result = (arg1)->ConvertToBitmap();
11172 wxPyEndAllowThreads(__tstate);
11173 if (PyErr_Occurred()) SWIG_fail;
11174 }
11175 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11176 return resultobj;
11177fail:
11178 return NULL;
11179}
11180
11181
11182SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11183 PyObject *resultobj = 0;
11184 wxRegion *arg1 = (wxRegion *) 0 ;
11185 wxBitmap *arg2 = 0 ;
11186 bool result;
11187 void *argp1 = 0 ;
11188 int res1 = 0 ;
11189 void *argp2 = 0 ;
11190 int res2 = 0 ;
11191 PyObject * obj0 = 0 ;
11192 PyObject * obj1 = 0 ;
11193 char * kwnames[] = {
11194 (char *) "self",(char *) "bmp", NULL
11195 };
11196
11197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11199 if (!SWIG_IsOK(res1)) {
11200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11201 }
11202 arg1 = reinterpret_cast< wxRegion * >(argp1);
11203 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11204 if (!SWIG_IsOK(res2)) {
11205 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11206 }
11207 if (!argp2) {
11208 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11209 }
11210 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11211 {
11212 PyThreadState* __tstate = wxPyBeginAllowThreads();
11213 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11214 wxPyEndAllowThreads(__tstate);
11215 if (PyErr_Occurred()) SWIG_fail;
11216 }
11217 {
11218 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11219 }
11220 return resultobj;
11221fail:
11222 return NULL;
11223}
11224
11225
11226SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11227 PyObject *resultobj = 0;
11228 wxRegion *arg1 = (wxRegion *) 0 ;
11229 wxBitmap *arg2 = 0 ;
11230 wxColour *arg3 = 0 ;
11231 int arg4 = (int) 0 ;
11232 bool result;
11233 void *argp1 = 0 ;
11234 int res1 = 0 ;
11235 void *argp2 = 0 ;
11236 int res2 = 0 ;
11237 wxColour temp3 ;
11238 int val4 ;
11239 int ecode4 = 0 ;
11240 PyObject * obj0 = 0 ;
11241 PyObject * obj1 = 0 ;
11242 PyObject * obj2 = 0 ;
11243 PyObject * obj3 = 0 ;
11244 char * kwnames[] = {
11245 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11246 };
11247
11248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11250 if (!SWIG_IsOK(res1)) {
11251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11252 }
11253 arg1 = reinterpret_cast< wxRegion * >(argp1);
11254 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11255 if (!SWIG_IsOK(res2)) {
11256 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11257 }
11258 if (!argp2) {
11259 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11260 }
11261 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11262 {
11263 arg3 = &temp3;
11264 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11265 }
11266 if (obj3) {
11267 ecode4 = SWIG_AsVal_int(obj3, &val4);
11268 if (!SWIG_IsOK(ecode4)) {
11269 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11270 }
11271 arg4 = static_cast< int >(val4);
11272 }
11273 {
11274 PyThreadState* __tstate = wxPyBeginAllowThreads();
11275 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11276 wxPyEndAllowThreads(__tstate);
11277 if (PyErr_Occurred()) SWIG_fail;
11278 }
11279 {
11280 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11281 }
11282 return resultobj;
11283fail:
11284 return NULL;
d55e5bfc
RD
11285}
11286
11287
1bd55598
RD
11288SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11289 PyObject *obj;
11290 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11291 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11292 return SWIG_Py_Void();
d55e5bfc
RD
11293}
11294
1bd55598
RD
11295SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11296 return SWIG_Python_InitShadowInstance(args);
11297}
d55e5bfc 11298
1bd55598
RD
11299SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11300 PyObject *resultobj = 0;
11301 wxRegion *arg1 = 0 ;
11302 wxRegionIterator *result = 0 ;
11303 void *argp1 = 0 ;
11304 int res1 = 0 ;
11305 PyObject * obj0 = 0 ;
11306 char * kwnames[] = {
11307 (char *) "region", NULL
11308 };
11309
11310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11311 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11312 if (!SWIG_IsOK(res1)) {
11313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11314 }
11315 if (!argp1) {
11316 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11317 }
11318 arg1 = reinterpret_cast< wxRegion * >(argp1);
11319 {
11320 if (!wxPyCheckForApp()) SWIG_fail;
11321 PyThreadState* __tstate = wxPyBeginAllowThreads();
11322 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11323 wxPyEndAllowThreads(__tstate);
11324 if (PyErr_Occurred()) SWIG_fail;
11325 }
11326 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11327 return resultobj;
11328fail:
11329 return NULL;
d55e5bfc
RD
11330}
11331
11332
1bd55598
RD
11333SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11334 PyObject *resultobj = 0;
11335 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11336 void *argp1 = 0 ;
11337 int res1 = 0 ;
11338 PyObject *swig_obj[1] ;
11339
11340 if (!args) SWIG_fail;
11341 swig_obj[0] = args;
11342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11343 if (!SWIG_IsOK(res1)) {
11344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11345 }
11346 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11347 {
11348 PyThreadState* __tstate = wxPyBeginAllowThreads();
11349 delete arg1;
d55e5bfc 11350
1bd55598
RD
11351 wxPyEndAllowThreads(__tstate);
11352 if (PyErr_Occurred()) SWIG_fail;
11353 }
11354 resultobj = SWIG_Py_Void();
11355 return resultobj;
11356fail:
11357 return NULL;
d55e5bfc
RD
11358}
11359
11360
1bd55598
RD
11361SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11362 PyObject *resultobj = 0;
11363 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11364 int result;
11365 void *argp1 = 0 ;
11366 int res1 = 0 ;
11367 PyObject *swig_obj[1] ;
11368
11369 if (!args) SWIG_fail;
11370 swig_obj[0] = args;
11371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11372 if (!SWIG_IsOK(res1)) {
11373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11374 }
11375 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11376 {
11377 PyThreadState* __tstate = wxPyBeginAllowThreads();
11378 result = (int)(arg1)->GetX();
11379 wxPyEndAllowThreads(__tstate);
11380 if (PyErr_Occurred()) SWIG_fail;
11381 }
11382 resultobj = SWIG_From_int(static_cast< int >(result));
11383 return resultobj;
11384fail:
11385 return NULL;
d55e5bfc
RD
11386}
11387
11388
1bd55598
RD
11389SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11390 PyObject *resultobj = 0;
11391 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11392 int result;
11393 void *argp1 = 0 ;
11394 int res1 = 0 ;
11395 PyObject *swig_obj[1] ;
11396
11397 if (!args) SWIG_fail;
11398 swig_obj[0] = args;
11399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11400 if (!SWIG_IsOK(res1)) {
11401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11402 }
11403 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11404 {
11405 PyThreadState* __tstate = wxPyBeginAllowThreads();
11406 result = (int)(arg1)->GetY();
11407 wxPyEndAllowThreads(__tstate);
11408 if (PyErr_Occurred()) SWIG_fail;
11409 }
11410 resultobj = SWIG_From_int(static_cast< int >(result));
11411 return resultobj;
11412fail:
11413 return NULL;
d55e5bfc
RD
11414}
11415
11416
1bd55598
RD
11417SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11418 PyObject *resultobj = 0;
11419 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11420 int result;
11421 void *argp1 = 0 ;
11422 int res1 = 0 ;
11423 PyObject *swig_obj[1] ;
11424
11425 if (!args) SWIG_fail;
11426 swig_obj[0] = args;
11427 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11428 if (!SWIG_IsOK(res1)) {
11429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11430 }
11431 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11432 {
11433 PyThreadState* __tstate = wxPyBeginAllowThreads();
11434 result = (int)(arg1)->GetW();
11435 wxPyEndAllowThreads(__tstate);
11436 if (PyErr_Occurred()) SWIG_fail;
11437 }
11438 resultobj = SWIG_From_int(static_cast< int >(result));
11439 return resultobj;
11440fail:
11441 return NULL;
d55e5bfc
RD
11442}
11443
11444
1bd55598
RD
11445SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11446 PyObject *resultobj = 0;
11447 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11448 int result;
11449 void *argp1 = 0 ;
11450 int res1 = 0 ;
11451 PyObject *swig_obj[1] ;
11452
11453 if (!args) SWIG_fail;
11454 swig_obj[0] = args;
11455 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11456 if (!SWIG_IsOK(res1)) {
11457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11458 }
11459 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11460 {
11461 PyThreadState* __tstate = wxPyBeginAllowThreads();
11462 result = (int)(arg1)->GetWidth();
11463 wxPyEndAllowThreads(__tstate);
11464 if (PyErr_Occurred()) SWIG_fail;
11465 }
11466 resultobj = SWIG_From_int(static_cast< int >(result));
11467 return resultobj;
11468fail:
11469 return NULL;
d55e5bfc
RD
11470}
11471
11472
1bd55598
RD
11473SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11474 PyObject *resultobj = 0;
11475 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11476 int result;
11477 void *argp1 = 0 ;
11478 int res1 = 0 ;
11479 PyObject *swig_obj[1] ;
11480
11481 if (!args) SWIG_fail;
11482 swig_obj[0] = args;
11483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11484 if (!SWIG_IsOK(res1)) {
11485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11486 }
11487 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11488 {
11489 PyThreadState* __tstate = wxPyBeginAllowThreads();
11490 result = (int)(arg1)->GetH();
11491 wxPyEndAllowThreads(__tstate);
11492 if (PyErr_Occurred()) SWIG_fail;
11493 }
11494 resultobj = SWIG_From_int(static_cast< int >(result));
11495 return resultobj;
11496fail:
11497 return NULL;
d07096ad
RD
11498}
11499
11500
1bd55598
RD
11501SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11502 PyObject *resultobj = 0;
11503 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11504 int result;
11505 void *argp1 = 0 ;
11506 int res1 = 0 ;
11507 PyObject *swig_obj[1] ;
11508
11509 if (!args) SWIG_fail;
11510 swig_obj[0] = args;
11511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11512 if (!SWIG_IsOK(res1)) {
11513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11514 }
11515 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11516 {
11517 PyThreadState* __tstate = wxPyBeginAllowThreads();
11518 result = (int)(arg1)->GetHeight();
11519 wxPyEndAllowThreads(__tstate);
11520 if (PyErr_Occurred()) SWIG_fail;
11521 }
11522 resultobj = SWIG_From_int(static_cast< int >(result));
11523 return resultobj;
11524fail:
11525 return NULL;
d55e5bfc
RD
11526}
11527
11528
1bd55598
RD
11529SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11530 PyObject *resultobj = 0;
11531 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11532 wxRect result;
11533 void *argp1 = 0 ;
11534 int res1 = 0 ;
11535 PyObject *swig_obj[1] ;
11536
11537 if (!args) SWIG_fail;
11538 swig_obj[0] = args;
11539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11540 if (!SWIG_IsOK(res1)) {
11541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11542 }
11543 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11544 {
11545 PyThreadState* __tstate = wxPyBeginAllowThreads();
11546 result = (arg1)->GetRect();
11547 wxPyEndAllowThreads(__tstate);
11548 if (PyErr_Occurred()) SWIG_fail;
11549 }
11550 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11551 return resultobj;
11552fail:
11553 return NULL;
d55e5bfc
RD
11554}
11555
11556
1bd55598
RD
11557SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11558 PyObject *resultobj = 0;
11559 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11560 bool result;
11561 void *argp1 = 0 ;
11562 int res1 = 0 ;
11563 PyObject *swig_obj[1] ;
11564
11565 if (!args) SWIG_fail;
11566 swig_obj[0] = args;
11567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11568 if (!SWIG_IsOK(res1)) {
11569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11570 }
11571 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11572 {
11573 PyThreadState* __tstate = wxPyBeginAllowThreads();
11574 result = (bool)(arg1)->HaveRects();
11575 wxPyEndAllowThreads(__tstate);
11576 if (PyErr_Occurred()) SWIG_fail;
11577 }
11578 {
11579 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11580 }
11581 return resultobj;
11582fail:
11583 return NULL;
d55e5bfc
RD
11584}
11585
11586
1bd55598
RD
11587SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11588 PyObject *resultobj = 0;
11589 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11590 void *argp1 = 0 ;
11591 int res1 = 0 ;
11592 PyObject *swig_obj[1] ;
11593
11594 if (!args) SWIG_fail;
11595 swig_obj[0] = args;
11596 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11597 if (!SWIG_IsOK(res1)) {
11598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11599 }
11600 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11601 {
11602 PyThreadState* __tstate = wxPyBeginAllowThreads();
11603 (arg1)->Reset();
11604 wxPyEndAllowThreads(__tstate);
11605 if (PyErr_Occurred()) SWIG_fail;
11606 }
11607 resultobj = SWIG_Py_Void();
11608 return resultobj;
11609fail:
11610 return NULL;
d55e5bfc
RD
11611}
11612
11613
1bd55598
RD
11614SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11615 PyObject *resultobj = 0;
11616 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11617 void *argp1 = 0 ;
11618 int res1 = 0 ;
11619 PyObject *swig_obj[1] ;
11620
11621 if (!args) SWIG_fail;
11622 swig_obj[0] = args;
11623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11624 if (!SWIG_IsOK(res1)) {
11625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11626 }
11627 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11628 {
11629 PyThreadState* __tstate = wxPyBeginAllowThreads();
11630 wxRegionIterator_Next(arg1);
11631 wxPyEndAllowThreads(__tstate);
11632 if (PyErr_Occurred()) SWIG_fail;
11633 }
11634 resultobj = SWIG_Py_Void();
11635 return resultobj;
11636fail:
11637 return NULL;
070c48b4
RD
11638}
11639
11640
1bd55598
RD
11641SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11642 PyObject *resultobj = 0;
11643 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11644 bool result;
11645 void *argp1 = 0 ;
11646 int res1 = 0 ;
11647 PyObject *swig_obj[1] ;
11648
11649 if (!args) SWIG_fail;
11650 swig_obj[0] = args;
11651 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11652 if (!SWIG_IsOK(res1)) {
11653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11654 }
11655 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11656 {
11657 PyThreadState* __tstate = wxPyBeginAllowThreads();
11658 result = (bool)wxRegionIterator___nonzero__(arg1);
11659 wxPyEndAllowThreads(__tstate);
11660 if (PyErr_Occurred()) SWIG_fail;
11661 }
11662 {
11663 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11664 }
11665 return resultobj;
11666fail:
11667 return NULL;
d55e5bfc
RD
11668}
11669
11670
1bd55598
RD
11671SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11672 PyObject *obj;
11673 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11674 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
11675 return SWIG_Py_Void();
d55e5bfc
RD
11676}
11677
1bd55598
RD
11678SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11679 return SWIG_Python_InitShadowInstance(args);
11680}
d55e5bfc 11681
1bd55598
RD
11682SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11683 PyObject *resultobj = 0;
11684 wxNativeFontInfo *result = 0 ;
11685
11686 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
11687 {
11688 PyThreadState* __tstate = wxPyBeginAllowThreads();
11689 result = (wxNativeFontInfo *)new wxNativeFontInfo();
11690 wxPyEndAllowThreads(__tstate);
11691 if (PyErr_Occurred()) SWIG_fail;
11692 }
11693 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
11694 return resultobj;
11695fail:
11696 return NULL;
d55e5bfc
RD
11697}
11698
11699
1bd55598
RD
11700SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11701 PyObject *resultobj = 0;
11702 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11703 void *argp1 = 0 ;
11704 int res1 = 0 ;
11705 PyObject *swig_obj[1] ;
11706
11707 if (!args) SWIG_fail;
11708 swig_obj[0] = args;
11709 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
11710 if (!SWIG_IsOK(res1)) {
11711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11712 }
11713 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11714 {
11715 PyThreadState* __tstate = wxPyBeginAllowThreads();
11716 delete arg1;
d55e5bfc 11717
1bd55598
RD
11718 wxPyEndAllowThreads(__tstate);
11719 if (PyErr_Occurred()) SWIG_fail;
11720 }
11721 resultobj = SWIG_Py_Void();
11722 return resultobj;
11723fail:
11724 return NULL;
d55e5bfc
RD
11725}
11726
11727
1bd55598
RD
11728SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11729 PyObject *resultobj = 0;
11730 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11731 void *argp1 = 0 ;
11732 int res1 = 0 ;
11733 PyObject *swig_obj[1] ;
11734
11735 if (!args) SWIG_fail;
11736 swig_obj[0] = args;
11737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11738 if (!SWIG_IsOK(res1)) {
11739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11740 }
11741 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11742 {
11743 PyThreadState* __tstate = wxPyBeginAllowThreads();
11744 (arg1)->Init();
11745 wxPyEndAllowThreads(__tstate);
11746 if (PyErr_Occurred()) SWIG_fail;
11747 }
11748 resultobj = SWIG_Py_Void();
11749 return resultobj;
11750fail:
11751 return NULL;
11752}
11753
11754
11755SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11756 PyObject *resultobj = 0;
11757 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11758 wxFont *arg2 = 0 ;
11759 void *argp1 = 0 ;
11760 int res1 = 0 ;
11761 void *argp2 = 0 ;
11762 int res2 = 0 ;
11763 PyObject * obj0 = 0 ;
11764 PyObject * obj1 = 0 ;
11765 char * kwnames[] = {
11766 (char *) "self",(char *) "font", NULL
11767 };
11768
11769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
11770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11771 if (!SWIG_IsOK(res1)) {
11772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11773 }
11774 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11775 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
11776 if (!SWIG_IsOK(res2)) {
11777 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11778 }
11779 if (!argp2) {
11780 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11781 }
11782 arg2 = reinterpret_cast< wxFont * >(argp2);
11783 {
11784 PyThreadState* __tstate = wxPyBeginAllowThreads();
11785 (arg1)->InitFromFont((wxFont const &)*arg2);
11786 wxPyEndAllowThreads(__tstate);
11787 if (PyErr_Occurred()) SWIG_fail;
11788 }
11789 resultobj = SWIG_Py_Void();
11790 return resultobj;
11791fail:
11792 return NULL;
d55e5bfc
RD
11793}
11794
11795
1bd55598
RD
11796SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11797 PyObject *resultobj = 0;
11798 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11799 int result;
11800 void *argp1 = 0 ;
11801 int res1 = 0 ;
11802 PyObject *swig_obj[1] ;
11803
11804 if (!args) SWIG_fail;
11805 swig_obj[0] = args;
11806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11807 if (!SWIG_IsOK(res1)) {
11808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11809 }
11810 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11811 {
11812 PyThreadState* __tstate = wxPyBeginAllowThreads();
11813 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
11814 wxPyEndAllowThreads(__tstate);
11815 if (PyErr_Occurred()) SWIG_fail;
11816 }
11817 resultobj = SWIG_From_int(static_cast< int >(result));
11818 return resultobj;
11819fail:
11820 return NULL;
d55e5bfc
RD
11821}
11822
11823
1bd55598
RD
11824SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11825 PyObject *resultobj = 0;
11826 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11827 wxFontStyle result;
11828 void *argp1 = 0 ;
11829 int res1 = 0 ;
11830 PyObject *swig_obj[1] ;
11831
11832 if (!args) SWIG_fail;
11833 swig_obj[0] = args;
11834 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11835 if (!SWIG_IsOK(res1)) {
11836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11837 }
11838 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11839 {
11840 PyThreadState* __tstate = wxPyBeginAllowThreads();
11841 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
11842 wxPyEndAllowThreads(__tstate);
11843 if (PyErr_Occurred()) SWIG_fail;
11844 }
11845 resultobj = SWIG_From_int(static_cast< int >(result));
11846 return resultobj;
11847fail:
11848 return NULL;
d55e5bfc
RD
11849}
11850
11851
1bd55598
RD
11852SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11853 PyObject *resultobj = 0;
11854 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11855 wxFontWeight result;
11856 void *argp1 = 0 ;
11857 int res1 = 0 ;
11858 PyObject *swig_obj[1] ;
11859
11860 if (!args) SWIG_fail;
11861 swig_obj[0] = args;
11862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11863 if (!SWIG_IsOK(res1)) {
11864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11865 }
11866 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11867 {
11868 PyThreadState* __tstate = wxPyBeginAllowThreads();
11869 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
11870 wxPyEndAllowThreads(__tstate);
11871 if (PyErr_Occurred()) SWIG_fail;
11872 }
11873 resultobj = SWIG_From_int(static_cast< int >(result));
11874 return resultobj;
11875fail:
11876 return NULL;
d55e5bfc
RD
11877}
11878
11879
1bd55598
RD
11880SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11881 PyObject *resultobj = 0;
11882 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11883 bool result;
11884 void *argp1 = 0 ;
11885 int res1 = 0 ;
11886 PyObject *swig_obj[1] ;
11887
11888 if (!args) SWIG_fail;
11889 swig_obj[0] = args;
11890 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11891 if (!SWIG_IsOK(res1)) {
11892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11893 }
11894 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11895 {
11896 PyThreadState* __tstate = wxPyBeginAllowThreads();
11897 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
11898 wxPyEndAllowThreads(__tstate);
11899 if (PyErr_Occurred()) SWIG_fail;
11900 }
11901 {
11902 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11903 }
11904 return resultobj;
11905fail:
11906 return NULL;
d55e5bfc
RD
11907}
11908
11909
1bd55598
RD
11910SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11911 PyObject *resultobj = 0;
11912 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11913 wxString result;
11914 void *argp1 = 0 ;
11915 int res1 = 0 ;
11916 PyObject *swig_obj[1] ;
11917
11918 if (!args) SWIG_fail;
11919 swig_obj[0] = args;
11920 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11921 if (!SWIG_IsOK(res1)) {
11922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11923 }
11924 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11925 {
11926 PyThreadState* __tstate = wxPyBeginAllowThreads();
11927 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
11928 wxPyEndAllowThreads(__tstate);
11929 if (PyErr_Occurred()) SWIG_fail;
11930 }
11931 {
11932#if wxUSE_UNICODE
11933 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11934#else
11935 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11936#endif
11937 }
11938 return resultobj;
11939fail:
11940 return NULL;
d55e5bfc
RD
11941}
11942
11943
1bd55598
RD
11944SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11945 PyObject *resultobj = 0;
11946 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11947 wxFontFamily result;
11948 void *argp1 = 0 ;
11949 int res1 = 0 ;
11950 PyObject *swig_obj[1] ;
11951
11952 if (!args) SWIG_fail;
11953 swig_obj[0] = args;
11954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11955 if (!SWIG_IsOK(res1)) {
11956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11957 }
11958 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11959 {
11960 PyThreadState* __tstate = wxPyBeginAllowThreads();
11961 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
11962 wxPyEndAllowThreads(__tstate);
11963 if (PyErr_Occurred()) SWIG_fail;
11964 }
11965 resultobj = SWIG_From_int(static_cast< int >(result));
11966 return resultobj;
11967fail:
11968 return NULL;
d55e5bfc
RD
11969}
11970
11971
1bd55598
RD
11972SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11973 PyObject *resultobj = 0;
11974 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11975 wxFontEncoding result;
11976 void *argp1 = 0 ;
11977 int res1 = 0 ;
11978 PyObject *swig_obj[1] ;
11979
11980 if (!args) SWIG_fail;
11981 swig_obj[0] = args;
11982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11983 if (!SWIG_IsOK(res1)) {
11984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11985 }
11986 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11987 {
11988 PyThreadState* __tstate = wxPyBeginAllowThreads();
11989 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
11990 wxPyEndAllowThreads(__tstate);
11991 if (PyErr_Occurred()) SWIG_fail;
11992 }
11993 resultobj = SWIG_From_int(static_cast< int >(result));
11994 return resultobj;
11995fail:
11996 return NULL;
11997}
11998
11999
12000SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12001 PyObject *resultobj = 0;
12002 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12003 int arg2 ;
12004 void *argp1 = 0 ;
12005 int res1 = 0 ;
12006 int val2 ;
12007 int ecode2 = 0 ;
12008 PyObject * obj0 = 0 ;
12009 PyObject * obj1 = 0 ;
12010 char * kwnames[] = {
12011 (char *) "self",(char *) "pointsize", NULL
12012 };
12013
12014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12016 if (!SWIG_IsOK(res1)) {
12017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12018 }
12019 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12020 ecode2 = SWIG_AsVal_int(obj1, &val2);
12021 if (!SWIG_IsOK(ecode2)) {
12022 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12023 }
12024 arg2 = static_cast< int >(val2);
12025 {
12026 PyThreadState* __tstate = wxPyBeginAllowThreads();
12027 (arg1)->SetPointSize(arg2);
12028 wxPyEndAllowThreads(__tstate);
12029 if (PyErr_Occurred()) SWIG_fail;
12030 }
12031 resultobj = SWIG_Py_Void();
12032 return resultobj;
12033fail:
12034 return NULL;
12035}
12036
12037
12038SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12039 PyObject *resultobj = 0;
12040 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12041 wxFontStyle arg2 ;
12042 void *argp1 = 0 ;
12043 int res1 = 0 ;
12044 int val2 ;
12045 int ecode2 = 0 ;
12046 PyObject * obj0 = 0 ;
12047 PyObject * obj1 = 0 ;
12048 char * kwnames[] = {
12049 (char *) "self",(char *) "style", NULL
12050 };
12051
12052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12054 if (!SWIG_IsOK(res1)) {
12055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12056 }
12057 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12058 ecode2 = SWIG_AsVal_int(obj1, &val2);
12059 if (!SWIG_IsOK(ecode2)) {
12060 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12061 }
12062 arg2 = static_cast< wxFontStyle >(val2);
12063 {
12064 PyThreadState* __tstate = wxPyBeginAllowThreads();
12065 (arg1)->SetStyle(arg2);
12066 wxPyEndAllowThreads(__tstate);
12067 if (PyErr_Occurred()) SWIG_fail;
12068 }
12069 resultobj = SWIG_Py_Void();
12070 return resultobj;
12071fail:
12072 return NULL;
12073}
12074
12075
12076SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12077 PyObject *resultobj = 0;
12078 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12079 wxFontWeight arg2 ;
12080 void *argp1 = 0 ;
12081 int res1 = 0 ;
12082 int val2 ;
12083 int ecode2 = 0 ;
12084 PyObject * obj0 = 0 ;
12085 PyObject * obj1 = 0 ;
12086 char * kwnames[] = {
12087 (char *) "self",(char *) "weight", NULL
12088 };
12089
12090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12092 if (!SWIG_IsOK(res1)) {
12093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12094 }
12095 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12096 ecode2 = SWIG_AsVal_int(obj1, &val2);
12097 if (!SWIG_IsOK(ecode2)) {
12098 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12099 }
12100 arg2 = static_cast< wxFontWeight >(val2);
12101 {
12102 PyThreadState* __tstate = wxPyBeginAllowThreads();
12103 (arg1)->SetWeight(arg2);
12104 wxPyEndAllowThreads(__tstate);
12105 if (PyErr_Occurred()) SWIG_fail;
12106 }
12107 resultobj = SWIG_Py_Void();
12108 return resultobj;
12109fail:
12110 return NULL;
12111}
12112
12113
12114SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12115 PyObject *resultobj = 0;
12116 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12117 bool arg2 ;
12118 void *argp1 = 0 ;
12119 int res1 = 0 ;
12120 bool val2 ;
12121 int ecode2 = 0 ;
12122 PyObject * obj0 = 0 ;
12123 PyObject * obj1 = 0 ;
12124 char * kwnames[] = {
12125 (char *) "self",(char *) "underlined", NULL
12126 };
12127
12128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12130 if (!SWIG_IsOK(res1)) {
12131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12132 }
12133 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12134 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12135 if (!SWIG_IsOK(ecode2)) {
12136 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12137 }
12138 arg2 = static_cast< bool >(val2);
12139 {
12140 PyThreadState* __tstate = wxPyBeginAllowThreads();
12141 (arg1)->SetUnderlined(arg2);
12142 wxPyEndAllowThreads(__tstate);
12143 if (PyErr_Occurred()) SWIG_fail;
12144 }
12145 resultobj = SWIG_Py_Void();
12146 return resultobj;
12147fail:
12148 return NULL;
12149}
12150
12151
12152SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12153 PyObject *resultobj = 0;
12154 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12155 wxString arg2 ;
704eda0c 12156 bool result;
1bd55598
RD
12157 void *argp1 = 0 ;
12158 int res1 = 0 ;
12159 PyObject * obj0 = 0 ;
12160 PyObject * obj1 = 0 ;
12161 char * kwnames[] = {
12162 (char *) "self",(char *) "facename", NULL
12163 };
12164
12165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12167 if (!SWIG_IsOK(res1)) {
12168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12169 }
12170 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12171 {
12172 wxString* sptr = wxString_in_helper(obj1);
12173 if (sptr == NULL) SWIG_fail;
12174 arg2 = *sptr;
12175 delete sptr;
12176 }
12177 {
12178 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 12179 result = (bool)(arg1)->SetFaceName(arg2);
1bd55598
RD
12180 wxPyEndAllowThreads(__tstate);
12181 if (PyErr_Occurred()) SWIG_fail;
12182 }
704eda0c
RD
12183 {
12184 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12185 }
1bd55598
RD
12186 return resultobj;
12187fail:
12188 return NULL;
12189}
12190
12191
12192SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12193 PyObject *resultobj = 0;
12194 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12195 wxFontFamily arg2 ;
12196 void *argp1 = 0 ;
12197 int res1 = 0 ;
12198 int val2 ;
12199 int ecode2 = 0 ;
12200 PyObject * obj0 = 0 ;
12201 PyObject * obj1 = 0 ;
12202 char * kwnames[] = {
12203 (char *) "self",(char *) "family", NULL
12204 };
12205
12206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12208 if (!SWIG_IsOK(res1)) {
12209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12210 }
12211 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12212 ecode2 = SWIG_AsVal_int(obj1, &val2);
12213 if (!SWIG_IsOK(ecode2)) {
12214 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12215 }
12216 arg2 = static_cast< wxFontFamily >(val2);
12217 {
12218 PyThreadState* __tstate = wxPyBeginAllowThreads();
12219 (arg1)->SetFamily(arg2);
12220 wxPyEndAllowThreads(__tstate);
12221 if (PyErr_Occurred()) SWIG_fail;
12222 }
12223 resultobj = SWIG_Py_Void();
12224 return resultobj;
12225fail:
12226 return NULL;
12227}
12228
12229
12230SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12231 PyObject *resultobj = 0;
12232 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12233 wxFontEncoding arg2 ;
12234 void *argp1 = 0 ;
12235 int res1 = 0 ;
12236 int val2 ;
12237 int ecode2 = 0 ;
12238 PyObject * obj0 = 0 ;
12239 PyObject * obj1 = 0 ;
12240 char * kwnames[] = {
12241 (char *) "self",(char *) "encoding", NULL
12242 };
12243
12244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12246 if (!SWIG_IsOK(res1)) {
12247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12248 }
12249 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12250 ecode2 = SWIG_AsVal_int(obj1, &val2);
12251 if (!SWIG_IsOK(ecode2)) {
12252 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12253 }
12254 arg2 = static_cast< wxFontEncoding >(val2);
12255 {
12256 PyThreadState* __tstate = wxPyBeginAllowThreads();
12257 (arg1)->SetEncoding(arg2);
12258 wxPyEndAllowThreads(__tstate);
12259 if (PyErr_Occurred()) SWIG_fail;
12260 }
12261 resultobj = SWIG_Py_Void();
12262 return resultobj;
12263fail:
12264 return NULL;
12265}
12266
12267
12268SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12269 PyObject *resultobj = 0;
12270 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12271 wxString *arg2 = 0 ;
12272 bool result;
12273 void *argp1 = 0 ;
12274 int res1 = 0 ;
12275 bool temp2 = false ;
12276 PyObject * obj0 = 0 ;
12277 PyObject * obj1 = 0 ;
12278 char * kwnames[] = {
12279 (char *) "self",(char *) "s", NULL
12280 };
12281
12282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12284 if (!SWIG_IsOK(res1)) {
12285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12286 }
12287 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12288 {
12289 arg2 = wxString_in_helper(obj1);
12290 if (arg2 == NULL) SWIG_fail;
12291 temp2 = true;
12292 }
12293 {
12294 PyThreadState* __tstate = wxPyBeginAllowThreads();
12295 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12296 wxPyEndAllowThreads(__tstate);
12297 if (PyErr_Occurred()) SWIG_fail;
12298 }
12299 {
12300 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12301 }
12302 {
12303 if (temp2)
12304 delete arg2;
12305 }
12306 return resultobj;
12307fail:
12308 {
12309 if (temp2)
12310 delete arg2;
12311 }
12312 return NULL;
d55e5bfc
RD
12313}
12314
12315
1bd55598
RD
12316SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12317 PyObject *resultobj = 0;
12318 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12319 wxString result;
12320 void *argp1 = 0 ;
12321 int res1 = 0 ;
12322 PyObject *swig_obj[1] ;
12323
12324 if (!args) SWIG_fail;
12325 swig_obj[0] = args;
12326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12327 if (!SWIG_IsOK(res1)) {
12328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12329 }
12330 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12331 {
12332 PyThreadState* __tstate = wxPyBeginAllowThreads();
12333 result = ((wxNativeFontInfo const *)arg1)->ToString();
12334 wxPyEndAllowThreads(__tstate);
12335 if (PyErr_Occurred()) SWIG_fail;
12336 }
12337 {
12338#if wxUSE_UNICODE
12339 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12340#else
12341 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12342#endif
12343 }
12344 return resultobj;
12345fail:
12346 return NULL;
d55e5bfc
RD
12347}
12348
12349
1bd55598
RD
12350SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12351 PyObject *resultobj = 0;
12352 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12353 wxString result;
12354 void *argp1 = 0 ;
12355 int res1 = 0 ;
12356 PyObject *swig_obj[1] ;
12357
12358 if (!args) SWIG_fail;
12359 swig_obj[0] = args;
12360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12361 if (!SWIG_IsOK(res1)) {
12362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12363 }
12364 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12365 {
12366 PyThreadState* __tstate = wxPyBeginAllowThreads();
12367 result = wxNativeFontInfo___str__(arg1);
12368 wxPyEndAllowThreads(__tstate);
12369 if (PyErr_Occurred()) SWIG_fail;
12370 }
12371 {
12372#if wxUSE_UNICODE
12373 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12374#else
12375 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12376#endif
12377 }
12378 return resultobj;
12379fail:
12380 return NULL;
12381}
12382
12383
12384SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12385 PyObject *resultobj = 0;
12386 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12387 wxString *arg2 = 0 ;
12388 bool result;
12389 void *argp1 = 0 ;
12390 int res1 = 0 ;
12391 bool temp2 = false ;
12392 PyObject * obj0 = 0 ;
12393 PyObject * obj1 = 0 ;
12394 char * kwnames[] = {
12395 (char *) "self",(char *) "s", NULL
12396 };
12397
12398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12400 if (!SWIG_IsOK(res1)) {
12401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12402 }
12403 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12404 {
12405 arg2 = wxString_in_helper(obj1);
12406 if (arg2 == NULL) SWIG_fail;
12407 temp2 = true;
12408 }
12409 {
12410 PyThreadState* __tstate = wxPyBeginAllowThreads();
12411 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12412 wxPyEndAllowThreads(__tstate);
12413 if (PyErr_Occurred()) SWIG_fail;
12414 }
12415 {
12416 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12417 }
12418 {
12419 if (temp2)
12420 delete arg2;
12421 }
12422 return resultobj;
12423fail:
12424 {
12425 if (temp2)
12426 delete arg2;
12427 }
12428 return NULL;
d55e5bfc
RD
12429}
12430
12431
1bd55598
RD
12432SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12433 PyObject *resultobj = 0;
12434 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12435 wxString result;
12436 void *argp1 = 0 ;
12437 int res1 = 0 ;
12438 PyObject *swig_obj[1] ;
12439
12440 if (!args) SWIG_fail;
12441 swig_obj[0] = args;
12442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12443 if (!SWIG_IsOK(res1)) {
12444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12445 }
12446 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12447 {
12448 PyThreadState* __tstate = wxPyBeginAllowThreads();
12449 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12450 wxPyEndAllowThreads(__tstate);
12451 if (PyErr_Occurred()) SWIG_fail;
12452 }
12453 {
36ed4f51 12454#if wxUSE_UNICODE
1bd55598 12455 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 12456#else
1bd55598 12457 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 12458#endif
1bd55598
RD
12459 }
12460 return resultobj;
12461fail:
12462 return NULL;
d55e5bfc
RD
12463}
12464
12465
1bd55598
RD
12466SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12467 PyObject *obj;
12468 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12469 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12470 return SWIG_Py_Void();
d55e5bfc
RD
12471}
12472
1bd55598
RD
12473SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12474 return SWIG_Python_InitShadowInstance(args);
12475}
d55e5bfc 12476
1bd55598
RD
12477SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12478 PyObject *resultobj = 0;
12479 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12480 wxString *arg2 = (wxString *) 0 ;
12481 void *argp1 = 0 ;
12482 int res1 = 0 ;
12483 bool temp2 = false ;
12484 PyObject *swig_obj[2] ;
12485
12486 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12487 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12488 if (!SWIG_IsOK(res1)) {
12489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12490 }
12491 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12492 {
12493 arg2 = wxString_in_helper(swig_obj[1]);
12494 if (arg2 == NULL) SWIG_fail;
12495 temp2 = true;
12496 }
12497 if (arg1) (arg1)->facename = *arg2;
12498
12499 resultobj = SWIG_Py_Void();
12500 {
12501 if (temp2)
12502 delete arg2;
12503 }
12504 return resultobj;
12505fail:
12506 {
12507 if (temp2)
12508 delete arg2;
12509 }
12510 return NULL;
d55e5bfc
RD
12511}
12512
12513
1bd55598
RD
12514SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12515 PyObject *resultobj = 0;
12516 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12517 wxString *result = 0 ;
12518 void *argp1 = 0 ;
12519 int res1 = 0 ;
12520 PyObject *swig_obj[1] ;
12521
12522 if (!args) SWIG_fail;
12523 swig_obj[0] = args;
12524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12525 if (!SWIG_IsOK(res1)) {
12526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12527 }
12528 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12529 result = (wxString *)& ((arg1)->facename);
12530 {
12531#if wxUSE_UNICODE
12532 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12533#else
12534 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12535#endif
12536 }
12537 return resultobj;
12538fail:
12539 return NULL;
d55e5bfc
RD
12540}
12541
12542
1bd55598
RD
12543SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12544 PyObject *resultobj = 0;
12545 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12546 wxFontEncoding arg2 ;
12547 void *argp1 = 0 ;
12548 int res1 = 0 ;
12549 int val2 ;
12550 int ecode2 = 0 ;
12551 PyObject *swig_obj[2] ;
12552
12553 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
12554 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12555 if (!SWIG_IsOK(res1)) {
12556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12557 }
12558 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12559 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12560 if (!SWIG_IsOK(ecode2)) {
12561 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12562 }
12563 arg2 = static_cast< wxFontEncoding >(val2);
12564 if (arg1) (arg1)->encoding = arg2;
12565
12566 resultobj = SWIG_Py_Void();
12567 return resultobj;
12568fail:
12569 return NULL;
d55e5bfc
RD
12570}
12571
12572
1bd55598
RD
12573SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12574 PyObject *resultobj = 0;
12575 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12576 wxFontEncoding result;
12577 void *argp1 = 0 ;
12578 int res1 = 0 ;
12579 PyObject *swig_obj[1] ;
12580
12581 if (!args) SWIG_fail;
12582 swig_obj[0] = args;
12583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12584 if (!SWIG_IsOK(res1)) {
12585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12586 }
12587 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12588 result = (wxFontEncoding) ((arg1)->encoding);
12589 resultobj = SWIG_From_int(static_cast< int >(result));
12590 return resultobj;
12591fail:
12592 return NULL;
d07096ad
RD
12593}
12594
12595
1bd55598
RD
12596SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12597 PyObject *resultobj = 0;
12598 wxNativeEncodingInfo *result = 0 ;
12599
12600 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12601 {
12602 PyThreadState* __tstate = wxPyBeginAllowThreads();
12603 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12604 wxPyEndAllowThreads(__tstate);
12605 if (PyErr_Occurred()) SWIG_fail;
12606 }
12607 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12608 return resultobj;
12609fail:
12610 return NULL;
d55e5bfc
RD
12611}
12612
12613
1bd55598
RD
12614SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12615 PyObject *resultobj = 0;
12616 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12617 void *argp1 = 0 ;
12618 int res1 = 0 ;
12619 PyObject *swig_obj[1] ;
12620
12621 if (!args) SWIG_fail;
12622 swig_obj[0] = args;
12623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
12624 if (!SWIG_IsOK(res1)) {
12625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12626 }
12627 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12628 {
12629 PyThreadState* __tstate = wxPyBeginAllowThreads();
12630 delete arg1;
d55e5bfc 12631
1bd55598
RD
12632 wxPyEndAllowThreads(__tstate);
12633 if (PyErr_Occurred()) SWIG_fail;
12634 }
12635 resultobj = SWIG_Py_Void();
12636 return resultobj;
12637fail:
12638 return NULL;
12639}
12640
12641
12642SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12643 PyObject *resultobj = 0;
12644 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12645 wxString *arg2 = 0 ;
12646 bool result;
12647 void *argp1 = 0 ;
12648 int res1 = 0 ;
12649 bool temp2 = false ;
12650 PyObject * obj0 = 0 ;
12651 PyObject * obj1 = 0 ;
12652 char * kwnames[] = {
12653 (char *) "self",(char *) "s", NULL
12654 };
12655
12656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12658 if (!SWIG_IsOK(res1)) {
12659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12660 }
12661 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12662 {
12663 arg2 = wxString_in_helper(obj1);
12664 if (arg2 == NULL) SWIG_fail;
12665 temp2 = true;
12666 }
12667 {
12668 PyThreadState* __tstate = wxPyBeginAllowThreads();
12669 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12670 wxPyEndAllowThreads(__tstate);
12671 if (PyErr_Occurred()) SWIG_fail;
12672 }
12673 {
12674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12675 }
12676 {
12677 if (temp2)
12678 delete arg2;
12679 }
12680 return resultobj;
12681fail:
12682 {
12683 if (temp2)
12684 delete arg2;
12685 }
12686 return NULL;
d55e5bfc
RD
12687}
12688
12689
1bd55598
RD
12690SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12691 PyObject *resultobj = 0;
12692 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12693 wxString result;
12694 void *argp1 = 0 ;
12695 int res1 = 0 ;
12696 PyObject *swig_obj[1] ;
12697
12698 if (!args) SWIG_fail;
12699 swig_obj[0] = args;
12700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12701 if (!SWIG_IsOK(res1)) {
12702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
12703 }
12704 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12705 {
12706 PyThreadState* __tstate = wxPyBeginAllowThreads();
12707 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
12708 wxPyEndAllowThreads(__tstate);
12709 if (PyErr_Occurred()) SWIG_fail;
12710 }
12711 {
12712#if wxUSE_UNICODE
12713 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12714#else
12715 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12716#endif
12717 }
12718 return resultobj;
12719fail:
12720 return NULL;
d55e5bfc
RD
12721}
12722
12723
1bd55598
RD
12724SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12725 PyObject *obj;
12726 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12727 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
12728 return SWIG_Py_Void();
d55e5bfc
RD
12729}
12730
1bd55598
RD
12731SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12732 return SWIG_Python_InitShadowInstance(args);
12733}
d55e5bfc 12734
1bd55598
RD
12735SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12736 PyObject *resultobj = 0;
12737 wxFontEncoding arg1 ;
12738 wxNativeEncodingInfo *result = 0 ;
12739 int val1 ;
12740 int ecode1 = 0 ;
12741 PyObject * obj0 = 0 ;
12742 char * kwnames[] = {
12743 (char *) "encoding", NULL
12744 };
12745
12746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
12747 ecode1 = SWIG_AsVal_int(obj0, &val1);
12748 if (!SWIG_IsOK(ecode1)) {
12749 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12750 }
12751 arg1 = static_cast< wxFontEncoding >(val1);
12752 {
12753 PyThreadState* __tstate = wxPyBeginAllowThreads();
12754 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
12755 wxPyEndAllowThreads(__tstate);
12756 if (PyErr_Occurred()) SWIG_fail;
12757 }
12758 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12759 return resultobj;
12760fail:
12761 return NULL;
12762}
12763
12764
12765SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12766 PyObject *resultobj = 0;
12767 wxNativeEncodingInfo *arg1 = 0 ;
12768 bool result;
12769 void *argp1 = 0 ;
12770 int res1 = 0 ;
12771 PyObject * obj0 = 0 ;
12772 char * kwnames[] = {
12773 (char *) "info", NULL
12774 };
12775
12776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
12777 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
12778 if (!SWIG_IsOK(res1)) {
12779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12780 }
12781 if (!argp1) {
12782 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12783 }
12784 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12785 {
12786 PyThreadState* __tstate = wxPyBeginAllowThreads();
12787 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
12788 wxPyEndAllowThreads(__tstate);
12789 if (PyErr_Occurred()) SWIG_fail;
12790 }
12791 {
12792 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12793 }
12794 return resultobj;
12795fail:
12796 return NULL;
d55e5bfc
RD
12797}
12798
12799
1bd55598
RD
12800SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12801 PyObject *resultobj = 0;
12802 wxFontMapper *result = 0 ;
12803
12804 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
12805 {
12806 PyThreadState* __tstate = wxPyBeginAllowThreads();
12807 result = (wxFontMapper *)new wxFontMapper();
12808 wxPyEndAllowThreads(__tstate);
12809 if (PyErr_Occurred()) SWIG_fail;
12810 }
12811 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
12812 return resultobj;
12813fail:
12814 return NULL;
d55e5bfc
RD
12815}
12816
12817
1bd55598
RD
12818SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12819 PyObject *resultobj = 0;
12820 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12821 void *argp1 = 0 ;
12822 int res1 = 0 ;
12823 PyObject *swig_obj[1] ;
12824
12825 if (!args) SWIG_fail;
12826 swig_obj[0] = args;
12827 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
12828 if (!SWIG_IsOK(res1)) {
12829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12830 }
12831 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12832 {
12833 PyThreadState* __tstate = wxPyBeginAllowThreads();
12834 delete arg1;
d55e5bfc 12835
1bd55598
RD
12836 wxPyEndAllowThreads(__tstate);
12837 if (PyErr_Occurred()) SWIG_fail;
12838 }
12839 resultobj = SWIG_Py_Void();
12840 return resultobj;
12841fail:
12842 return NULL;
d55e5bfc
RD
12843}
12844
12845
1bd55598
RD
12846SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12847 PyObject *resultobj = 0;
12848 wxFontMapper *result = 0 ;
12849
12850 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
12851 {
12852 PyThreadState* __tstate = wxPyBeginAllowThreads();
12853 result = (wxFontMapper *)wxFontMapper::Get();
12854 wxPyEndAllowThreads(__tstate);
12855 if (PyErr_Occurred()) SWIG_fail;
12856 }
12857 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
12858 return resultobj;
12859fail:
12860 return NULL;
12861}
12862
12863
12864SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12865 PyObject *resultobj = 0;
12866 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12867 wxFontMapper *result = 0 ;
12868 void *argp1 = 0 ;
12869 int res1 = 0 ;
12870 PyObject * obj0 = 0 ;
12871 char * kwnames[] = {
12872 (char *) "mapper", NULL
12873 };
12874
12875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
12876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12877 if (!SWIG_IsOK(res1)) {
12878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12879 }
12880 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12881 {
12882 PyThreadState* __tstate = wxPyBeginAllowThreads();
12883 result = (wxFontMapper *)wxFontMapper::Set(arg1);
12884 wxPyEndAllowThreads(__tstate);
12885 if (PyErr_Occurred()) SWIG_fail;
12886 }
12887 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
12888 return resultobj;
12889fail:
12890 return NULL;
12891}
12892
12893
12894SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12895 PyObject *resultobj = 0;
12896 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12897 wxString *arg2 = 0 ;
12898 bool arg3 = (bool) true ;
12899 wxFontEncoding result;
12900 void *argp1 = 0 ;
12901 int res1 = 0 ;
12902 bool temp2 = false ;
12903 bool val3 ;
12904 int ecode3 = 0 ;
12905 PyObject * obj0 = 0 ;
12906 PyObject * obj1 = 0 ;
12907 PyObject * obj2 = 0 ;
12908 char * kwnames[] = {
12909 (char *) "self",(char *) "charset",(char *) "interactive", NULL
12910 };
12911
12912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12914 if (!SWIG_IsOK(res1)) {
12915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12916 }
12917 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12918 {
12919 arg2 = wxString_in_helper(obj1);
12920 if (arg2 == NULL) SWIG_fail;
12921 temp2 = true;
12922 }
12923 if (obj2) {
12924 ecode3 = SWIG_AsVal_bool(obj2, &val3);
12925 if (!SWIG_IsOK(ecode3)) {
12926 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
12927 }
12928 arg3 = static_cast< bool >(val3);
12929 }
12930 {
12931 PyThreadState* __tstate = wxPyBeginAllowThreads();
12932 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
12933 wxPyEndAllowThreads(__tstate);
12934 if (PyErr_Occurred()) SWIG_fail;
12935 }
12936 resultobj = SWIG_From_int(static_cast< int >(result));
12937 {
12938 if (temp2)
12939 delete arg2;
12940 }
12941 return resultobj;
12942fail:
12943 {
12944 if (temp2)
12945 delete arg2;
12946 }
12947 return NULL;
d55e5bfc
RD
12948}
12949
12950
1bd55598
RD
12951SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12952 PyObject *resultobj = 0;
12953 size_t result;
12954
12955 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
12956 {
12957 PyThreadState* __tstate = wxPyBeginAllowThreads();
12958 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
12959 wxPyEndAllowThreads(__tstate);
12960 if (PyErr_Occurred()) SWIG_fail;
12961 }
12962 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
12963 return resultobj;
12964fail:
12965 return NULL;
12966}
12967
12968
12969SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12970 PyObject *resultobj = 0;
12971 size_t arg1 ;
12972 wxFontEncoding result;
12973 size_t val1 ;
12974 int ecode1 = 0 ;
12975 PyObject * obj0 = 0 ;
12976 char * kwnames[] = {
12977 (char *) "n", NULL
12978 };
12979
12980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
12981 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
12982 if (!SWIG_IsOK(ecode1)) {
12983 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
12984 }
12985 arg1 = static_cast< size_t >(val1);
12986 {
12987 PyThreadState* __tstate = wxPyBeginAllowThreads();
12988 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
12989 wxPyEndAllowThreads(__tstate);
12990 if (PyErr_Occurred()) SWIG_fail;
12991 }
12992 resultobj = SWIG_From_int(static_cast< int >(result));
12993 return resultobj;
12994fail:
12995 return NULL;
12996}
12997
12998
12999SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13000 PyObject *resultobj = 0;
13001 wxFontEncoding arg1 ;
13002 wxString result;
13003 int val1 ;
13004 int ecode1 = 0 ;
13005 PyObject * obj0 = 0 ;
13006 char * kwnames[] = {
13007 (char *) "encoding", NULL
13008 };
13009
13010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13011 ecode1 = SWIG_AsVal_int(obj0, &val1);
13012 if (!SWIG_IsOK(ecode1)) {
13013 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13014 }
13015 arg1 = static_cast< wxFontEncoding >(val1);
13016 {
13017 PyThreadState* __tstate = wxPyBeginAllowThreads();
13018 result = wxFontMapper::GetEncodingName(arg1);
13019 wxPyEndAllowThreads(__tstate);
13020 if (PyErr_Occurred()) SWIG_fail;
13021 }
13022 {
13023#if wxUSE_UNICODE
13024 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13025#else
13026 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13027#endif
13028 }
13029 return resultobj;
13030fail:
13031 return NULL;
d55e5bfc
RD
13032}
13033
13034
1bd55598
RD
13035SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13036 PyObject *resultobj = 0;
13037 wxFontEncoding arg1 ;
13038 wxString result;
13039 int val1 ;
13040 int ecode1 = 0 ;
13041 PyObject * obj0 = 0 ;
13042 char * kwnames[] = {
13043 (char *) "encoding", NULL
13044 };
13045
13046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13047 ecode1 = SWIG_AsVal_int(obj0, &val1);
13048 if (!SWIG_IsOK(ecode1)) {
13049 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13050 }
13051 arg1 = static_cast< wxFontEncoding >(val1);
13052 {
13053 PyThreadState* __tstate = wxPyBeginAllowThreads();
13054 result = wxFontMapper::GetEncodingDescription(arg1);
13055 wxPyEndAllowThreads(__tstate);
13056 if (PyErr_Occurred()) SWIG_fail;
13057 }
13058 {
13059#if wxUSE_UNICODE
13060 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13061#else
13062 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13063#endif
13064 }
13065 return resultobj;
13066fail:
13067 return NULL;
d55e5bfc
RD
13068}
13069
13070
1bd55598
RD
13071SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13072 PyObject *resultobj = 0;
13073 wxString *arg1 = 0 ;
13074 wxFontEncoding result;
13075 bool temp1 = false ;
13076 PyObject * obj0 = 0 ;
13077 char * kwnames[] = {
13078 (char *) "name", NULL
13079 };
13080
13081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13082 {
13083 arg1 = wxString_in_helper(obj0);
13084 if (arg1 == NULL) SWIG_fail;
13085 temp1 = true;
13086 }
13087 {
13088 PyThreadState* __tstate = wxPyBeginAllowThreads();
13089 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13090 wxPyEndAllowThreads(__tstate);
13091 if (PyErr_Occurred()) SWIG_fail;
13092 }
13093 resultobj = SWIG_From_int(static_cast< int >(result));
13094 {
13095 if (temp1)
13096 delete arg1;
13097 }
13098 return resultobj;
13099fail:
13100 {
13101 if (temp1)
13102 delete arg1;
13103 }
13104 return NULL;
d55e5bfc
RD
13105}
13106
13107
1bd55598
RD
13108SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13109 PyObject *resultobj = 0;
13110 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13111 wxString *arg2 = 0 ;
13112 void *argp1 = 0 ;
13113 int res1 = 0 ;
13114 bool temp2 = false ;
13115 PyObject * obj0 = 0 ;
13116 PyObject * obj1 = 0 ;
13117 char * kwnames[] = {
13118 (char *) "self",(char *) "prefix", NULL
13119 };
13120
13121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13123 if (!SWIG_IsOK(res1)) {
13124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13125 }
13126 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13127 {
13128 arg2 = wxString_in_helper(obj1);
13129 if (arg2 == NULL) SWIG_fail;
13130 temp2 = true;
13131 }
13132 {
13133 PyThreadState* __tstate = wxPyBeginAllowThreads();
13134 (arg1)->SetConfigPath((wxString const &)*arg2);
13135 wxPyEndAllowThreads(__tstate);
13136 if (PyErr_Occurred()) SWIG_fail;
13137 }
13138 resultobj = SWIG_Py_Void();
13139 {
13140 if (temp2)
13141 delete arg2;
13142 }
13143 return resultobj;
13144fail:
13145 {
13146 if (temp2)
13147 delete arg2;
13148 }
13149 return NULL;
13150}
13151
13152
13153SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13154 PyObject *resultobj = 0;
13155 wxString result;
13156
13157 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13158 {
13159 PyThreadState* __tstate = wxPyBeginAllowThreads();
13160 result = wxFontMapper::GetDefaultConfigPath();
13161 wxPyEndAllowThreads(__tstate);
13162 if (PyErr_Occurred()) SWIG_fail;
13163 }
13164 {
13165#if wxUSE_UNICODE
13166 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13167#else
13168 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13169#endif
13170 }
13171 return resultobj;
13172fail:
13173 return NULL;
13174}
13175
13176
13177SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13178 PyObject *resultobj = 0;
13179 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13180 wxFontEncoding arg2 ;
13181 wxString const &arg3_defvalue = wxPyEmptyString ;
13182 wxString *arg3 = (wxString *) &arg3_defvalue ;
13183 bool arg4 = (bool) true ;
13184 PyObject *result = 0 ;
13185 void *argp1 = 0 ;
13186 int res1 = 0 ;
13187 int val2 ;
13188 int ecode2 = 0 ;
13189 bool temp3 = false ;
13190 bool val4 ;
13191 int ecode4 = 0 ;
13192 PyObject * obj0 = 0 ;
13193 PyObject * obj1 = 0 ;
13194 PyObject * obj2 = 0 ;
13195 PyObject * obj3 = 0 ;
13196 char * kwnames[] = {
13197 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13198 };
13199
13200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13202 if (!SWIG_IsOK(res1)) {
13203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13204 }
13205 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13206 ecode2 = SWIG_AsVal_int(obj1, &val2);
13207 if (!SWIG_IsOK(ecode2)) {
13208 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13209 }
13210 arg2 = static_cast< wxFontEncoding >(val2);
13211 if (obj2) {
36ed4f51 13212 {
1bd55598
RD
13213 arg3 = wxString_in_helper(obj2);
13214 if (arg3 == NULL) SWIG_fail;
13215 temp3 = true;
36ed4f51 13216 }
1bd55598
RD
13217 }
13218 if (obj3) {
13219 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13220 if (!SWIG_IsOK(ecode4)) {
13221 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13222 }
13223 arg4 = static_cast< bool >(val4);
13224 }
13225 {
13226 PyThreadState* __tstate = wxPyBeginAllowThreads();
13227 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13228 wxPyEndAllowThreads(__tstate);
13229 if (PyErr_Occurred()) SWIG_fail;
13230 }
13231 resultobj = result;
13232 {
13233 if (temp3)
13234 delete arg3;
13235 }
13236 return resultobj;
13237fail:
13238 {
13239 if (temp3)
13240 delete arg3;
13241 }
13242 return NULL;
13243}
13244
13245
13246SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13247 PyObject *resultobj = 0;
13248 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13249 wxFontEncoding arg2 ;
13250 wxString const &arg3_defvalue = wxPyEmptyString ;
13251 wxString *arg3 = (wxString *) &arg3_defvalue ;
13252 bool result;
13253 void *argp1 = 0 ;
13254 int res1 = 0 ;
13255 int val2 ;
13256 int ecode2 = 0 ;
13257 bool temp3 = false ;
13258 PyObject * obj0 = 0 ;
13259 PyObject * obj1 = 0 ;
13260 PyObject * obj2 = 0 ;
13261 char * kwnames[] = {
13262 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13263 };
13264
13265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13267 if (!SWIG_IsOK(res1)) {
13268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13269 }
13270 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13271 ecode2 = SWIG_AsVal_int(obj1, &val2);
13272 if (!SWIG_IsOK(ecode2)) {
13273 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13274 }
13275 arg2 = static_cast< wxFontEncoding >(val2);
13276 if (obj2) {
36ed4f51 13277 {
1bd55598
RD
13278 arg3 = wxString_in_helper(obj2);
13279 if (arg3 == NULL) SWIG_fail;
13280 temp3 = true;
36ed4f51 13281 }
1bd55598
RD
13282 }
13283 {
13284 PyThreadState* __tstate = wxPyBeginAllowThreads();
13285 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13286 wxPyEndAllowThreads(__tstate);
13287 if (PyErr_Occurred()) SWIG_fail;
13288 }
13289 {
13290 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13291 }
13292 {
13293 if (temp3)
13294 delete arg3;
13295 }
13296 return resultobj;
13297fail:
13298 {
13299 if (temp3)
13300 delete arg3;
13301 }
13302 return NULL;
13303}
13304
13305
13306SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13307 PyObject *resultobj = 0;
13308 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13309 wxWindow *arg2 = (wxWindow *) 0 ;
13310 void *argp1 = 0 ;
13311 int res1 = 0 ;
13312 void *argp2 = 0 ;
13313 int res2 = 0 ;
13314 PyObject * obj0 = 0 ;
13315 PyObject * obj1 = 0 ;
13316 char * kwnames[] = {
13317 (char *) "self",(char *) "parent", NULL
13318 };
13319
13320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13322 if (!SWIG_IsOK(res1)) {
13323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13324 }
13325 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13326 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13327 if (!SWIG_IsOK(res2)) {
13328 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13329 }
13330 arg2 = reinterpret_cast< wxWindow * >(argp2);
13331 {
13332 PyThreadState* __tstate = wxPyBeginAllowThreads();
13333 (arg1)->SetDialogParent(arg2);
13334 wxPyEndAllowThreads(__tstate);
13335 if (PyErr_Occurred()) SWIG_fail;
13336 }
13337 resultobj = SWIG_Py_Void();
13338 return resultobj;
13339fail:
13340 return NULL;
13341}
13342
13343
13344SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13345 PyObject *resultobj = 0;
13346 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13347 wxString *arg2 = 0 ;
13348 void *argp1 = 0 ;
13349 int res1 = 0 ;
13350 bool temp2 = false ;
13351 PyObject * obj0 = 0 ;
13352 PyObject * obj1 = 0 ;
13353 char * kwnames[] = {
13354 (char *) "self",(char *) "title", NULL
13355 };
13356
13357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13359 if (!SWIG_IsOK(res1)) {
13360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13361 }
13362 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13363 {
13364 arg2 = wxString_in_helper(obj1);
13365 if (arg2 == NULL) SWIG_fail;
13366 temp2 = true;
13367 }
13368 {
13369 PyThreadState* __tstate = wxPyBeginAllowThreads();
13370 (arg1)->SetDialogTitle((wxString const &)*arg2);
13371 wxPyEndAllowThreads(__tstate);
13372 if (PyErr_Occurred()) SWIG_fail;
13373 }
13374 resultobj = SWIG_Py_Void();
13375 {
13376 if (temp2)
13377 delete arg2;
13378 }
13379 return resultobj;
13380fail:
13381 {
13382 if (temp2)
13383 delete arg2;
13384 }
13385 return NULL;
13386}
13387
13388
13389SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13390 PyObject *obj;
13391 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13392 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13393 return SWIG_Py_Void();
13394}
13395
13396SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13397 return SWIG_Python_InitShadowInstance(args);
13398}
13399
13400SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13401 PyObject *resultobj = 0;
13402 int arg1 ;
13403 int arg2 ;
13404 int arg3 ;
13405 int arg4 ;
13406 bool arg5 = (bool) false ;
13407 wxString const &arg6_defvalue = wxPyEmptyString ;
13408 wxString *arg6 = (wxString *) &arg6_defvalue ;
13409 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13410 wxFont *result = 0 ;
13411 int val1 ;
13412 int ecode1 = 0 ;
13413 int val2 ;
13414 int ecode2 = 0 ;
13415 int val3 ;
13416 int ecode3 = 0 ;
13417 int val4 ;
13418 int ecode4 = 0 ;
13419 bool val5 ;
13420 int ecode5 = 0 ;
13421 bool temp6 = false ;
13422 int val7 ;
13423 int ecode7 = 0 ;
13424 PyObject * obj0 = 0 ;
13425 PyObject * obj1 = 0 ;
13426 PyObject * obj2 = 0 ;
13427 PyObject * obj3 = 0 ;
13428 PyObject * obj4 = 0 ;
13429 PyObject * obj5 = 0 ;
13430 PyObject * obj6 = 0 ;
13431 char * kwnames[] = {
13432 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13433 };
13434
13435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13436 ecode1 = SWIG_AsVal_int(obj0, &val1);
13437 if (!SWIG_IsOK(ecode1)) {
13438 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13439 }
13440 arg1 = static_cast< int >(val1);
13441 ecode2 = SWIG_AsVal_int(obj1, &val2);
13442 if (!SWIG_IsOK(ecode2)) {
13443 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13444 }
13445 arg2 = static_cast< int >(val2);
13446 ecode3 = SWIG_AsVal_int(obj2, &val3);
13447 if (!SWIG_IsOK(ecode3)) {
13448 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13449 }
13450 arg3 = static_cast< int >(val3);
13451 ecode4 = SWIG_AsVal_int(obj3, &val4);
13452 if (!SWIG_IsOK(ecode4)) {
13453 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13454 }
13455 arg4 = static_cast< int >(val4);
13456 if (obj4) {
13457 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13458 if (!SWIG_IsOK(ecode5)) {
13459 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13460 }
13461 arg5 = static_cast< bool >(val5);
13462 }
13463 if (obj5) {
d55e5bfc 13464 {
1bd55598
RD
13465 arg6 = wxString_in_helper(obj5);
13466 if (arg6 == NULL) SWIG_fail;
13467 temp6 = true;
d55e5bfc 13468 }
1bd55598
RD
13469 }
13470 if (obj6) {
13471 ecode7 = SWIG_AsVal_int(obj6, &val7);
13472 if (!SWIG_IsOK(ecode7)) {
13473 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13474 }
13475 arg7 = static_cast< wxFontEncoding >(val7);
13476 }
13477 {
13478 if (!wxPyCheckForApp()) SWIG_fail;
13479 PyThreadState* __tstate = wxPyBeginAllowThreads();
13480 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13481 wxPyEndAllowThreads(__tstate);
13482 if (PyErr_Occurred()) SWIG_fail;
13483 }
13484 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13485 {
13486 if (temp6)
13487 delete arg6;
13488 }
13489 return resultobj;
13490fail:
13491 {
13492 if (temp6)
13493 delete arg6;
13494 }
13495 return NULL;
d55e5bfc
RD
13496}
13497
13498
1bd55598
RD
13499SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13500 PyObject *resultobj = 0;
13501 wxFont *arg1 = (wxFont *) 0 ;
13502 void *argp1 = 0 ;
13503 int res1 = 0 ;
13504 PyObject *swig_obj[1] ;
13505
13506 if (!args) SWIG_fail;
13507 swig_obj[0] = args;
13508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13509 if (!SWIG_IsOK(res1)) {
13510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13511 }
13512 arg1 = reinterpret_cast< wxFont * >(argp1);
13513 {
13514 PyThreadState* __tstate = wxPyBeginAllowThreads();
13515 delete arg1;
d55e5bfc 13516
1bd55598
RD
13517 wxPyEndAllowThreads(__tstate);
13518 if (PyErr_Occurred()) SWIG_fail;
13519 }
13520 resultobj = SWIG_Py_Void();
13521 return resultobj;
13522fail:
13523 return NULL;
13524}
13525
13526
13527SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13528 PyObject *resultobj = 0;
13529 wxNativeFontInfo *arg1 = 0 ;
13530 wxFont *result = 0 ;
13531 void *argp1 = 0 ;
13532 int res1 = 0 ;
13533 PyObject * obj0 = 0 ;
13534 char * kwnames[] = {
13535 (char *) "info", NULL
13536 };
13537
13538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13539 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13540 if (!SWIG_IsOK(res1)) {
13541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13542 }
13543 if (!argp1) {
13544 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13545 }
13546 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13547 {
13548 if (!wxPyCheckForApp()) SWIG_fail;
13549 PyThreadState* __tstate = wxPyBeginAllowThreads();
13550 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
13551 wxPyEndAllowThreads(__tstate);
13552 if (PyErr_Occurred()) SWIG_fail;
13553 }
13554 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13555 return resultobj;
13556fail:
13557 return NULL;
d55e5bfc
RD
13558}
13559
13560
1bd55598
RD
13561SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13562 PyObject *resultobj = 0;
13563 wxString *arg1 = 0 ;
13564 wxFont *result = 0 ;
13565 bool temp1 = false ;
13566 PyObject * obj0 = 0 ;
13567 char * kwnames[] = {
13568 (char *) "info", NULL
13569 };
13570
13571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13572 {
13573 arg1 = wxString_in_helper(obj0);
13574 if (arg1 == NULL) SWIG_fail;
13575 temp1 = true;
13576 }
13577 {
13578 if (!wxPyCheckForApp()) SWIG_fail;
13579 PyThreadState* __tstate = wxPyBeginAllowThreads();
13580 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13581 wxPyEndAllowThreads(__tstate);
13582 if (PyErr_Occurred()) SWIG_fail;
13583 }
13584 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13585 {
13586 if (temp1)
13587 delete arg1;
13588 }
13589 return resultobj;
13590fail:
13591 {
13592 if (temp1)
13593 delete arg1;
13594 }
13595 return NULL;
13596}
13597
13598
13599SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13600 PyObject *resultobj = 0;
13601 int arg1 ;
13602 wxFontFamily arg2 ;
13603 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13604 wxString const &arg4_defvalue = wxPyEmptyString ;
13605 wxString *arg4 = (wxString *) &arg4_defvalue ;
13606 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13607 wxFont *result = 0 ;
13608 int val1 ;
13609 int ecode1 = 0 ;
13610 int val2 ;
13611 int ecode2 = 0 ;
13612 int val3 ;
13613 int ecode3 = 0 ;
13614 bool temp4 = false ;
13615 int val5 ;
13616 int ecode5 = 0 ;
13617 PyObject * obj0 = 0 ;
13618 PyObject * obj1 = 0 ;
13619 PyObject * obj2 = 0 ;
13620 PyObject * obj3 = 0 ;
13621 PyObject * obj4 = 0 ;
13622 char * kwnames[] = {
13623 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13624 };
13625
13626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13627 ecode1 = SWIG_AsVal_int(obj0, &val1);
13628 if (!SWIG_IsOK(ecode1)) {
13629 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
13630 }
13631 arg1 = static_cast< int >(val1);
13632 ecode2 = SWIG_AsVal_int(obj1, &val2);
13633 if (!SWIG_IsOK(ecode2)) {
13634 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
13635 }
13636 arg2 = static_cast< wxFontFamily >(val2);
13637 if (obj2) {
13638 ecode3 = SWIG_AsVal_int(obj2, &val3);
13639 if (!SWIG_IsOK(ecode3)) {
13640 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
13641 }
13642 arg3 = static_cast< int >(val3);
13643 }
13644 if (obj3) {
36ed4f51 13645 {
1bd55598
RD
13646 arg4 = wxString_in_helper(obj3);
13647 if (arg4 == NULL) SWIG_fail;
13648 temp4 = true;
36ed4f51 13649 }
1bd55598
RD
13650 }
13651 if (obj4) {
13652 ecode5 = SWIG_AsVal_int(obj4, &val5);
13653 if (!SWIG_IsOK(ecode5)) {
13654 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13655 }
13656 arg5 = static_cast< wxFontEncoding >(val5);
13657 }
13658 {
13659 if (!wxPyCheckForApp()) SWIG_fail;
13660 PyThreadState* __tstate = wxPyBeginAllowThreads();
13661 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13662 wxPyEndAllowThreads(__tstate);
13663 if (PyErr_Occurred()) SWIG_fail;
13664 }
13665 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13666 {
13667 if (temp4)
13668 delete arg4;
13669 }
13670 return resultobj;
13671fail:
13672 {
13673 if (temp4)
13674 delete arg4;
13675 }
13676 return NULL;
13677}
13678
13679
13680SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13681 PyObject *resultobj = 0;
13682 wxSize *arg1 = 0 ;
13683 int arg2 ;
13684 int arg3 ;
13685 int arg4 ;
13686 bool arg5 = (bool) false ;
13687 wxString const &arg6_defvalue = wxEmptyString ;
13688 wxString *arg6 = (wxString *) &arg6_defvalue ;
13689 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13690 wxFont *result = 0 ;
13691 wxSize temp1 ;
13692 int val2 ;
13693 int ecode2 = 0 ;
13694 int val3 ;
13695 int ecode3 = 0 ;
13696 int val4 ;
13697 int ecode4 = 0 ;
13698 bool val5 ;
13699 int ecode5 = 0 ;
13700 bool temp6 = false ;
13701 int val7 ;
13702 int ecode7 = 0 ;
13703 PyObject * obj0 = 0 ;
13704 PyObject * obj1 = 0 ;
13705 PyObject * obj2 = 0 ;
13706 PyObject * obj3 = 0 ;
13707 PyObject * obj4 = 0 ;
13708 PyObject * obj5 = 0 ;
13709 PyObject * obj6 = 0 ;
13710 char * kwnames[] = {
13711 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
13712 };
13713
13714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13715 {
13716 arg1 = &temp1;
13717 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13718 }
13719 ecode2 = SWIG_AsVal_int(obj1, &val2);
13720 if (!SWIG_IsOK(ecode2)) {
13721 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
13722 }
13723 arg2 = static_cast< int >(val2);
13724 ecode3 = SWIG_AsVal_int(obj2, &val3);
13725 if (!SWIG_IsOK(ecode3)) {
13726 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13727 }
13728 arg3 = static_cast< int >(val3);
13729 ecode4 = SWIG_AsVal_int(obj3, &val4);
13730 if (!SWIG_IsOK(ecode4)) {
13731 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
13732 }
13733 arg4 = static_cast< int >(val4);
13734 if (obj4) {
13735 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13736 if (!SWIG_IsOK(ecode5)) {
13737 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
13738 }
13739 arg5 = static_cast< bool >(val5);
13740 }
13741 if (obj5) {
d55e5bfc 13742 {
1bd55598
RD
13743 arg6 = wxString_in_helper(obj5);
13744 if (arg6 == NULL) SWIG_fail;
13745 temp6 = true;
d55e5bfc 13746 }
1bd55598
RD
13747 }
13748 if (obj6) {
13749 ecode7 = SWIG_AsVal_int(obj6, &val7);
13750 if (!SWIG_IsOK(ecode7)) {
13751 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13752 }
13753 arg7 = static_cast< wxFontEncoding >(val7);
13754 }
13755 {
13756 if (!wxPyCheckForApp()) SWIG_fail;
13757 PyThreadState* __tstate = wxPyBeginAllowThreads();
13758 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13759 wxPyEndAllowThreads(__tstate);
13760 if (PyErr_Occurred()) SWIG_fail;
13761 }
13762 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13763 {
13764 if (temp6)
13765 delete arg6;
13766 }
13767 return resultobj;
13768fail:
13769 {
13770 if (temp6)
13771 delete arg6;
13772 }
13773 return NULL;
13774}
13775
13776
13777SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13778 PyObject *resultobj = 0;
13779 wxSize *arg1 = 0 ;
13780 wxFontFamily arg2 ;
13781 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13782 wxString const &arg4_defvalue = wxEmptyString ;
13783 wxString *arg4 = (wxString *) &arg4_defvalue ;
13784 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13785 wxFont *result = 0 ;
13786 wxSize temp1 ;
13787 int val2 ;
13788 int ecode2 = 0 ;
13789 int val3 ;
13790 int ecode3 = 0 ;
13791 bool temp4 = false ;
13792 int val5 ;
13793 int ecode5 = 0 ;
13794 PyObject * obj0 = 0 ;
13795 PyObject * obj1 = 0 ;
13796 PyObject * obj2 = 0 ;
13797 PyObject * obj3 = 0 ;
13798 PyObject * obj4 = 0 ;
13799 char * kwnames[] = {
13800 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13801 };
13802
13803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13804 {
13805 arg1 = &temp1;
13806 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13807 }
13808 ecode2 = SWIG_AsVal_int(obj1, &val2);
13809 if (!SWIG_IsOK(ecode2)) {
13810 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
13811 }
13812 arg2 = static_cast< wxFontFamily >(val2);
13813 if (obj2) {
13814 ecode3 = SWIG_AsVal_int(obj2, &val3);
13815 if (!SWIG_IsOK(ecode3)) {
13816 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13817 }
13818 arg3 = static_cast< int >(val3);
13819 }
13820 if (obj3) {
36ed4f51 13821 {
1bd55598
RD
13822 arg4 = wxString_in_helper(obj3);
13823 if (arg4 == NULL) SWIG_fail;
13824 temp4 = true;
36ed4f51 13825 }
1bd55598
RD
13826 }
13827 if (obj4) {
13828 ecode5 = SWIG_AsVal_int(obj4, &val5);
13829 if (!SWIG_IsOK(ecode5)) {
13830 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13831 }
13832 arg5 = static_cast< wxFontEncoding >(val5);
13833 }
13834 {
13835 if (!wxPyCheckForApp()) SWIG_fail;
13836 PyThreadState* __tstate = wxPyBeginAllowThreads();
13837 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13838 wxPyEndAllowThreads(__tstate);
13839 if (PyErr_Occurred()) SWIG_fail;
13840 }
13841 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13842 {
13843 if (temp4)
13844 delete arg4;
13845 }
13846 return resultobj;
13847fail:
13848 {
13849 if (temp4)
13850 delete arg4;
13851 }
13852 return NULL;
d55e5bfc
RD
13853}
13854
13855
b39fe951 13856SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
13857 PyObject *resultobj = 0;
13858 wxFont *arg1 = (wxFont *) 0 ;
13859 bool result;
13860 void *argp1 = 0 ;
13861 int res1 = 0 ;
13862 PyObject *swig_obj[1] ;
13863
13864 if (!args) SWIG_fail;
13865 swig_obj[0] = args;
13866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13867 if (!SWIG_IsOK(res1)) {
b39fe951 13868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
1bd55598
RD
13869 }
13870 arg1 = reinterpret_cast< wxFont * >(argp1);
13871 {
13872 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 13873 result = (bool)((wxFont const *)arg1)->IsOk();
1bd55598
RD
13874 wxPyEndAllowThreads(__tstate);
13875 if (PyErr_Occurred()) SWIG_fail;
13876 }
13877 {
13878 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13879 }
13880 return resultobj;
13881fail:
13882 return NULL;
13883}
13884
13885
13886SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13887 PyObject *resultobj = 0;
13888 wxFont *arg1 = (wxFont *) 0 ;
13889 wxFont *arg2 = (wxFont *) 0 ;
13890 bool result;
13891 void *argp1 = 0 ;
13892 int res1 = 0 ;
13893 void *argp2 = 0 ;
13894 int res2 = 0 ;
13895 PyObject * obj0 = 0 ;
13896 PyObject * obj1 = 0 ;
13897 char * kwnames[] = {
13898 (char *) "self",(char *) "other", NULL
13899 };
13900
13901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
13902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13903 if (!SWIG_IsOK(res1)) {
13904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
13905 }
13906 arg1 = reinterpret_cast< wxFont * >(argp1);
13907 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
13908 if (!SWIG_IsOK(res2)) {
13909 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
13910 }
13911 arg2 = reinterpret_cast< wxFont * >(argp2);
13912 {
13913 PyThreadState* __tstate = wxPyBeginAllowThreads();
13914 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
13915 wxPyEndAllowThreads(__tstate);
13916 if (PyErr_Occurred()) SWIG_fail;
13917 }
13918 {
13919 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13920 }
13921 return resultobj;
13922fail:
13923 return NULL;
13924}
13925
13926
13927SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13928 PyObject *resultobj = 0;
13929 wxFont *arg1 = (wxFont *) 0 ;
13930 wxFont *arg2 = (wxFont *) 0 ;
13931 bool result;
13932 void *argp1 = 0 ;
13933 int res1 = 0 ;
13934 void *argp2 = 0 ;
13935 int res2 = 0 ;
13936 PyObject * obj0 = 0 ;
13937 PyObject * obj1 = 0 ;
13938 char * kwnames[] = {
13939 (char *) "self",(char *) "other", NULL
13940 };
13941
13942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
13943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13944 if (!SWIG_IsOK(res1)) {
13945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
13946 }
13947 arg1 = reinterpret_cast< wxFont * >(argp1);
13948 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
13949 if (!SWIG_IsOK(res2)) {
13950 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
13951 }
13952 arg2 = reinterpret_cast< wxFont * >(argp2);
13953 {
13954 PyThreadState* __tstate = wxPyBeginAllowThreads();
13955 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
13956 wxPyEndAllowThreads(__tstate);
13957 if (PyErr_Occurred()) SWIG_fail;
13958 }
13959 {
13960 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13961 }
13962 return resultobj;
13963fail:
13964 return NULL;
d55e5bfc
RD
13965}
13966
13967
1bd55598
RD
13968SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13969 PyObject *resultobj = 0;
13970 wxFont *arg1 = (wxFont *) 0 ;
13971 int result;
13972 void *argp1 = 0 ;
13973 int res1 = 0 ;
13974 PyObject *swig_obj[1] ;
13975
13976 if (!args) SWIG_fail;
13977 swig_obj[0] = args;
13978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13979 if (!SWIG_IsOK(res1)) {
13980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
13981 }
13982 arg1 = reinterpret_cast< wxFont * >(argp1);
13983 {
13984 PyThreadState* __tstate = wxPyBeginAllowThreads();
13985 result = (int)((wxFont const *)arg1)->GetPointSize();
13986 wxPyEndAllowThreads(__tstate);
13987 if (PyErr_Occurred()) SWIG_fail;
13988 }
13989 resultobj = SWIG_From_int(static_cast< int >(result));
13990 return resultobj;
13991fail:
13992 return NULL;
d55e5bfc
RD
13993}
13994
13995
1bd55598
RD
13996SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13997 PyObject *resultobj = 0;
13998 wxFont *arg1 = (wxFont *) 0 ;
13999 wxSize result;
14000 void *argp1 = 0 ;
14001 int res1 = 0 ;
14002 PyObject *swig_obj[1] ;
14003
14004 if (!args) SWIG_fail;
14005 swig_obj[0] = args;
14006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14007 if (!SWIG_IsOK(res1)) {
14008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14009 }
14010 arg1 = reinterpret_cast< wxFont * >(argp1);
14011 {
14012 PyThreadState* __tstate = wxPyBeginAllowThreads();
14013 result = ((wxFont const *)arg1)->GetPixelSize();
14014 wxPyEndAllowThreads(__tstate);
14015 if (PyErr_Occurred()) SWIG_fail;
14016 }
14017 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14018 return resultobj;
14019fail:
14020 return NULL;
d55e5bfc
RD
14021}
14022
14023
1bd55598
RD
14024SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14025 PyObject *resultobj = 0;
14026 wxFont *arg1 = (wxFont *) 0 ;
14027 bool result;
14028 void *argp1 = 0 ;
14029 int res1 = 0 ;
14030 PyObject *swig_obj[1] ;
14031
14032 if (!args) SWIG_fail;
14033 swig_obj[0] = args;
14034 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14035 if (!SWIG_IsOK(res1)) {
14036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14037 }
14038 arg1 = reinterpret_cast< wxFont * >(argp1);
14039 {
14040 PyThreadState* __tstate = wxPyBeginAllowThreads();
14041 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14042 wxPyEndAllowThreads(__tstate);
14043 if (PyErr_Occurred()) SWIG_fail;
14044 }
14045 {
14046 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14047 }
14048 return resultobj;
14049fail:
14050 return NULL;
d55e5bfc
RD
14051}
14052
14053
1bd55598
RD
14054SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14055 PyObject *resultobj = 0;
14056 wxFont *arg1 = (wxFont *) 0 ;
14057 int result;
14058 void *argp1 = 0 ;
14059 int res1 = 0 ;
14060 PyObject *swig_obj[1] ;
14061
14062 if (!args) SWIG_fail;
14063 swig_obj[0] = args;
14064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14065 if (!SWIG_IsOK(res1)) {
14066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14067 }
14068 arg1 = reinterpret_cast< wxFont * >(argp1);
14069 {
14070 PyThreadState* __tstate = wxPyBeginAllowThreads();
14071 result = (int)((wxFont const *)arg1)->GetFamily();
14072 wxPyEndAllowThreads(__tstate);
14073 if (PyErr_Occurred()) SWIG_fail;
14074 }
14075 resultobj = SWIG_From_int(static_cast< int >(result));
14076 return resultobj;
14077fail:
14078 return NULL;
d55e5bfc
RD
14079}
14080
14081
1bd55598
RD
14082SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14083 PyObject *resultobj = 0;
14084 wxFont *arg1 = (wxFont *) 0 ;
14085 int result;
14086 void *argp1 = 0 ;
14087 int res1 = 0 ;
14088 PyObject *swig_obj[1] ;
14089
14090 if (!args) SWIG_fail;
14091 swig_obj[0] = args;
14092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14093 if (!SWIG_IsOK(res1)) {
14094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14095 }
14096 arg1 = reinterpret_cast< wxFont * >(argp1);
14097 {
14098 PyThreadState* __tstate = wxPyBeginAllowThreads();
14099 result = (int)((wxFont const *)arg1)->GetStyle();
14100 wxPyEndAllowThreads(__tstate);
14101 if (PyErr_Occurred()) SWIG_fail;
14102 }
14103 resultobj = SWIG_From_int(static_cast< int >(result));
14104 return resultobj;
14105fail:
14106 return NULL;
d55e5bfc
RD
14107}
14108
14109
1bd55598
RD
14110SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14111 PyObject *resultobj = 0;
14112 wxFont *arg1 = (wxFont *) 0 ;
14113 int result;
14114 void *argp1 = 0 ;
14115 int res1 = 0 ;
14116 PyObject *swig_obj[1] ;
14117
14118 if (!args) SWIG_fail;
14119 swig_obj[0] = args;
14120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14121 if (!SWIG_IsOK(res1)) {
14122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14123 }
14124 arg1 = reinterpret_cast< wxFont * >(argp1);
14125 {
14126 PyThreadState* __tstate = wxPyBeginAllowThreads();
14127 result = (int)((wxFont const *)arg1)->GetWeight();
14128 wxPyEndAllowThreads(__tstate);
14129 if (PyErr_Occurred()) SWIG_fail;
14130 }
14131 resultobj = SWIG_From_int(static_cast< int >(result));
14132 return resultobj;
14133fail:
14134 return NULL;
d55e5bfc
RD
14135}
14136
14137
1bd55598
RD
14138SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14139 PyObject *resultobj = 0;
14140 wxFont *arg1 = (wxFont *) 0 ;
14141 bool result;
14142 void *argp1 = 0 ;
14143 int res1 = 0 ;
14144 PyObject *swig_obj[1] ;
14145
14146 if (!args) SWIG_fail;
14147 swig_obj[0] = args;
14148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14149 if (!SWIG_IsOK(res1)) {
14150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14151 }
14152 arg1 = reinterpret_cast< wxFont * >(argp1);
14153 {
14154 PyThreadState* __tstate = wxPyBeginAllowThreads();
14155 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14156 wxPyEndAllowThreads(__tstate);
14157 if (PyErr_Occurred()) SWIG_fail;
14158 }
14159 {
14160 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14161 }
14162 return resultobj;
14163fail:
14164 return NULL;
d55e5bfc
RD
14165}
14166
14167
1bd55598
RD
14168SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14169 PyObject *resultobj = 0;
14170 wxFont *arg1 = (wxFont *) 0 ;
14171 wxString result;
14172 void *argp1 = 0 ;
14173 int res1 = 0 ;
14174 PyObject *swig_obj[1] ;
14175
14176 if (!args) SWIG_fail;
14177 swig_obj[0] = args;
14178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14179 if (!SWIG_IsOK(res1)) {
14180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14181 }
14182 arg1 = reinterpret_cast< wxFont * >(argp1);
14183 {
14184 PyThreadState* __tstate = wxPyBeginAllowThreads();
14185 result = ((wxFont const *)arg1)->GetFaceName();
14186 wxPyEndAllowThreads(__tstate);
14187 if (PyErr_Occurred()) SWIG_fail;
14188 }
14189 {
14190#if wxUSE_UNICODE
14191 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14192#else
14193 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14194#endif
14195 }
14196 return resultobj;
14197fail:
14198 return NULL;
d55e5bfc
RD
14199}
14200
14201
1bd55598
RD
14202SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14203 PyObject *resultobj = 0;
14204 wxFont *arg1 = (wxFont *) 0 ;
14205 wxFontEncoding result;
14206 void *argp1 = 0 ;
14207 int res1 = 0 ;
14208 PyObject *swig_obj[1] ;
14209
14210 if (!args) SWIG_fail;
14211 swig_obj[0] = args;
14212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14213 if (!SWIG_IsOK(res1)) {
14214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14215 }
14216 arg1 = reinterpret_cast< wxFont * >(argp1);
14217 {
14218 PyThreadState* __tstate = wxPyBeginAllowThreads();
14219 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14220 wxPyEndAllowThreads(__tstate);
14221 if (PyErr_Occurred()) SWIG_fail;
14222 }
14223 resultobj = SWIG_From_int(static_cast< int >(result));
14224 return resultobj;
14225fail:
14226 return NULL;
d55e5bfc
RD
14227}
14228
14229
1bd55598
RD
14230SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14231 PyObject *resultobj = 0;
14232 wxFont *arg1 = (wxFont *) 0 ;
14233 wxNativeFontInfo *result = 0 ;
14234 void *argp1 = 0 ;
14235 int res1 = 0 ;
14236 PyObject *swig_obj[1] ;
14237
14238 if (!args) SWIG_fail;
14239 swig_obj[0] = args;
14240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14241 if (!SWIG_IsOK(res1)) {
14242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14243 }
14244 arg1 = reinterpret_cast< wxFont * >(argp1);
14245 {
14246 PyThreadState* __tstate = wxPyBeginAllowThreads();
14247 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14248 wxPyEndAllowThreads(__tstate);
14249 if (PyErr_Occurred()) SWIG_fail;
14250 }
14251 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14252 return resultobj;
14253fail:
14254 return NULL;
d55e5bfc
RD
14255}
14256
14257
1bd55598
RD
14258SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14259 PyObject *resultobj = 0;
14260 wxFont *arg1 = (wxFont *) 0 ;
14261 bool result;
14262 void *argp1 = 0 ;
14263 int res1 = 0 ;
14264 PyObject *swig_obj[1] ;
14265
14266 if (!args) SWIG_fail;
14267 swig_obj[0] = args;
14268 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14269 if (!SWIG_IsOK(res1)) {
14270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14271 }
14272 arg1 = reinterpret_cast< wxFont * >(argp1);
14273 {
14274 PyThreadState* __tstate = wxPyBeginAllowThreads();
14275 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14276 wxPyEndAllowThreads(__tstate);
14277 if (PyErr_Occurred()) SWIG_fail;
14278 }
14279 {
14280 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14281 }
14282 return resultobj;
14283fail:
14284 return NULL;
d55e5bfc
RD
14285}
14286
14287
1bd55598
RD
14288SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14289 PyObject *resultobj = 0;
14290 wxFont *arg1 = (wxFont *) 0 ;
14291 wxString result;
14292 void *argp1 = 0 ;
14293 int res1 = 0 ;
14294 PyObject *swig_obj[1] ;
14295
14296 if (!args) SWIG_fail;
14297 swig_obj[0] = args;
14298 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14299 if (!SWIG_IsOK(res1)) {
14300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14301 }
14302 arg1 = reinterpret_cast< wxFont * >(argp1);
14303 {
14304 PyThreadState* __tstate = wxPyBeginAllowThreads();
14305 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14306 wxPyEndAllowThreads(__tstate);
14307 if (PyErr_Occurred()) SWIG_fail;
14308 }
14309 {
14310#if wxUSE_UNICODE
14311 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14312#else
14313 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14314#endif
14315 }
14316 return resultobj;
14317fail:
14318 return NULL;
d55e5bfc
RD
14319}
14320
14321
1bd55598
RD
14322SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14323 PyObject *resultobj = 0;
14324 wxFont *arg1 = (wxFont *) 0 ;
14325 wxString result;
14326 void *argp1 = 0 ;
14327 int res1 = 0 ;
14328 PyObject *swig_obj[1] ;
14329
14330 if (!args) SWIG_fail;
14331 swig_obj[0] = args;
14332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14333 if (!SWIG_IsOK(res1)) {
14334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14335 }
14336 arg1 = reinterpret_cast< wxFont * >(argp1);
14337 {
14338 PyThreadState* __tstate = wxPyBeginAllowThreads();
14339 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14340 wxPyEndAllowThreads(__tstate);
14341 if (PyErr_Occurred()) SWIG_fail;
14342 }
14343 {
14344#if wxUSE_UNICODE
14345 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14346#else
14347 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14348#endif
14349 }
14350 return resultobj;
14351fail:
14352 return NULL;
14353}
14354
14355
14356SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14357 PyObject *resultobj = 0;
14358 wxFont *arg1 = (wxFont *) 0 ;
14359 int arg2 ;
14360 void *argp1 = 0 ;
14361 int res1 = 0 ;
14362 int val2 ;
14363 int ecode2 = 0 ;
14364 PyObject * obj0 = 0 ;
14365 PyObject * obj1 = 0 ;
14366 char * kwnames[] = {
14367 (char *) "self",(char *) "pointSize", NULL
14368 };
14369
14370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14372 if (!SWIG_IsOK(res1)) {
14373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14374 }
14375 arg1 = reinterpret_cast< wxFont * >(argp1);
14376 ecode2 = SWIG_AsVal_int(obj1, &val2);
14377 if (!SWIG_IsOK(ecode2)) {
14378 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14379 }
14380 arg2 = static_cast< int >(val2);
14381 {
14382 PyThreadState* __tstate = wxPyBeginAllowThreads();
14383 (arg1)->SetPointSize(arg2);
14384 wxPyEndAllowThreads(__tstate);
14385 if (PyErr_Occurred()) SWIG_fail;
14386 }
14387 resultobj = SWIG_Py_Void();
14388 return resultobj;
14389fail:
14390 return NULL;
14391}
14392
14393
14394SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14395 PyObject *resultobj = 0;
14396 wxFont *arg1 = (wxFont *) 0 ;
14397 wxSize *arg2 = 0 ;
14398 void *argp1 = 0 ;
14399 int res1 = 0 ;
14400 wxSize temp2 ;
14401 PyObject * obj0 = 0 ;
14402 PyObject * obj1 = 0 ;
14403 char * kwnames[] = {
14404 (char *) "self",(char *) "pixelSize", NULL
14405 };
14406
14407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14409 if (!SWIG_IsOK(res1)) {
14410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14411 }
14412 arg1 = reinterpret_cast< wxFont * >(argp1);
14413 {
14414 arg2 = &temp2;
14415 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14416 }
14417 {
14418 PyThreadState* __tstate = wxPyBeginAllowThreads();
14419 (arg1)->SetPixelSize((wxSize const &)*arg2);
14420 wxPyEndAllowThreads(__tstate);
14421 if (PyErr_Occurred()) SWIG_fail;
14422 }
14423 resultobj = SWIG_Py_Void();
14424 return resultobj;
14425fail:
14426 return NULL;
14427}
14428
14429
14430SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14431 PyObject *resultobj = 0;
14432 wxFont *arg1 = (wxFont *) 0 ;
14433 int arg2 ;
14434 void *argp1 = 0 ;
14435 int res1 = 0 ;
14436 int val2 ;
14437 int ecode2 = 0 ;
14438 PyObject * obj0 = 0 ;
14439 PyObject * obj1 = 0 ;
14440 char * kwnames[] = {
14441 (char *) "self",(char *) "family", NULL
14442 };
14443
14444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14446 if (!SWIG_IsOK(res1)) {
14447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14448 }
14449 arg1 = reinterpret_cast< wxFont * >(argp1);
14450 ecode2 = SWIG_AsVal_int(obj1, &val2);
14451 if (!SWIG_IsOK(ecode2)) {
14452 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14453 }
14454 arg2 = static_cast< int >(val2);
14455 {
14456 PyThreadState* __tstate = wxPyBeginAllowThreads();
14457 (arg1)->SetFamily(arg2);
14458 wxPyEndAllowThreads(__tstate);
14459 if (PyErr_Occurred()) SWIG_fail;
14460 }
14461 resultobj = SWIG_Py_Void();
14462 return resultobj;
14463fail:
14464 return NULL;
14465}
14466
14467
14468SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14469 PyObject *resultobj = 0;
14470 wxFont *arg1 = (wxFont *) 0 ;
14471 int arg2 ;
14472 void *argp1 = 0 ;
14473 int res1 = 0 ;
14474 int val2 ;
14475 int ecode2 = 0 ;
14476 PyObject * obj0 = 0 ;
14477 PyObject * obj1 = 0 ;
14478 char * kwnames[] = {
14479 (char *) "self",(char *) "style", NULL
14480 };
14481
14482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14484 if (!SWIG_IsOK(res1)) {
14485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14486 }
14487 arg1 = reinterpret_cast< wxFont * >(argp1);
14488 ecode2 = SWIG_AsVal_int(obj1, &val2);
14489 if (!SWIG_IsOK(ecode2)) {
14490 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14491 }
14492 arg2 = static_cast< int >(val2);
14493 {
14494 PyThreadState* __tstate = wxPyBeginAllowThreads();
14495 (arg1)->SetStyle(arg2);
14496 wxPyEndAllowThreads(__tstate);
14497 if (PyErr_Occurred()) SWIG_fail;
14498 }
14499 resultobj = SWIG_Py_Void();
14500 return resultobj;
14501fail:
14502 return NULL;
14503}
14504
14505
14506SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14507 PyObject *resultobj = 0;
14508 wxFont *arg1 = (wxFont *) 0 ;
14509 int arg2 ;
14510 void *argp1 = 0 ;
14511 int res1 = 0 ;
14512 int val2 ;
14513 int ecode2 = 0 ;
14514 PyObject * obj0 = 0 ;
14515 PyObject * obj1 = 0 ;
14516 char * kwnames[] = {
14517 (char *) "self",(char *) "weight", NULL
14518 };
14519
14520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14522 if (!SWIG_IsOK(res1)) {
14523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14524 }
14525 arg1 = reinterpret_cast< wxFont * >(argp1);
14526 ecode2 = SWIG_AsVal_int(obj1, &val2);
14527 if (!SWIG_IsOK(ecode2)) {
14528 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14529 }
14530 arg2 = static_cast< int >(val2);
14531 {
14532 PyThreadState* __tstate = wxPyBeginAllowThreads();
14533 (arg1)->SetWeight(arg2);
14534 wxPyEndAllowThreads(__tstate);
14535 if (PyErr_Occurred()) SWIG_fail;
14536 }
14537 resultobj = SWIG_Py_Void();
14538 return resultobj;
14539fail:
14540 return NULL;
14541}
14542
14543
14544SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14545 PyObject *resultobj = 0;
14546 wxFont *arg1 = (wxFont *) 0 ;
14547 wxString *arg2 = 0 ;
704eda0c 14548 bool result;
1bd55598
RD
14549 void *argp1 = 0 ;
14550 int res1 = 0 ;
14551 bool temp2 = false ;
14552 PyObject * obj0 = 0 ;
14553 PyObject * obj1 = 0 ;
14554 char * kwnames[] = {
14555 (char *) "self",(char *) "faceName", NULL
14556 };
14557
14558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14560 if (!SWIG_IsOK(res1)) {
14561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14562 }
14563 arg1 = reinterpret_cast< wxFont * >(argp1);
14564 {
14565 arg2 = wxString_in_helper(obj1);
14566 if (arg2 == NULL) SWIG_fail;
14567 temp2 = true;
14568 }
14569 {
14570 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 14571 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
1bd55598
RD
14572 wxPyEndAllowThreads(__tstate);
14573 if (PyErr_Occurred()) SWIG_fail;
14574 }
704eda0c
RD
14575 {
14576 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14577 }
1bd55598
RD
14578 {
14579 if (temp2)
14580 delete arg2;
14581 }
14582 return resultobj;
14583fail:
14584 {
14585 if (temp2)
14586 delete arg2;
14587 }
14588 return NULL;
14589}
14590
14591
14592SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14593 PyObject *resultobj = 0;
14594 wxFont *arg1 = (wxFont *) 0 ;
14595 bool arg2 ;
14596 void *argp1 = 0 ;
14597 int res1 = 0 ;
14598 bool val2 ;
14599 int ecode2 = 0 ;
14600 PyObject * obj0 = 0 ;
14601 PyObject * obj1 = 0 ;
14602 char * kwnames[] = {
14603 (char *) "self",(char *) "underlined", NULL
14604 };
14605
14606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14608 if (!SWIG_IsOK(res1)) {
14609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14610 }
14611 arg1 = reinterpret_cast< wxFont * >(argp1);
14612 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14613 if (!SWIG_IsOK(ecode2)) {
14614 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14615 }
14616 arg2 = static_cast< bool >(val2);
14617 {
14618 PyThreadState* __tstate = wxPyBeginAllowThreads();
14619 (arg1)->SetUnderlined(arg2);
14620 wxPyEndAllowThreads(__tstate);
14621 if (PyErr_Occurred()) SWIG_fail;
14622 }
14623 resultobj = SWIG_Py_Void();
14624 return resultobj;
14625fail:
14626 return NULL;
14627}
14628
14629
14630SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14631 PyObject *resultobj = 0;
14632 wxFont *arg1 = (wxFont *) 0 ;
14633 wxFontEncoding arg2 ;
14634 void *argp1 = 0 ;
14635 int res1 = 0 ;
14636 int val2 ;
14637 int ecode2 = 0 ;
14638 PyObject * obj0 = 0 ;
14639 PyObject * obj1 = 0 ;
14640 char * kwnames[] = {
14641 (char *) "self",(char *) "encoding", NULL
14642 };
14643
14644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
14645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14646 if (!SWIG_IsOK(res1)) {
14647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
14648 }
14649 arg1 = reinterpret_cast< wxFont * >(argp1);
14650 ecode2 = SWIG_AsVal_int(obj1, &val2);
14651 if (!SWIG_IsOK(ecode2)) {
14652 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14653 }
14654 arg2 = static_cast< wxFontEncoding >(val2);
14655 {
14656 PyThreadState* __tstate = wxPyBeginAllowThreads();
14657 (arg1)->SetEncoding(arg2);
14658 wxPyEndAllowThreads(__tstate);
14659 if (PyErr_Occurred()) SWIG_fail;
14660 }
14661 resultobj = SWIG_Py_Void();
14662 return resultobj;
14663fail:
14664 return NULL;
14665}
14666
14667
14668SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14669 PyObject *resultobj = 0;
14670 wxFont *arg1 = (wxFont *) 0 ;
14671 wxNativeFontInfo *arg2 = 0 ;
14672 void *argp1 = 0 ;
14673 int res1 = 0 ;
14674 void *argp2 = 0 ;
14675 int res2 = 0 ;
14676 PyObject * obj0 = 0 ;
14677 PyObject * obj1 = 0 ;
14678 char * kwnames[] = {
14679 (char *) "self",(char *) "info", NULL
14680 };
14681
14682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
14683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14684 if (!SWIG_IsOK(res1)) {
14685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
14686 }
14687 arg1 = reinterpret_cast< wxFont * >(argp1);
14688 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14689 if (!SWIG_IsOK(res2)) {
14690 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14691 }
14692 if (!argp2) {
14693 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14694 }
14695 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
14696 {
14697 PyThreadState* __tstate = wxPyBeginAllowThreads();
14698 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
14699 wxPyEndAllowThreads(__tstate);
14700 if (PyErr_Occurred()) SWIG_fail;
14701 }
14702 resultobj = SWIG_Py_Void();
14703 return resultobj;
14704fail:
14705 return NULL;
14706}
14707
14708
14709SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14710 PyObject *resultobj = 0;
14711 wxFont *arg1 = (wxFont *) 0 ;
14712 wxString *arg2 = 0 ;
704eda0c 14713 bool result;
1bd55598
RD
14714 void *argp1 = 0 ;
14715 int res1 = 0 ;
14716 bool temp2 = false ;
14717 PyObject * obj0 = 0 ;
14718 PyObject * obj1 = 0 ;
14719 char * kwnames[] = {
14720 (char *) "self",(char *) "info", NULL
14721 };
14722
14723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
14724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14725 if (!SWIG_IsOK(res1)) {
14726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
14727 }
14728 arg1 = reinterpret_cast< wxFont * >(argp1);
14729 {
14730 arg2 = wxString_in_helper(obj1);
14731 if (arg2 == NULL) SWIG_fail;
14732 temp2 = true;
14733 }
14734 {
14735 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 14736 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
1bd55598
RD
14737 wxPyEndAllowThreads(__tstate);
14738 if (PyErr_Occurred()) SWIG_fail;
14739 }
704eda0c
RD
14740 {
14741 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14742 }
1bd55598
RD
14743 {
14744 if (temp2)
14745 delete arg2;
14746 }
14747 return resultobj;
14748fail:
14749 {
14750 if (temp2)
14751 delete arg2;
14752 }
14753 return NULL;
d55e5bfc
RD
14754}
14755
14756
1bd55598
RD
14757SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14758 PyObject *resultobj = 0;
14759 wxFont *arg1 = (wxFont *) 0 ;
14760 wxString *arg2 = 0 ;
704eda0c 14761 bool result;
1bd55598
RD
14762 void *argp1 = 0 ;
14763 int res1 = 0 ;
14764 bool temp2 = false ;
14765 PyObject * obj0 = 0 ;
14766 PyObject * obj1 = 0 ;
14767 char * kwnames[] = {
14768 (char *) "self",(char *) "info", NULL
14769 };
14770
14771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
14772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14773 if (!SWIG_IsOK(res1)) {
14774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
14775 }
14776 arg1 = reinterpret_cast< wxFont * >(argp1);
14777 {
14778 arg2 = wxString_in_helper(obj1);
14779 if (arg2 == NULL) SWIG_fail;
14780 temp2 = true;
14781 }
14782 {
14783 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 14784 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
1bd55598
RD
14785 wxPyEndAllowThreads(__tstate);
14786 if (PyErr_Occurred()) SWIG_fail;
14787 }
704eda0c
RD
14788 {
14789 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14790 }
1bd55598
RD
14791 {
14792 if (temp2)
14793 delete arg2;
14794 }
14795 return resultobj;
14796fail:
14797 {
14798 if (temp2)
14799 delete arg2;
14800 }
14801 return NULL;
d55e5bfc
RD
14802}
14803
14804
1bd55598
RD
14805SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14806 PyObject *resultobj = 0;
14807 wxFont *arg1 = (wxFont *) 0 ;
14808 wxString result;
14809 void *argp1 = 0 ;
14810 int res1 = 0 ;
14811 PyObject *swig_obj[1] ;
14812
14813 if (!args) SWIG_fail;
14814 swig_obj[0] = args;
14815 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14816 if (!SWIG_IsOK(res1)) {
14817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
14818 }
14819 arg1 = reinterpret_cast< wxFont * >(argp1);
14820 {
14821 PyThreadState* __tstate = wxPyBeginAllowThreads();
14822 result = ((wxFont const *)arg1)->GetFamilyString();
14823 wxPyEndAllowThreads(__tstate);
14824 if (PyErr_Occurred()) SWIG_fail;
14825 }
14826 {
14827#if wxUSE_UNICODE
14828 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14829#else
14830 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14831#endif
14832 }
14833 return resultobj;
14834fail:
14835 return NULL;
d55e5bfc
RD
14836}
14837
14838
1bd55598
RD
14839SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14840 PyObject *resultobj = 0;
14841 wxFont *arg1 = (wxFont *) 0 ;
14842 wxString result;
14843 void *argp1 = 0 ;
14844 int res1 = 0 ;
14845 PyObject *swig_obj[1] ;
14846
14847 if (!args) SWIG_fail;
14848 swig_obj[0] = args;
14849 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14850 if (!SWIG_IsOK(res1)) {
14851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
14852 }
14853 arg1 = reinterpret_cast< wxFont * >(argp1);
14854 {
14855 PyThreadState* __tstate = wxPyBeginAllowThreads();
14856 result = ((wxFont const *)arg1)->GetStyleString();
14857 wxPyEndAllowThreads(__tstate);
14858 if (PyErr_Occurred()) SWIG_fail;
14859 }
14860 {
14861#if wxUSE_UNICODE
14862 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14863#else
14864 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14865#endif
14866 }
14867 return resultobj;
14868fail:
14869 return NULL;
d55e5bfc
RD
14870}
14871
14872
1bd55598
RD
14873SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14874 PyObject *resultobj = 0;
14875 wxFont *arg1 = (wxFont *) 0 ;
14876 wxString result;
14877 void *argp1 = 0 ;
14878 int res1 = 0 ;
14879 PyObject *swig_obj[1] ;
14880
14881 if (!args) SWIG_fail;
14882 swig_obj[0] = args;
14883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14884 if (!SWIG_IsOK(res1)) {
14885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
14886 }
14887 arg1 = reinterpret_cast< wxFont * >(argp1);
14888 {
14889 PyThreadState* __tstate = wxPyBeginAllowThreads();
14890 result = ((wxFont const *)arg1)->GetWeightString();
14891 wxPyEndAllowThreads(__tstate);
14892 if (PyErr_Occurred()) SWIG_fail;
14893 }
14894 {
14895#if wxUSE_UNICODE
14896 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14897#else
14898 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14899#endif
14900 }
14901 return resultobj;
14902fail:
14903 return NULL;
14904}
14905
14906
14907SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14908 PyObject *resultobj = 0;
14909 wxFont *arg1 = (wxFont *) 0 ;
14910 bool arg2 = (bool) true ;
14911 void *argp1 = 0 ;
14912 int res1 = 0 ;
14913 bool val2 ;
14914 int ecode2 = 0 ;
14915 PyObject * obj0 = 0 ;
14916 PyObject * obj1 = 0 ;
14917 char * kwnames[] = {
14918 (char *) "self",(char *) "no", NULL
14919 };
14920
14921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
14922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14923 if (!SWIG_IsOK(res1)) {
14924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
14925 }
14926 arg1 = reinterpret_cast< wxFont * >(argp1);
14927 if (obj1) {
14928 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14929 if (!SWIG_IsOK(ecode2)) {
14930 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
14931 }
14932 arg2 = static_cast< bool >(val2);
14933 }
14934 {
14935 PyThreadState* __tstate = wxPyBeginAllowThreads();
14936 (arg1)->SetNoAntiAliasing(arg2);
14937 wxPyEndAllowThreads(__tstate);
14938 if (PyErr_Occurred()) SWIG_fail;
14939 }
14940 resultobj = SWIG_Py_Void();
14941 return resultobj;
14942fail:
14943 return NULL;
d55e5bfc
RD
14944}
14945
14946
1bd55598
RD
14947SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14948 PyObject *resultobj = 0;
14949 wxFont *arg1 = (wxFont *) 0 ;
14950 bool result;
14951 void *argp1 = 0 ;
14952 int res1 = 0 ;
14953 PyObject *swig_obj[1] ;
14954
14955 if (!args) SWIG_fail;
14956 swig_obj[0] = args;
14957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14958 if (!SWIG_IsOK(res1)) {
14959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
14960 }
14961 arg1 = reinterpret_cast< wxFont * >(argp1);
14962 {
14963 PyThreadState* __tstate = wxPyBeginAllowThreads();
14964 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
14965 wxPyEndAllowThreads(__tstate);
14966 if (PyErr_Occurred()) SWIG_fail;
14967 }
14968 {
14969 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14970 }
14971 return resultobj;
14972fail:
14973 return NULL;
d55e5bfc
RD
14974}
14975
14976
1bd55598
RD
14977SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14978 PyObject *resultobj = 0;
14979 wxFontEncoding result;
14980
14981 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
14982 {
14983 if (!wxPyCheckForApp()) SWIG_fail;
14984 PyThreadState* __tstate = wxPyBeginAllowThreads();
14985 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
14986 wxPyEndAllowThreads(__tstate);
14987 if (PyErr_Occurred()) SWIG_fail;
14988 }
14989 resultobj = SWIG_From_int(static_cast< int >(result));
14990 return resultobj;
14991fail:
14992 return NULL;
d55e5bfc
RD
14993}
14994
14995
1bd55598
RD
14996SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14997 PyObject *resultobj = 0;
14998 wxFontEncoding arg1 ;
14999 int val1 ;
15000 int ecode1 = 0 ;
15001 PyObject * obj0 = 0 ;
15002 char * kwnames[] = {
15003 (char *) "encoding", NULL
15004 };
15005
15006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15007 ecode1 = SWIG_AsVal_int(obj0, &val1);
15008 if (!SWIG_IsOK(ecode1)) {
15009 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15010 }
15011 arg1 = static_cast< wxFontEncoding >(val1);
15012 {
15013 if (!wxPyCheckForApp()) SWIG_fail;
15014 PyThreadState* __tstate = wxPyBeginAllowThreads();
15015 wxFont::SetDefaultEncoding(arg1);
15016 wxPyEndAllowThreads(__tstate);
15017 if (PyErr_Occurred()) SWIG_fail;
15018 }
15019 resultobj = SWIG_Py_Void();
15020 return resultobj;
15021fail:
15022 return NULL;
d55e5bfc
RD
15023}
15024
15025
1bd55598
RD
15026SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15027 PyObject *obj;
15028 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15029 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15030 return SWIG_Py_Void();
d55e5bfc 15031}
d55e5bfc 15032
1bd55598
RD
15033SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15034 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
15035}
15036
1bd55598
RD
15037SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15038 PyObject *resultobj = 0;
15039 wxPyFontEnumerator *result = 0 ;
15040
15041 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15042 {
15043 if (!wxPyCheckForApp()) SWIG_fail;
15044 PyThreadState* __tstate = wxPyBeginAllowThreads();
15045 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15046 wxPyEndAllowThreads(__tstate);
15047 if (PyErr_Occurred()) SWIG_fail;
15048 }
15049 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15050 return resultobj;
15051fail:
15052 return NULL;
d55e5bfc
RD
15053}
15054
15055
1bd55598
RD
15056SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15057 PyObject *resultobj = 0;
15058 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15059 void *argp1 = 0 ;
15060 int res1 = 0 ;
15061 PyObject *swig_obj[1] ;
15062
15063 if (!args) SWIG_fail;
15064 swig_obj[0] = args;
15065 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15066 if (!SWIG_IsOK(res1)) {
15067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15068 }
15069 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15070 {
15071 PyThreadState* __tstate = wxPyBeginAllowThreads();
15072 delete arg1;
d55e5bfc 15073
1bd55598
RD
15074 wxPyEndAllowThreads(__tstate);
15075 if (PyErr_Occurred()) SWIG_fail;
15076 }
15077 resultobj = SWIG_Py_Void();
15078 return resultobj;
15079fail:
15080 return NULL;
15081}
15082
15083
15084SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15085 PyObject *resultobj = 0;
15086 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15087 PyObject *arg2 = (PyObject *) 0 ;
15088 PyObject *arg3 = (PyObject *) 0 ;
15089 bool arg4 ;
15090 void *argp1 = 0 ;
15091 int res1 = 0 ;
15092 bool val4 ;
15093 int ecode4 = 0 ;
15094 PyObject * obj0 = 0 ;
15095 PyObject * obj1 = 0 ;
15096 PyObject * obj2 = 0 ;
15097 PyObject * obj3 = 0 ;
15098 char * kwnames[] = {
15099 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15100 };
15101
15102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15104 if (!SWIG_IsOK(res1)) {
15105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15106 }
15107 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15108 arg2 = obj1;
15109 arg3 = obj2;
15110 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15111 if (!SWIG_IsOK(ecode4)) {
15112 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
15113 }
15114 arg4 = static_cast< bool >(val4);
15115 {
15116 PyThreadState* __tstate = wxPyBeginAllowThreads();
15117 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15118 wxPyEndAllowThreads(__tstate);
15119 if (PyErr_Occurred()) SWIG_fail;
15120 }
15121 resultobj = SWIG_Py_Void();
15122 return resultobj;
15123fail:
15124 return NULL;
15125}
15126
15127
15128SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15129 PyObject *resultobj = 0;
15130 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15131 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15132 bool arg3 = (bool) false ;
15133 bool result;
15134 void *argp1 = 0 ;
15135 int res1 = 0 ;
15136 int val2 ;
15137 int ecode2 = 0 ;
15138 bool val3 ;
15139 int ecode3 = 0 ;
15140 PyObject * obj0 = 0 ;
15141 PyObject * obj1 = 0 ;
15142 PyObject * obj2 = 0 ;
15143 char * kwnames[] = {
15144 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15145 };
15146
15147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15149 if (!SWIG_IsOK(res1)) {
15150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15151 }
15152 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15153 if (obj1) {
15154 ecode2 = SWIG_AsVal_int(obj1, &val2);
15155 if (!SWIG_IsOK(ecode2)) {
15156 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15157 }
15158 arg2 = static_cast< wxFontEncoding >(val2);
15159 }
15160 if (obj2) {
15161 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15162 if (!SWIG_IsOK(ecode3)) {
15163 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15164 }
15165 arg3 = static_cast< bool >(val3);
15166 }
15167 {
15168 PyThreadState* __tstate = wxPyBeginAllowThreads();
15169 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15170 wxPyEndAllowThreads(__tstate);
15171 if (PyErr_Occurred()) SWIG_fail;
15172 }
15173 {
15174 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15175 }
15176 return resultobj;
15177fail:
15178 return NULL;
15179}
15180
15181
15182SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15183 PyObject *resultobj = 0;
15184 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15185 wxString const &arg2_defvalue = wxPyEmptyString ;
15186 wxString *arg2 = (wxString *) &arg2_defvalue ;
15187 bool result;
15188 void *argp1 = 0 ;
15189 int res1 = 0 ;
15190 bool temp2 = false ;
15191 PyObject * obj0 = 0 ;
15192 PyObject * obj1 = 0 ;
15193 char * kwnames[] = {
15194 (char *) "self",(char *) "facename", NULL
15195 };
15196
15197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15199 if (!SWIG_IsOK(res1)) {
15200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15201 }
15202 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15203 if (obj1) {
36ed4f51 15204 {
1bd55598
RD
15205 arg2 = wxString_in_helper(obj1);
15206 if (arg2 == NULL) SWIG_fail;
15207 temp2 = true;
36ed4f51 15208 }
1bd55598
RD
15209 }
15210 {
15211 PyThreadState* __tstate = wxPyBeginAllowThreads();
15212 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15213 wxPyEndAllowThreads(__tstate);
15214 if (PyErr_Occurred()) SWIG_fail;
15215 }
15216 {
15217 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15218 }
15219 {
15220 if (temp2)
15221 delete arg2;
15222 }
15223 return resultobj;
15224fail:
15225 {
15226 if (temp2)
15227 delete arg2;
15228 }
15229 return NULL;
d55e5bfc
RD
15230}
15231
15232
1bd55598
RD
15233SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15234 PyObject *resultobj = 0;
1bd55598 15235 PyObject *result = 0 ;
1bd55598 15236
704eda0c 15237 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
1bd55598
RD
15238 {
15239 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15240 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
1bd55598
RD
15241 wxPyEndAllowThreads(__tstate);
15242 if (PyErr_Occurred()) SWIG_fail;
15243 }
15244 resultobj = result;
15245 return resultobj;
15246fail:
15247 return NULL;
d55e5bfc
RD
15248}
15249
15250
1bd55598
RD
15251SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15252 PyObject *resultobj = 0;
1bd55598 15253 PyObject *result = 0 ;
1bd55598 15254
704eda0c 15255 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
1bd55598
RD
15256 {
15257 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15258 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
1bd55598
RD
15259 wxPyEndAllowThreads(__tstate);
15260 if (PyErr_Occurred()) SWIG_fail;
15261 }
15262 resultobj = result;
15263 return resultobj;
15264fail:
15265 return NULL;
d55e5bfc
RD
15266}
15267
15268
704eda0c
RD
15269SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15270 PyObject *resultobj = 0;
15271 wxString *arg1 = 0 ;
15272 bool result;
15273 bool temp1 = false ;
15274 PyObject * obj0 = 0 ;
15275 char * kwnames[] = {
15276 (char *) "str", NULL
15277 };
15278
15279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15280 {
15281 arg1 = wxString_in_helper(obj0);
15282 if (arg1 == NULL) SWIG_fail;
15283 temp1 = true;
15284 }
15285 {
15286 PyThreadState* __tstate = wxPyBeginAllowThreads();
15287 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15288 wxPyEndAllowThreads(__tstate);
15289 if (PyErr_Occurred()) SWIG_fail;
15290 }
15291 {
15292 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15293 }
15294 {
15295 if (temp1)
15296 delete arg1;
15297 }
15298 return resultobj;
15299fail:
15300 {
15301 if (temp1)
15302 delete arg1;
15303 }
15304 return NULL;
15305}
15306
15307
1bd55598
RD
15308SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15309 PyObject *obj;
15310 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15311 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15312 return SWIG_Py_Void();
d55e5bfc
RD
15313}
15314
1bd55598
RD
15315SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15316 return SWIG_Python_InitShadowInstance(args);
15317}
d55e5bfc 15318
1bd55598
RD
15319SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15320 PyObject *resultobj = 0;
15321 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15322 int arg2 ;
15323 void *argp1 = 0 ;
15324 int res1 = 0 ;
15325 int val2 ;
15326 int ecode2 = 0 ;
15327 PyObject *swig_obj[2] ;
15328
15329 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15330 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15331 if (!SWIG_IsOK(res1)) {
15332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15333 }
15334 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15335 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15336 if (!SWIG_IsOK(ecode2)) {
15337 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15338 }
15339 arg2 = static_cast< int >(val2);
15340 if (arg1) (arg1)->Language = arg2;
15341
15342 resultobj = SWIG_Py_Void();
15343 return resultobj;
15344fail:
15345 return NULL;
d55e5bfc
RD
15346}
15347
15348
1bd55598
RD
15349SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15350 PyObject *resultobj = 0;
15351 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15352 int result;
15353 void *argp1 = 0 ;
15354 int res1 = 0 ;
15355 PyObject *swig_obj[1] ;
15356
15357 if (!args) SWIG_fail;
15358 swig_obj[0] = args;
15359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15360 if (!SWIG_IsOK(res1)) {
15361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15362 }
15363 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15364 result = (int) ((arg1)->Language);
15365 resultobj = SWIG_From_int(static_cast< int >(result));
15366 return resultobj;
15367fail:
15368 return NULL;
15369}
15370
15371
15372SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15373 PyObject *resultobj = 0;
15374 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15375 wxString *arg2 = (wxString *) 0 ;
15376 void *argp1 = 0 ;
15377 int res1 = 0 ;
15378 bool temp2 = false ;
15379 PyObject *swig_obj[2] ;
15380
15381 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15383 if (!SWIG_IsOK(res1)) {
15384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15385 }
15386 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15387 {
15388 arg2 = wxString_in_helper(swig_obj[1]);
15389 if (arg2 == NULL) SWIG_fail;
15390 temp2 = true;
15391 }
15392 if (arg1) (arg1)->CanonicalName = *arg2;
15393
15394 resultobj = SWIG_Py_Void();
15395 {
15396 if (temp2)
15397 delete arg2;
15398 }
15399 return resultobj;
15400fail:
15401 {
15402 if (temp2)
15403 delete arg2;
15404 }
15405 return NULL;
d55e5bfc
RD
15406}
15407
15408
1bd55598
RD
15409SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15410 PyObject *resultobj = 0;
15411 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15412 wxString *result = 0 ;
15413 void *argp1 = 0 ;
15414 int res1 = 0 ;
15415 PyObject *swig_obj[1] ;
15416
15417 if (!args) SWIG_fail;
15418 swig_obj[0] = args;
15419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15420 if (!SWIG_IsOK(res1)) {
15421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15422 }
15423 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15424 result = (wxString *)& ((arg1)->CanonicalName);
15425 {
15426#if wxUSE_UNICODE
15427 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15428#else
15429 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15430#endif
15431 }
15432 return resultobj;
15433fail:
15434 return NULL;
d55e5bfc
RD
15435}
15436
15437
1bd55598
RD
15438SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15439 PyObject *resultobj = 0;
15440 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15441 wxString *arg2 = (wxString *) 0 ;
15442 void *argp1 = 0 ;
15443 int res1 = 0 ;
15444 bool temp2 = false ;
15445 PyObject *swig_obj[2] ;
15446
15447 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15448 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15449 if (!SWIG_IsOK(res1)) {
15450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15451 }
15452 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15453 {
15454 arg2 = wxString_in_helper(swig_obj[1]);
15455 if (arg2 == NULL) SWIG_fail;
15456 temp2 = true;
15457 }
15458 if (arg1) (arg1)->Description = *arg2;
15459
15460 resultobj = SWIG_Py_Void();
15461 {
15462 if (temp2)
15463 delete arg2;
15464 }
15465 return resultobj;
15466fail:
15467 {
15468 if (temp2)
15469 delete arg2;
15470 }
15471 return NULL;
d55e5bfc
RD
15472}
15473
15474
1bd55598
RD
15475SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15476 PyObject *resultobj = 0;
15477 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15478 wxString *result = 0 ;
15479 void *argp1 = 0 ;
15480 int res1 = 0 ;
15481 PyObject *swig_obj[1] ;
15482
15483 if (!args) SWIG_fail;
15484 swig_obj[0] = args;
15485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15486 if (!SWIG_IsOK(res1)) {
15487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15488 }
15489 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15490 result = (wxString *)& ((arg1)->Description);
15491 {
15492#if wxUSE_UNICODE
15493 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15494#else
15495 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15496#endif
15497 }
15498 return resultobj;
15499fail:
15500 return NULL;
15501}
15502
15503
15504SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15505 PyObject *obj;
15506 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15507 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15508 return SWIG_Py_Void();
15509}
15510
15511SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15512 PyObject *resultobj = 0;
15513 int arg1 = (int) -1 ;
15514 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15515 wxLocale *result = 0 ;
15516 int val1 ;
15517 int ecode1 = 0 ;
15518 int val2 ;
15519 int ecode2 = 0 ;
15520 PyObject * obj0 = 0 ;
15521 PyObject * obj1 = 0 ;
15522 char * kwnames[] = {
15523 (char *) "language",(char *) "flags", NULL
15524 };
15525
15526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15527 if (obj0) {
15528 ecode1 = SWIG_AsVal_int(obj0, &val1);
15529 if (!SWIG_IsOK(ecode1)) {
15530 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15531 }
15532 arg1 = static_cast< int >(val1);
15533 }
15534 if (obj1) {
15535 ecode2 = SWIG_AsVal_int(obj1, &val2);
15536 if (!SWIG_IsOK(ecode2)) {
15537 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15538 }
15539 arg2 = static_cast< int >(val2);
15540 }
15541 {
15542 PyThreadState* __tstate = wxPyBeginAllowThreads();
15543 result = (wxLocale *)new_wxLocale(arg1,arg2);
15544 wxPyEndAllowThreads(__tstate);
15545 if (PyErr_Occurred()) SWIG_fail;
15546 }
15547 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15548 return resultobj;
15549fail:
15550 return NULL;
d55e5bfc
RD
15551}
15552
15553
1bd55598
RD
15554SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15555 PyObject *resultobj = 0;
15556 wxLocale *arg1 = (wxLocale *) 0 ;
15557 void *argp1 = 0 ;
15558 int res1 = 0 ;
15559 PyObject *swig_obj[1] ;
15560
15561 if (!args) SWIG_fail;
15562 swig_obj[0] = args;
15563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15564 if (!SWIG_IsOK(res1)) {
15565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15566 }
15567 arg1 = reinterpret_cast< wxLocale * >(argp1);
15568 {
15569 PyThreadState* __tstate = wxPyBeginAllowThreads();
15570 delete arg1;
d55e5bfc 15571
1bd55598
RD
15572 wxPyEndAllowThreads(__tstate);
15573 if (PyErr_Occurred()) SWIG_fail;
15574 }
15575 resultobj = SWIG_Py_Void();
15576 return resultobj;
15577fail:
15578 return NULL;
15579}
15580
15581
15582SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15583 PyObject *resultobj = 0;
15584 wxLocale *arg1 = (wxLocale *) 0 ;
15585 wxString *arg2 = 0 ;
15586 wxString const &arg3_defvalue = wxPyEmptyString ;
15587 wxString *arg3 = (wxString *) &arg3_defvalue ;
15588 wxString const &arg4_defvalue = wxPyEmptyString ;
15589 wxString *arg4 = (wxString *) &arg4_defvalue ;
15590 bool arg5 = (bool) true ;
15591 bool arg6 = (bool) false ;
15592 bool result;
15593 void *argp1 = 0 ;
15594 int res1 = 0 ;
15595 bool temp2 = false ;
15596 bool temp3 = false ;
15597 bool temp4 = false ;
15598 bool val5 ;
15599 int ecode5 = 0 ;
15600 bool val6 ;
15601 int ecode6 = 0 ;
15602 PyObject * obj0 = 0 ;
15603 PyObject * obj1 = 0 ;
15604 PyObject * obj2 = 0 ;
15605 PyObject * obj3 = 0 ;
15606 PyObject * obj4 = 0 ;
15607 PyObject * obj5 = 0 ;
15608 char * kwnames[] = {
15609 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15610 };
15611
15612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15614 if (!SWIG_IsOK(res1)) {
15615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15616 }
15617 arg1 = reinterpret_cast< wxLocale * >(argp1);
15618 {
15619 arg2 = wxString_in_helper(obj1);
15620 if (arg2 == NULL) SWIG_fail;
15621 temp2 = true;
15622 }
15623 if (obj2) {
d55e5bfc 15624 {
1bd55598
RD
15625 arg3 = wxString_in_helper(obj2);
15626 if (arg3 == NULL) SWIG_fail;
15627 temp3 = true;
d55e5bfc 15628 }
1bd55598
RD
15629 }
15630 if (obj3) {
36ed4f51 15631 {
1bd55598
RD
15632 arg4 = wxString_in_helper(obj3);
15633 if (arg4 == NULL) SWIG_fail;
15634 temp4 = true;
36ed4f51 15635 }
1bd55598
RD
15636 }
15637 if (obj4) {
15638 ecode5 = SWIG_AsVal_bool(obj4, &val5);
15639 if (!SWIG_IsOK(ecode5)) {
15640 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
15641 }
15642 arg5 = static_cast< bool >(val5);
15643 }
15644 if (obj5) {
15645 ecode6 = SWIG_AsVal_bool(obj5, &val6);
15646 if (!SWIG_IsOK(ecode6)) {
15647 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
15648 }
15649 arg6 = static_cast< bool >(val6);
15650 }
15651 {
15652 PyThreadState* __tstate = wxPyBeginAllowThreads();
15653 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
15654 wxPyEndAllowThreads(__tstate);
15655 if (PyErr_Occurred()) SWIG_fail;
15656 }
15657 {
15658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15659 }
15660 {
15661 if (temp2)
15662 delete arg2;
15663 }
15664 {
15665 if (temp3)
15666 delete arg3;
15667 }
15668 {
15669 if (temp4)
15670 delete arg4;
15671 }
15672 return resultobj;
15673fail:
15674 {
15675 if (temp2)
15676 delete arg2;
15677 }
15678 {
15679 if (temp3)
15680 delete arg3;
15681 }
15682 {
15683 if (temp4)
15684 delete arg4;
15685 }
15686 return NULL;
15687}
15688
15689
15690SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15691 PyObject *resultobj = 0;
15692 wxLocale *arg1 = (wxLocale *) 0 ;
15693 int arg2 = (int) wxLANGUAGE_DEFAULT ;
15694 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15695 bool result;
15696 void *argp1 = 0 ;
15697 int res1 = 0 ;
15698 int val2 ;
15699 int ecode2 = 0 ;
15700 int val3 ;
15701 int ecode3 = 0 ;
15702 PyObject * obj0 = 0 ;
15703 PyObject * obj1 = 0 ;
15704 PyObject * obj2 = 0 ;
15705 char * kwnames[] = {
15706 (char *) "self",(char *) "language",(char *) "flags", NULL
15707 };
15708
15709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15711 if (!SWIG_IsOK(res1)) {
15712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
15713 }
15714 arg1 = reinterpret_cast< wxLocale * >(argp1);
15715 if (obj1) {
15716 ecode2 = SWIG_AsVal_int(obj1, &val2);
15717 if (!SWIG_IsOK(ecode2)) {
15718 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
15719 }
15720 arg2 = static_cast< int >(val2);
15721 }
15722 if (obj2) {
15723 ecode3 = SWIG_AsVal_int(obj2, &val3);
15724 if (!SWIG_IsOK(ecode3)) {
15725 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
15726 }
15727 arg3 = static_cast< int >(val3);
15728 }
15729 {
15730 PyThreadState* __tstate = wxPyBeginAllowThreads();
15731 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
15732 wxPyEndAllowThreads(__tstate);
15733 if (PyErr_Occurred()) SWIG_fail;
15734 }
15735 {
15736 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15737 }
15738 return resultobj;
15739fail:
15740 return NULL;
d55e5bfc
RD
15741}
15742
15743
1bd55598
RD
15744SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15745 PyObject *resultobj = 0;
15746 int result;
15747
15748 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
15749 {
15750 PyThreadState* __tstate = wxPyBeginAllowThreads();
15751 result = (int)wxLocale::GetSystemLanguage();
15752 wxPyEndAllowThreads(__tstate);
15753 if (PyErr_Occurred()) SWIG_fail;
15754 }
15755 resultobj = SWIG_From_int(static_cast< int >(result));
15756 return resultobj;
15757fail:
15758 return NULL;
d55e5bfc
RD
15759}
15760
15761
1bd55598
RD
15762SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15763 PyObject *resultobj = 0;
15764 wxFontEncoding result;
15765
15766 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
15767 {
15768 PyThreadState* __tstate = wxPyBeginAllowThreads();
15769 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
15770 wxPyEndAllowThreads(__tstate);
15771 if (PyErr_Occurred()) SWIG_fail;
15772 }
15773 resultobj = SWIG_From_int(static_cast< int >(result));
15774 return resultobj;
15775fail:
15776 return NULL;
d55e5bfc
RD
15777}
15778
15779
1bd55598
RD
15780SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15781 PyObject *resultobj = 0;
15782 wxString result;
15783
15784 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
15785 {
15786 PyThreadState* __tstate = wxPyBeginAllowThreads();
15787 result = wxLocale::GetSystemEncodingName();
15788 wxPyEndAllowThreads(__tstate);
15789 if (PyErr_Occurred()) SWIG_fail;
15790 }
15791 {
15792#if wxUSE_UNICODE
15793 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15794#else
15795 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15796#endif
15797 }
15798 return resultobj;
15799fail:
15800 return NULL;
d55e5bfc
RD
15801}
15802
15803
1bd55598
RD
15804SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15805 PyObject *resultobj = 0;
15806 wxLocale *arg1 = (wxLocale *) 0 ;
15807 bool result;
15808 void *argp1 = 0 ;
15809 int res1 = 0 ;
15810 PyObject *swig_obj[1] ;
15811
15812 if (!args) SWIG_fail;
15813 swig_obj[0] = args;
15814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15815 if (!SWIG_IsOK(res1)) {
15816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
15817 }
15818 arg1 = reinterpret_cast< wxLocale * >(argp1);
15819 {
15820 PyThreadState* __tstate = wxPyBeginAllowThreads();
15821 result = (bool)((wxLocale const *)arg1)->IsOk();
15822 wxPyEndAllowThreads(__tstate);
15823 if (PyErr_Occurred()) SWIG_fail;
15824 }
15825 {
15826 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15827 }
15828 return resultobj;
15829fail:
15830 return NULL;
d55e5bfc
RD
15831}
15832
15833
1bd55598
RD
15834SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15835 PyObject *resultobj = 0;
15836 wxLocale *arg1 = (wxLocale *) 0 ;
15837 wxString result;
15838 void *argp1 = 0 ;
15839 int res1 = 0 ;
15840 PyObject *swig_obj[1] ;
15841
15842 if (!args) SWIG_fail;
15843 swig_obj[0] = args;
15844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15845 if (!SWIG_IsOK(res1)) {
15846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
15847 }
15848 arg1 = reinterpret_cast< wxLocale * >(argp1);
15849 {
15850 PyThreadState* __tstate = wxPyBeginAllowThreads();
15851 result = ((wxLocale const *)arg1)->GetLocale();
15852 wxPyEndAllowThreads(__tstate);
15853 if (PyErr_Occurred()) SWIG_fail;
15854 }
15855 {
15856#if wxUSE_UNICODE
15857 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15858#else
15859 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15860#endif
15861 }
15862 return resultobj;
15863fail:
15864 return NULL;
d55e5bfc
RD
15865}
15866
15867
1bd55598
RD
15868SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15869 PyObject *resultobj = 0;
15870 wxLocale *arg1 = (wxLocale *) 0 ;
15871 int result;
15872 void *argp1 = 0 ;
15873 int res1 = 0 ;
15874 PyObject *swig_obj[1] ;
15875
15876 if (!args) SWIG_fail;
15877 swig_obj[0] = args;
15878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15879 if (!SWIG_IsOK(res1)) {
15880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
15881 }
15882 arg1 = reinterpret_cast< wxLocale * >(argp1);
15883 {
15884 PyThreadState* __tstate = wxPyBeginAllowThreads();
15885 result = (int)((wxLocale const *)arg1)->GetLanguage();
15886 wxPyEndAllowThreads(__tstate);
15887 if (PyErr_Occurred()) SWIG_fail;
15888 }
15889 resultobj = SWIG_From_int(static_cast< int >(result));
15890 return resultobj;
15891fail:
15892 return NULL;
d55e5bfc
RD
15893}
15894
15895
1bd55598
RD
15896SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15897 PyObject *resultobj = 0;
15898 wxLocale *arg1 = (wxLocale *) 0 ;
15899 wxString result;
15900 void *argp1 = 0 ;
15901 int res1 = 0 ;
15902 PyObject *swig_obj[1] ;
15903
15904 if (!args) SWIG_fail;
15905 swig_obj[0] = args;
15906 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15907 if (!SWIG_IsOK(res1)) {
15908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
15909 }
15910 arg1 = reinterpret_cast< wxLocale * >(argp1);
15911 {
15912 PyThreadState* __tstate = wxPyBeginAllowThreads();
15913 result = ((wxLocale const *)arg1)->GetSysName();
15914 wxPyEndAllowThreads(__tstate);
15915 if (PyErr_Occurred()) SWIG_fail;
15916 }
15917 {
36ed4f51 15918#if wxUSE_UNICODE
1bd55598 15919 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 15920#else
1bd55598 15921 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 15922#endif
1bd55598
RD
15923 }
15924 return resultobj;
15925fail:
15926 return NULL;
d55e5bfc
RD
15927}
15928
15929
1bd55598
RD
15930SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15931 PyObject *resultobj = 0;
15932 wxLocale *arg1 = (wxLocale *) 0 ;
15933 wxString result;
15934 void *argp1 = 0 ;
15935 int res1 = 0 ;
15936 PyObject *swig_obj[1] ;
15937
15938 if (!args) SWIG_fail;
15939 swig_obj[0] = args;
15940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15941 if (!SWIG_IsOK(res1)) {
15942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
15943 }
15944 arg1 = reinterpret_cast< wxLocale * >(argp1);
15945 {
15946 PyThreadState* __tstate = wxPyBeginAllowThreads();
15947 result = ((wxLocale const *)arg1)->GetCanonicalName();
15948 wxPyEndAllowThreads(__tstate);
15949 if (PyErr_Occurred()) SWIG_fail;
15950 }
15951 {
15952#if wxUSE_UNICODE
15953 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15954#else
15955 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15956#endif
15957 }
15958 return resultobj;
15959fail:
15960 return NULL;
d55e5bfc
RD
15961}
15962
15963
1bd55598
RD
15964SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15965 PyObject *resultobj = 0;
15966 wxString *arg1 = 0 ;
15967 bool temp1 = false ;
15968 PyObject * obj0 = 0 ;
15969 char * kwnames[] = {
15970 (char *) "prefix", NULL
15971 };
15972
15973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
15974 {
15975 arg1 = wxString_in_helper(obj0);
15976 if (arg1 == NULL) SWIG_fail;
15977 temp1 = true;
15978 }
15979 {
15980 PyThreadState* __tstate = wxPyBeginAllowThreads();
15981 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
15982 wxPyEndAllowThreads(__tstate);
15983 if (PyErr_Occurred()) SWIG_fail;
15984 }
15985 resultobj = SWIG_Py_Void();
15986 {
15987 if (temp1)
15988 delete arg1;
15989 }
15990 return resultobj;
15991fail:
15992 {
15993 if (temp1)
15994 delete arg1;
15995 }
15996 return NULL;
15997}
15998
15999
16000SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16001 PyObject *resultobj = 0;
16002 wxLocale *arg1 = (wxLocale *) 0 ;
16003 wxString *arg2 = 0 ;
16004 bool result;
16005 void *argp1 = 0 ;
16006 int res1 = 0 ;
16007 bool temp2 = false ;
16008 PyObject * obj0 = 0 ;
16009 PyObject * obj1 = 0 ;
16010 char * kwnames[] = {
16011 (char *) "self",(char *) "szDomain", NULL
16012 };
16013
16014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16016 if (!SWIG_IsOK(res1)) {
16017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16018 }
16019 arg1 = reinterpret_cast< wxLocale * >(argp1);
16020 {
16021 arg2 = wxString_in_helper(obj1);
16022 if (arg2 == NULL) SWIG_fail;
16023 temp2 = true;
16024 }
16025 {
16026 PyThreadState* __tstate = wxPyBeginAllowThreads();
16027 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16028 wxPyEndAllowThreads(__tstate);
16029 if (PyErr_Occurred()) SWIG_fail;
16030 }
16031 {
16032 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16033 }
16034 {
16035 if (temp2)
16036 delete arg2;
16037 }
16038 return resultobj;
16039fail:
16040 {
16041 if (temp2)
16042 delete arg2;
16043 }
16044 return NULL;
16045}
16046
16047
33d6fd3b
RD
16048SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16049 PyObject *resultobj = 0;
16050 int arg1 ;
16051 bool result;
16052 int val1 ;
16053 int ecode1 = 0 ;
16054 PyObject * obj0 = 0 ;
16055 char * kwnames[] = {
16056 (char *) "lang", NULL
16057 };
16058
16059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16060 ecode1 = SWIG_AsVal_int(obj0, &val1);
16061 if (!SWIG_IsOK(ecode1)) {
16062 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16063 }
16064 arg1 = static_cast< int >(val1);
16065 {
16066 PyThreadState* __tstate = wxPyBeginAllowThreads();
16067 result = (bool)wxLocale::IsAvailable(arg1);
16068 wxPyEndAllowThreads(__tstate);
16069 if (PyErr_Occurred()) SWIG_fail;
16070 }
16071 {
16072 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16073 }
16074 return resultobj;
16075fail:
16076 return NULL;
16077}
16078
16079
1bd55598
RD
16080SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16081 PyObject *resultobj = 0;
16082 wxLocale *arg1 = (wxLocale *) 0 ;
16083 wxString *arg2 = 0 ;
16084 bool result;
16085 void *argp1 = 0 ;
16086 int res1 = 0 ;
16087 bool temp2 = false ;
16088 PyObject * obj0 = 0 ;
16089 PyObject * obj1 = 0 ;
16090 char * kwnames[] = {
16091 (char *) "self",(char *) "szDomain", NULL
16092 };
16093
16094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16096 if (!SWIG_IsOK(res1)) {
16097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16098 }
16099 arg1 = reinterpret_cast< wxLocale * >(argp1);
16100 {
16101 arg2 = wxString_in_helper(obj1);
16102 if (arg2 == NULL) SWIG_fail;
16103 temp2 = true;
16104 }
16105 {
16106 PyThreadState* __tstate = wxPyBeginAllowThreads();
16107 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16108 wxPyEndAllowThreads(__tstate);
16109 if (PyErr_Occurred()) SWIG_fail;
16110 }
16111 {
16112 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16113 }
16114 {
16115 if (temp2)
16116 delete arg2;
16117 }
16118 return resultobj;
16119fail:
16120 {
16121 if (temp2)
16122 delete arg2;
16123 }
16124 return NULL;
d55e5bfc
RD
16125}
16126
16127
1bd55598
RD
16128SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16129 PyObject *resultobj = 0;
16130 int arg1 ;
16131 wxLanguageInfo *result = 0 ;
16132 int val1 ;
16133 int ecode1 = 0 ;
16134 PyObject * obj0 = 0 ;
16135 char * kwnames[] = {
16136 (char *) "lang", NULL
16137 };
16138
16139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16140 ecode1 = SWIG_AsVal_int(obj0, &val1);
16141 if (!SWIG_IsOK(ecode1)) {
16142 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16143 }
16144 arg1 = static_cast< int >(val1);
16145 {
16146 PyThreadState* __tstate = wxPyBeginAllowThreads();
16147 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16148 wxPyEndAllowThreads(__tstate);
16149 if (PyErr_Occurred()) SWIG_fail;
16150 }
16151 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16152 return resultobj;
16153fail:
16154 return NULL;
16155}
16156
16157
16158SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16159 PyObject *resultobj = 0;
16160 int arg1 ;
16161 wxString result;
16162 int val1 ;
16163 int ecode1 = 0 ;
16164 PyObject * obj0 = 0 ;
16165 char * kwnames[] = {
16166 (char *) "lang", NULL
16167 };
16168
16169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16170 ecode1 = SWIG_AsVal_int(obj0, &val1);
16171 if (!SWIG_IsOK(ecode1)) {
16172 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16173 }
16174 arg1 = static_cast< int >(val1);
16175 {
16176 PyThreadState* __tstate = wxPyBeginAllowThreads();
16177 result = wxLocale::GetLanguageName(arg1);
16178 wxPyEndAllowThreads(__tstate);
16179 if (PyErr_Occurred()) SWIG_fail;
16180 }
16181 {
16182#if wxUSE_UNICODE
16183 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16184#else
16185 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16186#endif
16187 }
16188 return resultobj;
16189fail:
16190 return NULL;
d55e5bfc
RD
16191}
16192
16193
1bd55598
RD
16194SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16195 PyObject *resultobj = 0;
16196 wxString *arg1 = 0 ;
16197 wxLanguageInfo *result = 0 ;
16198 bool temp1 = false ;
16199 PyObject * obj0 = 0 ;
16200 char * kwnames[] = {
16201 (char *) "locale", NULL
16202 };
16203
16204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16205 {
16206 arg1 = wxString_in_helper(obj0);
16207 if (arg1 == NULL) SWIG_fail;
16208 temp1 = true;
16209 }
16210 {
16211 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3
RD
16212 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16213 wxPyEndAllowThreads(__tstate);
16214 if (PyErr_Occurred()) SWIG_fail;
16215 }
16216 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16217 {
16218 if (temp1)
16219 delete arg1;
16220 }
16221 return resultobj;
16222fail:
16223 {
16224 if (temp1)
16225 delete arg1;
16226 }
16227 return NULL;
16228}
16229
16230
16231SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16232 PyObject *resultobj = 0;
16233 wxLanguageInfo *arg1 = 0 ;
16234 void *argp1 = 0 ;
16235 int res1 = 0 ;
16236 PyObject * obj0 = 0 ;
16237 char * kwnames[] = {
16238 (char *) "info", NULL
16239 };
16240
16241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16242 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16243 if (!SWIG_IsOK(res1)) {
16244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16245 }
16246 if (!argp1) {
16247 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16248 }
16249 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16250 {
16251 PyThreadState* __tstate = wxPyBeginAllowThreads();
16252 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16253 wxPyEndAllowThreads(__tstate);
16254 if (PyErr_Occurred()) SWIG_fail;
16255 }
16256 resultobj = SWIG_Py_Void();
16257 return resultobj;
16258fail:
16259 return NULL;
16260}
16261
16262
16263SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16264 PyObject *resultobj = 0;
16265 wxLocale *arg1 = (wxLocale *) 0 ;
16266 wxString *arg2 = 0 ;
16267 wxString const &arg3_defvalue = wxPyEmptyString ;
16268 wxString *arg3 = (wxString *) &arg3_defvalue ;
16269 wxString result;
16270 void *argp1 = 0 ;
16271 int res1 = 0 ;
16272 bool temp2 = false ;
16273 bool temp3 = false ;
16274 PyObject * obj0 = 0 ;
16275 PyObject * obj1 = 0 ;
16276 PyObject * obj2 = 0 ;
16277 char * kwnames[] = {
16278 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16279 };
16280
16281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16283 if (!SWIG_IsOK(res1)) {
16284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16285 }
16286 arg1 = reinterpret_cast< wxLocale * >(argp1);
16287 {
16288 arg2 = wxString_in_helper(obj1);
16289 if (arg2 == NULL) SWIG_fail;
16290 temp2 = true;
16291 }
16292 if (obj2) {
16293 {
16294 arg3 = wxString_in_helper(obj2);
16295 if (arg3 == NULL) SWIG_fail;
16296 temp3 = true;
16297 }
16298 }
16299 {
16300 PyThreadState* __tstate = wxPyBeginAllowThreads();
16301 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16302 wxPyEndAllowThreads(__tstate);
16303 if (PyErr_Occurred()) SWIG_fail;
16304 }
16305 {
16306#if wxUSE_UNICODE
16307 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16308#else
16309 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16310#endif
16311 }
16312 {
16313 if (temp2)
16314 delete arg2;
16315 }
16316 {
16317 if (temp3)
16318 delete arg3;
16319 }
16320 return resultobj;
16321fail:
16322 {
16323 if (temp2)
16324 delete arg2;
16325 }
16326 {
16327 if (temp3)
16328 delete arg3;
16329 }
16330 return NULL;
16331}
16332
16333
16334SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16335 PyObject *resultobj = 0;
16336 wxLocale *arg1 = (wxLocale *) 0 ;
16337 wxString *result = 0 ;
16338 void *argp1 = 0 ;
16339 int res1 = 0 ;
16340 PyObject *swig_obj[1] ;
16341
16342 if (!args) SWIG_fail;
16343 swig_obj[0] = args;
16344 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16345 if (!SWIG_IsOK(res1)) {
16346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16347 }
16348 arg1 = reinterpret_cast< wxLocale * >(argp1);
16349 {
16350 PyThreadState* __tstate = wxPyBeginAllowThreads();
16351 {
16352 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16353 result = (wxString *) &_result_ref;
16354 }
16355 wxPyEndAllowThreads(__tstate);
16356 if (PyErr_Occurred()) SWIG_fail;
16357 }
16358 {
16359#if wxUSE_UNICODE
16360 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16361#else
16362 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16363#endif
16364 }
16365 return resultobj;
16366fail:
16367 return NULL;
16368}
16369
16370
16371SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16372 PyObject *obj;
16373 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16374 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16375 return SWIG_Py_Void();
16376}
16377
16378SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16379 return SWIG_Python_InitShadowInstance(args);
16380}
16381
16382SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16383 PyObject *resultobj = 0;
16384 int arg1 = (int) -1 ;
16385 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16386 wxPyLocale *result = 0 ;
16387 int val1 ;
16388 int ecode1 = 0 ;
16389 int val2 ;
16390 int ecode2 = 0 ;
16391 PyObject * obj0 = 0 ;
16392 PyObject * obj1 = 0 ;
16393 char * kwnames[] = {
16394 (char *) "language",(char *) "flags", NULL
16395 };
16396
16397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16398 if (obj0) {
16399 ecode1 = SWIG_AsVal_int(obj0, &val1);
16400 if (!SWIG_IsOK(ecode1)) {
16401 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16402 }
16403 arg1 = static_cast< int >(val1);
16404 }
16405 if (obj1) {
16406 ecode2 = SWIG_AsVal_int(obj1, &val2);
16407 if (!SWIG_IsOK(ecode2)) {
16408 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16409 }
16410 arg2 = static_cast< int >(val2);
16411 }
16412 {
16413 PyThreadState* __tstate = wxPyBeginAllowThreads();
16414 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16415 wxPyEndAllowThreads(__tstate);
16416 if (PyErr_Occurred()) SWIG_fail;
16417 }
16418 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16419 return resultobj;
16420fail:
16421 return NULL;
16422}
16423
16424
16425SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16426 PyObject *resultobj = 0;
16427 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16428 void *argp1 = 0 ;
16429 int res1 = 0 ;
16430 PyObject *swig_obj[1] ;
16431
16432 if (!args) SWIG_fail;
16433 swig_obj[0] = args;
16434 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16435 if (!SWIG_IsOK(res1)) {
16436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16437 }
16438 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16439 {
16440 PyThreadState* __tstate = wxPyBeginAllowThreads();
16441 delete arg1;
16442
1bd55598
RD
16443 wxPyEndAllowThreads(__tstate);
16444 if (PyErr_Occurred()) SWIG_fail;
16445 }
fc46b7f3 16446 resultobj = SWIG_Py_Void();
1bd55598
RD
16447 return resultobj;
16448fail:
1bd55598 16449 return NULL;
d55e5bfc
RD
16450}
16451
16452
fc46b7f3 16453SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16454 PyObject *resultobj = 0;
fc46b7f3
RD
16455 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16456 PyObject *arg2 = (PyObject *) 0 ;
16457 PyObject *arg3 = (PyObject *) 0 ;
1bd55598
RD
16458 void *argp1 = 0 ;
16459 int res1 = 0 ;
16460 PyObject * obj0 = 0 ;
fc46b7f3
RD
16461 PyObject * obj1 = 0 ;
16462 PyObject * obj2 = 0 ;
1bd55598 16463 char * kwnames[] = {
fc46b7f3 16464 (char *) "self",(char *) "self",(char *) "_class", NULL
1bd55598
RD
16465 };
16466
fc46b7f3
RD
16467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16469 if (!SWIG_IsOK(res1)) {
fc46b7f3 16470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
1bd55598 16471 }
fc46b7f3
RD
16472 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16473 arg2 = obj1;
16474 arg3 = obj2;
1bd55598
RD
16475 {
16476 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16477 (arg1)->_setCallbackInfo(arg2,arg3);
1bd55598
RD
16478 wxPyEndAllowThreads(__tstate);
16479 if (PyErr_Occurred()) SWIG_fail;
16480 }
16481 resultobj = SWIG_Py_Void();
16482 return resultobj;
16483fail:
16484 return NULL;
16485}
16486
16487
fc46b7f3 16488SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16489 PyObject *resultobj = 0;
fc46b7f3
RD
16490 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16491 wxChar *arg2 = (wxChar *) 0 ;
16492 wxChar *arg3 = (wxChar *) NULL ;
16493 wxChar *result = 0 ;
1bd55598
RD
16494 void *argp1 = 0 ;
16495 int res1 = 0 ;
fc46b7f3
RD
16496 void *argp2 = 0 ;
16497 int res2 = 0 ;
16498 void *argp3 = 0 ;
16499 int res3 = 0 ;
1bd55598
RD
16500 PyObject * obj0 = 0 ;
16501 PyObject * obj1 = 0 ;
16502 PyObject * obj2 = 0 ;
16503 char * kwnames[] = {
16504 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16505 };
16506
fc46b7f3
RD
16507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16509 if (!SWIG_IsOK(res1)) {
fc46b7f3 16510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
1bd55598 16511 }
fc46b7f3
RD
16512 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16513 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16514 if (!SWIG_IsOK(res2)) {
16515 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
1bd55598 16516 }
fc46b7f3 16517 arg2 = reinterpret_cast< wxChar * >(argp2);
1bd55598 16518 if (obj2) {
fc46b7f3
RD
16519 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16520 if (!SWIG_IsOK(res3)) {
16521 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
d55e5bfc 16522 }
fc46b7f3 16523 arg3 = reinterpret_cast< wxChar * >(argp3);
1bd55598
RD
16524 }
16525 {
16526 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16527 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
1bd55598
RD
16528 wxPyEndAllowThreads(__tstate);
16529 if (PyErr_Occurred()) SWIG_fail;
16530 }
fc46b7f3 16531 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
1bd55598
RD
16532 return resultobj;
16533fail:
1bd55598 16534 return NULL;
d55e5bfc
RD
16535}
16536
16537
fc46b7f3 16538SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16539 PyObject *resultobj = 0;
fc46b7f3
RD
16540 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16541 wxChar *arg2 = (wxChar *) 0 ;
16542 wxChar *arg3 = (wxChar *) 0 ;
16543 size_t arg4 ;
16544 wxChar *arg5 = (wxChar *) NULL ;
16545 wxChar *result = 0 ;
1bd55598
RD
16546 void *argp1 = 0 ;
16547 int res1 = 0 ;
fc46b7f3
RD
16548 void *argp2 = 0 ;
16549 int res2 = 0 ;
16550 void *argp3 = 0 ;
16551 int res3 = 0 ;
16552 size_t val4 ;
16553 int ecode4 = 0 ;
16554 void *argp5 = 0 ;
16555 int res5 = 0 ;
16556 PyObject * obj0 = 0 ;
16557 PyObject * obj1 = 0 ;
16558 PyObject * obj2 = 0 ;
16559 PyObject * obj3 = 0 ;
16560 PyObject * obj4 = 0 ;
16561 char * kwnames[] = {
16562 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
16563 };
1bd55598 16564
fc46b7f3
RD
16565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16567 if (!SWIG_IsOK(res1)) {
fc46b7f3
RD
16568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16569 }
16570 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16571 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16572 if (!SWIG_IsOK(res2)) {
16573 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
16574 }
16575 arg2 = reinterpret_cast< wxChar * >(argp2);
16576 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16577 if (!SWIG_IsOK(res3)) {
16578 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
16579 }
16580 arg3 = reinterpret_cast< wxChar * >(argp3);
16581 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16582 if (!SWIG_IsOK(ecode4)) {
16583 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16584 }
16585 arg4 = static_cast< size_t >(val4);
16586 if (obj4) {
16587 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
16588 if (!SWIG_IsOK(res5)) {
16589 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
16590 }
16591 arg5 = reinterpret_cast< wxChar * >(argp5);
1bd55598 16592 }
1bd55598
RD
16593 {
16594 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16595 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
1bd55598
RD
16596 wxPyEndAllowThreads(__tstate);
16597 if (PyErr_Occurred()) SWIG_fail;
16598 }
fc46b7f3 16599 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
1bd55598
RD
16600 return resultobj;
16601fail:
16602 return NULL;
d55e5bfc
RD
16603}
16604
16605
fc46b7f3 16606SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
16607 PyObject *obj;
16608 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 16609 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
1bd55598 16610 return SWIG_Py_Void();
d55e5bfc
RD
16611}
16612
fc46b7f3 16613SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 16614 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
16615}
16616
1bd55598
RD
16617SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16618 PyObject *resultobj = 0;
16619 wxLocale *result = 0 ;
16620
16621 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
16622 {
16623 PyThreadState* __tstate = wxPyBeginAllowThreads();
16624 result = (wxLocale *)wxGetLocale();
16625 wxPyEndAllowThreads(__tstate);
16626 if (PyErr_Occurred()) SWIG_fail;
16627 }
16628 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
16629 return resultobj;
16630fail:
16631 return NULL;
d55e5bfc
RD
16632}
16633
16634
1bd55598
RD
16635SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16636 PyObject *resultobj = 0;
16637 wxString *arg1 = 0 ;
16638 wxString result;
16639 bool temp1 = false ;
16640
16641 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
16642 {
16643 arg1 = wxString_in_helper(swig_obj[0]);
16644 if (arg1 == NULL) SWIG_fail;
16645 temp1 = true;
16646 }
16647 {
16648 PyThreadState* __tstate = wxPyBeginAllowThreads();
16649 result = wxGetTranslation((wxString const &)*arg1);
16650 wxPyEndAllowThreads(__tstate);
16651 if (PyErr_Occurred()) SWIG_fail;
16652 }
16653 {
36ed4f51 16654#if wxUSE_UNICODE
1bd55598 16655 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 16656#else
1bd55598 16657 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 16658#endif
1bd55598
RD
16659 }
16660 {
16661 if (temp1)
16662 delete arg1;
16663 }
16664 return resultobj;
16665fail:
16666 {
16667 if (temp1)
16668 delete arg1;
16669 }
16670 return NULL;
5e483524
RD
16671}
16672
16673
1bd55598 16674SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
fc46b7f3
RD
16675 PyObject *resultobj = 0;
16676 wxString *arg1 = 0 ;
16677 wxString *arg2 = 0 ;
16678 wxString result;
16679 bool temp1 = false ;
16680 bool temp2 = false ;
16681
16682 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
16683 {
16684 arg1 = wxString_in_helper(swig_obj[0]);
16685 if (arg1 == NULL) SWIG_fail;
16686 temp1 = true;
16687 }
16688 {
16689 arg2 = wxString_in_helper(swig_obj[1]);
16690 if (arg2 == NULL) SWIG_fail;
16691 temp2 = true;
16692 }
16693 {
16694 PyThreadState* __tstate = wxPyBeginAllowThreads();
16695 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
16696 wxPyEndAllowThreads(__tstate);
16697 if (PyErr_Occurred()) SWIG_fail;
16698 }
16699 {
16700#if wxUSE_UNICODE
16701 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16702#else
16703 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16704#endif
16705 }
16706 {
16707 if (temp1)
16708 delete arg1;
16709 }
16710 {
16711 if (temp2)
16712 delete arg2;
16713 }
16714 return resultobj;
16715fail:
16716 {
16717 if (temp1)
16718 delete arg1;
16719 }
16720 {
16721 if (temp2)
16722 delete arg2;
16723 }
16724 return NULL;
16725}
16726
16727
16728SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
1bd55598
RD
16729 PyObject *resultobj = 0;
16730 wxString *arg1 = 0 ;
16731 wxString *arg2 = 0 ;
16732 size_t arg3 ;
16733 wxString result;
16734 bool temp1 = false ;
16735 bool temp2 = false ;
16736 size_t val3 ;
16737 int ecode3 = 0 ;
16738
16739 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
16740 {
16741 arg1 = wxString_in_helper(swig_obj[0]);
16742 if (arg1 == NULL) SWIG_fail;
16743 temp1 = true;
16744 }
16745 {
16746 arg2 = wxString_in_helper(swig_obj[1]);
16747 if (arg2 == NULL) SWIG_fail;
16748 temp2 = true;
16749 }
16750 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16751 if (!SWIG_IsOK(ecode3)) {
16752 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16753 }
16754 arg3 = static_cast< size_t >(val3);
16755 {
16756 PyThreadState* __tstate = wxPyBeginAllowThreads();
16757 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
16758 wxPyEndAllowThreads(__tstate);
16759 if (PyErr_Occurred()) SWIG_fail;
16760 }
16761 {
36ed4f51 16762#if wxUSE_UNICODE
1bd55598 16763 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 16764#else
1bd55598 16765 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 16766#endif
1bd55598
RD
16767 }
16768 {
16769 if (temp1)
16770 delete arg1;
16771 }
16772 {
16773 if (temp2)
16774 delete arg2;
16775 }
16776 return resultobj;
16777fail:
16778 {
16779 if (temp1)
16780 delete arg1;
16781 }
16782 {
16783 if (temp2)
16784 delete arg2;
16785 }
16786 return NULL;
d55e5bfc
RD
16787}
16788
16789
fc46b7f3
RD
16790SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16791 PyObject *resultobj = 0;
16792 wxString *arg1 = 0 ;
16793 wxString *arg2 = 0 ;
16794 size_t arg3 ;
16795 wxString *arg4 = 0 ;
16796 wxString result;
16797 bool temp1 = false ;
16798 bool temp2 = false ;
16799 size_t val3 ;
16800 int ecode3 = 0 ;
16801 bool temp4 = false ;
16802
16803 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
16804 {
16805 arg1 = wxString_in_helper(swig_obj[0]);
16806 if (arg1 == NULL) SWIG_fail;
16807 temp1 = true;
16808 }
16809 {
16810 arg2 = wxString_in_helper(swig_obj[1]);
16811 if (arg2 == NULL) SWIG_fail;
16812 temp2 = true;
16813 }
16814 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16815 if (!SWIG_IsOK(ecode3)) {
16816 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16817 }
16818 arg3 = static_cast< size_t >(val3);
16819 {
16820 arg4 = wxString_in_helper(swig_obj[3]);
16821 if (arg4 == NULL) SWIG_fail;
16822 temp4 = true;
16823 }
16824 {
16825 PyThreadState* __tstate = wxPyBeginAllowThreads();
16826 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
16827 wxPyEndAllowThreads(__tstate);
16828 if (PyErr_Occurred()) SWIG_fail;
16829 }
16830 {
16831#if wxUSE_UNICODE
16832 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16833#else
16834 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16835#endif
16836 }
16837 {
16838 if (temp1)
16839 delete arg1;
16840 }
16841 {
16842 if (temp2)
16843 delete arg2;
16844 }
16845 {
16846 if (temp4)
16847 delete arg4;
16848 }
16849 return resultobj;
16850fail:
16851 {
16852 if (temp1)
16853 delete arg1;
16854 }
16855 {
16856 if (temp2)
16857 delete arg2;
16858 }
16859 {
16860 if (temp4)
16861 delete arg4;
16862 }
16863 return NULL;
16864}
16865
16866
1bd55598
RD
16867SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
16868 int argc;
fc46b7f3 16869 PyObject *argv[5];
1bd55598 16870
fc46b7f3 16871 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
1bd55598
RD
16872 --argc;
16873 if (argc == 1) {
16874 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
16875 }
fc46b7f3 16876 if (argc == 2) {
1bd55598
RD
16877 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
16878 }
fc46b7f3
RD
16879 if (argc == 3) {
16880 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
16881 }
16882 if (argc == 4) {
16883 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
16884 }
1bd55598
RD
16885
16886fail:
16887 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
16888 return NULL;
d55e5bfc
RD
16889}
16890
16891
1bd55598
RD
16892SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16893 PyObject *resultobj = 0;
16894 wxEncodingConverter *result = 0 ;
16895
16896 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
16897 {
16898 PyThreadState* __tstate = wxPyBeginAllowThreads();
16899 result = (wxEncodingConverter *)new wxEncodingConverter();
16900 wxPyEndAllowThreads(__tstate);
16901 if (PyErr_Occurred()) SWIG_fail;
16902 }
16903 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
16904 return resultobj;
16905fail:
16906 return NULL;
d55e5bfc
RD
16907}
16908
16909
1bd55598
RD
16910SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16911 PyObject *resultobj = 0;
16912 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16913 void *argp1 = 0 ;
16914 int res1 = 0 ;
16915 PyObject *swig_obj[1] ;
16916
16917 if (!args) SWIG_fail;
16918 swig_obj[0] = args;
16919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
16920 if (!SWIG_IsOK(res1)) {
16921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16922 }
16923 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16924 {
16925 PyThreadState* __tstate = wxPyBeginAllowThreads();
16926 delete arg1;
d55e5bfc 16927
1bd55598
RD
16928 wxPyEndAllowThreads(__tstate);
16929 if (PyErr_Occurred()) SWIG_fail;
16930 }
16931 resultobj = SWIG_Py_Void();
16932 return resultobj;
16933fail:
16934 return NULL;
16935}
16936
16937
16938SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16939 PyObject *resultobj = 0;
16940 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16941 wxFontEncoding arg2 ;
16942 wxFontEncoding arg3 ;
16943 int arg4 = (int) wxCONVERT_STRICT ;
16944 bool result;
16945 void *argp1 = 0 ;
16946 int res1 = 0 ;
16947 int val2 ;
16948 int ecode2 = 0 ;
16949 int val3 ;
16950 int ecode3 = 0 ;
16951 int val4 ;
16952 int ecode4 = 0 ;
16953 PyObject * obj0 = 0 ;
16954 PyObject * obj1 = 0 ;
16955 PyObject * obj2 = 0 ;
16956 PyObject * obj3 = 0 ;
16957 char * kwnames[] = {
16958 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
16959 };
16960
16961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
16963 if (!SWIG_IsOK(res1)) {
16964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16965 }
16966 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16967 ecode2 = SWIG_AsVal_int(obj1, &val2);
16968 if (!SWIG_IsOK(ecode2)) {
16969 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
16970 }
16971 arg2 = static_cast< wxFontEncoding >(val2);
16972 ecode3 = SWIG_AsVal_int(obj2, &val3);
16973 if (!SWIG_IsOK(ecode3)) {
16974 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
16975 }
16976 arg3 = static_cast< wxFontEncoding >(val3);
16977 if (obj3) {
16978 ecode4 = SWIG_AsVal_int(obj3, &val4);
16979 if (!SWIG_IsOK(ecode4)) {
16980 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
16981 }
16982 arg4 = static_cast< int >(val4);
16983 }
16984 {
16985 PyThreadState* __tstate = wxPyBeginAllowThreads();
16986 result = (bool)(arg1)->Init(arg2,arg3,arg4);
16987 wxPyEndAllowThreads(__tstate);
16988 if (PyErr_Occurred()) SWIG_fail;
16989 }
16990 {
16991 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16992 }
16993 return resultobj;
16994fail:
16995 return NULL;
16996}
16997
16998
16999SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17000 PyObject *resultobj = 0;
17001 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17002 wxString *arg2 = 0 ;
17003 wxString result;
17004 void *argp1 = 0 ;
17005 int res1 = 0 ;
17006 bool temp2 = false ;
17007 PyObject * obj0 = 0 ;
17008 PyObject * obj1 = 0 ;
17009 char * kwnames[] = {
17010 (char *) "self",(char *) "input", NULL
17011 };
17012
17013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17015 if (!SWIG_IsOK(res1)) {
17016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17017 }
17018 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17019 {
17020 arg2 = wxString_in_helper(obj1);
17021 if (arg2 == NULL) SWIG_fail;
17022 temp2 = true;
17023 }
17024 {
17025 PyThreadState* __tstate = wxPyBeginAllowThreads();
17026 result = (arg1)->Convert((wxString const &)*arg2);
17027 wxPyEndAllowThreads(__tstate);
17028 if (PyErr_Occurred()) SWIG_fail;
17029 }
17030 {
d55e5bfc 17031#if wxUSE_UNICODE
1bd55598 17032 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 17033#else
1bd55598 17034 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 17035#endif
1bd55598
RD
17036 }
17037 {
17038 if (temp2)
17039 delete arg2;
17040 }
17041 return resultobj;
17042fail:
17043 {
17044 if (temp2)
17045 delete arg2;
17046 }
17047 return NULL;
17048}
17049
17050
17051SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17052 PyObject *resultobj = 0;
17053 wxFontEncoding arg1 ;
17054 int arg2 = (int) wxPLATFORM_CURRENT ;
17055 wxFontEncodingArray result;
17056 int val1 ;
17057 int ecode1 = 0 ;
17058 int val2 ;
17059 int ecode2 = 0 ;
17060 PyObject * obj0 = 0 ;
17061 PyObject * obj1 = 0 ;
17062 char * kwnames[] = {
17063 (char *) "enc",(char *) "platform", NULL
17064 };
17065
17066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17067 ecode1 = SWIG_AsVal_int(obj0, &val1);
17068 if (!SWIG_IsOK(ecode1)) {
17069 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17070 }
17071 arg1 = static_cast< wxFontEncoding >(val1);
17072 if (obj1) {
17073 ecode2 = SWIG_AsVal_int(obj1, &val2);
17074 if (!SWIG_IsOK(ecode2)) {
17075 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17076 }
17077 arg2 = static_cast< int >(val2);
17078 }
17079 {
17080 PyThreadState* __tstate = wxPyBeginAllowThreads();
17081 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17082 wxPyEndAllowThreads(__tstate);
17083 if (PyErr_Occurred()) SWIG_fail;
17084 }
17085 {
17086 resultobj = PyList_New(0);
17087 for (size_t i=0; i < (&result)->GetCount(); i++) {
17088 PyObject* number = PyInt_FromLong((&result)->Item(i));
17089 PyList_Append(resultobj, number);
17090 Py_DECREF(number);
d55e5bfc 17091 }
1bd55598
RD
17092 }
17093 return resultobj;
17094fail:
17095 return NULL;
d55e5bfc
RD
17096}
17097
17098
1bd55598
RD
17099SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17100 PyObject *resultobj = 0;
17101 wxFontEncoding arg1 ;
17102 wxFontEncodingArray result;
17103 int val1 ;
17104 int ecode1 = 0 ;
17105 PyObject * obj0 = 0 ;
17106 char * kwnames[] = {
17107 (char *) "enc", NULL
17108 };
17109
17110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17111 ecode1 = SWIG_AsVal_int(obj0, &val1);
17112 if (!SWIG_IsOK(ecode1)) {
17113 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17114 }
17115 arg1 = static_cast< wxFontEncoding >(val1);
17116 {
17117 PyThreadState* __tstate = wxPyBeginAllowThreads();
17118 result = wxEncodingConverter::GetAllEquivalents(arg1);
17119 wxPyEndAllowThreads(__tstate);
17120 if (PyErr_Occurred()) SWIG_fail;
17121 }
17122 {
17123 resultobj = PyList_New(0);
17124 for (size_t i=0; i < (&result)->GetCount(); i++) {
17125 PyObject* number = PyInt_FromLong((&result)->Item(i));
17126 PyList_Append(resultobj, number);
17127 Py_DECREF(number);
d55e5bfc 17128 }
1bd55598
RD
17129 }
17130 return resultobj;
17131fail:
17132 return NULL;
17133}
17134
17135
17136SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17137 PyObject *resultobj = 0;
17138 wxFontEncoding arg1 ;
17139 wxFontEncoding arg2 ;
17140 bool result;
17141 int val1 ;
17142 int ecode1 = 0 ;
17143 int val2 ;
17144 int ecode2 = 0 ;
17145 PyObject * obj0 = 0 ;
17146 PyObject * obj1 = 0 ;
17147 char * kwnames[] = {
17148 (char *) "encIn",(char *) "encOut", NULL
17149 };
17150
17151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17152 ecode1 = SWIG_AsVal_int(obj0, &val1);
17153 if (!SWIG_IsOK(ecode1)) {
17154 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17155 }
17156 arg1 = static_cast< wxFontEncoding >(val1);
17157 ecode2 = SWIG_AsVal_int(obj1, &val2);
17158 if (!SWIG_IsOK(ecode2)) {
17159 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17160 }
17161 arg2 = static_cast< wxFontEncoding >(val2);
17162 {
17163 PyThreadState* __tstate = wxPyBeginAllowThreads();
17164 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17165 wxPyEndAllowThreads(__tstate);
17166 if (PyErr_Occurred()) SWIG_fail;
17167 }
17168 {
17169 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17170 }
17171 return resultobj;
17172fail:
17173 return NULL;
d55e5bfc
RD
17174}
17175
17176
1bd55598
RD
17177SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17178 PyObject *obj;
17179 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17180 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17181 return SWIG_Py_Void();
d55e5bfc
RD
17182}
17183
1bd55598
RD
17184SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17185 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
17186}
17187
1bd55598
RD
17188SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17189 PyObject *resultobj = 0;
17190 wxDC *arg1 = (wxDC *) 0 ;
17191 void *argp1 = 0 ;
17192 int res1 = 0 ;
17193 PyObject *swig_obj[1] ;
17194
17195 if (!args) SWIG_fail;
17196 swig_obj[0] = args;
17197 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17198 if (!SWIG_IsOK(res1)) {
17199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17200 }
17201 arg1 = reinterpret_cast< wxDC * >(argp1);
17202 {
17203 PyThreadState* __tstate = wxPyBeginAllowThreads();
17204 delete arg1;
d55e5bfc 17205
1bd55598
RD
17206 wxPyEndAllowThreads(__tstate);
17207 if (PyErr_Occurred()) SWIG_fail;
17208 }
17209 resultobj = SWIG_Py_Void();
17210 return resultobj;
17211fail:
17212 return NULL;
17213}
17214
17215
17216SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17217 PyObject *resultobj = 0;
17218 wxDC *arg1 = (wxDC *) 0 ;
17219 int arg2 ;
17220 int arg3 ;
17221 wxColour *arg4 = 0 ;
17222 int arg5 = (int) wxFLOOD_SURFACE ;
17223 bool result;
17224 void *argp1 = 0 ;
17225 int res1 = 0 ;
17226 int val2 ;
17227 int ecode2 = 0 ;
17228 int val3 ;
17229 int ecode3 = 0 ;
17230 wxColour temp4 ;
17231 int val5 ;
17232 int ecode5 = 0 ;
17233 PyObject * obj0 = 0 ;
17234 PyObject * obj1 = 0 ;
17235 PyObject * obj2 = 0 ;
17236 PyObject * obj3 = 0 ;
17237 PyObject * obj4 = 0 ;
17238 char * kwnames[] = {
17239 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17240 };
17241
17242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17244 if (!SWIG_IsOK(res1)) {
17245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17246 }
17247 arg1 = reinterpret_cast< wxDC * >(argp1);
17248 ecode2 = SWIG_AsVal_int(obj1, &val2);
17249 if (!SWIG_IsOK(ecode2)) {
17250 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17251 }
17252 arg2 = static_cast< int >(val2);
17253 ecode3 = SWIG_AsVal_int(obj2, &val3);
17254 if (!SWIG_IsOK(ecode3)) {
17255 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17256 }
17257 arg3 = static_cast< int >(val3);
17258 {
17259 arg4 = &temp4;
17260 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17261 }
17262 if (obj4) {
17263 ecode5 = SWIG_AsVal_int(obj4, &val5);
17264 if (!SWIG_IsOK(ecode5)) {
17265 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17266 }
17267 arg5 = static_cast< int >(val5);
17268 }
17269 {
17270 PyThreadState* __tstate = wxPyBeginAllowThreads();
17271 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17272 wxPyEndAllowThreads(__tstate);
17273 if (PyErr_Occurred()) SWIG_fail;
17274 }
17275 {
17276 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17277 }
17278 return resultobj;
17279fail:
17280 return NULL;
17281}
17282
17283
17284SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17285 PyObject *resultobj = 0;
17286 wxDC *arg1 = (wxDC *) 0 ;
17287 wxPoint *arg2 = 0 ;
17288 wxColour *arg3 = 0 ;
17289 int arg4 = (int) wxFLOOD_SURFACE ;
17290 bool result;
17291 void *argp1 = 0 ;
17292 int res1 = 0 ;
17293 wxPoint temp2 ;
17294 wxColour temp3 ;
17295 int val4 ;
17296 int ecode4 = 0 ;
17297 PyObject * obj0 = 0 ;
17298 PyObject * obj1 = 0 ;
17299 PyObject * obj2 = 0 ;
17300 PyObject * obj3 = 0 ;
17301 char * kwnames[] = {
17302 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17303 };
17304
17305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17307 if (!SWIG_IsOK(res1)) {
17308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17309 }
17310 arg1 = reinterpret_cast< wxDC * >(argp1);
17311 {
17312 arg2 = &temp2;
17313 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17314 }
17315 {
17316 arg3 = &temp3;
17317 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17318 }
17319 if (obj3) {
17320 ecode4 = SWIG_AsVal_int(obj3, &val4);
17321 if (!SWIG_IsOK(ecode4)) {
17322 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17323 }
17324 arg4 = static_cast< int >(val4);
17325 }
17326 {
17327 PyThreadState* __tstate = wxPyBeginAllowThreads();
17328 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17329 wxPyEndAllowThreads(__tstate);
17330 if (PyErr_Occurred()) SWIG_fail;
17331 }
17332 {
17333 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17334 }
17335 return resultobj;
17336fail:
17337 return NULL;
17338}
17339
17340
17341SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17342 PyObject *resultobj = 0;
17343 wxDC *arg1 = (wxDC *) 0 ;
17344 wxRect *arg2 = 0 ;
17345 wxColour *arg3 = 0 ;
17346 wxColour *arg4 = 0 ;
17347 wxPoint *arg5 = 0 ;
17348 void *argp1 = 0 ;
17349 int res1 = 0 ;
17350 wxRect temp2 ;
17351 wxColour temp3 ;
17352 wxColour temp4 ;
17353 wxPoint temp5 ;
17354 PyObject * obj0 = 0 ;
17355 PyObject * obj1 = 0 ;
17356 PyObject * obj2 = 0 ;
17357 PyObject * obj3 = 0 ;
17358 PyObject * obj4 = 0 ;
17359 char * kwnames[] = {
17360 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17361 };
17362
17363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17365 if (!SWIG_IsOK(res1)) {
17366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17367 }
17368 arg1 = reinterpret_cast< wxDC * >(argp1);
17369 {
17370 arg2 = &temp2;
17371 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17372 }
17373 {
17374 arg3 = &temp3;
17375 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17376 }
17377 {
17378 arg4 = &temp4;
17379 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17380 }
17381 {
17382 arg5 = &temp5;
17383 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17384 }
17385 {
17386 PyThreadState* __tstate = wxPyBeginAllowThreads();
17387 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17388 wxPyEndAllowThreads(__tstate);
17389 if (PyErr_Occurred()) SWIG_fail;
17390 }
17391 resultobj = SWIG_Py_Void();
17392 return resultobj;
17393fail:
17394 return NULL;
17395}
17396
17397
17398SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17399 PyObject *resultobj = 0;
17400 wxDC *arg1 = (wxDC *) 0 ;
17401 wxRect *arg2 = 0 ;
17402 wxColour *arg3 = 0 ;
17403 wxColour *arg4 = 0 ;
17404 wxDirection arg5 = (wxDirection) wxEAST ;
17405 void *argp1 = 0 ;
17406 int res1 = 0 ;
17407 wxRect temp2 ;
17408 wxColour temp3 ;
17409 wxColour temp4 ;
17410 int val5 ;
17411 int ecode5 = 0 ;
17412 PyObject * obj0 = 0 ;
17413 PyObject * obj1 = 0 ;
17414 PyObject * obj2 = 0 ;
17415 PyObject * obj3 = 0 ;
17416 PyObject * obj4 = 0 ;
17417 char * kwnames[] = {
17418 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17419 };
17420
17421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17423 if (!SWIG_IsOK(res1)) {
17424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17425 }
17426 arg1 = reinterpret_cast< wxDC * >(argp1);
17427 {
17428 arg2 = &temp2;
17429 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17430 }
17431 {
17432 arg3 = &temp3;
17433 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17434 }
17435 {
17436 arg4 = &temp4;
17437 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17438 }
17439 if (obj4) {
17440 ecode5 = SWIG_AsVal_int(obj4, &val5);
17441 if (!SWIG_IsOK(ecode5)) {
17442 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17443 }
17444 arg5 = static_cast< wxDirection >(val5);
17445 }
17446 {
17447 PyThreadState* __tstate = wxPyBeginAllowThreads();
17448 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17449 wxPyEndAllowThreads(__tstate);
17450 if (PyErr_Occurred()) SWIG_fail;
17451 }
17452 resultobj = SWIG_Py_Void();
17453 return resultobj;
17454fail:
17455 return NULL;
17456}
17457
17458
17459SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17460 PyObject *resultobj = 0;
17461 wxDC *arg1 = (wxDC *) 0 ;
17462 int arg2 ;
17463 int arg3 ;
17464 wxColour result;
17465 void *argp1 = 0 ;
17466 int res1 = 0 ;
17467 int val2 ;
17468 int ecode2 = 0 ;
17469 int val3 ;
17470 int ecode3 = 0 ;
17471 PyObject * obj0 = 0 ;
17472 PyObject * obj1 = 0 ;
17473 PyObject * obj2 = 0 ;
17474 char * kwnames[] = {
17475 (char *) "self",(char *) "x",(char *) "y", NULL
17476 };
17477
17478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17480 if (!SWIG_IsOK(res1)) {
17481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17482 }
17483 arg1 = reinterpret_cast< wxDC * >(argp1);
17484 ecode2 = SWIG_AsVal_int(obj1, &val2);
17485 if (!SWIG_IsOK(ecode2)) {
17486 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17487 }
17488 arg2 = static_cast< int >(val2);
17489 ecode3 = SWIG_AsVal_int(obj2, &val3);
17490 if (!SWIG_IsOK(ecode3)) {
17491 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17492 }
17493 arg3 = static_cast< int >(val3);
17494 {
17495 PyThreadState* __tstate = wxPyBeginAllowThreads();
17496 result = wxDC_GetPixel(arg1,arg2,arg3);
17497 wxPyEndAllowThreads(__tstate);
17498 if (PyErr_Occurred()) SWIG_fail;
17499 }
17500 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17501 return resultobj;
17502fail:
17503 return NULL;
17504}
17505
17506
17507SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17508 PyObject *resultobj = 0;
17509 wxDC *arg1 = (wxDC *) 0 ;
17510 wxPoint *arg2 = 0 ;
17511 wxColour result;
17512 void *argp1 = 0 ;
17513 int res1 = 0 ;
17514 wxPoint temp2 ;
17515 PyObject * obj0 = 0 ;
17516 PyObject * obj1 = 0 ;
17517 char * kwnames[] = {
17518 (char *) "self",(char *) "pt", NULL
17519 };
17520
17521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17523 if (!SWIG_IsOK(res1)) {
17524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17525 }
17526 arg1 = reinterpret_cast< wxDC * >(argp1);
17527 {
17528 arg2 = &temp2;
17529 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17530 }
17531 {
17532 PyThreadState* __tstate = wxPyBeginAllowThreads();
17533 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17534 wxPyEndAllowThreads(__tstate);
17535 if (PyErr_Occurred()) SWIG_fail;
17536 }
17537 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17538 return resultobj;
17539fail:
17540 return NULL;
17541}
17542
17543
17544SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17545 PyObject *resultobj = 0;
17546 wxDC *arg1 = (wxDC *) 0 ;
17547 int arg2 ;
17548 int arg3 ;
17549 int arg4 ;
17550 int arg5 ;
17551 void *argp1 = 0 ;
17552 int res1 = 0 ;
17553 int val2 ;
17554 int ecode2 = 0 ;
17555 int val3 ;
17556 int ecode3 = 0 ;
17557 int val4 ;
17558 int ecode4 = 0 ;
17559 int val5 ;
17560 int ecode5 = 0 ;
17561 PyObject * obj0 = 0 ;
17562 PyObject * obj1 = 0 ;
17563 PyObject * obj2 = 0 ;
17564 PyObject * obj3 = 0 ;
17565 PyObject * obj4 = 0 ;
17566 char * kwnames[] = {
17567 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17568 };
17569
17570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17572 if (!SWIG_IsOK(res1)) {
17573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17574 }
17575 arg1 = reinterpret_cast< wxDC * >(argp1);
17576 ecode2 = SWIG_AsVal_int(obj1, &val2);
17577 if (!SWIG_IsOK(ecode2)) {
17578 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17579 }
17580 arg2 = static_cast< int >(val2);
17581 ecode3 = SWIG_AsVal_int(obj2, &val3);
17582 if (!SWIG_IsOK(ecode3)) {
17583 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
17584 }
17585 arg3 = static_cast< int >(val3);
17586 ecode4 = SWIG_AsVal_int(obj3, &val4);
17587 if (!SWIG_IsOK(ecode4)) {
17588 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
17589 }
17590 arg4 = static_cast< int >(val4);
17591 ecode5 = SWIG_AsVal_int(obj4, &val5);
17592 if (!SWIG_IsOK(ecode5)) {
17593 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
17594 }
17595 arg5 = static_cast< int >(val5);
17596 {
17597 PyThreadState* __tstate = wxPyBeginAllowThreads();
17598 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
17599 wxPyEndAllowThreads(__tstate);
17600 if (PyErr_Occurred()) SWIG_fail;
17601 }
17602 resultobj = SWIG_Py_Void();
17603 return resultobj;
17604fail:
17605 return NULL;
17606}
17607
17608
17609SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17610 PyObject *resultobj = 0;
17611 wxDC *arg1 = (wxDC *) 0 ;
17612 wxPoint *arg2 = 0 ;
17613 wxPoint *arg3 = 0 ;
17614 void *argp1 = 0 ;
17615 int res1 = 0 ;
17616 wxPoint temp2 ;
17617 wxPoint temp3 ;
17618 PyObject * obj0 = 0 ;
17619 PyObject * obj1 = 0 ;
17620 PyObject * obj2 = 0 ;
17621 char * kwnames[] = {
17622 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
17623 };
17624
17625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17627 if (!SWIG_IsOK(res1)) {
17628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
17629 }
17630 arg1 = reinterpret_cast< wxDC * >(argp1);
17631 {
17632 arg2 = &temp2;
17633 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17634 }
17635 {
17636 arg3 = &temp3;
17637 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17638 }
17639 {
17640 PyThreadState* __tstate = wxPyBeginAllowThreads();
17641 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
17642 wxPyEndAllowThreads(__tstate);
17643 if (PyErr_Occurred()) SWIG_fail;
17644 }
17645 resultobj = SWIG_Py_Void();
17646 return resultobj;
17647fail:
17648 return NULL;
17649}
17650
17651
17652SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17653 PyObject *resultobj = 0;
17654 wxDC *arg1 = (wxDC *) 0 ;
17655 int arg2 ;
17656 int arg3 ;
17657 void *argp1 = 0 ;
17658 int res1 = 0 ;
17659 int val2 ;
17660 int ecode2 = 0 ;
17661 int val3 ;
17662 int ecode3 = 0 ;
17663 PyObject * obj0 = 0 ;
17664 PyObject * obj1 = 0 ;
17665 PyObject * obj2 = 0 ;
17666 char * kwnames[] = {
17667 (char *) "self",(char *) "x",(char *) "y", NULL
17668 };
17669
17670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17672 if (!SWIG_IsOK(res1)) {
17673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
17674 }
17675 arg1 = reinterpret_cast< wxDC * >(argp1);
17676 ecode2 = SWIG_AsVal_int(obj1, &val2);
17677 if (!SWIG_IsOK(ecode2)) {
17678 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
17679 }
17680 arg2 = static_cast< int >(val2);
17681 ecode3 = SWIG_AsVal_int(obj2, &val3);
17682 if (!SWIG_IsOK(ecode3)) {
17683 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
17684 }
17685 arg3 = static_cast< int >(val3);
17686 {
17687 PyThreadState* __tstate = wxPyBeginAllowThreads();
17688 (arg1)->CrossHair(arg2,arg3);
17689 wxPyEndAllowThreads(__tstate);
17690 if (PyErr_Occurred()) SWIG_fail;
17691 }
17692 resultobj = SWIG_Py_Void();
17693 return resultobj;
17694fail:
17695 return NULL;
17696}
17697
17698
17699SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17700 PyObject *resultobj = 0;
17701 wxDC *arg1 = (wxDC *) 0 ;
17702 wxPoint *arg2 = 0 ;
17703 void *argp1 = 0 ;
17704 int res1 = 0 ;
17705 wxPoint temp2 ;
17706 PyObject * obj0 = 0 ;
17707 PyObject * obj1 = 0 ;
17708 char * kwnames[] = {
17709 (char *) "self",(char *) "pt", NULL
17710 };
17711
17712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17714 if (!SWIG_IsOK(res1)) {
17715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17716 }
17717 arg1 = reinterpret_cast< wxDC * >(argp1);
17718 {
17719 arg2 = &temp2;
17720 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17721 }
17722 {
17723 PyThreadState* __tstate = wxPyBeginAllowThreads();
17724 (arg1)->CrossHair((wxPoint const &)*arg2);
17725 wxPyEndAllowThreads(__tstate);
17726 if (PyErr_Occurred()) SWIG_fail;
17727 }
17728 resultobj = SWIG_Py_Void();
17729 return resultobj;
17730fail:
17731 return NULL;
17732}
17733
17734
17735SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17736 PyObject *resultobj = 0;
17737 wxDC *arg1 = (wxDC *) 0 ;
17738 int arg2 ;
17739 int arg3 ;
17740 int arg4 ;
17741 int arg5 ;
17742 int arg6 ;
17743 int arg7 ;
17744 void *argp1 = 0 ;
17745 int res1 = 0 ;
17746 int val2 ;
17747 int ecode2 = 0 ;
17748 int val3 ;
17749 int ecode3 = 0 ;
17750 int val4 ;
17751 int ecode4 = 0 ;
17752 int val5 ;
17753 int ecode5 = 0 ;
17754 int val6 ;
17755 int ecode6 = 0 ;
17756 int val7 ;
17757 int ecode7 = 0 ;
17758 PyObject * obj0 = 0 ;
17759 PyObject * obj1 = 0 ;
17760 PyObject * obj2 = 0 ;
17761 PyObject * obj3 = 0 ;
17762 PyObject * obj4 = 0 ;
17763 PyObject * obj5 = 0 ;
17764 PyObject * obj6 = 0 ;
17765 char * kwnames[] = {
17766 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
17767 };
17768
17769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
17770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17771 if (!SWIG_IsOK(res1)) {
17772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
17773 }
17774 arg1 = reinterpret_cast< wxDC * >(argp1);
17775 ecode2 = SWIG_AsVal_int(obj1, &val2);
17776 if (!SWIG_IsOK(ecode2)) {
17777 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
17778 }
17779 arg2 = static_cast< int >(val2);
17780 ecode3 = SWIG_AsVal_int(obj2, &val3);
17781 if (!SWIG_IsOK(ecode3)) {
17782 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
17783 }
17784 arg3 = static_cast< int >(val3);
17785 ecode4 = SWIG_AsVal_int(obj3, &val4);
17786 if (!SWIG_IsOK(ecode4)) {
17787 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
17788 }
17789 arg4 = static_cast< int >(val4);
17790 ecode5 = SWIG_AsVal_int(obj4, &val5);
17791 if (!SWIG_IsOK(ecode5)) {
17792 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
17793 }
17794 arg5 = static_cast< int >(val5);
17795 ecode6 = SWIG_AsVal_int(obj5, &val6);
17796 if (!SWIG_IsOK(ecode6)) {
17797 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
17798 }
17799 arg6 = static_cast< int >(val6);
17800 ecode7 = SWIG_AsVal_int(obj6, &val7);
17801 if (!SWIG_IsOK(ecode7)) {
17802 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
17803 }
17804 arg7 = static_cast< int >(val7);
17805 {
17806 PyThreadState* __tstate = wxPyBeginAllowThreads();
17807 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
17808 wxPyEndAllowThreads(__tstate);
17809 if (PyErr_Occurred()) SWIG_fail;
17810 }
17811 resultobj = SWIG_Py_Void();
17812 return resultobj;
17813fail:
17814 return NULL;
17815}
17816
17817
17818SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17819 PyObject *resultobj = 0;
17820 wxDC *arg1 = (wxDC *) 0 ;
17821 wxPoint *arg2 = 0 ;
17822 wxPoint *arg3 = 0 ;
17823 wxPoint *arg4 = 0 ;
17824 void *argp1 = 0 ;
17825 int res1 = 0 ;
17826 wxPoint temp2 ;
17827 wxPoint temp3 ;
17828 wxPoint temp4 ;
17829 PyObject * obj0 = 0 ;
17830 PyObject * obj1 = 0 ;
17831 PyObject * obj2 = 0 ;
17832 PyObject * obj3 = 0 ;
17833 char * kwnames[] = {
17834 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
17835 };
17836
17837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17839 if (!SWIG_IsOK(res1)) {
17840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17841 }
17842 arg1 = reinterpret_cast< wxDC * >(argp1);
17843 {
17844 arg2 = &temp2;
17845 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17846 }
17847 {
17848 arg3 = &temp3;
17849 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17850 }
17851 {
17852 arg4 = &temp4;
17853 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17854 }
17855 {
17856 PyThreadState* __tstate = wxPyBeginAllowThreads();
17857 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
17858 wxPyEndAllowThreads(__tstate);
17859 if (PyErr_Occurred()) SWIG_fail;
17860 }
17861 resultobj = SWIG_Py_Void();
17862 return resultobj;
17863fail:
17864 return NULL;
17865}
17866
17867
17868SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17869 PyObject *resultobj = 0;
17870 wxDC *arg1 = (wxDC *) 0 ;
17871 int arg2 ;
17872 int arg3 ;
17873 int arg4 ;
17874 int arg5 ;
17875 void *argp1 = 0 ;
17876 int res1 = 0 ;
17877 int val2 ;
17878 int ecode2 = 0 ;
17879 int val3 ;
17880 int ecode3 = 0 ;
17881 int val4 ;
17882 int ecode4 = 0 ;
17883 int val5 ;
17884 int ecode5 = 0 ;
17885 PyObject * obj0 = 0 ;
17886 PyObject * obj1 = 0 ;
17887 PyObject * obj2 = 0 ;
17888 PyObject * obj3 = 0 ;
17889 PyObject * obj4 = 0 ;
17890 char * kwnames[] = {
17891 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
17892 };
17893
17894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17896 if (!SWIG_IsOK(res1)) {
17897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
17898 }
17899 arg1 = reinterpret_cast< wxDC * >(argp1);
17900 ecode2 = SWIG_AsVal_int(obj1, &val2);
17901 if (!SWIG_IsOK(ecode2)) {
17902 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
17903 }
17904 arg2 = static_cast< int >(val2);
17905 ecode3 = SWIG_AsVal_int(obj2, &val3);
17906 if (!SWIG_IsOK(ecode3)) {
17907 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
17908 }
17909 arg3 = static_cast< int >(val3);
17910 ecode4 = SWIG_AsVal_int(obj3, &val4);
17911 if (!SWIG_IsOK(ecode4)) {
17912 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
17913 }
17914 arg4 = static_cast< int >(val4);
17915 ecode5 = SWIG_AsVal_int(obj4, &val5);
17916 if (!SWIG_IsOK(ecode5)) {
17917 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
17918 }
17919 arg5 = static_cast< int >(val5);
17920 {
17921 PyThreadState* __tstate = wxPyBeginAllowThreads();
17922 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
17923 wxPyEndAllowThreads(__tstate);
17924 if (PyErr_Occurred()) SWIG_fail;
17925 }
17926 resultobj = SWIG_Py_Void();
17927 return resultobj;
17928fail:
17929 return NULL;
17930}
17931
17932
17933SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17934 PyObject *resultobj = 0;
17935 wxDC *arg1 = (wxDC *) 0 ;
17936 wxRect *arg2 = 0 ;
17937 void *argp1 = 0 ;
17938 int res1 = 0 ;
17939 wxRect temp2 ;
17940 PyObject * obj0 = 0 ;
17941 PyObject * obj1 = 0 ;
17942 char * kwnames[] = {
17943 (char *) "self",(char *) "rect", NULL
17944 };
17945
17946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
17947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17948 if (!SWIG_IsOK(res1)) {
17949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
17950 }
17951 arg1 = reinterpret_cast< wxDC * >(argp1);
17952 {
17953 arg2 = &temp2;
17954 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17955 }
17956 {
17957 PyThreadState* __tstate = wxPyBeginAllowThreads();
17958 (arg1)->DrawCheckMark((wxRect const &)*arg2);
17959 wxPyEndAllowThreads(__tstate);
17960 if (PyErr_Occurred()) SWIG_fail;
17961 }
17962 resultobj = SWIG_Py_Void();
17963 return resultobj;
17964fail:
17965 return NULL;
17966}
17967
17968
17969SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17970 PyObject *resultobj = 0;
17971 wxDC *arg1 = (wxDC *) 0 ;
17972 int arg2 ;
17973 int arg3 ;
17974 int arg4 ;
17975 int arg5 ;
17976 double arg6 ;
17977 double arg7 ;
17978 void *argp1 = 0 ;
17979 int res1 = 0 ;
17980 int val2 ;
17981 int ecode2 = 0 ;
17982 int val3 ;
17983 int ecode3 = 0 ;
17984 int val4 ;
17985 int ecode4 = 0 ;
17986 int val5 ;
17987 int ecode5 = 0 ;
17988 double val6 ;
17989 int ecode6 = 0 ;
17990 double val7 ;
17991 int ecode7 = 0 ;
17992 PyObject * obj0 = 0 ;
17993 PyObject * obj1 = 0 ;
17994 PyObject * obj2 = 0 ;
17995 PyObject * obj3 = 0 ;
17996 PyObject * obj4 = 0 ;
17997 PyObject * obj5 = 0 ;
17998 PyObject * obj6 = 0 ;
17999 char * kwnames[] = {
18000 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18001 };
18002
18003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18005 if (!SWIG_IsOK(res1)) {
18006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18007 }
18008 arg1 = reinterpret_cast< wxDC * >(argp1);
18009 ecode2 = SWIG_AsVal_int(obj1, &val2);
18010 if (!SWIG_IsOK(ecode2)) {
18011 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18012 }
18013 arg2 = static_cast< int >(val2);
18014 ecode3 = SWIG_AsVal_int(obj2, &val3);
18015 if (!SWIG_IsOK(ecode3)) {
18016 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18017 }
18018 arg3 = static_cast< int >(val3);
18019 ecode4 = SWIG_AsVal_int(obj3, &val4);
18020 if (!SWIG_IsOK(ecode4)) {
18021 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18022 }
18023 arg4 = static_cast< int >(val4);
18024 ecode5 = SWIG_AsVal_int(obj4, &val5);
18025 if (!SWIG_IsOK(ecode5)) {
18026 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18027 }
18028 arg5 = static_cast< int >(val5);
18029 ecode6 = SWIG_AsVal_double(obj5, &val6);
18030 if (!SWIG_IsOK(ecode6)) {
18031 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18032 }
18033 arg6 = static_cast< double >(val6);
18034 ecode7 = SWIG_AsVal_double(obj6, &val7);
18035 if (!SWIG_IsOK(ecode7)) {
18036 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18037 }
18038 arg7 = static_cast< double >(val7);
18039 {
18040 PyThreadState* __tstate = wxPyBeginAllowThreads();
18041 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18042 wxPyEndAllowThreads(__tstate);
18043 if (PyErr_Occurred()) SWIG_fail;
18044 }
18045 resultobj = SWIG_Py_Void();
18046 return resultobj;
18047fail:
18048 return NULL;
18049}
18050
18051
18052SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18053 PyObject *resultobj = 0;
18054 wxDC *arg1 = (wxDC *) 0 ;
18055 wxPoint *arg2 = 0 ;
18056 wxSize *arg3 = 0 ;
18057 double arg4 ;
18058 double arg5 ;
18059 void *argp1 = 0 ;
18060 int res1 = 0 ;
18061 wxPoint temp2 ;
18062 wxSize temp3 ;
18063 double val4 ;
18064 int ecode4 = 0 ;
18065 double val5 ;
18066 int ecode5 = 0 ;
18067 PyObject * obj0 = 0 ;
18068 PyObject * obj1 = 0 ;
18069 PyObject * obj2 = 0 ;
18070 PyObject * obj3 = 0 ;
18071 PyObject * obj4 = 0 ;
18072 char * kwnames[] = {
18073 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18074 };
18075
18076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18078 if (!SWIG_IsOK(res1)) {
18079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18080 }
18081 arg1 = reinterpret_cast< wxDC * >(argp1);
18082 {
18083 arg2 = &temp2;
18084 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18085 }
18086 {
18087 arg3 = &temp3;
18088 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18089 }
18090 ecode4 = SWIG_AsVal_double(obj3, &val4);
18091 if (!SWIG_IsOK(ecode4)) {
18092 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18093 }
18094 arg4 = static_cast< double >(val4);
18095 ecode5 = SWIG_AsVal_double(obj4, &val5);
18096 if (!SWIG_IsOK(ecode5)) {
18097 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18098 }
18099 arg5 = static_cast< double >(val5);
18100 {
18101 PyThreadState* __tstate = wxPyBeginAllowThreads();
18102 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18103 wxPyEndAllowThreads(__tstate);
18104 if (PyErr_Occurred()) SWIG_fail;
18105 }
18106 resultobj = SWIG_Py_Void();
18107 return resultobj;
18108fail:
18109 return NULL;
18110}
18111
18112
18113SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18114 PyObject *resultobj = 0;
18115 wxDC *arg1 = (wxDC *) 0 ;
18116 int arg2 ;
18117 int arg3 ;
18118 void *argp1 = 0 ;
18119 int res1 = 0 ;
18120 int val2 ;
18121 int ecode2 = 0 ;
18122 int val3 ;
18123 int ecode3 = 0 ;
18124 PyObject * obj0 = 0 ;
18125 PyObject * obj1 = 0 ;
18126 PyObject * obj2 = 0 ;
18127 char * kwnames[] = {
18128 (char *) "self",(char *) "x",(char *) "y", NULL
18129 };
18130
18131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18133 if (!SWIG_IsOK(res1)) {
18134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18135 }
18136 arg1 = reinterpret_cast< wxDC * >(argp1);
18137 ecode2 = SWIG_AsVal_int(obj1, &val2);
18138 if (!SWIG_IsOK(ecode2)) {
18139 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18140 }
18141 arg2 = static_cast< int >(val2);
18142 ecode3 = SWIG_AsVal_int(obj2, &val3);
18143 if (!SWIG_IsOK(ecode3)) {
18144 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18145 }
18146 arg3 = static_cast< int >(val3);
18147 {
18148 PyThreadState* __tstate = wxPyBeginAllowThreads();
18149 (arg1)->DrawPoint(arg2,arg3);
18150 wxPyEndAllowThreads(__tstate);
18151 if (PyErr_Occurred()) SWIG_fail;
18152 }
18153 resultobj = SWIG_Py_Void();
18154 return resultobj;
18155fail:
18156 return NULL;
18157}
18158
18159
18160SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18161 PyObject *resultobj = 0;
18162 wxDC *arg1 = (wxDC *) 0 ;
18163 wxPoint *arg2 = 0 ;
18164 void *argp1 = 0 ;
18165 int res1 = 0 ;
18166 wxPoint temp2 ;
18167 PyObject * obj0 = 0 ;
18168 PyObject * obj1 = 0 ;
18169 char * kwnames[] = {
18170 (char *) "self",(char *) "pt", NULL
18171 };
18172
18173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18175 if (!SWIG_IsOK(res1)) {
18176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18177 }
18178 arg1 = reinterpret_cast< wxDC * >(argp1);
18179 {
18180 arg2 = &temp2;
18181 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18182 }
18183 {
18184 PyThreadState* __tstate = wxPyBeginAllowThreads();
18185 (arg1)->DrawPoint((wxPoint const &)*arg2);
18186 wxPyEndAllowThreads(__tstate);
18187 if (PyErr_Occurred()) SWIG_fail;
18188 }
18189 resultobj = SWIG_Py_Void();
18190 return resultobj;
18191fail:
18192 return NULL;
18193}
18194
18195
18196SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18197 PyObject *resultobj = 0;
18198 wxDC *arg1 = (wxDC *) 0 ;
18199 int arg2 ;
18200 int arg3 ;
18201 int arg4 ;
18202 int arg5 ;
18203 void *argp1 = 0 ;
18204 int res1 = 0 ;
18205 int val2 ;
18206 int ecode2 = 0 ;
18207 int val3 ;
18208 int ecode3 = 0 ;
18209 int val4 ;
18210 int ecode4 = 0 ;
18211 int val5 ;
18212 int ecode5 = 0 ;
18213 PyObject * obj0 = 0 ;
18214 PyObject * obj1 = 0 ;
18215 PyObject * obj2 = 0 ;
18216 PyObject * obj3 = 0 ;
18217 PyObject * obj4 = 0 ;
18218 char * kwnames[] = {
18219 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18220 };
18221
18222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18224 if (!SWIG_IsOK(res1)) {
18225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18226 }
18227 arg1 = reinterpret_cast< wxDC * >(argp1);
18228 ecode2 = SWIG_AsVal_int(obj1, &val2);
18229 if (!SWIG_IsOK(ecode2)) {
18230 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18231 }
18232 arg2 = static_cast< int >(val2);
18233 ecode3 = SWIG_AsVal_int(obj2, &val3);
18234 if (!SWIG_IsOK(ecode3)) {
18235 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18236 }
18237 arg3 = static_cast< int >(val3);
18238 ecode4 = SWIG_AsVal_int(obj3, &val4);
18239 if (!SWIG_IsOK(ecode4)) {
18240 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18241 }
18242 arg4 = static_cast< int >(val4);
18243 ecode5 = SWIG_AsVal_int(obj4, &val5);
18244 if (!SWIG_IsOK(ecode5)) {
18245 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18246 }
18247 arg5 = static_cast< int >(val5);
18248 {
18249 PyThreadState* __tstate = wxPyBeginAllowThreads();
18250 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18251 wxPyEndAllowThreads(__tstate);
18252 if (PyErr_Occurred()) SWIG_fail;
18253 }
18254 resultobj = SWIG_Py_Void();
18255 return resultobj;
18256fail:
18257 return NULL;
18258}
18259
18260
18261SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18262 PyObject *resultobj = 0;
18263 wxDC *arg1 = (wxDC *) 0 ;
18264 wxRect *arg2 = 0 ;
18265 void *argp1 = 0 ;
18266 int res1 = 0 ;
18267 wxRect temp2 ;
18268 PyObject * obj0 = 0 ;
18269 PyObject * obj1 = 0 ;
18270 char * kwnames[] = {
18271 (char *) "self",(char *) "rect", NULL
18272 };
18273
18274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18276 if (!SWIG_IsOK(res1)) {
18277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18278 }
18279 arg1 = reinterpret_cast< wxDC * >(argp1);
18280 {
18281 arg2 = &temp2;
18282 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18283 }
18284 {
18285 PyThreadState* __tstate = wxPyBeginAllowThreads();
18286 (arg1)->DrawRectangle((wxRect const &)*arg2);
18287 wxPyEndAllowThreads(__tstate);
18288 if (PyErr_Occurred()) SWIG_fail;
18289 }
18290 resultobj = SWIG_Py_Void();
18291 return resultobj;
18292fail:
18293 return NULL;
18294}
18295
18296
18297SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18298 PyObject *resultobj = 0;
18299 wxDC *arg1 = (wxDC *) 0 ;
18300 wxPoint *arg2 = 0 ;
18301 wxSize *arg3 = 0 ;
18302 void *argp1 = 0 ;
18303 int res1 = 0 ;
18304 wxPoint temp2 ;
18305 wxSize temp3 ;
18306 PyObject * obj0 = 0 ;
18307 PyObject * obj1 = 0 ;
18308 PyObject * obj2 = 0 ;
18309 char * kwnames[] = {
18310 (char *) "self",(char *) "pt",(char *) "sz", NULL
18311 };
18312
18313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18315 if (!SWIG_IsOK(res1)) {
18316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18317 }
18318 arg1 = reinterpret_cast< wxDC * >(argp1);
18319 {
18320 arg2 = &temp2;
18321 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18322 }
18323 {
18324 arg3 = &temp3;
18325 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18326 }
18327 {
18328 PyThreadState* __tstate = wxPyBeginAllowThreads();
18329 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18330 wxPyEndAllowThreads(__tstate);
18331 if (PyErr_Occurred()) SWIG_fail;
18332 }
18333 resultobj = SWIG_Py_Void();
18334 return resultobj;
18335fail:
18336 return NULL;
18337}
18338
18339
18340SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18341 PyObject *resultobj = 0;
18342 wxDC *arg1 = (wxDC *) 0 ;
18343 int arg2 ;
18344 int arg3 ;
18345 int arg4 ;
18346 int arg5 ;
18347 double arg6 ;
18348 void *argp1 = 0 ;
18349 int res1 = 0 ;
18350 int val2 ;
18351 int ecode2 = 0 ;
18352 int val3 ;
18353 int ecode3 = 0 ;
18354 int val4 ;
18355 int ecode4 = 0 ;
18356 int val5 ;
18357 int ecode5 = 0 ;
18358 double val6 ;
18359 int ecode6 = 0 ;
18360 PyObject * obj0 = 0 ;
18361 PyObject * obj1 = 0 ;
18362 PyObject * obj2 = 0 ;
18363 PyObject * obj3 = 0 ;
18364 PyObject * obj4 = 0 ;
18365 PyObject * obj5 = 0 ;
18366 char * kwnames[] = {
18367 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18368 };
18369
18370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18372 if (!SWIG_IsOK(res1)) {
18373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18374 }
18375 arg1 = reinterpret_cast< wxDC * >(argp1);
18376 ecode2 = SWIG_AsVal_int(obj1, &val2);
18377 if (!SWIG_IsOK(ecode2)) {
18378 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18379 }
18380 arg2 = static_cast< int >(val2);
18381 ecode3 = SWIG_AsVal_int(obj2, &val3);
18382 if (!SWIG_IsOK(ecode3)) {
18383 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18384 }
18385 arg3 = static_cast< int >(val3);
18386 ecode4 = SWIG_AsVal_int(obj3, &val4);
18387 if (!SWIG_IsOK(ecode4)) {
18388 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18389 }
18390 arg4 = static_cast< int >(val4);
18391 ecode5 = SWIG_AsVal_int(obj4, &val5);
18392 if (!SWIG_IsOK(ecode5)) {
18393 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18394 }
18395 arg5 = static_cast< int >(val5);
18396 ecode6 = SWIG_AsVal_double(obj5, &val6);
18397 if (!SWIG_IsOK(ecode6)) {
18398 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18399 }
18400 arg6 = static_cast< double >(val6);
18401 {
18402 PyThreadState* __tstate = wxPyBeginAllowThreads();
18403 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18404 wxPyEndAllowThreads(__tstate);
18405 if (PyErr_Occurred()) SWIG_fail;
18406 }
18407 resultobj = SWIG_Py_Void();
18408 return resultobj;
18409fail:
18410 return NULL;
18411}
18412
18413
18414SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18415 PyObject *resultobj = 0;
18416 wxDC *arg1 = (wxDC *) 0 ;
18417 wxRect *arg2 = 0 ;
18418 double arg3 ;
18419 void *argp1 = 0 ;
18420 int res1 = 0 ;
18421 wxRect temp2 ;
18422 double val3 ;
18423 int ecode3 = 0 ;
18424 PyObject * obj0 = 0 ;
18425 PyObject * obj1 = 0 ;
18426 PyObject * obj2 = 0 ;
18427 char * kwnames[] = {
18428 (char *) "self",(char *) "r",(char *) "radius", NULL
18429 };
18430
18431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18433 if (!SWIG_IsOK(res1)) {
18434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18435 }
18436 arg1 = reinterpret_cast< wxDC * >(argp1);
18437 {
18438 arg2 = &temp2;
18439 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18440 }
18441 ecode3 = SWIG_AsVal_double(obj2, &val3);
18442 if (!SWIG_IsOK(ecode3)) {
18443 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18444 }
18445 arg3 = static_cast< double >(val3);
18446 {
18447 PyThreadState* __tstate = wxPyBeginAllowThreads();
18448 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18449 wxPyEndAllowThreads(__tstate);
18450 if (PyErr_Occurred()) SWIG_fail;
18451 }
18452 resultobj = SWIG_Py_Void();
18453 return resultobj;
18454fail:
18455 return NULL;
18456}
18457
18458
18459SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18460 PyObject *resultobj = 0;
18461 wxDC *arg1 = (wxDC *) 0 ;
18462 wxPoint *arg2 = 0 ;
18463 wxSize *arg3 = 0 ;
18464 double arg4 ;
18465 void *argp1 = 0 ;
18466 int res1 = 0 ;
18467 wxPoint temp2 ;
18468 wxSize temp3 ;
18469 double val4 ;
18470 int ecode4 = 0 ;
18471 PyObject * obj0 = 0 ;
18472 PyObject * obj1 = 0 ;
18473 PyObject * obj2 = 0 ;
18474 PyObject * obj3 = 0 ;
18475 char * kwnames[] = {
18476 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18477 };
18478
18479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18481 if (!SWIG_IsOK(res1)) {
18482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18483 }
18484 arg1 = reinterpret_cast< wxDC * >(argp1);
18485 {
18486 arg2 = &temp2;
18487 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18488 }
18489 {
18490 arg3 = &temp3;
18491 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18492 }
18493 ecode4 = SWIG_AsVal_double(obj3, &val4);
18494 if (!SWIG_IsOK(ecode4)) {
18495 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18496 }
18497 arg4 = static_cast< double >(val4);
18498 {
18499 PyThreadState* __tstate = wxPyBeginAllowThreads();
18500 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18501 wxPyEndAllowThreads(__tstate);
18502 if (PyErr_Occurred()) SWIG_fail;
18503 }
18504 resultobj = SWIG_Py_Void();
18505 return resultobj;
18506fail:
18507 return NULL;
18508}
18509
18510
18511SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18512 PyObject *resultobj = 0;
18513 wxDC *arg1 = (wxDC *) 0 ;
18514 int arg2 ;
18515 int arg3 ;
18516 int arg4 ;
18517 void *argp1 = 0 ;
18518 int res1 = 0 ;
18519 int val2 ;
18520 int ecode2 = 0 ;
18521 int val3 ;
18522 int ecode3 = 0 ;
18523 int val4 ;
18524 int ecode4 = 0 ;
18525 PyObject * obj0 = 0 ;
18526 PyObject * obj1 = 0 ;
18527 PyObject * obj2 = 0 ;
18528 PyObject * obj3 = 0 ;
18529 char * kwnames[] = {
18530 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18531 };
18532
18533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18535 if (!SWIG_IsOK(res1)) {
18536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18537 }
18538 arg1 = reinterpret_cast< wxDC * >(argp1);
18539 ecode2 = SWIG_AsVal_int(obj1, &val2);
18540 if (!SWIG_IsOK(ecode2)) {
18541 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18542 }
18543 arg2 = static_cast< int >(val2);
18544 ecode3 = SWIG_AsVal_int(obj2, &val3);
18545 if (!SWIG_IsOK(ecode3)) {
18546 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18547 }
18548 arg3 = static_cast< int >(val3);
18549 ecode4 = SWIG_AsVal_int(obj3, &val4);
18550 if (!SWIG_IsOK(ecode4)) {
18551 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18552 }
18553 arg4 = static_cast< int >(val4);
18554 {
18555 PyThreadState* __tstate = wxPyBeginAllowThreads();
18556 (arg1)->DrawCircle(arg2,arg3,arg4);
18557 wxPyEndAllowThreads(__tstate);
18558 if (PyErr_Occurred()) SWIG_fail;
18559 }
18560 resultobj = SWIG_Py_Void();
18561 return resultobj;
18562fail:
18563 return NULL;
18564}
18565
18566
18567SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18568 PyObject *resultobj = 0;
18569 wxDC *arg1 = (wxDC *) 0 ;
18570 wxPoint *arg2 = 0 ;
18571 int arg3 ;
18572 void *argp1 = 0 ;
18573 int res1 = 0 ;
18574 wxPoint temp2 ;
18575 int val3 ;
18576 int ecode3 = 0 ;
18577 PyObject * obj0 = 0 ;
18578 PyObject * obj1 = 0 ;
18579 PyObject * obj2 = 0 ;
18580 char * kwnames[] = {
18581 (char *) "self",(char *) "pt",(char *) "radius", NULL
18582 };
18583
18584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18586 if (!SWIG_IsOK(res1)) {
18587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18588 }
18589 arg1 = reinterpret_cast< wxDC * >(argp1);
18590 {
18591 arg2 = &temp2;
18592 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18593 }
18594 ecode3 = SWIG_AsVal_int(obj2, &val3);
18595 if (!SWIG_IsOK(ecode3)) {
18596 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
18597 }
18598 arg3 = static_cast< int >(val3);
18599 {
18600 PyThreadState* __tstate = wxPyBeginAllowThreads();
18601 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
18602 wxPyEndAllowThreads(__tstate);
18603 if (PyErr_Occurred()) SWIG_fail;
18604 }
18605 resultobj = SWIG_Py_Void();
18606 return resultobj;
18607fail:
18608 return NULL;
18609}
18610
18611
18612SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18613 PyObject *resultobj = 0;
18614 wxDC *arg1 = (wxDC *) 0 ;
18615 int arg2 ;
18616 int arg3 ;
18617 int arg4 ;
18618 int arg5 ;
18619 void *argp1 = 0 ;
18620 int res1 = 0 ;
18621 int val2 ;
18622 int ecode2 = 0 ;
18623 int val3 ;
18624 int ecode3 = 0 ;
18625 int val4 ;
18626 int ecode4 = 0 ;
18627 int val5 ;
18628 int ecode5 = 0 ;
18629 PyObject * obj0 = 0 ;
18630 PyObject * obj1 = 0 ;
18631 PyObject * obj2 = 0 ;
18632 PyObject * obj3 = 0 ;
18633 PyObject * obj4 = 0 ;
18634 char * kwnames[] = {
18635 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18636 };
18637
18638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18640 if (!SWIG_IsOK(res1)) {
18641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
18642 }
18643 arg1 = reinterpret_cast< wxDC * >(argp1);
18644 ecode2 = SWIG_AsVal_int(obj1, &val2);
18645 if (!SWIG_IsOK(ecode2)) {
18646 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
18647 }
18648 arg2 = static_cast< int >(val2);
18649 ecode3 = SWIG_AsVal_int(obj2, &val3);
18650 if (!SWIG_IsOK(ecode3)) {
18651 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
18652 }
18653 arg3 = static_cast< int >(val3);
18654 ecode4 = SWIG_AsVal_int(obj3, &val4);
18655 if (!SWIG_IsOK(ecode4)) {
18656 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
18657 }
18658 arg4 = static_cast< int >(val4);
18659 ecode5 = SWIG_AsVal_int(obj4, &val5);
18660 if (!SWIG_IsOK(ecode5)) {
18661 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
18662 }
18663 arg5 = static_cast< int >(val5);
18664 {
18665 PyThreadState* __tstate = wxPyBeginAllowThreads();
18666 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
18667 wxPyEndAllowThreads(__tstate);
18668 if (PyErr_Occurred()) SWIG_fail;
18669 }
18670 resultobj = SWIG_Py_Void();
18671 return resultobj;
18672fail:
18673 return NULL;
18674}
18675
18676
18677SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18678 PyObject *resultobj = 0;
18679 wxDC *arg1 = (wxDC *) 0 ;
18680 wxRect *arg2 = 0 ;
18681 void *argp1 = 0 ;
18682 int res1 = 0 ;
18683 wxRect temp2 ;
18684 PyObject * obj0 = 0 ;
18685 PyObject * obj1 = 0 ;
18686 char * kwnames[] = {
18687 (char *) "self",(char *) "rect", NULL
18688 };
18689
18690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
18691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18692 if (!SWIG_IsOK(res1)) {
18693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
18694 }
18695 arg1 = reinterpret_cast< wxDC * >(argp1);
18696 {
18697 arg2 = &temp2;
18698 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18699 }
18700 {
18701 PyThreadState* __tstate = wxPyBeginAllowThreads();
18702 (arg1)->DrawEllipse((wxRect const &)*arg2);
18703 wxPyEndAllowThreads(__tstate);
18704 if (PyErr_Occurred()) SWIG_fail;
18705 }
18706 resultobj = SWIG_Py_Void();
18707 return resultobj;
18708fail:
18709 return NULL;
18710}
18711
18712
18713SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18714 PyObject *resultobj = 0;
18715 wxDC *arg1 = (wxDC *) 0 ;
18716 wxPoint *arg2 = 0 ;
18717 wxSize *arg3 = 0 ;
18718 void *argp1 = 0 ;
18719 int res1 = 0 ;
18720 wxPoint temp2 ;
18721 wxSize temp3 ;
18722 PyObject * obj0 = 0 ;
18723 PyObject * obj1 = 0 ;
18724 PyObject * obj2 = 0 ;
18725 char * kwnames[] = {
18726 (char *) "self",(char *) "pt",(char *) "sz", NULL
18727 };
18728
18729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18731 if (!SWIG_IsOK(res1)) {
18732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18733 }
18734 arg1 = reinterpret_cast< wxDC * >(argp1);
18735 {
18736 arg2 = &temp2;
18737 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18738 }
18739 {
18740 arg3 = &temp3;
18741 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18742 }
18743 {
18744 PyThreadState* __tstate = wxPyBeginAllowThreads();
18745 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
18746 wxPyEndAllowThreads(__tstate);
18747 if (PyErr_Occurred()) SWIG_fail;
18748 }
18749 resultobj = SWIG_Py_Void();
18750 return resultobj;
18751fail:
18752 return NULL;
18753}
18754
18755
18756SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18757 PyObject *resultobj = 0;
18758 wxDC *arg1 = (wxDC *) 0 ;
18759 wxIcon *arg2 = 0 ;
18760 int arg3 ;
18761 int arg4 ;
18762 void *argp1 = 0 ;
18763 int res1 = 0 ;
18764 void *argp2 = 0 ;
18765 int res2 = 0 ;
18766 int val3 ;
18767 int ecode3 = 0 ;
18768 int val4 ;
18769 int ecode4 = 0 ;
18770 PyObject * obj0 = 0 ;
18771 PyObject * obj1 = 0 ;
18772 PyObject * obj2 = 0 ;
18773 PyObject * obj3 = 0 ;
18774 char * kwnames[] = {
18775 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
18776 };
18777
18778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18780 if (!SWIG_IsOK(res1)) {
18781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
18782 }
18783 arg1 = reinterpret_cast< wxDC * >(argp1);
18784 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18785 if (!SWIG_IsOK(res2)) {
18786 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18787 }
18788 if (!argp2) {
18789 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18790 }
18791 arg2 = reinterpret_cast< wxIcon * >(argp2);
18792 ecode3 = SWIG_AsVal_int(obj2, &val3);
18793 if (!SWIG_IsOK(ecode3)) {
18794 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
18795 }
18796 arg3 = static_cast< int >(val3);
18797 ecode4 = SWIG_AsVal_int(obj3, &val4);
18798 if (!SWIG_IsOK(ecode4)) {
18799 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
18800 }
18801 arg4 = static_cast< int >(val4);
18802 {
18803 PyThreadState* __tstate = wxPyBeginAllowThreads();
18804 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
18805 wxPyEndAllowThreads(__tstate);
18806 if (PyErr_Occurred()) SWIG_fail;
18807 }
18808 resultobj = SWIG_Py_Void();
18809 return resultobj;
18810fail:
18811 return NULL;
18812}
18813
18814
18815SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18816 PyObject *resultobj = 0;
18817 wxDC *arg1 = (wxDC *) 0 ;
18818 wxIcon *arg2 = 0 ;
18819 wxPoint *arg3 = 0 ;
18820 void *argp1 = 0 ;
18821 int res1 = 0 ;
18822 void *argp2 = 0 ;
18823 int res2 = 0 ;
18824 wxPoint temp3 ;
18825 PyObject * obj0 = 0 ;
18826 PyObject * obj1 = 0 ;
18827 PyObject * obj2 = 0 ;
18828 char * kwnames[] = {
18829 (char *) "self",(char *) "icon",(char *) "pt", NULL
18830 };
18831
18832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18834 if (!SWIG_IsOK(res1)) {
18835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18836 }
18837 arg1 = reinterpret_cast< wxDC * >(argp1);
18838 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18839 if (!SWIG_IsOK(res2)) {
18840 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
18841 }
18842 if (!argp2) {
18843 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
18844 }
18845 arg2 = reinterpret_cast< wxIcon * >(argp2);
18846 {
18847 arg3 = &temp3;
18848 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18849 }
18850 {
18851 PyThreadState* __tstate = wxPyBeginAllowThreads();
18852 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
18853 wxPyEndAllowThreads(__tstate);
18854 if (PyErr_Occurred()) SWIG_fail;
18855 }
18856 resultobj = SWIG_Py_Void();
18857 return resultobj;
18858fail:
18859 return NULL;
18860}
18861
18862
18863SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18864 PyObject *resultobj = 0;
18865 wxDC *arg1 = (wxDC *) 0 ;
18866 wxBitmap *arg2 = 0 ;
18867 int arg3 ;
18868 int arg4 ;
18869 bool arg5 = (bool) false ;
18870 void *argp1 = 0 ;
18871 int res1 = 0 ;
18872 void *argp2 = 0 ;
18873 int res2 = 0 ;
18874 int val3 ;
18875 int ecode3 = 0 ;
18876 int val4 ;
18877 int ecode4 = 0 ;
18878 bool val5 ;
18879 int ecode5 = 0 ;
18880 PyObject * obj0 = 0 ;
18881 PyObject * obj1 = 0 ;
18882 PyObject * obj2 = 0 ;
18883 PyObject * obj3 = 0 ;
18884 PyObject * obj4 = 0 ;
18885 char * kwnames[] = {
18886 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
18887 };
18888
18889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18891 if (!SWIG_IsOK(res1)) {
18892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
18893 }
18894 arg1 = reinterpret_cast< wxDC * >(argp1);
18895 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
18896 if (!SWIG_IsOK(res2)) {
18897 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18898 }
18899 if (!argp2) {
18900 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18901 }
18902 arg2 = reinterpret_cast< wxBitmap * >(argp2);
18903 ecode3 = SWIG_AsVal_int(obj2, &val3);
18904 if (!SWIG_IsOK(ecode3)) {
18905 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
18906 }
18907 arg3 = static_cast< int >(val3);
18908 ecode4 = SWIG_AsVal_int(obj3, &val4);
18909 if (!SWIG_IsOK(ecode4)) {
18910 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
18911 }
18912 arg4 = static_cast< int >(val4);
18913 if (obj4) {
18914 ecode5 = SWIG_AsVal_bool(obj4, &val5);
18915 if (!SWIG_IsOK(ecode5)) {
18916 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
18917 }
18918 arg5 = static_cast< bool >(val5);
18919 }
18920 {
18921 PyThreadState* __tstate = wxPyBeginAllowThreads();
18922 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
18923 wxPyEndAllowThreads(__tstate);
18924 if (PyErr_Occurred()) SWIG_fail;
18925 }
18926 resultobj = SWIG_Py_Void();
18927 return resultobj;
18928fail:
18929 return NULL;
18930}
18931
18932
18933SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18934 PyObject *resultobj = 0;
18935 wxDC *arg1 = (wxDC *) 0 ;
18936 wxBitmap *arg2 = 0 ;
18937 wxPoint *arg3 = 0 ;
18938 bool arg4 = (bool) false ;
18939 void *argp1 = 0 ;
18940 int res1 = 0 ;
18941 void *argp2 = 0 ;
18942 int res2 = 0 ;
18943 wxPoint temp3 ;
18944 bool val4 ;
18945 int ecode4 = 0 ;
18946 PyObject * obj0 = 0 ;
18947 PyObject * obj1 = 0 ;
18948 PyObject * obj2 = 0 ;
18949 PyObject * obj3 = 0 ;
18950 char * kwnames[] = {
18951 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
18952 };
18953
18954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18956 if (!SWIG_IsOK(res1)) {
18957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18958 }
18959 arg1 = reinterpret_cast< wxDC * >(argp1);
18960 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
18961 if (!SWIG_IsOK(res2)) {
18962 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18963 }
18964 if (!argp2) {
18965 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18966 }
18967 arg2 = reinterpret_cast< wxBitmap * >(argp2);
18968 {
18969 arg3 = &temp3;
18970 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18971 }
18972 if (obj3) {
18973 ecode4 = SWIG_AsVal_bool(obj3, &val4);
18974 if (!SWIG_IsOK(ecode4)) {
18975 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
18976 }
18977 arg4 = static_cast< bool >(val4);
18978 }
18979 {
18980 PyThreadState* __tstate = wxPyBeginAllowThreads();
18981 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
18982 wxPyEndAllowThreads(__tstate);
18983 if (PyErr_Occurred()) SWIG_fail;
18984 }
18985 resultobj = SWIG_Py_Void();
18986 return resultobj;
18987fail:
18988 return NULL;
18989}
18990
18991
18992SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18993 PyObject *resultobj = 0;
18994 wxDC *arg1 = (wxDC *) 0 ;
18995 wxString *arg2 = 0 ;
18996 int arg3 ;
18997 int arg4 ;
18998 void *argp1 = 0 ;
18999 int res1 = 0 ;
19000 bool temp2 = false ;
19001 int val3 ;
19002 int ecode3 = 0 ;
19003 int val4 ;
19004 int ecode4 = 0 ;
19005 PyObject * obj0 = 0 ;
19006 PyObject * obj1 = 0 ;
19007 PyObject * obj2 = 0 ;
19008 PyObject * obj3 = 0 ;
19009 char * kwnames[] = {
19010 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19011 };
19012
19013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19015 if (!SWIG_IsOK(res1)) {
19016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19017 }
19018 arg1 = reinterpret_cast< wxDC * >(argp1);
19019 {
19020 arg2 = wxString_in_helper(obj1);
19021 if (arg2 == NULL) SWIG_fail;
19022 temp2 = true;
19023 }
19024 ecode3 = SWIG_AsVal_int(obj2, &val3);
19025 if (!SWIG_IsOK(ecode3)) {
19026 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19027 }
19028 arg3 = static_cast< int >(val3);
19029 ecode4 = SWIG_AsVal_int(obj3, &val4);
19030 if (!SWIG_IsOK(ecode4)) {
19031 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19032 }
19033 arg4 = static_cast< int >(val4);
19034 {
19035 PyThreadState* __tstate = wxPyBeginAllowThreads();
19036 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19037 wxPyEndAllowThreads(__tstate);
19038 if (PyErr_Occurred()) SWIG_fail;
19039 }
19040 resultobj = SWIG_Py_Void();
19041 {
19042 if (temp2)
19043 delete arg2;
19044 }
19045 return resultobj;
19046fail:
19047 {
19048 if (temp2)
19049 delete arg2;
19050 }
19051 return NULL;
19052}
19053
19054
19055SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19056 PyObject *resultobj = 0;
19057 wxDC *arg1 = (wxDC *) 0 ;
19058 wxString *arg2 = 0 ;
19059 wxPoint *arg3 = 0 ;
19060 void *argp1 = 0 ;
19061 int res1 = 0 ;
19062 bool temp2 = false ;
19063 wxPoint temp3 ;
19064 PyObject * obj0 = 0 ;
19065 PyObject * obj1 = 0 ;
19066 PyObject * obj2 = 0 ;
19067 char * kwnames[] = {
19068 (char *) "self",(char *) "text",(char *) "pt", NULL
19069 };
19070
19071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19073 if (!SWIG_IsOK(res1)) {
19074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19075 }
19076 arg1 = reinterpret_cast< wxDC * >(argp1);
19077 {
19078 arg2 = wxString_in_helper(obj1);
19079 if (arg2 == NULL) SWIG_fail;
19080 temp2 = true;
19081 }
19082 {
19083 arg3 = &temp3;
19084 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19085 }
19086 {
19087 PyThreadState* __tstate = wxPyBeginAllowThreads();
19088 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19089 wxPyEndAllowThreads(__tstate);
19090 if (PyErr_Occurred()) SWIG_fail;
19091 }
19092 resultobj = SWIG_Py_Void();
19093 {
19094 if (temp2)
19095 delete arg2;
19096 }
19097 return resultobj;
19098fail:
19099 {
19100 if (temp2)
19101 delete arg2;
19102 }
19103 return NULL;
19104}
19105
19106
19107SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19108 PyObject *resultobj = 0;
19109 wxDC *arg1 = (wxDC *) 0 ;
19110 wxString *arg2 = 0 ;
19111 int arg3 ;
19112 int arg4 ;
19113 double arg5 ;
19114 void *argp1 = 0 ;
19115 int res1 = 0 ;
19116 bool temp2 = false ;
19117 int val3 ;
19118 int ecode3 = 0 ;
19119 int val4 ;
19120 int ecode4 = 0 ;
19121 double val5 ;
19122 int ecode5 = 0 ;
19123 PyObject * obj0 = 0 ;
19124 PyObject * obj1 = 0 ;
19125 PyObject * obj2 = 0 ;
19126 PyObject * obj3 = 0 ;
19127 PyObject * obj4 = 0 ;
19128 char * kwnames[] = {
19129 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19130 };
19131
19132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19134 if (!SWIG_IsOK(res1)) {
19135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19136 }
19137 arg1 = reinterpret_cast< wxDC * >(argp1);
19138 {
19139 arg2 = wxString_in_helper(obj1);
19140 if (arg2 == NULL) SWIG_fail;
19141 temp2 = true;
19142 }
19143 ecode3 = SWIG_AsVal_int(obj2, &val3);
19144 if (!SWIG_IsOK(ecode3)) {
19145 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19146 }
19147 arg3 = static_cast< int >(val3);
19148 ecode4 = SWIG_AsVal_int(obj3, &val4);
19149 if (!SWIG_IsOK(ecode4)) {
19150 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19151 }
19152 arg4 = static_cast< int >(val4);
19153 ecode5 = SWIG_AsVal_double(obj4, &val5);
19154 if (!SWIG_IsOK(ecode5)) {
19155 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19156 }
19157 arg5 = static_cast< double >(val5);
19158 {
19159 PyThreadState* __tstate = wxPyBeginAllowThreads();
19160 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19161 wxPyEndAllowThreads(__tstate);
19162 if (PyErr_Occurred()) SWIG_fail;
19163 }
19164 resultobj = SWIG_Py_Void();
19165 {
19166 if (temp2)
19167 delete arg2;
19168 }
19169 return resultobj;
19170fail:
19171 {
19172 if (temp2)
19173 delete arg2;
19174 }
19175 return NULL;
19176}
19177
19178
19179SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19180 PyObject *resultobj = 0;
19181 wxDC *arg1 = (wxDC *) 0 ;
19182 wxString *arg2 = 0 ;
19183 wxPoint *arg3 = 0 ;
19184 double arg4 ;
19185 void *argp1 = 0 ;
19186 int res1 = 0 ;
19187 bool temp2 = false ;
19188 wxPoint temp3 ;
19189 double val4 ;
19190 int ecode4 = 0 ;
19191 PyObject * obj0 = 0 ;
19192 PyObject * obj1 = 0 ;
19193 PyObject * obj2 = 0 ;
19194 PyObject * obj3 = 0 ;
19195 char * kwnames[] = {
19196 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19197 };
19198
19199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19201 if (!SWIG_IsOK(res1)) {
19202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19203 }
19204 arg1 = reinterpret_cast< wxDC * >(argp1);
19205 {
19206 arg2 = wxString_in_helper(obj1);
19207 if (arg2 == NULL) SWIG_fail;
19208 temp2 = true;
19209 }
19210 {
19211 arg3 = &temp3;
19212 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19213 }
19214 ecode4 = SWIG_AsVal_double(obj3, &val4);
19215 if (!SWIG_IsOK(ecode4)) {
19216 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19217 }
19218 arg4 = static_cast< double >(val4);
19219 {
19220 PyThreadState* __tstate = wxPyBeginAllowThreads();
19221 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19222 wxPyEndAllowThreads(__tstate);
19223 if (PyErr_Occurred()) SWIG_fail;
19224 }
19225 resultobj = SWIG_Py_Void();
19226 {
19227 if (temp2)
19228 delete arg2;
19229 }
19230 return resultobj;
19231fail:
19232 {
19233 if (temp2)
19234 delete arg2;
19235 }
19236 return NULL;
19237}
19238
19239
19240SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19241 PyObject *resultobj = 0;
19242 wxDC *arg1 = (wxDC *) 0 ;
19243 int arg2 ;
19244 int arg3 ;
19245 int arg4 ;
19246 int arg5 ;
19247 wxDC *arg6 = (wxDC *) 0 ;
19248 int arg7 ;
19249 int arg8 ;
19250 int arg9 = (int) wxCOPY ;
19251 bool arg10 = (bool) false ;
19252 int arg11 = (int) -1 ;
19253 int arg12 = (int) -1 ;
19254 bool result;
19255 void *argp1 = 0 ;
19256 int res1 = 0 ;
19257 int val2 ;
19258 int ecode2 = 0 ;
19259 int val3 ;
19260 int ecode3 = 0 ;
19261 int val4 ;
19262 int ecode4 = 0 ;
19263 int val5 ;
19264 int ecode5 = 0 ;
19265 void *argp6 = 0 ;
19266 int res6 = 0 ;
19267 int val7 ;
19268 int ecode7 = 0 ;
19269 int val8 ;
19270 int ecode8 = 0 ;
19271 int val9 ;
19272 int ecode9 = 0 ;
19273 bool val10 ;
19274 int ecode10 = 0 ;
19275 int val11 ;
19276 int ecode11 = 0 ;
19277 int val12 ;
19278 int ecode12 = 0 ;
19279 PyObject * obj0 = 0 ;
19280 PyObject * obj1 = 0 ;
19281 PyObject * obj2 = 0 ;
19282 PyObject * obj3 = 0 ;
19283 PyObject * obj4 = 0 ;
19284 PyObject * obj5 = 0 ;
19285 PyObject * obj6 = 0 ;
19286 PyObject * obj7 = 0 ;
19287 PyObject * obj8 = 0 ;
19288 PyObject * obj9 = 0 ;
19289 PyObject * obj10 = 0 ;
19290 PyObject * obj11 = 0 ;
19291 char * kwnames[] = {
19292 (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
19293 };
19294
19295 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;
19296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19297 if (!SWIG_IsOK(res1)) {
19298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19299 }
19300 arg1 = reinterpret_cast< wxDC * >(argp1);
19301 ecode2 = SWIG_AsVal_int(obj1, &val2);
19302 if (!SWIG_IsOK(ecode2)) {
19303 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19304 }
19305 arg2 = static_cast< int >(val2);
19306 ecode3 = SWIG_AsVal_int(obj2, &val3);
19307 if (!SWIG_IsOK(ecode3)) {
19308 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19309 }
19310 arg3 = static_cast< int >(val3);
19311 ecode4 = SWIG_AsVal_int(obj3, &val4);
19312 if (!SWIG_IsOK(ecode4)) {
19313 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19314 }
19315 arg4 = static_cast< int >(val4);
19316 ecode5 = SWIG_AsVal_int(obj4, &val5);
19317 if (!SWIG_IsOK(ecode5)) {
19318 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19319 }
19320 arg5 = static_cast< int >(val5);
19321 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19322 if (!SWIG_IsOK(res6)) {
19323 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19324 }
19325 arg6 = reinterpret_cast< wxDC * >(argp6);
19326 ecode7 = SWIG_AsVal_int(obj6, &val7);
19327 if (!SWIG_IsOK(ecode7)) {
19328 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19329 }
19330 arg7 = static_cast< int >(val7);
19331 ecode8 = SWIG_AsVal_int(obj7, &val8);
19332 if (!SWIG_IsOK(ecode8)) {
19333 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19334 }
19335 arg8 = static_cast< int >(val8);
19336 if (obj8) {
19337 ecode9 = SWIG_AsVal_int(obj8, &val9);
19338 if (!SWIG_IsOK(ecode9)) {
19339 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19340 }
19341 arg9 = static_cast< int >(val9);
19342 }
19343 if (obj9) {
19344 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19345 if (!SWIG_IsOK(ecode10)) {
19346 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19347 }
19348 arg10 = static_cast< bool >(val10);
19349 }
19350 if (obj10) {
19351 ecode11 = SWIG_AsVal_int(obj10, &val11);
19352 if (!SWIG_IsOK(ecode11)) {
19353 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19354 }
19355 arg11 = static_cast< int >(val11);
19356 }
19357 if (obj11) {
19358 ecode12 = SWIG_AsVal_int(obj11, &val12);
19359 if (!SWIG_IsOK(ecode12)) {
19360 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19361 }
19362 arg12 = static_cast< int >(val12);
19363 }
19364 {
19365 PyThreadState* __tstate = wxPyBeginAllowThreads();
19366 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19367 wxPyEndAllowThreads(__tstate);
19368 if (PyErr_Occurred()) SWIG_fail;
19369 }
19370 {
19371 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19372 }
19373 return resultobj;
19374fail:
19375 return NULL;
19376}
19377
19378
19379SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19380 PyObject *resultobj = 0;
19381 wxDC *arg1 = (wxDC *) 0 ;
19382 wxPoint *arg2 = 0 ;
19383 wxSize *arg3 = 0 ;
19384 wxDC *arg4 = (wxDC *) 0 ;
19385 wxPoint *arg5 = 0 ;
19386 int arg6 = (int) wxCOPY ;
19387 bool arg7 = (bool) false ;
19388 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19389 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19390 bool result;
19391 void *argp1 = 0 ;
19392 int res1 = 0 ;
19393 wxPoint temp2 ;
19394 wxSize temp3 ;
19395 void *argp4 = 0 ;
19396 int res4 = 0 ;
19397 wxPoint temp5 ;
19398 int val6 ;
19399 int ecode6 = 0 ;
19400 bool val7 ;
19401 int ecode7 = 0 ;
19402 wxPoint temp8 ;
19403 PyObject * obj0 = 0 ;
19404 PyObject * obj1 = 0 ;
19405 PyObject * obj2 = 0 ;
19406 PyObject * obj3 = 0 ;
19407 PyObject * obj4 = 0 ;
19408 PyObject * obj5 = 0 ;
19409 PyObject * obj6 = 0 ;
19410 PyObject * obj7 = 0 ;
19411 char * kwnames[] = {
19412 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19413 };
19414
19415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19417 if (!SWIG_IsOK(res1)) {
19418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19419 }
19420 arg1 = reinterpret_cast< wxDC * >(argp1);
19421 {
19422 arg2 = &temp2;
19423 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19424 }
19425 {
19426 arg3 = &temp3;
19427 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19428 }
19429 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19430 if (!SWIG_IsOK(res4)) {
19431 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19432 }
19433 arg4 = reinterpret_cast< wxDC * >(argp4);
19434 {
19435 arg5 = &temp5;
19436 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19437 }
19438 if (obj5) {
19439 ecode6 = SWIG_AsVal_int(obj5, &val6);
19440 if (!SWIG_IsOK(ecode6)) {
19441 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19442 }
19443 arg6 = static_cast< int >(val6);
19444 }
19445 if (obj6) {
19446 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19447 if (!SWIG_IsOK(ecode7)) {
19448 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19449 }
19450 arg7 = static_cast< bool >(val7);
19451 }
19452 if (obj7) {
36ed4f51 19453 {
1bd55598
RD
19454 arg8 = &temp8;
19455 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
36ed4f51 19456 }
1bd55598
RD
19457 }
19458 {
19459 PyThreadState* __tstate = wxPyBeginAllowThreads();
19460 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19461 wxPyEndAllowThreads(__tstate);
19462 if (PyErr_Occurred()) SWIG_fail;
19463 }
19464 {
19465 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19466 }
19467 return resultobj;
19468fail:
19469 return NULL;
19470}
19471
19472
19473SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19474 PyObject *resultobj = 0;
19475 wxDC *arg1 = (wxDC *) 0 ;
19476 int arg2 ;
19477 int arg3 ;
19478 int arg4 ;
19479 int arg5 ;
19480 void *argp1 = 0 ;
19481 int res1 = 0 ;
19482 int val2 ;
19483 int ecode2 = 0 ;
19484 int val3 ;
19485 int ecode3 = 0 ;
19486 int val4 ;
19487 int ecode4 = 0 ;
19488 int val5 ;
19489 int ecode5 = 0 ;
19490 PyObject * obj0 = 0 ;
19491 PyObject * obj1 = 0 ;
19492 PyObject * obj2 = 0 ;
19493 PyObject * obj3 = 0 ;
19494 PyObject * obj4 = 0 ;
19495 char * kwnames[] = {
19496 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19497 };
19498
19499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19501 if (!SWIG_IsOK(res1)) {
19502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19503 }
19504 arg1 = reinterpret_cast< wxDC * >(argp1);
19505 ecode2 = SWIG_AsVal_int(obj1, &val2);
19506 if (!SWIG_IsOK(ecode2)) {
19507 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19508 }
19509 arg2 = static_cast< int >(val2);
19510 ecode3 = SWIG_AsVal_int(obj2, &val3);
19511 if (!SWIG_IsOK(ecode3)) {
19512 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19513 }
19514 arg3 = static_cast< int >(val3);
19515 ecode4 = SWIG_AsVal_int(obj3, &val4);
19516 if (!SWIG_IsOK(ecode4)) {
19517 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19518 }
19519 arg4 = static_cast< int >(val4);
19520 ecode5 = SWIG_AsVal_int(obj4, &val5);
19521 if (!SWIG_IsOK(ecode5)) {
19522 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19523 }
19524 arg5 = static_cast< int >(val5);
19525 {
19526 PyThreadState* __tstate = wxPyBeginAllowThreads();
19527 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
19528 wxPyEndAllowThreads(__tstate);
19529 if (PyErr_Occurred()) SWIG_fail;
19530 }
19531 resultobj = SWIG_Py_Void();
19532 return resultobj;
19533fail:
19534 return NULL;
19535}
19536
19537
19538SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19539 PyObject *resultobj = 0;
19540 wxDC *arg1 = (wxDC *) 0 ;
19541 wxPoint *arg2 = 0 ;
19542 wxSize *arg3 = 0 ;
19543 void *argp1 = 0 ;
19544 int res1 = 0 ;
19545 wxPoint temp2 ;
19546 wxSize temp3 ;
19547 PyObject * obj0 = 0 ;
19548 PyObject * obj1 = 0 ;
19549 PyObject * obj2 = 0 ;
19550 char * kwnames[] = {
19551 (char *) "self",(char *) "pt",(char *) "sz", NULL
19552 };
19553
19554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19556 if (!SWIG_IsOK(res1)) {
19557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19558 }
19559 arg1 = reinterpret_cast< wxDC * >(argp1);
19560 {
19561 arg2 = &temp2;
19562 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19563 }
19564 {
19565 arg3 = &temp3;
19566 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19567 }
19568 {
19569 PyThreadState* __tstate = wxPyBeginAllowThreads();
19570 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
19571 wxPyEndAllowThreads(__tstate);
19572 if (PyErr_Occurred()) SWIG_fail;
19573 }
19574 resultobj = SWIG_Py_Void();
19575 return resultobj;
19576fail:
19577 return NULL;
19578}
19579
19580
19581SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19582 PyObject *resultobj = 0;
19583 wxDC *arg1 = (wxDC *) 0 ;
19584 wxRegion *arg2 = 0 ;
19585 void *argp1 = 0 ;
19586 int res1 = 0 ;
19587 void *argp2 = 0 ;
19588 int res2 = 0 ;
19589 PyObject * obj0 = 0 ;
19590 PyObject * obj1 = 0 ;
19591 char * kwnames[] = {
19592 (char *) "self",(char *) "region", NULL
19593 };
19594
19595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
19596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19597 if (!SWIG_IsOK(res1)) {
19598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19599 }
19600 arg1 = reinterpret_cast< wxDC * >(argp1);
19601 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
19602 if (!SWIG_IsOK(res2)) {
19603 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19604 }
19605 if (!argp2) {
19606 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19607 }
19608 arg2 = reinterpret_cast< wxRegion * >(argp2);
19609 {
19610 PyThreadState* __tstate = wxPyBeginAllowThreads();
19611 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
19612 wxPyEndAllowThreads(__tstate);
19613 if (PyErr_Occurred()) SWIG_fail;
19614 }
19615 resultobj = SWIG_Py_Void();
19616 return resultobj;
19617fail:
19618 return NULL;
19619}
19620
19621
19622SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19623 PyObject *resultobj = 0;
19624 wxDC *arg1 = (wxDC *) 0 ;
19625 wxRect *arg2 = 0 ;
19626 void *argp1 = 0 ;
19627 int res1 = 0 ;
19628 wxRect temp2 ;
19629 PyObject * obj0 = 0 ;
19630 PyObject * obj1 = 0 ;
19631 char * kwnames[] = {
19632 (char *) "self",(char *) "rect", NULL
19633 };
19634
19635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
19636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19637 if (!SWIG_IsOK(res1)) {
19638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
19639 }
19640 arg1 = reinterpret_cast< wxDC * >(argp1);
19641 {
19642 arg2 = &temp2;
19643 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19644 }
19645 {
19646 PyThreadState* __tstate = wxPyBeginAllowThreads();
19647 (arg1)->SetClippingRegion((wxRect const &)*arg2);
19648 wxPyEndAllowThreads(__tstate);
19649 if (PyErr_Occurred()) SWIG_fail;
19650 }
19651 resultobj = SWIG_Py_Void();
19652 return resultobj;
19653fail:
19654 return NULL;
19655}
19656
19657
19658SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19659 PyObject *resultobj = 0;
19660 wxDC *arg1 = (wxDC *) 0 ;
19661 int arg2 ;
19662 wxPoint *arg3 = (wxPoint *) 0 ;
19663 int arg4 = (int) 0 ;
19664 int arg5 = (int) 0 ;
19665 void *argp1 = 0 ;
19666 int res1 = 0 ;
19667 int val4 ;
19668 int ecode4 = 0 ;
19669 int val5 ;
19670 int ecode5 = 0 ;
19671 PyObject * obj0 = 0 ;
19672 PyObject * obj1 = 0 ;
19673 PyObject * obj2 = 0 ;
19674 PyObject * obj3 = 0 ;
19675 char * kwnames[] = {
19676 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
19677 };
19678
19679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19681 if (!SWIG_IsOK(res1)) {
19682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
19683 }
19684 arg1 = reinterpret_cast< wxDC * >(argp1);
19685 {
19686 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19687 if (arg3 == NULL) SWIG_fail;
19688 }
19689 if (obj2) {
19690 ecode4 = SWIG_AsVal_int(obj2, &val4);
19691 if (!SWIG_IsOK(ecode4)) {
19692 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
19693 }
19694 arg4 = static_cast< int >(val4);
19695 }
19696 if (obj3) {
19697 ecode5 = SWIG_AsVal_int(obj3, &val5);
19698 if (!SWIG_IsOK(ecode5)) {
19699 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
19700 }
19701 arg5 = static_cast< int >(val5);
19702 }
19703 {
19704 PyThreadState* __tstate = wxPyBeginAllowThreads();
19705 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
19706 wxPyEndAllowThreads(__tstate);
19707 if (PyErr_Occurred()) SWIG_fail;
19708 }
19709 resultobj = SWIG_Py_Void();
19710 {
19711 if (arg3) delete [] arg3;
19712 }
19713 return resultobj;
19714fail:
19715 {
19716 if (arg3) delete [] arg3;
19717 }
19718 return NULL;
19719}
19720
19721
19722SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19723 PyObject *resultobj = 0;
19724 wxDC *arg1 = (wxDC *) 0 ;
19725 int arg2 ;
19726 wxPoint *arg3 = (wxPoint *) 0 ;
19727 int arg4 = (int) 0 ;
19728 int arg5 = (int) 0 ;
19729 int arg6 = (int) wxODDEVEN_RULE ;
19730 void *argp1 = 0 ;
19731 int res1 = 0 ;
19732 int val4 ;
19733 int ecode4 = 0 ;
19734 int val5 ;
19735 int ecode5 = 0 ;
19736 int val6 ;
19737 int ecode6 = 0 ;
19738 PyObject * obj0 = 0 ;
19739 PyObject * obj1 = 0 ;
19740 PyObject * obj2 = 0 ;
19741 PyObject * obj3 = 0 ;
19742 PyObject * obj4 = 0 ;
19743 char * kwnames[] = {
19744 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
19745 };
19746
19747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19749 if (!SWIG_IsOK(res1)) {
19750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
19751 }
19752 arg1 = reinterpret_cast< wxDC * >(argp1);
19753 {
19754 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19755 if (arg3 == NULL) SWIG_fail;
19756 }
19757 if (obj2) {
19758 ecode4 = SWIG_AsVal_int(obj2, &val4);
19759 if (!SWIG_IsOK(ecode4)) {
19760 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
19761 }
19762 arg4 = static_cast< int >(val4);
19763 }
19764 if (obj3) {
19765 ecode5 = SWIG_AsVal_int(obj3, &val5);
19766 if (!SWIG_IsOK(ecode5)) {
19767 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
19768 }
19769 arg5 = static_cast< int >(val5);
19770 }
19771 if (obj4) {
19772 ecode6 = SWIG_AsVal_int(obj4, &val6);
19773 if (!SWIG_IsOK(ecode6)) {
19774 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
19775 }
19776 arg6 = static_cast< int >(val6);
19777 }
19778 {
19779 PyThreadState* __tstate = wxPyBeginAllowThreads();
19780 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
19781 wxPyEndAllowThreads(__tstate);
19782 if (PyErr_Occurred()) SWIG_fail;
19783 }
19784 resultobj = SWIG_Py_Void();
19785 {
19786 if (arg3) delete [] arg3;
19787 }
19788 return resultobj;
19789fail:
19790 {
19791 if (arg3) delete [] arg3;
19792 }
19793 return NULL;
19794}
19795
19796
19797SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19798 PyObject *resultobj = 0;
19799 wxDC *arg1 = (wxDC *) 0 ;
19800 wxString *arg2 = 0 ;
19801 wxRect *arg3 = 0 ;
19802 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
19803 int arg5 = (int) -1 ;
19804 void *argp1 = 0 ;
19805 int res1 = 0 ;
19806 bool temp2 = false ;
19807 wxRect temp3 ;
19808 int val4 ;
19809 int ecode4 = 0 ;
19810 int val5 ;
19811 int ecode5 = 0 ;
19812 PyObject * obj0 = 0 ;
19813 PyObject * obj1 = 0 ;
19814 PyObject * obj2 = 0 ;
19815 PyObject * obj3 = 0 ;
19816 PyObject * obj4 = 0 ;
19817 char * kwnames[] = {
19818 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
19819 };
19820
19821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19823 if (!SWIG_IsOK(res1)) {
19824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
19825 }
19826 arg1 = reinterpret_cast< wxDC * >(argp1);
19827 {
19828 arg2 = wxString_in_helper(obj1);
19829 if (arg2 == NULL) SWIG_fail;
19830 temp2 = true;
19831 }
19832 {
19833 arg3 = &temp3;
19834 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
19835 }
19836 if (obj3) {
19837 ecode4 = SWIG_AsVal_int(obj3, &val4);
19838 if (!SWIG_IsOK(ecode4)) {
19839 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
19840 }
19841 arg4 = static_cast< int >(val4);
19842 }
19843 if (obj4) {
19844 ecode5 = SWIG_AsVal_int(obj4, &val5);
19845 if (!SWIG_IsOK(ecode5)) {
19846 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
19847 }
19848 arg5 = static_cast< int >(val5);
19849 }
19850 {
19851 PyThreadState* __tstate = wxPyBeginAllowThreads();
19852 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
19853 wxPyEndAllowThreads(__tstate);
19854 if (PyErr_Occurred()) SWIG_fail;
19855 }
19856 resultobj = SWIG_Py_Void();
19857 {
19858 if (temp2)
19859 delete arg2;
19860 }
19861 return resultobj;
19862fail:
19863 {
19864 if (temp2)
19865 delete arg2;
19866 }
19867 return NULL;
19868}
19869
19870
19871SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19872 PyObject *resultobj = 0;
19873 wxDC *arg1 = (wxDC *) 0 ;
19874 wxString *arg2 = 0 ;
19875 wxBitmap *arg3 = 0 ;
19876 wxRect *arg4 = 0 ;
19877 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
19878 int arg6 = (int) -1 ;
19879 wxRect result;
19880 void *argp1 = 0 ;
19881 int res1 = 0 ;
19882 bool temp2 = false ;
19883 void *argp3 = 0 ;
19884 int res3 = 0 ;
19885 wxRect temp4 ;
19886 int val5 ;
19887 int ecode5 = 0 ;
19888 int val6 ;
19889 int ecode6 = 0 ;
19890 PyObject * obj0 = 0 ;
19891 PyObject * obj1 = 0 ;
19892 PyObject * obj2 = 0 ;
19893 PyObject * obj3 = 0 ;
19894 PyObject * obj4 = 0 ;
19895 PyObject * obj5 = 0 ;
19896 char * kwnames[] = {
19897 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
19898 };
19899
19900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19902 if (!SWIG_IsOK(res1)) {
19903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
19904 }
19905 arg1 = reinterpret_cast< wxDC * >(argp1);
19906 {
19907 arg2 = wxString_in_helper(obj1);
19908 if (arg2 == NULL) SWIG_fail;
19909 temp2 = true;
19910 }
19911 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
19912 if (!SWIG_IsOK(res3)) {
19913 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
19914 }
19915 if (!argp3) {
19916 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
19917 }
19918 arg3 = reinterpret_cast< wxBitmap * >(argp3);
19919 {
19920 arg4 = &temp4;
19921 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
19922 }
19923 if (obj4) {
19924 ecode5 = SWIG_AsVal_int(obj4, &val5);
19925 if (!SWIG_IsOK(ecode5)) {
19926 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
19927 }
19928 arg5 = static_cast< int >(val5);
19929 }
19930 if (obj5) {
19931 ecode6 = SWIG_AsVal_int(obj5, &val6);
19932 if (!SWIG_IsOK(ecode6)) {
19933 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
19934 }
19935 arg6 = static_cast< int >(val6);
19936 }
19937 {
19938 PyThreadState* __tstate = wxPyBeginAllowThreads();
19939 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
19940 wxPyEndAllowThreads(__tstate);
19941 if (PyErr_Occurred()) SWIG_fail;
19942 }
19943 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
19944 {
19945 if (temp2)
19946 delete arg2;
19947 }
19948 return resultobj;
19949fail:
19950 {
19951 if (temp2)
19952 delete arg2;
19953 }
19954 return NULL;
19955}
19956
19957
19958SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19959 PyObject *resultobj = 0;
19960 wxDC *arg1 = (wxDC *) 0 ;
19961 int arg2 ;
19962 wxPoint *arg3 = (wxPoint *) 0 ;
19963 void *argp1 = 0 ;
19964 int res1 = 0 ;
19965 PyObject * obj0 = 0 ;
19966 PyObject * obj1 = 0 ;
19967 char * kwnames[] = {
19968 (char *) "self",(char *) "points", NULL
19969 };
19970
19971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
19972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19973 if (!SWIG_IsOK(res1)) {
19974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
19975 }
19976 arg1 = reinterpret_cast< wxDC * >(argp1);
19977 {
19978 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19979 if (arg3 == NULL) SWIG_fail;
19980 }
19981 {
19982 PyThreadState* __tstate = wxPyBeginAllowThreads();
19983 (arg1)->DrawSpline(arg2,arg3);
19984 wxPyEndAllowThreads(__tstate);
19985 if (PyErr_Occurred()) SWIG_fail;
19986 }
19987 resultobj = SWIG_Py_Void();
19988 {
19989 if (arg3) delete [] arg3;
19990 }
19991 return resultobj;
19992fail:
19993 {
19994 if (arg3) delete [] arg3;
19995 }
19996 return NULL;
19997}
19998
19999
20000SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20001 PyObject *resultobj = 0;
20002 wxDC *arg1 = (wxDC *) 0 ;
20003 void *argp1 = 0 ;
20004 int res1 = 0 ;
20005 PyObject *swig_obj[1] ;
20006
20007 if (!args) SWIG_fail;
20008 swig_obj[0] = args;
20009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20010 if (!SWIG_IsOK(res1)) {
20011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20012 }
20013 arg1 = reinterpret_cast< wxDC * >(argp1);
20014 {
20015 PyThreadState* __tstate = wxPyBeginAllowThreads();
20016 (arg1)->Clear();
20017 wxPyEndAllowThreads(__tstate);
20018 if (PyErr_Occurred()) SWIG_fail;
20019 }
20020 resultobj = SWIG_Py_Void();
20021 return resultobj;
20022fail:
20023 return NULL;
20024}
20025
20026
20027SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20028 PyObject *resultobj = 0;
20029 wxDC *arg1 = (wxDC *) 0 ;
20030 wxString *arg2 = 0 ;
20031 bool result;
20032 void *argp1 = 0 ;
20033 int res1 = 0 ;
20034 bool temp2 = false ;
20035 PyObject * obj0 = 0 ;
20036 PyObject * obj1 = 0 ;
20037 char * kwnames[] = {
20038 (char *) "self",(char *) "message", NULL
20039 };
20040
20041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20043 if (!SWIG_IsOK(res1)) {
20044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20045 }
20046 arg1 = reinterpret_cast< wxDC * >(argp1);
20047 {
20048 arg2 = wxString_in_helper(obj1);
20049 if (arg2 == NULL) SWIG_fail;
20050 temp2 = true;
20051 }
20052 {
20053 PyThreadState* __tstate = wxPyBeginAllowThreads();
20054 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20055 wxPyEndAllowThreads(__tstate);
20056 if (PyErr_Occurred()) SWIG_fail;
20057 }
20058 {
20059 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20060 }
20061 {
20062 if (temp2)
20063 delete arg2;
20064 }
20065 return resultobj;
20066fail:
20067 {
20068 if (temp2)
20069 delete arg2;
20070 }
20071 return NULL;
20072}
20073
20074
20075SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20076 PyObject *resultobj = 0;
20077 wxDC *arg1 = (wxDC *) 0 ;
20078 void *argp1 = 0 ;
20079 int res1 = 0 ;
20080 PyObject *swig_obj[1] ;
20081
20082 if (!args) SWIG_fail;
20083 swig_obj[0] = args;
20084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20085 if (!SWIG_IsOK(res1)) {
20086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20087 }
20088 arg1 = reinterpret_cast< wxDC * >(argp1);
20089 {
20090 PyThreadState* __tstate = wxPyBeginAllowThreads();
20091 (arg1)->EndDoc();
20092 wxPyEndAllowThreads(__tstate);
20093 if (PyErr_Occurred()) SWIG_fail;
20094 }
20095 resultobj = SWIG_Py_Void();
20096 return resultobj;
20097fail:
20098 return NULL;
20099}
20100
20101
20102SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20103 PyObject *resultobj = 0;
20104 wxDC *arg1 = (wxDC *) 0 ;
20105 void *argp1 = 0 ;
20106 int res1 = 0 ;
20107 PyObject *swig_obj[1] ;
20108
20109 if (!args) SWIG_fail;
20110 swig_obj[0] = args;
20111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20112 if (!SWIG_IsOK(res1)) {
20113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20114 }
20115 arg1 = reinterpret_cast< wxDC * >(argp1);
20116 {
20117 PyThreadState* __tstate = wxPyBeginAllowThreads();
20118 (arg1)->StartPage();
20119 wxPyEndAllowThreads(__tstate);
20120 if (PyErr_Occurred()) SWIG_fail;
20121 }
20122 resultobj = SWIG_Py_Void();
20123 return resultobj;
20124fail:
20125 return NULL;
20126}
20127
20128
20129SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20130 PyObject *resultobj = 0;
20131 wxDC *arg1 = (wxDC *) 0 ;
20132 void *argp1 = 0 ;
20133 int res1 = 0 ;
20134 PyObject *swig_obj[1] ;
20135
20136 if (!args) SWIG_fail;
20137 swig_obj[0] = args;
20138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20139 if (!SWIG_IsOK(res1)) {
20140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20141 }
20142 arg1 = reinterpret_cast< wxDC * >(argp1);
20143 {
20144 PyThreadState* __tstate = wxPyBeginAllowThreads();
20145 (arg1)->EndPage();
20146 wxPyEndAllowThreads(__tstate);
20147 if (PyErr_Occurred()) SWIG_fail;
20148 }
20149 resultobj = SWIG_Py_Void();
20150 return resultobj;
20151fail:
20152 return NULL;
20153}
20154
20155
20156SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20157 PyObject *resultobj = 0;
20158 wxDC *arg1 = (wxDC *) 0 ;
20159 wxFont *arg2 = 0 ;
20160 void *argp1 = 0 ;
20161 int res1 = 0 ;
20162 void *argp2 = 0 ;
20163 int res2 = 0 ;
20164 PyObject * obj0 = 0 ;
20165 PyObject * obj1 = 0 ;
20166 char * kwnames[] = {
20167 (char *) "self",(char *) "font", NULL
20168 };
20169
20170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20172 if (!SWIG_IsOK(res1)) {
20173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20174 }
20175 arg1 = reinterpret_cast< wxDC * >(argp1);
20176 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20177 if (!SWIG_IsOK(res2)) {
20178 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20179 }
20180 if (!argp2) {
20181 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20182 }
20183 arg2 = reinterpret_cast< wxFont * >(argp2);
20184 {
20185 PyThreadState* __tstate = wxPyBeginAllowThreads();
20186 (arg1)->SetFont((wxFont const &)*arg2);
20187 wxPyEndAllowThreads(__tstate);
20188 if (PyErr_Occurred()) SWIG_fail;
20189 }
20190 resultobj = SWIG_Py_Void();
20191 return resultobj;
20192fail:
20193 return NULL;
20194}
20195
20196
20197SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20198 PyObject *resultobj = 0;
20199 wxDC *arg1 = (wxDC *) 0 ;
20200 wxPen *arg2 = 0 ;
20201 void *argp1 = 0 ;
20202 int res1 = 0 ;
20203 void *argp2 = 0 ;
20204 int res2 = 0 ;
20205 PyObject * obj0 = 0 ;
20206 PyObject * obj1 = 0 ;
20207 char * kwnames[] = {
20208 (char *) "self",(char *) "pen", NULL
20209 };
20210
20211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20213 if (!SWIG_IsOK(res1)) {
20214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20215 }
20216 arg1 = reinterpret_cast< wxDC * >(argp1);
20217 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20218 if (!SWIG_IsOK(res2)) {
20219 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20220 }
20221 if (!argp2) {
20222 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20223 }
20224 arg2 = reinterpret_cast< wxPen * >(argp2);
20225 {
20226 PyThreadState* __tstate = wxPyBeginAllowThreads();
20227 (arg1)->SetPen((wxPen const &)*arg2);
20228 wxPyEndAllowThreads(__tstate);
20229 if (PyErr_Occurred()) SWIG_fail;
20230 }
20231 resultobj = SWIG_Py_Void();
20232 return resultobj;
20233fail:
20234 return NULL;
20235}
20236
20237
20238SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20239 PyObject *resultobj = 0;
20240 wxDC *arg1 = (wxDC *) 0 ;
20241 wxBrush *arg2 = 0 ;
20242 void *argp1 = 0 ;
20243 int res1 = 0 ;
20244 void *argp2 = 0 ;
20245 int res2 = 0 ;
20246 PyObject * obj0 = 0 ;
20247 PyObject * obj1 = 0 ;
20248 char * kwnames[] = {
20249 (char *) "self",(char *) "brush", NULL
20250 };
20251
20252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20254 if (!SWIG_IsOK(res1)) {
20255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20256 }
20257 arg1 = reinterpret_cast< wxDC * >(argp1);
20258 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20259 if (!SWIG_IsOK(res2)) {
20260 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20261 }
20262 if (!argp2) {
20263 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20264 }
20265 arg2 = reinterpret_cast< wxBrush * >(argp2);
20266 {
20267 PyThreadState* __tstate = wxPyBeginAllowThreads();
20268 (arg1)->SetBrush((wxBrush const &)*arg2);
20269 wxPyEndAllowThreads(__tstate);
20270 if (PyErr_Occurred()) SWIG_fail;
20271 }
20272 resultobj = SWIG_Py_Void();
20273 return resultobj;
20274fail:
20275 return NULL;
20276}
20277
20278
20279SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20280 PyObject *resultobj = 0;
20281 wxDC *arg1 = (wxDC *) 0 ;
20282 wxBrush *arg2 = 0 ;
20283 void *argp1 = 0 ;
20284 int res1 = 0 ;
20285 void *argp2 = 0 ;
20286 int res2 = 0 ;
20287 PyObject * obj0 = 0 ;
20288 PyObject * obj1 = 0 ;
20289 char * kwnames[] = {
20290 (char *) "self",(char *) "brush", NULL
20291 };
20292
20293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20295 if (!SWIG_IsOK(res1)) {
20296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20297 }
20298 arg1 = reinterpret_cast< wxDC * >(argp1);
20299 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20300 if (!SWIG_IsOK(res2)) {
20301 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20302 }
20303 if (!argp2) {
20304 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20305 }
20306 arg2 = reinterpret_cast< wxBrush * >(argp2);
20307 {
20308 PyThreadState* __tstate = wxPyBeginAllowThreads();
20309 (arg1)->SetBackground((wxBrush const &)*arg2);
20310 wxPyEndAllowThreads(__tstate);
20311 if (PyErr_Occurred()) SWIG_fail;
20312 }
20313 resultobj = SWIG_Py_Void();
20314 return resultobj;
20315fail:
20316 return NULL;
20317}
20318
20319
20320SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20321 PyObject *resultobj = 0;
20322 wxDC *arg1 = (wxDC *) 0 ;
20323 int arg2 ;
20324 void *argp1 = 0 ;
20325 int res1 = 0 ;
20326 int val2 ;
20327 int ecode2 = 0 ;
20328 PyObject * obj0 = 0 ;
20329 PyObject * obj1 = 0 ;
20330 char * kwnames[] = {
20331 (char *) "self",(char *) "mode", NULL
20332 };
20333
20334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",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_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20338 }
20339 arg1 = reinterpret_cast< wxDC * >(argp1);
20340 ecode2 = SWIG_AsVal_int(obj1, &val2);
20341 if (!SWIG_IsOK(ecode2)) {
20342 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20343 }
20344 arg2 = static_cast< int >(val2);
20345 {
20346 PyThreadState* __tstate = wxPyBeginAllowThreads();
20347 (arg1)->SetBackgroundMode(arg2);
20348 wxPyEndAllowThreads(__tstate);
20349 if (PyErr_Occurred()) SWIG_fail;
20350 }
20351 resultobj = SWIG_Py_Void();
20352 return resultobj;
20353fail:
20354 return NULL;
20355}
20356
20357
20358SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20359 PyObject *resultobj = 0;
20360 wxDC *arg1 = (wxDC *) 0 ;
20361 wxPalette *arg2 = 0 ;
20362 void *argp1 = 0 ;
20363 int res1 = 0 ;
20364 void *argp2 = 0 ;
20365 int res2 = 0 ;
20366 PyObject * obj0 = 0 ;
20367 PyObject * obj1 = 0 ;
20368 char * kwnames[] = {
20369 (char *) "self",(char *) "palette", NULL
20370 };
20371
20372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20374 if (!SWIG_IsOK(res1)) {
20375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20376 }
20377 arg1 = reinterpret_cast< wxDC * >(argp1);
20378 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20379 if (!SWIG_IsOK(res2)) {
20380 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20381 }
20382 if (!argp2) {
20383 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20384 }
20385 arg2 = reinterpret_cast< wxPalette * >(argp2);
20386 {
20387 PyThreadState* __tstate = wxPyBeginAllowThreads();
20388 (arg1)->SetPalette((wxPalette const &)*arg2);
20389 wxPyEndAllowThreads(__tstate);
20390 if (PyErr_Occurred()) SWIG_fail;
20391 }
20392 resultobj = SWIG_Py_Void();
20393 return resultobj;
20394fail:
20395 return NULL;
20396}
20397
20398
20399SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20400 PyObject *resultobj = 0;
20401 wxDC *arg1 = (wxDC *) 0 ;
20402 void *argp1 = 0 ;
20403 int res1 = 0 ;
20404 PyObject *swig_obj[1] ;
20405
20406 if (!args) SWIG_fail;
20407 swig_obj[0] = args;
20408 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20409 if (!SWIG_IsOK(res1)) {
20410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20411 }
20412 arg1 = reinterpret_cast< wxDC * >(argp1);
20413 {
20414 PyThreadState* __tstate = wxPyBeginAllowThreads();
20415 (arg1)->DestroyClippingRegion();
20416 wxPyEndAllowThreads(__tstate);
20417 if (PyErr_Occurred()) SWIG_fail;
20418 }
20419 resultobj = SWIG_Py_Void();
20420 return resultobj;
20421fail:
20422 return NULL;
20423}
20424
20425
20426SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20427 PyObject *resultobj = 0;
20428 wxDC *arg1 = (wxDC *) 0 ;
20429 int *arg2 = (int *) 0 ;
20430 int *arg3 = (int *) 0 ;
20431 int *arg4 = (int *) 0 ;
20432 int *arg5 = (int *) 0 ;
20433 void *argp1 = 0 ;
20434 int res1 = 0 ;
20435 int temp2 ;
20436 int res2 = SWIG_TMPOBJ ;
20437 int temp3 ;
20438 int res3 = SWIG_TMPOBJ ;
20439 int temp4 ;
20440 int res4 = SWIG_TMPOBJ ;
20441 int temp5 ;
20442 int res5 = SWIG_TMPOBJ ;
20443 PyObject *swig_obj[1] ;
20444
20445 arg2 = &temp2;
20446 arg3 = &temp3;
20447 arg4 = &temp4;
20448 arg5 = &temp5;
20449 if (!args) SWIG_fail;
20450 swig_obj[0] = args;
20451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20452 if (!SWIG_IsOK(res1)) {
20453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20454 }
20455 arg1 = reinterpret_cast< wxDC * >(argp1);
20456 {
20457 PyThreadState* __tstate = wxPyBeginAllowThreads();
20458 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20459 wxPyEndAllowThreads(__tstate);
20460 if (PyErr_Occurred()) SWIG_fail;
20461 }
20462 resultobj = SWIG_Py_Void();
20463 if (SWIG_IsTmpObj(res2)) {
20464 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20465 } else {
20466 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20467 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20468 }
20469 if (SWIG_IsTmpObj(res3)) {
20470 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20471 } else {
20472 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20473 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20474 }
20475 if (SWIG_IsTmpObj(res4)) {
20476 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20477 } else {
20478 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20479 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20480 }
20481 if (SWIG_IsTmpObj(res5)) {
20482 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20483 } else {
20484 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20485 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20486 }
20487 return resultobj;
20488fail:
20489 return NULL;
20490}
20491
20492
20493SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20494 PyObject *resultobj = 0;
20495 wxDC *arg1 = (wxDC *) 0 ;
20496 wxRect result;
20497 void *argp1 = 0 ;
20498 int res1 = 0 ;
20499 PyObject *swig_obj[1] ;
20500
20501 if (!args) SWIG_fail;
20502 swig_obj[0] = args;
20503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20504 if (!SWIG_IsOK(res1)) {
20505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20506 }
20507 arg1 = reinterpret_cast< wxDC * >(argp1);
20508 {
20509 PyThreadState* __tstate = wxPyBeginAllowThreads();
20510 result = wxDC_GetClippingRect(arg1);
20511 wxPyEndAllowThreads(__tstate);
20512 if (PyErr_Occurred()) SWIG_fail;
20513 }
20514 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20515 return resultobj;
20516fail:
20517 return NULL;
20518}
20519
20520
20521SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20522 PyObject *resultobj = 0;
20523 wxDC *arg1 = (wxDC *) 0 ;
20524 int result;
20525 void *argp1 = 0 ;
20526 int res1 = 0 ;
20527 PyObject *swig_obj[1] ;
20528
20529 if (!args) SWIG_fail;
20530 swig_obj[0] = args;
20531 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20532 if (!SWIG_IsOK(res1)) {
20533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20534 }
20535 arg1 = reinterpret_cast< wxDC * >(argp1);
20536 {
20537 PyThreadState* __tstate = wxPyBeginAllowThreads();
20538 result = (int)((wxDC const *)arg1)->GetCharHeight();
20539 wxPyEndAllowThreads(__tstate);
20540 if (PyErr_Occurred()) SWIG_fail;
20541 }
20542 resultobj = SWIG_From_int(static_cast< int >(result));
20543 return resultobj;
20544fail:
20545 return NULL;
20546}
20547
20548
20549SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20550 PyObject *resultobj = 0;
20551 wxDC *arg1 = (wxDC *) 0 ;
20552 int result;
20553 void *argp1 = 0 ;
20554 int res1 = 0 ;
20555 PyObject *swig_obj[1] ;
20556
20557 if (!args) SWIG_fail;
20558 swig_obj[0] = args;
20559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20560 if (!SWIG_IsOK(res1)) {
20561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
20562 }
20563 arg1 = reinterpret_cast< wxDC * >(argp1);
20564 {
20565 PyThreadState* __tstate = wxPyBeginAllowThreads();
20566 result = (int)((wxDC const *)arg1)->GetCharWidth();
20567 wxPyEndAllowThreads(__tstate);
20568 if (PyErr_Occurred()) SWIG_fail;
20569 }
20570 resultobj = SWIG_From_int(static_cast< int >(result));
20571 return resultobj;
20572fail:
20573 return NULL;
20574}
20575
20576
20577SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20578 PyObject *resultobj = 0;
20579 wxDC *arg1 = (wxDC *) 0 ;
20580 wxString *arg2 = 0 ;
20581 int *arg3 = (int *) 0 ;
20582 int *arg4 = (int *) 0 ;
20583 void *argp1 = 0 ;
20584 int res1 = 0 ;
20585 bool temp2 = false ;
20586 int temp3 ;
20587 int res3 = SWIG_TMPOBJ ;
20588 int temp4 ;
20589 int res4 = SWIG_TMPOBJ ;
20590 PyObject * obj0 = 0 ;
20591 PyObject * obj1 = 0 ;
20592 char * kwnames[] = {
20593 (char *) "self",(char *) "string", NULL
20594 };
20595
20596 arg3 = &temp3;
20597 arg4 = &temp4;
20598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
20599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20600 if (!SWIG_IsOK(res1)) {
20601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20602 }
20603 arg1 = reinterpret_cast< wxDC * >(argp1);
20604 {
20605 arg2 = wxString_in_helper(obj1);
20606 if (arg2 == NULL) SWIG_fail;
20607 temp2 = true;
20608 }
20609 {
20610 PyThreadState* __tstate = wxPyBeginAllowThreads();
20611 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
20612 wxPyEndAllowThreads(__tstate);
20613 if (PyErr_Occurred()) SWIG_fail;
20614 }
20615 resultobj = SWIG_Py_Void();
20616 if (SWIG_IsTmpObj(res3)) {
20617 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20618 } else {
20619 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20620 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20621 }
20622 if (SWIG_IsTmpObj(res4)) {
20623 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20624 } else {
20625 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20626 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20627 }
20628 {
20629 if (temp2)
20630 delete arg2;
20631 }
20632 return resultobj;
20633fail:
20634 {
20635 if (temp2)
20636 delete arg2;
20637 }
20638 return NULL;
20639}
20640
20641
20642SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20643 PyObject *resultobj = 0;
20644 wxDC *arg1 = (wxDC *) 0 ;
20645 wxString *arg2 = 0 ;
20646 int *arg3 = (int *) 0 ;
20647 int *arg4 = (int *) 0 ;
20648 int *arg5 = (int *) 0 ;
20649 int *arg6 = (int *) 0 ;
20650 wxFont *arg7 = (wxFont *) NULL ;
20651 void *argp1 = 0 ;
20652 int res1 = 0 ;
20653 bool temp2 = false ;
20654 int temp3 ;
20655 int res3 = SWIG_TMPOBJ ;
20656 int temp4 ;
20657 int res4 = SWIG_TMPOBJ ;
20658 int temp5 ;
20659 int res5 = SWIG_TMPOBJ ;
20660 int temp6 ;
20661 int res6 = SWIG_TMPOBJ ;
20662 void *argp7 = 0 ;
20663 int res7 = 0 ;
20664 PyObject * obj0 = 0 ;
20665 PyObject * obj1 = 0 ;
20666 PyObject * obj2 = 0 ;
20667 char * kwnames[] = {
20668 (char *) "self",(char *) "string",(char *) "font", NULL
20669 };
20670
20671 arg3 = &temp3;
20672 arg4 = &temp4;
20673 arg5 = &temp5;
20674 arg6 = &temp6;
20675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20677 if (!SWIG_IsOK(res1)) {
20678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20679 }
20680 arg1 = reinterpret_cast< wxDC * >(argp1);
20681 {
20682 arg2 = wxString_in_helper(obj1);
20683 if (arg2 == NULL) SWIG_fail;
20684 temp2 = true;
20685 }
20686 if (obj2) {
20687 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
20688 if (!SWIG_IsOK(res7)) {
20689 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
36ed4f51 20690 }
1bd55598
RD
20691 arg7 = reinterpret_cast< wxFont * >(argp7);
20692 }
20693 {
20694 PyThreadState* __tstate = wxPyBeginAllowThreads();
20695 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
20696 wxPyEndAllowThreads(__tstate);
20697 if (PyErr_Occurred()) SWIG_fail;
20698 }
20699 resultobj = SWIG_Py_Void();
20700 if (SWIG_IsTmpObj(res3)) {
20701 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20702 } else {
20703 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20704 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20705 }
20706 if (SWIG_IsTmpObj(res4)) {
20707 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20708 } else {
20709 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20710 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20711 }
20712 if (SWIG_IsTmpObj(res5)) {
20713 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20714 } else {
20715 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20716 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20717 }
20718 if (SWIG_IsTmpObj(res6)) {
20719 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
20720 } else {
20721 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20722 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
20723 }
20724 {
20725 if (temp2)
20726 delete arg2;
20727 }
20728 return resultobj;
20729fail:
20730 {
20731 if (temp2)
20732 delete arg2;
20733 }
20734 return NULL;
20735}
20736
20737
20738SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20739 PyObject *resultobj = 0;
20740 wxDC *arg1 = (wxDC *) 0 ;
20741 wxString *arg2 = 0 ;
20742 int *arg3 = (int *) 0 ;
20743 int *arg4 = (int *) 0 ;
20744 int *arg5 = (int *) 0 ;
20745 wxFont *arg6 = (wxFont *) NULL ;
20746 void *argp1 = 0 ;
20747 int res1 = 0 ;
20748 bool temp2 = false ;
20749 int temp3 ;
20750 int res3 = SWIG_TMPOBJ ;
20751 int temp4 ;
20752 int res4 = SWIG_TMPOBJ ;
20753 int temp5 ;
20754 int res5 = SWIG_TMPOBJ ;
20755 void *argp6 = 0 ;
20756 int res6 = 0 ;
20757 PyObject * obj0 = 0 ;
20758 PyObject * obj1 = 0 ;
20759 PyObject * obj2 = 0 ;
20760 char * kwnames[] = {
20761 (char *) "self",(char *) "text",(char *) "font", NULL
20762 };
20763
20764 arg3 = &temp3;
20765 arg4 = &temp4;
20766 arg5 = &temp5;
20767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20769 if (!SWIG_IsOK(res1)) {
20770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20771 }
20772 arg1 = reinterpret_cast< wxDC * >(argp1);
20773 {
20774 arg2 = wxString_in_helper(obj1);
20775 if (arg2 == NULL) SWIG_fail;
20776 temp2 = true;
20777 }
20778 if (obj2) {
20779 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
20780 if (!SWIG_IsOK(res6)) {
20781 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
36ed4f51 20782 }
1bd55598
RD
20783 arg6 = reinterpret_cast< wxFont * >(argp6);
20784 }
20785 {
20786 PyThreadState* __tstate = wxPyBeginAllowThreads();
20787 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
20788 wxPyEndAllowThreads(__tstate);
20789 if (PyErr_Occurred()) SWIG_fail;
20790 }
20791 resultobj = SWIG_Py_Void();
20792 if (SWIG_IsTmpObj(res3)) {
20793 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20794 } else {
20795 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20796 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20797 }
20798 if (SWIG_IsTmpObj(res4)) {
20799 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20800 } else {
20801 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20802 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20803 }
20804 if (SWIG_IsTmpObj(res5)) {
20805 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20806 } else {
20807 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20808 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20809 }
20810 {
20811 if (temp2)
20812 delete arg2;
20813 }
20814 return resultobj;
20815fail:
20816 {
20817 if (temp2)
20818 delete arg2;
20819 }
20820 return NULL;
20821}
20822
20823
20824SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20825 PyObject *resultobj = 0;
20826 wxDC *arg1 = (wxDC *) 0 ;
20827 wxString *arg2 = 0 ;
20828 wxArrayInt result;
20829 void *argp1 = 0 ;
20830 int res1 = 0 ;
20831 bool temp2 = false ;
20832 PyObject * obj0 = 0 ;
20833 PyObject * obj1 = 0 ;
20834 char * kwnames[] = {
20835 (char *) "self",(char *) "text", NULL
20836 };
20837
20838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
20839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20840 if (!SWIG_IsOK(res1)) {
20841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
20842 }
20843 arg1 = reinterpret_cast< wxDC * >(argp1);
20844 {
20845 arg2 = wxString_in_helper(obj1);
20846 if (arg2 == NULL) SWIG_fail;
20847 temp2 = true;
20848 }
20849 {
20850 PyThreadState* __tstate = wxPyBeginAllowThreads();
20851 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
20852 wxPyEndAllowThreads(__tstate);
20853 if (PyErr_Occurred()) SWIG_fail;
20854 }
20855 {
b39fe951 20856 resultobj = wxArrayInt2PyList_helper(result);
1bd55598
RD
20857 }
20858 {
20859 if (temp2)
20860 delete arg2;
20861 }
20862 return resultobj;
20863fail:
20864 {
20865 if (temp2)
20866 delete arg2;
20867 }
20868 return NULL;
20869}
20870
20871
20872SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20873 PyObject *resultobj = 0;
20874 wxDC *arg1 = (wxDC *) 0 ;
20875 wxSize result;
20876 void *argp1 = 0 ;
20877 int res1 = 0 ;
20878 PyObject *swig_obj[1] ;
20879
20880 if (!args) SWIG_fail;
20881 swig_obj[0] = args;
20882 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20883 if (!SWIG_IsOK(res1)) {
20884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
20885 }
20886 arg1 = reinterpret_cast< wxDC * >(argp1);
20887 {
20888 PyThreadState* __tstate = wxPyBeginAllowThreads();
20889 result = (arg1)->GetSize();
20890 wxPyEndAllowThreads(__tstate);
20891 if (PyErr_Occurred()) SWIG_fail;
20892 }
20893 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
20894 return resultobj;
20895fail:
20896 return NULL;
20897}
20898
20899
20900SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20901 PyObject *resultobj = 0;
20902 wxDC *arg1 = (wxDC *) 0 ;
20903 int *arg2 = (int *) 0 ;
20904 int *arg3 = (int *) 0 ;
20905 void *argp1 = 0 ;
20906 int res1 = 0 ;
20907 int temp2 ;
20908 int res2 = SWIG_TMPOBJ ;
20909 int temp3 ;
20910 int res3 = SWIG_TMPOBJ ;
20911 PyObject *swig_obj[1] ;
20912
20913 arg2 = &temp2;
20914 arg3 = &temp3;
20915 if (!args) SWIG_fail;
20916 swig_obj[0] = args;
20917 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20918 if (!SWIG_IsOK(res1)) {
20919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
20920 }
20921 arg1 = reinterpret_cast< wxDC * >(argp1);
20922 {
20923 PyThreadState* __tstate = wxPyBeginAllowThreads();
20924 (arg1)->GetSize(arg2,arg3);
20925 wxPyEndAllowThreads(__tstate);
20926 if (PyErr_Occurred()) SWIG_fail;
20927 }
20928 resultobj = SWIG_Py_Void();
20929 if (SWIG_IsTmpObj(res2)) {
20930 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20931 } else {
20932 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20933 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20934 }
20935 if (SWIG_IsTmpObj(res3)) {
20936 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20937 } else {
20938 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20939 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20940 }
20941 return resultobj;
20942fail:
20943 return NULL;
20944}
20945
20946
20947SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20948 PyObject *resultobj = 0;
20949 wxDC *arg1 = (wxDC *) 0 ;
20950 wxSize result;
20951 void *argp1 = 0 ;
20952 int res1 = 0 ;
20953 PyObject *swig_obj[1] ;
20954
20955 if (!args) SWIG_fail;
20956 swig_obj[0] = args;
20957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20958 if (!SWIG_IsOK(res1)) {
20959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
20960 }
20961 arg1 = reinterpret_cast< wxDC * >(argp1);
20962 {
20963 PyThreadState* __tstate = wxPyBeginAllowThreads();
20964 result = ((wxDC const *)arg1)->GetSizeMM();
20965 wxPyEndAllowThreads(__tstate);
20966 if (PyErr_Occurred()) SWIG_fail;
20967 }
20968 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
20969 return resultobj;
20970fail:
20971 return NULL;
20972}
20973
20974
20975SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20976 PyObject *resultobj = 0;
20977 wxDC *arg1 = (wxDC *) 0 ;
20978 int *arg2 = (int *) 0 ;
20979 int *arg3 = (int *) 0 ;
20980 void *argp1 = 0 ;
20981 int res1 = 0 ;
20982 int temp2 ;
20983 int res2 = SWIG_TMPOBJ ;
20984 int temp3 ;
20985 int res3 = SWIG_TMPOBJ ;
20986 PyObject *swig_obj[1] ;
20987
20988 arg2 = &temp2;
20989 arg3 = &temp3;
20990 if (!args) SWIG_fail;
20991 swig_obj[0] = args;
20992 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20993 if (!SWIG_IsOK(res1)) {
20994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
20995 }
20996 arg1 = reinterpret_cast< wxDC * >(argp1);
20997 {
20998 PyThreadState* __tstate = wxPyBeginAllowThreads();
20999 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21000 wxPyEndAllowThreads(__tstate);
21001 if (PyErr_Occurred()) SWIG_fail;
21002 }
21003 resultobj = SWIG_Py_Void();
21004 if (SWIG_IsTmpObj(res2)) {
21005 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21006 } else {
21007 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21008 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21009 }
21010 if (SWIG_IsTmpObj(res3)) {
21011 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21012 } else {
21013 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21014 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21015 }
21016 return resultobj;
21017fail:
21018 return NULL;
21019}
21020
21021
21022SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21023 PyObject *resultobj = 0;
21024 wxDC *arg1 = (wxDC *) 0 ;
21025 int arg2 ;
21026 int result;
21027 void *argp1 = 0 ;
21028 int res1 = 0 ;
21029 int val2 ;
21030 int ecode2 = 0 ;
21031 PyObject * obj0 = 0 ;
21032 PyObject * obj1 = 0 ;
21033 char * kwnames[] = {
21034 (char *) "self",(char *) "x", NULL
21035 };
21036
21037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21039 if (!SWIG_IsOK(res1)) {
21040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21041 }
21042 arg1 = reinterpret_cast< wxDC * >(argp1);
21043 ecode2 = SWIG_AsVal_int(obj1, &val2);
21044 if (!SWIG_IsOK(ecode2)) {
21045 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21046 }
21047 arg2 = static_cast< int >(val2);
21048 {
21049 PyThreadState* __tstate = wxPyBeginAllowThreads();
21050 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21051 wxPyEndAllowThreads(__tstate);
21052 if (PyErr_Occurred()) SWIG_fail;
21053 }
21054 resultobj = SWIG_From_int(static_cast< int >(result));
21055 return resultobj;
21056fail:
21057 return NULL;
21058}
21059
21060
21061SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21062 PyObject *resultobj = 0;
21063 wxDC *arg1 = (wxDC *) 0 ;
21064 int arg2 ;
21065 int result;
21066 void *argp1 = 0 ;
21067 int res1 = 0 ;
21068 int val2 ;
21069 int ecode2 = 0 ;
21070 PyObject * obj0 = 0 ;
21071 PyObject * obj1 = 0 ;
21072 char * kwnames[] = {
21073 (char *) "self",(char *) "y", NULL
21074 };
21075
21076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21078 if (!SWIG_IsOK(res1)) {
21079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21080 }
21081 arg1 = reinterpret_cast< wxDC * >(argp1);
21082 ecode2 = SWIG_AsVal_int(obj1, &val2);
21083 if (!SWIG_IsOK(ecode2)) {
21084 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21085 }
21086 arg2 = static_cast< int >(val2);
21087 {
21088 PyThreadState* __tstate = wxPyBeginAllowThreads();
21089 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21090 wxPyEndAllowThreads(__tstate);
21091 if (PyErr_Occurred()) SWIG_fail;
21092 }
21093 resultobj = SWIG_From_int(static_cast< int >(result));
21094 return resultobj;
21095fail:
21096 return NULL;
21097}
21098
21099
21100SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21101 PyObject *resultobj = 0;
21102 wxDC *arg1 = (wxDC *) 0 ;
21103 int arg2 ;
21104 int result;
21105 void *argp1 = 0 ;
21106 int res1 = 0 ;
21107 int val2 ;
21108 int ecode2 = 0 ;
21109 PyObject * obj0 = 0 ;
21110 PyObject * obj1 = 0 ;
21111 char * kwnames[] = {
21112 (char *) "self",(char *) "x", NULL
21113 };
21114
21115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21117 if (!SWIG_IsOK(res1)) {
21118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21119 }
21120 arg1 = reinterpret_cast< wxDC * >(argp1);
21121 ecode2 = SWIG_AsVal_int(obj1, &val2);
21122 if (!SWIG_IsOK(ecode2)) {
21123 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21124 }
21125 arg2 = static_cast< int >(val2);
21126 {
21127 PyThreadState* __tstate = wxPyBeginAllowThreads();
21128 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21129 wxPyEndAllowThreads(__tstate);
21130 if (PyErr_Occurred()) SWIG_fail;
21131 }
21132 resultobj = SWIG_From_int(static_cast< int >(result));
21133 return resultobj;
21134fail:
21135 return NULL;
21136}
21137
21138
21139SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21140 PyObject *resultobj = 0;
21141 wxDC *arg1 = (wxDC *) 0 ;
21142 int arg2 ;
21143 int result;
21144 void *argp1 = 0 ;
21145 int res1 = 0 ;
21146 int val2 ;
21147 int ecode2 = 0 ;
21148 PyObject * obj0 = 0 ;
21149 PyObject * obj1 = 0 ;
21150 char * kwnames[] = {
21151 (char *) "self",(char *) "y", NULL
21152 };
21153
21154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21156 if (!SWIG_IsOK(res1)) {
21157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21158 }
21159 arg1 = reinterpret_cast< wxDC * >(argp1);
21160 ecode2 = SWIG_AsVal_int(obj1, &val2);
21161 if (!SWIG_IsOK(ecode2)) {
21162 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21163 }
21164 arg2 = static_cast< int >(val2);
21165 {
21166 PyThreadState* __tstate = wxPyBeginAllowThreads();
21167 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21168 wxPyEndAllowThreads(__tstate);
21169 if (PyErr_Occurred()) SWIG_fail;
21170 }
21171 resultobj = SWIG_From_int(static_cast< int >(result));
21172 return resultobj;
21173fail:
21174 return NULL;
21175}
21176
21177
21178SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21179 PyObject *resultobj = 0;
21180 wxDC *arg1 = (wxDC *) 0 ;
21181 int arg2 ;
21182 int result;
21183 void *argp1 = 0 ;
21184 int res1 = 0 ;
21185 int val2 ;
21186 int ecode2 = 0 ;
21187 PyObject * obj0 = 0 ;
21188 PyObject * obj1 = 0 ;
21189 char * kwnames[] = {
21190 (char *) "self",(char *) "x", NULL
21191 };
21192
21193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21195 if (!SWIG_IsOK(res1)) {
21196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21197 }
21198 arg1 = reinterpret_cast< wxDC * >(argp1);
21199 ecode2 = SWIG_AsVal_int(obj1, &val2);
21200 if (!SWIG_IsOK(ecode2)) {
21201 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21202 }
21203 arg2 = static_cast< int >(val2);
21204 {
21205 PyThreadState* __tstate = wxPyBeginAllowThreads();
21206 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21207 wxPyEndAllowThreads(__tstate);
21208 if (PyErr_Occurred()) SWIG_fail;
21209 }
21210 resultobj = SWIG_From_int(static_cast< int >(result));
21211 return resultobj;
21212fail:
21213 return NULL;
21214}
21215
21216
21217SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21218 PyObject *resultobj = 0;
21219 wxDC *arg1 = (wxDC *) 0 ;
21220 int arg2 ;
21221 int result;
21222 void *argp1 = 0 ;
21223 int res1 = 0 ;
21224 int val2 ;
21225 int ecode2 = 0 ;
21226 PyObject * obj0 = 0 ;
21227 PyObject * obj1 = 0 ;
21228 char * kwnames[] = {
21229 (char *) "self",(char *) "y", NULL
21230 };
21231
21232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21234 if (!SWIG_IsOK(res1)) {
21235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21236 }
21237 arg1 = reinterpret_cast< wxDC * >(argp1);
21238 ecode2 = SWIG_AsVal_int(obj1, &val2);
21239 if (!SWIG_IsOK(ecode2)) {
21240 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21241 }
21242 arg2 = static_cast< int >(val2);
21243 {
21244 PyThreadState* __tstate = wxPyBeginAllowThreads();
21245 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21246 wxPyEndAllowThreads(__tstate);
21247 if (PyErr_Occurred()) SWIG_fail;
21248 }
21249 resultobj = SWIG_From_int(static_cast< int >(result));
21250 return resultobj;
21251fail:
21252 return NULL;
21253}
21254
21255
21256SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21257 PyObject *resultobj = 0;
21258 wxDC *arg1 = (wxDC *) 0 ;
21259 int arg2 ;
21260 int result;
21261 void *argp1 = 0 ;
21262 int res1 = 0 ;
21263 int val2 ;
21264 int ecode2 = 0 ;
21265 PyObject * obj0 = 0 ;
21266 PyObject * obj1 = 0 ;
21267 char * kwnames[] = {
21268 (char *) "self",(char *) "x", NULL
21269 };
21270
21271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21273 if (!SWIG_IsOK(res1)) {
21274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21275 }
21276 arg1 = reinterpret_cast< wxDC * >(argp1);
21277 ecode2 = SWIG_AsVal_int(obj1, &val2);
21278 if (!SWIG_IsOK(ecode2)) {
21279 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21280 }
21281 arg2 = static_cast< int >(val2);
21282 {
21283 PyThreadState* __tstate = wxPyBeginAllowThreads();
21284 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21285 wxPyEndAllowThreads(__tstate);
21286 if (PyErr_Occurred()) SWIG_fail;
21287 }
21288 resultobj = SWIG_From_int(static_cast< int >(result));
21289 return resultobj;
21290fail:
21291 return NULL;
21292}
21293
21294
21295SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21296 PyObject *resultobj = 0;
21297 wxDC *arg1 = (wxDC *) 0 ;
21298 int arg2 ;
21299 int result;
21300 void *argp1 = 0 ;
21301 int res1 = 0 ;
21302 int val2 ;
21303 int ecode2 = 0 ;
21304 PyObject * obj0 = 0 ;
21305 PyObject * obj1 = 0 ;
21306 char * kwnames[] = {
21307 (char *) "self",(char *) "y", NULL
21308 };
21309
21310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21312 if (!SWIG_IsOK(res1)) {
21313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21314 }
21315 arg1 = reinterpret_cast< wxDC * >(argp1);
21316 ecode2 = SWIG_AsVal_int(obj1, &val2);
21317 if (!SWIG_IsOK(ecode2)) {
21318 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21319 }
21320 arg2 = static_cast< int >(val2);
21321 {
21322 PyThreadState* __tstate = wxPyBeginAllowThreads();
21323 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21324 wxPyEndAllowThreads(__tstate);
21325 if (PyErr_Occurred()) SWIG_fail;
21326 }
21327 resultobj = SWIG_From_int(static_cast< int >(result));
21328 return resultobj;
21329fail:
21330 return NULL;
21331}
21332
21333
21334SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21335 PyObject *resultobj = 0;
21336 wxDC *arg1 = (wxDC *) 0 ;
21337 bool result;
21338 void *argp1 = 0 ;
21339 int res1 = 0 ;
21340 PyObject *swig_obj[1] ;
21341
21342 if (!args) SWIG_fail;
21343 swig_obj[0] = args;
21344 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21345 if (!SWIG_IsOK(res1)) {
21346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21347 }
21348 arg1 = reinterpret_cast< wxDC * >(argp1);
21349 {
21350 PyThreadState* __tstate = wxPyBeginAllowThreads();
21351 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21352 wxPyEndAllowThreads(__tstate);
21353 if (PyErr_Occurred()) SWIG_fail;
21354 }
21355 {
21356 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21357 }
21358 return resultobj;
21359fail:
21360 return NULL;
21361}
21362
21363
21364SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21365 PyObject *resultobj = 0;
21366 wxDC *arg1 = (wxDC *) 0 ;
21367 bool result;
21368 void *argp1 = 0 ;
21369 int res1 = 0 ;
21370 PyObject *swig_obj[1] ;
21371
21372 if (!args) SWIG_fail;
21373 swig_obj[0] = args;
21374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21375 if (!SWIG_IsOK(res1)) {
21376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21377 }
21378 arg1 = reinterpret_cast< wxDC * >(argp1);
21379 {
21380 PyThreadState* __tstate = wxPyBeginAllowThreads();
21381 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21382 wxPyEndAllowThreads(__tstate);
21383 if (PyErr_Occurred()) SWIG_fail;
21384 }
21385 {
21386 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21387 }
21388 return resultobj;
21389fail:
21390 return NULL;
21391}
21392
21393
21394SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21395 PyObject *resultobj = 0;
21396 wxDC *arg1 = (wxDC *) 0 ;
21397 int result;
21398 void *argp1 = 0 ;
21399 int res1 = 0 ;
21400 PyObject *swig_obj[1] ;
21401
21402 if (!args) SWIG_fail;
21403 swig_obj[0] = args;
21404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21405 if (!SWIG_IsOK(res1)) {
21406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21407 }
21408 arg1 = reinterpret_cast< wxDC * >(argp1);
21409 {
21410 PyThreadState* __tstate = wxPyBeginAllowThreads();
21411 result = (int)((wxDC const *)arg1)->GetDepth();
21412 wxPyEndAllowThreads(__tstate);
21413 if (PyErr_Occurred()) SWIG_fail;
21414 }
21415 resultobj = SWIG_From_int(static_cast< int >(result));
21416 return resultobj;
21417fail:
21418 return NULL;
21419}
21420
21421
21422SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21423 PyObject *resultobj = 0;
21424 wxDC *arg1 = (wxDC *) 0 ;
21425 wxSize result;
21426 void *argp1 = 0 ;
21427 int res1 = 0 ;
21428 PyObject *swig_obj[1] ;
21429
21430 if (!args) SWIG_fail;
21431 swig_obj[0] = args;
21432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21433 if (!SWIG_IsOK(res1)) {
21434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21435 }
21436 arg1 = reinterpret_cast< wxDC * >(argp1);
21437 {
21438 PyThreadState* __tstate = wxPyBeginAllowThreads();
21439 result = ((wxDC const *)arg1)->GetPPI();
21440 wxPyEndAllowThreads(__tstate);
21441 if (PyErr_Occurred()) SWIG_fail;
21442 }
21443 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21444 return resultobj;
21445fail:
21446 return NULL;
21447}
21448
21449
b39fe951 21450SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
21451 PyObject *resultobj = 0;
21452 wxDC *arg1 = (wxDC *) 0 ;
21453 bool result;
21454 void *argp1 = 0 ;
21455 int res1 = 0 ;
21456 PyObject *swig_obj[1] ;
21457
21458 if (!args) SWIG_fail;
21459 swig_obj[0] = args;
21460 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21461 if (!SWIG_IsOK(res1)) {
b39fe951 21462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
1bd55598
RD
21463 }
21464 arg1 = reinterpret_cast< wxDC * >(argp1);
21465 {
21466 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 21467 result = (bool)((wxDC const *)arg1)->IsOk();
1bd55598
RD
21468 wxPyEndAllowThreads(__tstate);
21469 if (PyErr_Occurred()) SWIG_fail;
21470 }
21471 {
21472 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21473 }
21474 return resultobj;
21475fail:
21476 return NULL;
21477}
21478
21479
21480SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21481 PyObject *resultobj = 0;
21482 wxDC *arg1 = (wxDC *) 0 ;
21483 int result;
21484 void *argp1 = 0 ;
21485 int res1 = 0 ;
21486 PyObject *swig_obj[1] ;
21487
21488 if (!args) SWIG_fail;
21489 swig_obj[0] = args;
21490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21491 if (!SWIG_IsOK(res1)) {
21492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21493 }
21494 arg1 = reinterpret_cast< wxDC * >(argp1);
21495 {
21496 PyThreadState* __tstate = wxPyBeginAllowThreads();
21497 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21498 wxPyEndAllowThreads(__tstate);
21499 if (PyErr_Occurred()) SWIG_fail;
21500 }
21501 resultobj = SWIG_From_int(static_cast< int >(result));
21502 return resultobj;
21503fail:
21504 return NULL;
21505}
21506
21507
21508SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21509 PyObject *resultobj = 0;
21510 wxDC *arg1 = (wxDC *) 0 ;
21511 wxBrush *result = 0 ;
21512 void *argp1 = 0 ;
21513 int res1 = 0 ;
21514 PyObject *swig_obj[1] ;
21515
21516 if (!args) SWIG_fail;
21517 swig_obj[0] = args;
21518 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21519 if (!SWIG_IsOK(res1)) {
21520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21521 }
21522 arg1 = reinterpret_cast< wxDC * >(argp1);
21523 {
21524 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21525 {
1bd55598
RD
21526 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21527 result = (wxBrush *) &_result_ref;
36ed4f51 21528 }
1bd55598
RD
21529 wxPyEndAllowThreads(__tstate);
21530 if (PyErr_Occurred()) SWIG_fail;
21531 }
21532 {
21533 wxBrush* resultptr = new wxBrush(*result);
21534 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21535 }
21536 return resultobj;
21537fail:
21538 return NULL;
21539}
21540
21541
21542SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21543 PyObject *resultobj = 0;
21544 wxDC *arg1 = (wxDC *) 0 ;
21545 wxBrush *result = 0 ;
21546 void *argp1 = 0 ;
21547 int res1 = 0 ;
21548 PyObject *swig_obj[1] ;
21549
21550 if (!args) SWIG_fail;
21551 swig_obj[0] = args;
21552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21553 if (!SWIG_IsOK(res1)) {
21554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
21555 }
21556 arg1 = reinterpret_cast< wxDC * >(argp1);
21557 {
21558 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21559 {
1bd55598
RD
21560 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
21561 result = (wxBrush *) &_result_ref;
36ed4f51 21562 }
1bd55598
RD
21563 wxPyEndAllowThreads(__tstate);
21564 if (PyErr_Occurred()) SWIG_fail;
21565 }
21566 {
21567 wxBrush* resultptr = new wxBrush(*result);
21568 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21569 }
21570 return resultobj;
21571fail:
21572 return NULL;
21573}
21574
21575
21576SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21577 PyObject *resultobj = 0;
21578 wxDC *arg1 = (wxDC *) 0 ;
21579 wxFont *result = 0 ;
21580 void *argp1 = 0 ;
21581 int res1 = 0 ;
21582 PyObject *swig_obj[1] ;
21583
21584 if (!args) SWIG_fail;
21585 swig_obj[0] = args;
21586 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21587 if (!SWIG_IsOK(res1)) {
21588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
21589 }
21590 arg1 = reinterpret_cast< wxDC * >(argp1);
21591 {
21592 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21593 {
1bd55598
RD
21594 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
21595 result = (wxFont *) &_result_ref;
36ed4f51 21596 }
1bd55598
RD
21597 wxPyEndAllowThreads(__tstate);
21598 if (PyErr_Occurred()) SWIG_fail;
21599 }
21600 {
21601 wxFont* resultptr = new wxFont(*result);
21602 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
21603 }
21604 return resultobj;
21605fail:
21606 return NULL;
21607}
21608
21609
21610SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21611 PyObject *resultobj = 0;
21612 wxDC *arg1 = (wxDC *) 0 ;
21613 wxPen *result = 0 ;
21614 void *argp1 = 0 ;
21615 int res1 = 0 ;
21616 PyObject *swig_obj[1] ;
21617
21618 if (!args) SWIG_fail;
21619 swig_obj[0] = args;
21620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21621 if (!SWIG_IsOK(res1)) {
21622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
21623 }
21624 arg1 = reinterpret_cast< wxDC * >(argp1);
21625 {
21626 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21627 {
1bd55598
RD
21628 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
21629 result = (wxPen *) &_result_ref;
36ed4f51 21630 }
1bd55598
RD
21631 wxPyEndAllowThreads(__tstate);
21632 if (PyErr_Occurred()) SWIG_fail;
21633 }
21634 {
21635 wxPen* resultptr = new wxPen(*result);
21636 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
21637 }
21638 return resultobj;
21639fail:
21640 return NULL;
21641}
21642
21643
21644SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21645 PyObject *resultobj = 0;
21646 wxDC *arg1 = (wxDC *) 0 ;
21647 wxColour *result = 0 ;
21648 void *argp1 = 0 ;
21649 int res1 = 0 ;
21650 PyObject *swig_obj[1] ;
21651
21652 if (!args) SWIG_fail;
21653 swig_obj[0] = args;
21654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21655 if (!SWIG_IsOK(res1)) {
21656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21657 }
21658 arg1 = reinterpret_cast< wxDC * >(argp1);
21659 {
21660 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21661 {
1bd55598
RD
21662 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
21663 result = (wxColour *) &_result_ref;
36ed4f51 21664 }
1bd55598
RD
21665 wxPyEndAllowThreads(__tstate);
21666 if (PyErr_Occurred()) SWIG_fail;
21667 }
21668 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21669 return resultobj;
21670fail:
21671 return NULL;
21672}
21673
21674
21675SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21676 PyObject *resultobj = 0;
21677 wxDC *arg1 = (wxDC *) 0 ;
21678 wxColour *result = 0 ;
21679 void *argp1 = 0 ;
21680 int res1 = 0 ;
21681 PyObject *swig_obj[1] ;
21682
21683 if (!args) SWIG_fail;
21684 swig_obj[0] = args;
21685 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21686 if (!SWIG_IsOK(res1)) {
21687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
21688 }
21689 arg1 = reinterpret_cast< wxDC * >(argp1);
21690 {
21691 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21692 {
1bd55598
RD
21693 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
21694 result = (wxColour *) &_result_ref;
36ed4f51 21695 }
1bd55598
RD
21696 wxPyEndAllowThreads(__tstate);
21697 if (PyErr_Occurred()) SWIG_fail;
21698 }
21699 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21700 return resultobj;
21701fail:
21702 return NULL;
21703}
21704
21705
21706SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21707 PyObject *resultobj = 0;
21708 wxDC *arg1 = (wxDC *) 0 ;
21709 wxColour *arg2 = 0 ;
21710 void *argp1 = 0 ;
21711 int res1 = 0 ;
21712 wxColour temp2 ;
21713 PyObject * obj0 = 0 ;
21714 PyObject * obj1 = 0 ;
21715 char * kwnames[] = {
21716 (char *) "self",(char *) "colour", NULL
21717 };
21718
21719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
21720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21721 if (!SWIG_IsOK(res1)) {
21722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
21723 }
21724 arg1 = reinterpret_cast< wxDC * >(argp1);
21725 {
21726 arg2 = &temp2;
21727 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21728 }
21729 {
21730 PyThreadState* __tstate = wxPyBeginAllowThreads();
21731 (arg1)->SetTextForeground((wxColour const &)*arg2);
21732 wxPyEndAllowThreads(__tstate);
21733 if (PyErr_Occurred()) SWIG_fail;
21734 }
21735 resultobj = SWIG_Py_Void();
21736 return resultobj;
21737fail:
21738 return NULL;
21739}
21740
21741
21742SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21743 PyObject *resultobj = 0;
21744 wxDC *arg1 = (wxDC *) 0 ;
21745 wxColour *arg2 = 0 ;
21746 void *argp1 = 0 ;
21747 int res1 = 0 ;
21748 wxColour temp2 ;
21749 PyObject * obj0 = 0 ;
21750 PyObject * obj1 = 0 ;
21751 char * kwnames[] = {
21752 (char *) "self",(char *) "colour", NULL
21753 };
21754
21755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
21756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21757 if (!SWIG_IsOK(res1)) {
21758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
21759 }
21760 arg1 = reinterpret_cast< wxDC * >(argp1);
21761 {
21762 arg2 = &temp2;
21763 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21764 }
21765 {
21766 PyThreadState* __tstate = wxPyBeginAllowThreads();
21767 (arg1)->SetTextBackground((wxColour const &)*arg2);
21768 wxPyEndAllowThreads(__tstate);
21769 if (PyErr_Occurred()) SWIG_fail;
21770 }
21771 resultobj = SWIG_Py_Void();
21772 return resultobj;
21773fail:
21774 return NULL;
21775}
21776
21777
21778SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21779 PyObject *resultobj = 0;
21780 wxDC *arg1 = (wxDC *) 0 ;
21781 int result;
21782 void *argp1 = 0 ;
21783 int res1 = 0 ;
21784 PyObject *swig_obj[1] ;
21785
21786 if (!args) SWIG_fail;
21787 swig_obj[0] = args;
21788 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21789 if (!SWIG_IsOK(res1)) {
21790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21791 }
21792 arg1 = reinterpret_cast< wxDC * >(argp1);
21793 {
21794 PyThreadState* __tstate = wxPyBeginAllowThreads();
21795 result = (int)((wxDC const *)arg1)->GetMapMode();
21796 wxPyEndAllowThreads(__tstate);
21797 if (PyErr_Occurred()) SWIG_fail;
21798 }
21799 resultobj = SWIG_From_int(static_cast< int >(result));
21800 return resultobj;
21801fail:
21802 return NULL;
21803}
21804
21805
21806SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21807 PyObject *resultobj = 0;
21808 wxDC *arg1 = (wxDC *) 0 ;
21809 int arg2 ;
21810 void *argp1 = 0 ;
21811 int res1 = 0 ;
21812 int val2 ;
21813 int ecode2 = 0 ;
21814 PyObject * obj0 = 0 ;
21815 PyObject * obj1 = 0 ;
21816 char * kwnames[] = {
21817 (char *) "self",(char *) "mode", NULL
21818 };
21819
21820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
21821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21822 if (!SWIG_IsOK(res1)) {
21823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
21824 }
21825 arg1 = reinterpret_cast< wxDC * >(argp1);
21826 ecode2 = SWIG_AsVal_int(obj1, &val2);
21827 if (!SWIG_IsOK(ecode2)) {
21828 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
21829 }
21830 arg2 = static_cast< int >(val2);
21831 {
21832 PyThreadState* __tstate = wxPyBeginAllowThreads();
21833 (arg1)->SetMapMode(arg2);
21834 wxPyEndAllowThreads(__tstate);
21835 if (PyErr_Occurred()) SWIG_fail;
21836 }
21837 resultobj = SWIG_Py_Void();
21838 return resultobj;
21839fail:
21840 return NULL;
21841}
21842
21843
21844SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21845 PyObject *resultobj = 0;
21846 wxDC *arg1 = (wxDC *) 0 ;
21847 double *arg2 = (double *) 0 ;
21848 double *arg3 = (double *) 0 ;
21849 void *argp1 = 0 ;
21850 int res1 = 0 ;
21851 double temp2 ;
21852 int res2 = SWIG_TMPOBJ ;
21853 double temp3 ;
21854 int res3 = SWIG_TMPOBJ ;
21855 PyObject *swig_obj[1] ;
21856
21857 arg2 = &temp2;
21858 arg3 = &temp3;
21859 if (!args) SWIG_fail;
21860 swig_obj[0] = args;
21861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21862 if (!SWIG_IsOK(res1)) {
21863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
21864 }
21865 arg1 = reinterpret_cast< wxDC * >(argp1);
21866 {
21867 PyThreadState* __tstate = wxPyBeginAllowThreads();
21868 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
21869 wxPyEndAllowThreads(__tstate);
21870 if (PyErr_Occurred()) SWIG_fail;
21871 }
21872 resultobj = SWIG_Py_Void();
21873 if (SWIG_IsTmpObj(res2)) {
21874 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
21875 } else {
21876 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21877 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
21878 }
21879 if (SWIG_IsTmpObj(res3)) {
21880 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
21881 } else {
21882 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21883 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
21884 }
21885 return resultobj;
21886fail:
21887 return NULL;
21888}
21889
21890
21891SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21892 PyObject *resultobj = 0;
21893 wxDC *arg1 = (wxDC *) 0 ;
21894 double arg2 ;
21895 double arg3 ;
21896 void *argp1 = 0 ;
21897 int res1 = 0 ;
21898 double val2 ;
21899 int ecode2 = 0 ;
21900 double val3 ;
21901 int ecode3 = 0 ;
21902 PyObject * obj0 = 0 ;
21903 PyObject * obj1 = 0 ;
21904 PyObject * obj2 = 0 ;
21905 char * kwnames[] = {
21906 (char *) "self",(char *) "x",(char *) "y", NULL
21907 };
21908
21909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21911 if (!SWIG_IsOK(res1)) {
21912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
21913 }
21914 arg1 = reinterpret_cast< wxDC * >(argp1);
21915 ecode2 = SWIG_AsVal_double(obj1, &val2);
21916 if (!SWIG_IsOK(ecode2)) {
21917 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
21918 }
21919 arg2 = static_cast< double >(val2);
21920 ecode3 = SWIG_AsVal_double(obj2, &val3);
21921 if (!SWIG_IsOK(ecode3)) {
21922 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
21923 }
21924 arg3 = static_cast< double >(val3);
21925 {
21926 PyThreadState* __tstate = wxPyBeginAllowThreads();
21927 (arg1)->SetUserScale(arg2,arg3);
21928 wxPyEndAllowThreads(__tstate);
21929 if (PyErr_Occurred()) SWIG_fail;
21930 }
21931 resultobj = SWIG_Py_Void();
21932 return resultobj;
21933fail:
21934 return NULL;
21935}
21936
21937
21938SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21939 PyObject *resultobj = 0;
21940 wxDC *arg1 = (wxDC *) 0 ;
21941 double *arg2 = (double *) 0 ;
21942 double *arg3 = (double *) 0 ;
21943 void *argp1 = 0 ;
21944 int res1 = 0 ;
21945 double temp2 ;
21946 int res2 = SWIG_TMPOBJ ;
21947 double temp3 ;
21948 int res3 = SWIG_TMPOBJ ;
21949 PyObject *swig_obj[1] ;
21950
21951 arg2 = &temp2;
21952 arg3 = &temp3;
21953 if (!args) SWIG_fail;
21954 swig_obj[0] = args;
21955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21956 if (!SWIG_IsOK(res1)) {
21957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
21958 }
21959 arg1 = reinterpret_cast< wxDC * >(argp1);
21960 {
21961 PyThreadState* __tstate = wxPyBeginAllowThreads();
21962 (arg1)->GetLogicalScale(arg2,arg3);
21963 wxPyEndAllowThreads(__tstate);
21964 if (PyErr_Occurred()) SWIG_fail;
21965 }
21966 resultobj = SWIG_Py_Void();
21967 if (SWIG_IsTmpObj(res2)) {
21968 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
21969 } else {
21970 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21971 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
21972 }
21973 if (SWIG_IsTmpObj(res3)) {
21974 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
21975 } else {
21976 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21977 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
21978 }
21979 return resultobj;
21980fail:
21981 return NULL;
21982}
21983
21984
21985SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21986 PyObject *resultobj = 0;
21987 wxDC *arg1 = (wxDC *) 0 ;
21988 double arg2 ;
21989 double arg3 ;
21990 void *argp1 = 0 ;
21991 int res1 = 0 ;
21992 double val2 ;
21993 int ecode2 = 0 ;
21994 double val3 ;
21995 int ecode3 = 0 ;
21996 PyObject * obj0 = 0 ;
21997 PyObject * obj1 = 0 ;
21998 PyObject * obj2 = 0 ;
21999 char * kwnames[] = {
22000 (char *) "self",(char *) "x",(char *) "y", NULL
22001 };
22002
22003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22005 if (!SWIG_IsOK(res1)) {
22006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22007 }
22008 arg1 = reinterpret_cast< wxDC * >(argp1);
22009 ecode2 = SWIG_AsVal_double(obj1, &val2);
22010 if (!SWIG_IsOK(ecode2)) {
22011 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22012 }
22013 arg2 = static_cast< double >(val2);
22014 ecode3 = SWIG_AsVal_double(obj2, &val3);
22015 if (!SWIG_IsOK(ecode3)) {
22016 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22017 }
22018 arg3 = static_cast< double >(val3);
22019 {
22020 PyThreadState* __tstate = wxPyBeginAllowThreads();
22021 (arg1)->SetLogicalScale(arg2,arg3);
22022 wxPyEndAllowThreads(__tstate);
22023 if (PyErr_Occurred()) SWIG_fail;
22024 }
22025 resultobj = SWIG_Py_Void();
22026 return resultobj;
22027fail:
22028 return NULL;
22029}
22030
22031
22032SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22033 PyObject *resultobj = 0;
22034 wxDC *arg1 = (wxDC *) 0 ;
22035 wxPoint result;
22036 void *argp1 = 0 ;
22037 int res1 = 0 ;
22038 PyObject *swig_obj[1] ;
22039
22040 if (!args) SWIG_fail;
22041 swig_obj[0] = args;
22042 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22043 if (!SWIG_IsOK(res1)) {
22044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22045 }
22046 arg1 = reinterpret_cast< wxDC * >(argp1);
22047 {
22048 PyThreadState* __tstate = wxPyBeginAllowThreads();
22049 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22050 wxPyEndAllowThreads(__tstate);
22051 if (PyErr_Occurred()) SWIG_fail;
22052 }
22053 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22054 return resultobj;
22055fail:
22056 return NULL;
22057}
22058
22059
22060SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22061 PyObject *resultobj = 0;
22062 wxDC *arg1 = (wxDC *) 0 ;
22063 int *arg2 = (int *) 0 ;
22064 int *arg3 = (int *) 0 ;
22065 void *argp1 = 0 ;
22066 int res1 = 0 ;
22067 int temp2 ;
22068 int res2 = SWIG_TMPOBJ ;
22069 int temp3 ;
22070 int res3 = SWIG_TMPOBJ ;
22071 PyObject *swig_obj[1] ;
22072
22073 arg2 = &temp2;
22074 arg3 = &temp3;
22075 if (!args) SWIG_fail;
22076 swig_obj[0] = args;
22077 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22078 if (!SWIG_IsOK(res1)) {
22079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22080 }
22081 arg1 = reinterpret_cast< wxDC * >(argp1);
22082 {
22083 PyThreadState* __tstate = wxPyBeginAllowThreads();
22084 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22085 wxPyEndAllowThreads(__tstate);
22086 if (PyErr_Occurred()) SWIG_fail;
22087 }
22088 resultobj = SWIG_Py_Void();
22089 if (SWIG_IsTmpObj(res2)) {
22090 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22091 } else {
22092 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22093 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22094 }
22095 if (SWIG_IsTmpObj(res3)) {
22096 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22097 } else {
22098 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22099 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22100 }
22101 return resultobj;
22102fail:
22103 return NULL;
22104}
22105
22106
22107SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22108 PyObject *resultobj = 0;
22109 wxDC *arg1 = (wxDC *) 0 ;
22110 int arg2 ;
22111 int arg3 ;
22112 void *argp1 = 0 ;
22113 int res1 = 0 ;
22114 int val2 ;
22115 int ecode2 = 0 ;
22116 int val3 ;
22117 int ecode3 = 0 ;
22118 PyObject * obj0 = 0 ;
22119 PyObject * obj1 = 0 ;
22120 PyObject * obj2 = 0 ;
22121 char * kwnames[] = {
22122 (char *) "self",(char *) "x",(char *) "y", NULL
22123 };
22124
22125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22127 if (!SWIG_IsOK(res1)) {
22128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22129 }
22130 arg1 = reinterpret_cast< wxDC * >(argp1);
22131 ecode2 = SWIG_AsVal_int(obj1, &val2);
22132 if (!SWIG_IsOK(ecode2)) {
22133 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22134 }
22135 arg2 = static_cast< int >(val2);
22136 ecode3 = SWIG_AsVal_int(obj2, &val3);
22137 if (!SWIG_IsOK(ecode3)) {
22138 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22139 }
22140 arg3 = static_cast< int >(val3);
22141 {
22142 PyThreadState* __tstate = wxPyBeginAllowThreads();
22143 (arg1)->SetLogicalOrigin(arg2,arg3);
22144 wxPyEndAllowThreads(__tstate);
22145 if (PyErr_Occurred()) SWIG_fail;
22146 }
22147 resultobj = SWIG_Py_Void();
22148 return resultobj;
22149fail:
22150 return NULL;
22151}
22152
22153
22154SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22155 PyObject *resultobj = 0;
22156 wxDC *arg1 = (wxDC *) 0 ;
22157 wxPoint *arg2 = 0 ;
22158 void *argp1 = 0 ;
22159 int res1 = 0 ;
22160 wxPoint temp2 ;
22161 PyObject * obj0 = 0 ;
22162 PyObject * obj1 = 0 ;
22163 char * kwnames[] = {
22164 (char *) "self",(char *) "point", NULL
22165 };
22166
22167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22169 if (!SWIG_IsOK(res1)) {
22170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22171 }
22172 arg1 = reinterpret_cast< wxDC * >(argp1);
22173 {
22174 arg2 = &temp2;
22175 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22176 }
22177 {
22178 PyThreadState* __tstate = wxPyBeginAllowThreads();
22179 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22180 wxPyEndAllowThreads(__tstate);
22181 if (PyErr_Occurred()) SWIG_fail;
22182 }
22183 resultobj = SWIG_Py_Void();
22184 return resultobj;
22185fail:
22186 return NULL;
22187}
22188
22189
22190SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22191 PyObject *resultobj = 0;
22192 wxDC *arg1 = (wxDC *) 0 ;
22193 wxPoint result;
22194 void *argp1 = 0 ;
22195 int res1 = 0 ;
22196 PyObject *swig_obj[1] ;
22197
22198 if (!args) SWIG_fail;
22199 swig_obj[0] = args;
22200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22201 if (!SWIG_IsOK(res1)) {
22202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22203 }
22204 arg1 = reinterpret_cast< wxDC * >(argp1);
22205 {
22206 PyThreadState* __tstate = wxPyBeginAllowThreads();
22207 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22208 wxPyEndAllowThreads(__tstate);
22209 if (PyErr_Occurred()) SWIG_fail;
22210 }
22211 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22212 return resultobj;
22213fail:
22214 return NULL;
22215}
22216
22217
22218SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22219 PyObject *resultobj = 0;
22220 wxDC *arg1 = (wxDC *) 0 ;
22221 int *arg2 = (int *) 0 ;
22222 int *arg3 = (int *) 0 ;
22223 void *argp1 = 0 ;
22224 int res1 = 0 ;
22225 int temp2 ;
22226 int res2 = SWIG_TMPOBJ ;
22227 int temp3 ;
22228 int res3 = SWIG_TMPOBJ ;
22229 PyObject *swig_obj[1] ;
22230
22231 arg2 = &temp2;
22232 arg3 = &temp3;
22233 if (!args) SWIG_fail;
22234 swig_obj[0] = args;
22235 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22236 if (!SWIG_IsOK(res1)) {
22237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22238 }
22239 arg1 = reinterpret_cast< wxDC * >(argp1);
22240 {
22241 PyThreadState* __tstate = wxPyBeginAllowThreads();
22242 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22243 wxPyEndAllowThreads(__tstate);
22244 if (PyErr_Occurred()) SWIG_fail;
22245 }
22246 resultobj = SWIG_Py_Void();
22247 if (SWIG_IsTmpObj(res2)) {
22248 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22249 } else {
22250 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22251 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22252 }
22253 if (SWIG_IsTmpObj(res3)) {
22254 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22255 } else {
22256 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22257 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22258 }
22259 return resultobj;
22260fail:
22261 return NULL;
22262}
22263
22264
22265SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22266 PyObject *resultobj = 0;
22267 wxDC *arg1 = (wxDC *) 0 ;
22268 int arg2 ;
22269 int arg3 ;
22270 void *argp1 = 0 ;
22271 int res1 = 0 ;
22272 int val2 ;
22273 int ecode2 = 0 ;
22274 int val3 ;
22275 int ecode3 = 0 ;
22276 PyObject * obj0 = 0 ;
22277 PyObject * obj1 = 0 ;
22278 PyObject * obj2 = 0 ;
22279 char * kwnames[] = {
22280 (char *) "self",(char *) "x",(char *) "y", NULL
22281 };
22282
22283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22285 if (!SWIG_IsOK(res1)) {
22286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22287 }
22288 arg1 = reinterpret_cast< wxDC * >(argp1);
22289 ecode2 = SWIG_AsVal_int(obj1, &val2);
22290 if (!SWIG_IsOK(ecode2)) {
22291 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22292 }
22293 arg2 = static_cast< int >(val2);
22294 ecode3 = SWIG_AsVal_int(obj2, &val3);
22295 if (!SWIG_IsOK(ecode3)) {
22296 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22297 }
22298 arg3 = static_cast< int >(val3);
22299 {
22300 PyThreadState* __tstate = wxPyBeginAllowThreads();
22301 (arg1)->SetDeviceOrigin(arg2,arg3);
22302 wxPyEndAllowThreads(__tstate);
22303 if (PyErr_Occurred()) SWIG_fail;
22304 }
22305 resultobj = SWIG_Py_Void();
22306 return resultobj;
22307fail:
22308 return NULL;
22309}
22310
22311
22312SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22313 PyObject *resultobj = 0;
22314 wxDC *arg1 = (wxDC *) 0 ;
22315 wxPoint *arg2 = 0 ;
22316 void *argp1 = 0 ;
22317 int res1 = 0 ;
22318 wxPoint temp2 ;
22319 PyObject * obj0 = 0 ;
22320 PyObject * obj1 = 0 ;
22321 char * kwnames[] = {
22322 (char *) "self",(char *) "point", NULL
22323 };
22324
22325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22327 if (!SWIG_IsOK(res1)) {
22328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22329 }
22330 arg1 = reinterpret_cast< wxDC * >(argp1);
22331 {
22332 arg2 = &temp2;
22333 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22334 }
22335 {
22336 PyThreadState* __tstate = wxPyBeginAllowThreads();
22337 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22338 wxPyEndAllowThreads(__tstate);
22339 if (PyErr_Occurred()) SWIG_fail;
22340 }
22341 resultobj = SWIG_Py_Void();
22342 return resultobj;
22343fail:
22344 return NULL;
22345}
22346
22347
22348SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22349 PyObject *resultobj = 0;
22350 wxDC *arg1 = (wxDC *) 0 ;
22351 bool arg2 ;
22352 bool arg3 ;
22353 void *argp1 = 0 ;
22354 int res1 = 0 ;
22355 bool val2 ;
22356 int ecode2 = 0 ;
22357 bool val3 ;
22358 int ecode3 = 0 ;
22359 PyObject * obj0 = 0 ;
22360 PyObject * obj1 = 0 ;
22361 PyObject * obj2 = 0 ;
22362 char * kwnames[] = {
22363 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22364 };
22365
22366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",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_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22370 }
22371 arg1 = reinterpret_cast< wxDC * >(argp1);
22372 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22373 if (!SWIG_IsOK(ecode2)) {
22374 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22375 }
22376 arg2 = static_cast< bool >(val2);
22377 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22378 if (!SWIG_IsOK(ecode3)) {
22379 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22380 }
22381 arg3 = static_cast< bool >(val3);
22382 {
22383 PyThreadState* __tstate = wxPyBeginAllowThreads();
22384 (arg1)->SetAxisOrientation(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_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22396 PyObject *resultobj = 0;
22397 wxDC *arg1 = (wxDC *) 0 ;
22398 int 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_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22408 }
22409 arg1 = reinterpret_cast< wxDC * >(argp1);
22410 {
22411 PyThreadState* __tstate = wxPyBeginAllowThreads();
22412 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22413 wxPyEndAllowThreads(__tstate);
22414 if (PyErr_Occurred()) SWIG_fail;
22415 }
22416 resultobj = SWIG_From_int(static_cast< int >(result));
22417 return resultobj;
22418fail:
22419 return NULL;
22420}
22421
22422
22423SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22424 PyObject *resultobj = 0;
22425 wxDC *arg1 = (wxDC *) 0 ;
22426 int arg2 ;
22427 void *argp1 = 0 ;
22428 int res1 = 0 ;
22429 int val2 ;
22430 int ecode2 = 0 ;
22431 PyObject * obj0 = 0 ;
22432 PyObject * obj1 = 0 ;
22433 char * kwnames[] = {
22434 (char *) "self",(char *) "function", NULL
22435 };
22436
22437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22439 if (!SWIG_IsOK(res1)) {
22440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22441 }
22442 arg1 = reinterpret_cast< wxDC * >(argp1);
22443 ecode2 = SWIG_AsVal_int(obj1, &val2);
22444 if (!SWIG_IsOK(ecode2)) {
22445 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22446 }
22447 arg2 = static_cast< int >(val2);
22448 {
22449 PyThreadState* __tstate = wxPyBeginAllowThreads();
22450 (arg1)->SetLogicalFunction(arg2);
22451 wxPyEndAllowThreads(__tstate);
22452 if (PyErr_Occurred()) SWIG_fail;
22453 }
22454 resultobj = SWIG_Py_Void();
22455 return resultobj;
22456fail:
22457 return NULL;
22458}
22459
22460
22461SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22462 PyObject *resultobj = 0;
22463 wxDC *arg1 = (wxDC *) 0 ;
22464 void *argp1 = 0 ;
22465 int res1 = 0 ;
22466 PyObject *swig_obj[1] ;
22467
22468 if (!args) SWIG_fail;
22469 swig_obj[0] = args;
22470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22471 if (!SWIG_IsOK(res1)) {
22472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22473 }
22474 arg1 = reinterpret_cast< wxDC * >(argp1);
22475 {
22476 PyThreadState* __tstate = wxPyBeginAllowThreads();
22477 (arg1)->ComputeScaleAndOrigin();
22478 wxPyEndAllowThreads(__tstate);
22479 if (PyErr_Occurred()) SWIG_fail;
22480 }
22481 resultobj = SWIG_Py_Void();
22482 return resultobj;
22483fail:
22484 return NULL;
22485}
22486
22487
22488SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22489 PyObject *resultobj = 0;
22490 wxDC *arg1 = (wxDC *) 0 ;
22491 int arg2 ;
22492 int arg3 ;
22493 void *argp1 = 0 ;
22494 int res1 = 0 ;
22495 int val2 ;
22496 int ecode2 = 0 ;
22497 int val3 ;
22498 int ecode3 = 0 ;
22499 PyObject * obj0 = 0 ;
22500 PyObject * obj1 = 0 ;
22501 PyObject * obj2 = 0 ;
22502 char * kwnames[] = {
22503 (char *) "self",(char *) "x",(char *) "y", NULL
22504 };
22505
22506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22508 if (!SWIG_IsOK(res1)) {
22509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22510 }
22511 arg1 = reinterpret_cast< wxDC * >(argp1);
22512 ecode2 = SWIG_AsVal_int(obj1, &val2);
22513 if (!SWIG_IsOK(ecode2)) {
22514 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22515 }
22516 arg2 = static_cast< int >(val2);
22517 ecode3 = SWIG_AsVal_int(obj2, &val3);
22518 if (!SWIG_IsOK(ecode3)) {
22519 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22520 }
22521 arg3 = static_cast< int >(val3);
22522 {
22523 PyThreadState* __tstate = wxPyBeginAllowThreads();
22524 (arg1)->CalcBoundingBox(arg2,arg3);
22525 wxPyEndAllowThreads(__tstate);
22526 if (PyErr_Occurred()) SWIG_fail;
22527 }
22528 resultobj = SWIG_Py_Void();
22529 return resultobj;
22530fail:
22531 return NULL;
22532}
22533
22534
22535SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22536 PyObject *resultobj = 0;
22537 wxDC *arg1 = (wxDC *) 0 ;
22538 wxPoint *arg2 = 0 ;
22539 void *argp1 = 0 ;
22540 int res1 = 0 ;
22541 wxPoint temp2 ;
22542 PyObject * obj0 = 0 ;
22543 PyObject * obj1 = 0 ;
22544 char * kwnames[] = {
22545 (char *) "self",(char *) "point", NULL
22546 };
22547
22548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22550 if (!SWIG_IsOK(res1)) {
22551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22552 }
22553 arg1 = reinterpret_cast< wxDC * >(argp1);
22554 {
22555 arg2 = &temp2;
22556 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22557 }
22558 {
22559 PyThreadState* __tstate = wxPyBeginAllowThreads();
22560 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
22561 wxPyEndAllowThreads(__tstate);
22562 if (PyErr_Occurred()) SWIG_fail;
22563 }
22564 resultobj = SWIG_Py_Void();
22565 return resultobj;
22566fail:
22567 return NULL;
22568}
22569
22570
22571SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22572 PyObject *resultobj = 0;
22573 wxDC *arg1 = (wxDC *) 0 ;
22574 void *argp1 = 0 ;
22575 int res1 = 0 ;
22576 PyObject *swig_obj[1] ;
22577
22578 if (!args) SWIG_fail;
22579 swig_obj[0] = args;
22580 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22581 if (!SWIG_IsOK(res1)) {
22582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22583 }
22584 arg1 = reinterpret_cast< wxDC * >(argp1);
22585 {
22586 PyThreadState* __tstate = wxPyBeginAllowThreads();
22587 (arg1)->ResetBoundingBox();
22588 wxPyEndAllowThreads(__tstate);
22589 if (PyErr_Occurred()) SWIG_fail;
22590 }
22591 resultobj = SWIG_Py_Void();
22592 return resultobj;
22593fail:
22594 return NULL;
22595}
22596
22597
22598SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22599 PyObject *resultobj = 0;
22600 wxDC *arg1 = (wxDC *) 0 ;
22601 int result;
22602 void *argp1 = 0 ;
22603 int res1 = 0 ;
22604 PyObject *swig_obj[1] ;
22605
22606 if (!args) SWIG_fail;
22607 swig_obj[0] = args;
22608 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22609 if (!SWIG_IsOK(res1)) {
22610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
22611 }
22612 arg1 = reinterpret_cast< wxDC * >(argp1);
22613 {
22614 PyThreadState* __tstate = wxPyBeginAllowThreads();
22615 result = (int)((wxDC const *)arg1)->MinX();
22616 wxPyEndAllowThreads(__tstate);
22617 if (PyErr_Occurred()) SWIG_fail;
22618 }
22619 resultobj = SWIG_From_int(static_cast< int >(result));
22620 return resultobj;
22621fail:
22622 return NULL;
22623}
22624
22625
22626SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22627 PyObject *resultobj = 0;
22628 wxDC *arg1 = (wxDC *) 0 ;
22629 int result;
22630 void *argp1 = 0 ;
22631 int res1 = 0 ;
22632 PyObject *swig_obj[1] ;
22633
22634 if (!args) SWIG_fail;
22635 swig_obj[0] = args;
22636 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22637 if (!SWIG_IsOK(res1)) {
22638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
22639 }
22640 arg1 = reinterpret_cast< wxDC * >(argp1);
22641 {
22642 PyThreadState* __tstate = wxPyBeginAllowThreads();
22643 result = (int)((wxDC const *)arg1)->MaxX();
22644 wxPyEndAllowThreads(__tstate);
22645 if (PyErr_Occurred()) SWIG_fail;
22646 }
22647 resultobj = SWIG_From_int(static_cast< int >(result));
22648 return resultobj;
22649fail:
22650 return NULL;
22651}
22652
22653
22654SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22655 PyObject *resultobj = 0;
22656 wxDC *arg1 = (wxDC *) 0 ;
22657 int result;
22658 void *argp1 = 0 ;
22659 int res1 = 0 ;
22660 PyObject *swig_obj[1] ;
22661
22662 if (!args) SWIG_fail;
22663 swig_obj[0] = args;
22664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22665 if (!SWIG_IsOK(res1)) {
22666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
22667 }
22668 arg1 = reinterpret_cast< wxDC * >(argp1);
22669 {
22670 PyThreadState* __tstate = wxPyBeginAllowThreads();
22671 result = (int)((wxDC const *)arg1)->MinY();
22672 wxPyEndAllowThreads(__tstate);
22673 if (PyErr_Occurred()) SWIG_fail;
22674 }
22675 resultobj = SWIG_From_int(static_cast< int >(result));
22676 return resultobj;
22677fail:
22678 return NULL;
22679}
22680
22681
22682SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22683 PyObject *resultobj = 0;
22684 wxDC *arg1 = (wxDC *) 0 ;
22685 int result;
22686 void *argp1 = 0 ;
22687 int res1 = 0 ;
22688 PyObject *swig_obj[1] ;
22689
22690 if (!args) SWIG_fail;
22691 swig_obj[0] = args;
22692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22693 if (!SWIG_IsOK(res1)) {
22694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
22695 }
22696 arg1 = reinterpret_cast< wxDC * >(argp1);
22697 {
22698 PyThreadState* __tstate = wxPyBeginAllowThreads();
22699 result = (int)((wxDC const *)arg1)->MaxY();
22700 wxPyEndAllowThreads(__tstate);
22701 if (PyErr_Occurred()) SWIG_fail;
22702 }
22703 resultobj = SWIG_From_int(static_cast< int >(result));
22704 return resultobj;
22705fail:
22706 return NULL;
22707}
22708
22709
22710SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22711 PyObject *resultobj = 0;
22712 wxDC *arg1 = (wxDC *) 0 ;
22713 int *arg2 = (int *) 0 ;
22714 int *arg3 = (int *) 0 ;
22715 int *arg4 = (int *) 0 ;
22716 int *arg5 = (int *) 0 ;
22717 void *argp1 = 0 ;
22718 int res1 = 0 ;
22719 int temp2 ;
22720 int res2 = SWIG_TMPOBJ ;
22721 int temp3 ;
22722 int res3 = SWIG_TMPOBJ ;
22723 int temp4 ;
22724 int res4 = SWIG_TMPOBJ ;
22725 int temp5 ;
22726 int res5 = SWIG_TMPOBJ ;
22727 PyObject *swig_obj[1] ;
22728
22729 arg2 = &temp2;
22730 arg3 = &temp3;
22731 arg4 = &temp4;
22732 arg5 = &temp5;
22733 if (!args) SWIG_fail;
22734 swig_obj[0] = args;
22735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22736 if (!SWIG_IsOK(res1)) {
22737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22738 }
22739 arg1 = reinterpret_cast< wxDC * >(argp1);
22740 {
22741 PyThreadState* __tstate = wxPyBeginAllowThreads();
22742 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
22743 wxPyEndAllowThreads(__tstate);
22744 if (PyErr_Occurred()) SWIG_fail;
22745 }
22746 resultobj = SWIG_Py_Void();
22747 if (SWIG_IsTmpObj(res2)) {
22748 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22749 } else {
22750 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22751 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22752 }
22753 if (SWIG_IsTmpObj(res3)) {
22754 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22755 } else {
22756 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22757 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22758 }
22759 if (SWIG_IsTmpObj(res4)) {
22760 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22761 } else {
22762 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22763 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22764 }
22765 if (SWIG_IsTmpObj(res5)) {
22766 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
22767 } else {
22768 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22769 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
22770 }
22771 return resultobj;
22772fail:
22773 return NULL;
22774}
22775
22776
b39fe951
RD
22777SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22778 PyObject *resultobj = 0;
22779 wxDC *arg1 = (wxDC *) 0 ;
22780 wxLayoutDirection result;
22781 void *argp1 = 0 ;
22782 int res1 = 0 ;
22783 PyObject *swig_obj[1] ;
22784
22785 if (!args) SWIG_fail;
22786 swig_obj[0] = args;
22787 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22788 if (!SWIG_IsOK(res1)) {
22789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
22790 }
22791 arg1 = reinterpret_cast< wxDC * >(argp1);
22792 {
22793 PyThreadState* __tstate = wxPyBeginAllowThreads();
22794 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
22795 wxPyEndAllowThreads(__tstate);
22796 if (PyErr_Occurred()) SWIG_fail;
22797 }
22798 resultobj = SWIG_From_int(static_cast< int >(result));
22799 return resultobj;
22800fail:
22801 return NULL;
22802}
22803
22804
22805SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22806 PyObject *resultobj = 0;
22807 wxDC *arg1 = (wxDC *) 0 ;
22808 wxLayoutDirection arg2 ;
22809 void *argp1 = 0 ;
22810 int res1 = 0 ;
22811 int val2 ;
22812 int ecode2 = 0 ;
22813 PyObject * obj0 = 0 ;
22814 PyObject * obj1 = 0 ;
22815 char * kwnames[] = {
22816 (char *) "self",(char *) "dir", NULL
22817 };
22818
22819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
22820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22821 if (!SWIG_IsOK(res1)) {
22822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
22823 }
22824 arg1 = reinterpret_cast< wxDC * >(argp1);
22825 ecode2 = SWIG_AsVal_int(obj1, &val2);
22826 if (!SWIG_IsOK(ecode2)) {
22827 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
22828 }
22829 arg2 = static_cast< wxLayoutDirection >(val2);
22830 {
22831 PyThreadState* __tstate = wxPyBeginAllowThreads();
22832 (arg1)->SetLayoutDirection(arg2);
22833 wxPyEndAllowThreads(__tstate);
22834 if (PyErr_Occurred()) SWIG_fail;
22835 }
22836 resultobj = SWIG_Py_Void();
22837 return resultobj;
22838fail:
22839 return NULL;
22840}
22841
22842
1bd55598
RD
22843SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22844 PyObject *resultobj = 0;
22845 wxDC *arg1 = (wxDC *) 0 ;
22846 PyObject *arg2 = (PyObject *) 0 ;
22847 PyObject *arg3 = (PyObject *) 0 ;
22848 PyObject *arg4 = (PyObject *) 0 ;
22849 PyObject *result = 0 ;
22850 void *argp1 = 0 ;
22851 int res1 = 0 ;
22852 PyObject * obj0 = 0 ;
22853 PyObject * obj1 = 0 ;
22854 PyObject * obj2 = 0 ;
22855 PyObject * obj3 = 0 ;
22856 char * kwnames[] = {
22857 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22858 };
22859
22860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22862 if (!SWIG_IsOK(res1)) {
22863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
22864 }
22865 arg1 = reinterpret_cast< wxDC * >(argp1);
22866 arg2 = obj1;
22867 arg3 = obj2;
22868 arg4 = obj3;
22869 {
22870 PyThreadState* __tstate = wxPyBeginAllowThreads();
22871 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
22872 wxPyEndAllowThreads(__tstate);
22873 if (PyErr_Occurred()) SWIG_fail;
22874 }
22875 resultobj = result;
22876 return resultobj;
22877fail:
22878 return NULL;
22879}
22880
22881
22882SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22883 PyObject *resultobj = 0;
22884 wxDC *arg1 = (wxDC *) 0 ;
22885 PyObject *arg2 = (PyObject *) 0 ;
22886 PyObject *arg3 = (PyObject *) 0 ;
22887 PyObject *arg4 = (PyObject *) 0 ;
22888 PyObject *result = 0 ;
22889 void *argp1 = 0 ;
22890 int res1 = 0 ;
22891 PyObject * obj0 = 0 ;
22892 PyObject * obj1 = 0 ;
22893 PyObject * obj2 = 0 ;
22894 PyObject * obj3 = 0 ;
22895 char * kwnames[] = {
22896 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22897 };
22898
22899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22901 if (!SWIG_IsOK(res1)) {
22902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
22903 }
22904 arg1 = reinterpret_cast< wxDC * >(argp1);
22905 arg2 = obj1;
22906 arg3 = obj2;
22907 arg4 = obj3;
22908 {
22909 PyThreadState* __tstate = wxPyBeginAllowThreads();
22910 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
22911 wxPyEndAllowThreads(__tstate);
22912 if (PyErr_Occurred()) SWIG_fail;
22913 }
22914 resultobj = result;
22915 return resultobj;
22916fail:
22917 return NULL;
22918}
22919
22920
22921SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22922 PyObject *resultobj = 0;
22923 wxDC *arg1 = (wxDC *) 0 ;
22924 PyObject *arg2 = (PyObject *) 0 ;
22925 PyObject *arg3 = (PyObject *) 0 ;
22926 PyObject *arg4 = (PyObject *) 0 ;
22927 PyObject *result = 0 ;
22928 void *argp1 = 0 ;
22929 int res1 = 0 ;
22930 PyObject * obj0 = 0 ;
22931 PyObject * obj1 = 0 ;
22932 PyObject * obj2 = 0 ;
22933 PyObject * obj3 = 0 ;
22934 char * kwnames[] = {
22935 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22936 };
22937
22938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22940 if (!SWIG_IsOK(res1)) {
22941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
22942 }
22943 arg1 = reinterpret_cast< wxDC * >(argp1);
22944 arg2 = obj1;
22945 arg3 = obj2;
22946 arg4 = obj3;
22947 {
22948 PyThreadState* __tstate = wxPyBeginAllowThreads();
22949 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
22950 wxPyEndAllowThreads(__tstate);
22951 if (PyErr_Occurred()) SWIG_fail;
22952 }
22953 resultobj = result;
22954 return resultobj;
22955fail:
22956 return NULL;
22957}
22958
22959
22960SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22961 PyObject *resultobj = 0;
22962 wxDC *arg1 = (wxDC *) 0 ;
22963 PyObject *arg2 = (PyObject *) 0 ;
22964 PyObject *arg3 = (PyObject *) 0 ;
22965 PyObject *arg4 = (PyObject *) 0 ;
22966 PyObject *result = 0 ;
22967 void *argp1 = 0 ;
22968 int res1 = 0 ;
22969 PyObject * obj0 = 0 ;
22970 PyObject * obj1 = 0 ;
22971 PyObject * obj2 = 0 ;
22972 PyObject * obj3 = 0 ;
22973 char * kwnames[] = {
22974 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22975 };
22976
22977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22979 if (!SWIG_IsOK(res1)) {
22980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
22981 }
22982 arg1 = reinterpret_cast< wxDC * >(argp1);
22983 arg2 = obj1;
22984 arg3 = obj2;
22985 arg4 = obj3;
22986 {
22987 PyThreadState* __tstate = wxPyBeginAllowThreads();
22988 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
22989 wxPyEndAllowThreads(__tstate);
22990 if (PyErr_Occurred()) SWIG_fail;
22991 }
22992 resultobj = result;
22993 return resultobj;
22994fail:
22995 return NULL;
22996}
22997
22998
22999SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23000 PyObject *resultobj = 0;
23001 wxDC *arg1 = (wxDC *) 0 ;
23002 PyObject *arg2 = (PyObject *) 0 ;
23003 PyObject *arg3 = (PyObject *) 0 ;
23004 PyObject *arg4 = (PyObject *) 0 ;
23005 PyObject *result = 0 ;
23006 void *argp1 = 0 ;
23007 int res1 = 0 ;
23008 PyObject * obj0 = 0 ;
23009 PyObject * obj1 = 0 ;
23010 PyObject * obj2 = 0 ;
23011 PyObject * obj3 = 0 ;
23012 char * kwnames[] = {
23013 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23014 };
23015
23016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23018 if (!SWIG_IsOK(res1)) {
23019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23020 }
23021 arg1 = reinterpret_cast< wxDC * >(argp1);
23022 arg2 = obj1;
23023 arg3 = obj2;
23024 arg4 = obj3;
23025 {
23026 PyThreadState* __tstate = wxPyBeginAllowThreads();
23027 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23028 wxPyEndAllowThreads(__tstate);
23029 if (PyErr_Occurred()) SWIG_fail;
23030 }
23031 resultobj = result;
23032 return resultobj;
23033fail:
23034 return NULL;
23035}
23036
23037
23038SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23039 PyObject *resultobj = 0;
23040 wxDC *arg1 = (wxDC *) 0 ;
23041 PyObject *arg2 = (PyObject *) 0 ;
23042 PyObject *arg3 = (PyObject *) 0 ;
23043 PyObject *arg4 = (PyObject *) 0 ;
23044 PyObject *arg5 = (PyObject *) 0 ;
23045 PyObject *result = 0 ;
23046 void *argp1 = 0 ;
23047 int res1 = 0 ;
23048 PyObject * obj0 = 0 ;
23049 PyObject * obj1 = 0 ;
23050 PyObject * obj2 = 0 ;
23051 PyObject * obj3 = 0 ;
23052 PyObject * obj4 = 0 ;
23053 char * kwnames[] = {
23054 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23055 };
23056
23057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23059 if (!SWIG_IsOK(res1)) {
23060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23061 }
23062 arg1 = reinterpret_cast< wxDC * >(argp1);
23063 arg2 = obj1;
23064 arg3 = obj2;
23065 arg4 = obj3;
23066 arg5 = obj4;
23067 {
23068 PyThreadState* __tstate = wxPyBeginAllowThreads();
23069 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23070 wxPyEndAllowThreads(__tstate);
23071 if (PyErr_Occurred()) SWIG_fail;
23072 }
23073 resultobj = result;
23074 return resultobj;
23075fail:
23076 return NULL;
23077}
23078
23079
23080SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23081 PyObject *obj;
23082 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23083 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23084 return SWIG_Py_Void();
23085}
23086
23087SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23088 PyObject *resultobj = 0;
23089 wxMemoryDC *result = 0 ;
23090
23091 if (!SWIG_Python_UnpackTuple(args,"new_MemoryDC",0,0,0)) SWIG_fail;
23092 {
23093 if (!wxPyCheckForApp()) SWIG_fail;
23094 PyThreadState* __tstate = wxPyBeginAllowThreads();
23095 result = (wxMemoryDC *)new wxMemoryDC();
23096 wxPyEndAllowThreads(__tstate);
23097 if (PyErr_Occurred()) SWIG_fail;
23098 }
23099 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
23100 return resultobj;
23101fail:
23102 return NULL;
23103}
23104
23105
23106SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23107 PyObject *resultobj = 0;
23108 wxDC *arg1 = (wxDC *) 0 ;
23109 wxMemoryDC *result = 0 ;
23110 void *argp1 = 0 ;
23111 int res1 = 0 ;
23112 PyObject * obj0 = 0 ;
23113 char * kwnames[] = {
23114 (char *) "oldDC", NULL
23115 };
23116
23117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
23118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23119 if (!SWIG_IsOK(res1)) {
23120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
23121 }
23122 arg1 = reinterpret_cast< wxDC * >(argp1);
23123 {
23124 if (!wxPyCheckForApp()) SWIG_fail;
23125 PyThreadState* __tstate = wxPyBeginAllowThreads();
23126 result = (wxMemoryDC *)new wxMemoryDC(arg1);
23127 wxPyEndAllowThreads(__tstate);
23128 if (PyErr_Occurred()) SWIG_fail;
23129 }
23130 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
23131 return resultobj;
23132fail:
23133 return NULL;
23134}
23135
23136
23137SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23138 PyObject *resultobj = 0;
23139 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
23140 wxBitmap *arg2 = 0 ;
23141 void *argp1 = 0 ;
23142 int res1 = 0 ;
23143 void *argp2 = 0 ;
23144 int res2 = 0 ;
23145 PyObject * obj0 = 0 ;
23146 PyObject * obj1 = 0 ;
23147 char * kwnames[] = {
23148 (char *) "self",(char *) "bitmap", NULL
23149 };
23150
23151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
23152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
23153 if (!SWIG_IsOK(res1)) {
23154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
23155 }
23156 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
23157 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23158 if (!SWIG_IsOK(res2)) {
23159 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23160 }
23161 if (!argp2) {
23162 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23163 }
23164 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23165 {
23166 PyThreadState* __tstate = wxPyBeginAllowThreads();
23167 (arg1)->SelectObject((wxBitmap const &)*arg2);
23168 wxPyEndAllowThreads(__tstate);
23169 if (PyErr_Occurred()) SWIG_fail;
23170 }
23171 resultobj = SWIG_Py_Void();
23172 return resultobj;
23173fail:
23174 return NULL;
23175}
23176
23177
23178SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23179 PyObject *obj;
23180 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23181 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
23182 return SWIG_Py_Void();
23183}
23184
23185SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23186 return SWIG_Python_InitShadowInstance(args);
23187}
23188
23189SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23190 PyObject *resultobj = 0;
23191 wxDC *arg1 = (wxDC *) 0 ;
23192 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23193 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23194 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23195 wxBufferedDC *result = 0 ;
23196 void *argp1 = 0 ;
23197 int res1 = 0 ;
23198 void *argp2 = 0 ;
23199 int res2 = 0 ;
23200 int val3 ;
23201 int ecode3 = 0 ;
23202
23203 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
23204 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23205 if (!SWIG_IsOK(res1)) {
23206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23207 }
23208 arg1 = reinterpret_cast< wxDC * >(argp1);
23209 if (swig_obj[1]) {
23210 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23211 if (!SWIG_IsOK(res2)) {
23212 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36ed4f51 23213 }
1bd55598
RD
23214 if (!argp2) {
23215 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36ed4f51 23216 }
1bd55598
RD
23217 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23218 }
23219 if (swig_obj[2]) {
23220 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23221 if (!SWIG_IsOK(ecode3)) {
23222 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23223 }
23224 arg3 = static_cast< int >(val3);
23225 }
23226 {
23227 if (!wxPyCheckForApp()) SWIG_fail;
23228 PyThreadState* __tstate = wxPyBeginAllowThreads();
23229 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
23230 wxPyEndAllowThreads(__tstate);
23231 if (PyErr_Occurred()) SWIG_fail;
23232 }
23233 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23234 return resultobj;
23235fail:
23236 return NULL;
23237}
23238
23239
23240SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23241 PyObject *resultobj = 0;
23242 wxDC *arg1 = (wxDC *) 0 ;
23243 wxSize *arg2 = 0 ;
23244 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23245 wxBufferedDC *result = 0 ;
23246 void *argp1 = 0 ;
23247 int res1 = 0 ;
23248 wxSize temp2 ;
23249 int val3 ;
23250 int ecode3 = 0 ;
23251
23252 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
23253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23254 if (!SWIG_IsOK(res1)) {
23255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23256 }
23257 arg1 = reinterpret_cast< wxDC * >(argp1);
23258 {
23259 arg2 = &temp2;
23260 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
23261 }
23262 if (swig_obj[2]) {
23263 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23264 if (!SWIG_IsOK(ecode3)) {
23265 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23266 }
23267 arg3 = static_cast< int >(val3);
23268 }
23269 {
23270 if (!wxPyCheckForApp()) SWIG_fail;
23271 PyThreadState* __tstate = wxPyBeginAllowThreads();
23272 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
23273 wxPyEndAllowThreads(__tstate);
23274 if (PyErr_Occurred()) SWIG_fail;
23275 }
23276 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23277 return resultobj;
23278fail:
23279 return NULL;
23280}
23281
23282
b39fe951
RD
23283SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23284 PyObject *resultobj = 0;
23285 wxWindow *arg1 = (wxWindow *) 0 ;
23286 wxDC *arg2 = (wxDC *) 0 ;
23287 wxSize *arg3 = 0 ;
23288 int arg4 = (int) wxBUFFER_CLIENT_AREA ;
23289 wxBufferedDC *result = 0 ;
23290 void *argp1 = 0 ;
23291 int res1 = 0 ;
23292 void *argp2 = 0 ;
23293 int res2 = 0 ;
23294 wxSize temp3 ;
23295 int val4 ;
23296 int ecode4 = 0 ;
23297
23298 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
23299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23300 if (!SWIG_IsOK(res1)) {
23301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23302 }
23303 arg1 = reinterpret_cast< wxWindow * >(argp1);
23304 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
23305 if (!SWIG_IsOK(res2)) {
23306 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxDC *""'");
23307 }
23308 arg2 = reinterpret_cast< wxDC * >(argp2);
23309 {
23310 arg3 = &temp3;
23311 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
23312 }
23313 if (swig_obj[3]) {
23314 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
23315 if (!SWIG_IsOK(ecode4)) {
23316 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BufferedDC" "', expected argument " "4"" of type '" "int""'");
23317 }
23318 arg4 = static_cast< int >(val4);
23319 }
23320 {
23321 if (!wxPyCheckForApp()) SWIG_fail;
23322 PyThreadState* __tstate = wxPyBeginAllowThreads();
23323 result = (wxBufferedDC *)new wxBufferedDC(arg1,arg2,(wxSize const &)*arg3,arg4);
23324 wxPyEndAllowThreads(__tstate);
23325 if (PyErr_Occurred()) SWIG_fail;
23326 }
23327 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23328 return resultobj;
23329fail:
23330 return NULL;
23331}
23332
23333
1bd55598
RD
23334SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
23335 int argc;
b39fe951 23336 PyObject *argv[5];
1bd55598 23337
b39fe951 23338 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,4,argv))) SWIG_fail;
1bd55598
RD
23339 --argc;
23340 if ((argc >= 1) && (argc <= 3)) {
23341 int _v = 0;
b39fe951
RD
23342 {
23343 void *vptr = 0;
23344 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_wxDC, 0);
23345 _v = SWIG_CheckState(res);
23346 }
23347 if (!_v) goto check_1;
1bd55598
RD
23348 if (argc > 1) {
23349 {
23350 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
23351 _v = SWIG_CheckState(res);
23352 }
23353 if (!_v) goto check_1;
b39fe951
RD
23354 if (argc > 2) {
23355 {
23356 {
23357 int res = SWIG_AsVal_int(argv[2], NULL);
23358 _v = SWIG_CheckState(res);
23359 }
23360 }
23361 if (!_v) goto check_1;
23362 }
36ed4f51 23363 }
1bd55598
RD
23364 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
23365 }
23366check_1:
23367
23368 if ((argc >= 2) && (argc <= 3)) {
b39fe951
RD
23369 int _v = 0;
23370 {
23371 void *vptr = 0;
23372 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_wxDC, 0);
23373 _v = SWIG_CheckState(res);
23374 }
23375 if (!_v) goto check_2;
23376 {
23377 {
23378 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
23379 }
23380 }
23381 if (!_v) goto check_2;
23382 if (argc > 2) {
23383 {
23384 {
23385 int res = SWIG_AsVal_int(argv[2], NULL);
23386 _v = SWIG_CheckState(res);
23387 }
23388 }
23389 if (!_v) goto check_2;
23390 }
1bd55598
RD
23391 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
23392 }
b39fe951
RD
23393check_2:
23394
23395 if ((argc >= 3) && (argc <= 4)) {
23396 return _wrap_new_BufferedDC__SWIG_2(self, argc, argv);
23397 }
1bd55598
RD
23398
23399fail:
23400 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
23401 return NULL;
23402}
23403
23404
23405SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23406 PyObject *resultobj = 0;
23407 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23408 void *argp1 = 0 ;
23409 int res1 = 0 ;
23410 PyObject *swig_obj[1] ;
23411
23412 if (!args) SWIG_fail;
23413 swig_obj[0] = args;
23414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
23415 if (!SWIG_IsOK(res1)) {
23416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23417 }
23418 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23419 {
23420 PyThreadState* __tstate = wxPyBeginAllowThreads();
23421 delete arg1;
23422
23423 wxPyEndAllowThreads(__tstate);
23424 if (PyErr_Occurred()) SWIG_fail;
23425 }
23426 resultobj = SWIG_Py_Void();
23427 return resultobj;
23428fail:
23429 return NULL;
23430}
23431
23432
23433SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23434 PyObject *resultobj = 0;
23435 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23436 void *argp1 = 0 ;
23437 int res1 = 0 ;
23438 PyObject *swig_obj[1] ;
23439
23440 if (!args) SWIG_fail;
23441 swig_obj[0] = args;
23442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
23443 if (!SWIG_IsOK(res1)) {
23444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23445 }
23446 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23447 {
23448 PyThreadState* __tstate = wxPyBeginAllowThreads();
23449 (arg1)->UnMask();
23450 wxPyEndAllowThreads(__tstate);
23451 if (PyErr_Occurred()) SWIG_fail;
23452 }
23453 resultobj = SWIG_Py_Void();
23454 return resultobj;
23455fail:
23456 return NULL;
23457}
23458
23459
23460SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23461 PyObject *obj;
23462 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23463 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
23464 return SWIG_Py_Void();
23465}
23466
23467SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23468 return SWIG_Python_InitShadowInstance(args);
23469}
23470
23471SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23472 PyObject *resultobj = 0;
23473 wxWindow *arg1 = (wxWindow *) 0 ;
23474 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23475 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23476 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23477 wxBufferedPaintDC *result = 0 ;
23478 void *argp1 = 0 ;
23479 int res1 = 0 ;
23480 void *argp2 = 0 ;
23481 int res2 = 0 ;
23482 int val3 ;
23483 int ecode3 = 0 ;
23484 PyObject * obj0 = 0 ;
23485 PyObject * obj1 = 0 ;
23486 PyObject * obj2 = 0 ;
23487 char * kwnames[] = {
23488 (char *) "window",(char *) "buffer",(char *) "style", NULL
23489 };
23490
23491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23493 if (!SWIG_IsOK(res1)) {
23494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23495 }
23496 arg1 = reinterpret_cast< wxWindow * >(argp1);
23497 if (obj1) {
23498 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23499 if (!SWIG_IsOK(res2)) {
23500 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36ed4f51 23501 }
1bd55598
RD
23502 if (!argp2) {
23503 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36ed4f51 23504 }
1bd55598
RD
23505 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23506 }
23507 if (obj2) {
23508 ecode3 = SWIG_AsVal_int(obj2, &val3);
23509 if (!SWIG_IsOK(ecode3)) {
23510 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
23511 }
23512 arg3 = static_cast< int >(val3);
23513 }
23514 {
23515 if (!wxPyCheckForApp()) SWIG_fail;
23516 PyThreadState* __tstate = wxPyBeginAllowThreads();
23517 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
23518 wxPyEndAllowThreads(__tstate);
23519 if (PyErr_Occurred()) SWIG_fail;
23520 }
23521 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
23522 return resultobj;
23523fail:
23524 return NULL;
23525}
23526
23527
23528SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23529 PyObject *obj;
23530 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23531 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
23532 return SWIG_Py_Void();
23533}
23534
23535SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23536 return SWIG_Python_InitShadowInstance(args);
23537}
23538
23539SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23540 PyObject *resultobj = 0;
23541 wxScreenDC *result = 0 ;
23542
23543 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23544 {
23545 if (!wxPyCheckForApp()) SWIG_fail;
23546 PyThreadState* __tstate = wxPyBeginAllowThreads();
23547 result = (wxScreenDC *)new wxScreenDC();
23548 wxPyEndAllowThreads(__tstate);
23549 if (PyErr_Occurred()) SWIG_fail;
23550 }
23551 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23552 return resultobj;
23553fail:
23554 return NULL;
23555}
23556
23557
23558SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23559 PyObject *resultobj = 0;
23560 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23561 wxWindow *arg2 = (wxWindow *) 0 ;
23562 bool result;
23563 void *argp1 = 0 ;
23564 int res1 = 0 ;
23565 void *argp2 = 0 ;
23566 int res2 = 0 ;
23567 PyObject * obj0 = 0 ;
23568 PyObject * obj1 = 0 ;
23569 char * kwnames[] = {
23570 (char *) "self",(char *) "window", NULL
23571 };
23572
23573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23575 if (!SWIG_IsOK(res1)) {
23576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23577 }
23578 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23579 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23580 if (!SWIG_IsOK(res2)) {
23581 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23582 }
23583 arg2 = reinterpret_cast< wxWindow * >(argp2);
23584 {
23585 PyThreadState* __tstate = wxPyBeginAllowThreads();
23586 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23587 wxPyEndAllowThreads(__tstate);
23588 if (PyErr_Occurred()) SWIG_fail;
23589 }
23590 {
23591 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23592 }
23593 return resultobj;
23594fail:
23595 return NULL;
23596}
23597
23598
23599SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23600 PyObject *resultobj = 0;
23601 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23602 wxRect *arg2 = (wxRect *) NULL ;
23603 bool result;
23604 void *argp1 = 0 ;
23605 int res1 = 0 ;
23606 void *argp2 = 0 ;
23607 int res2 = 0 ;
23608 PyObject * obj0 = 0 ;
23609 PyObject * obj1 = 0 ;
23610 char * kwnames[] = {
23611 (char *) "self",(char *) "rect", NULL
23612 };
23613
23614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
23615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23616 if (!SWIG_IsOK(res1)) {
23617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23618 }
23619 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23620 if (obj1) {
23621 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
23622 if (!SWIG_IsOK(res2)) {
23623 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
e2950dbb 23624 }
1bd55598
RD
23625 arg2 = reinterpret_cast< wxRect * >(argp2);
23626 }
23627 {
23628 PyThreadState* __tstate = wxPyBeginAllowThreads();
23629 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23630 wxPyEndAllowThreads(__tstate);
23631 if (PyErr_Occurred()) SWIG_fail;
23632 }
23633 {
23634 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23635 }
23636 return resultobj;
23637fail:
23638 return NULL;
23639}
23640
23641
23642SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23643 PyObject *resultobj = 0;
23644 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23645 bool result;
23646 void *argp1 = 0 ;
23647 int res1 = 0 ;
23648 PyObject *swig_obj[1] ;
23649
23650 if (!args) SWIG_fail;
23651 swig_obj[0] = args;
23652 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23653 if (!SWIG_IsOK(res1)) {
23654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23655 }
23656 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23657 {
23658 PyThreadState* __tstate = wxPyBeginAllowThreads();
23659 result = (bool)(arg1)->EndDrawingOnTop();
23660 wxPyEndAllowThreads(__tstate);
23661 if (PyErr_Occurred()) SWIG_fail;
23662 }
23663 {
23664 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23665 }
23666 return resultobj;
23667fail:
23668 return NULL;
23669}
23670
23671
23672SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23673 PyObject *obj;
23674 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23675 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
23676 return SWIG_Py_Void();
23677}
23678
23679SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23680 return SWIG_Python_InitShadowInstance(args);
23681}
23682
72ef6efb 23683SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
23684 PyObject *resultobj = 0;
23685 wxWindow *arg1 = (wxWindow *) 0 ;
72ef6efb 23686 wxWindowDC *result = 0 ;
1bd55598
RD
23687 void *argp1 = 0 ;
23688 int res1 = 0 ;
23689 PyObject * obj0 = 0 ;
23690 char * kwnames[] = {
23691 (char *) "win", NULL
23692 };
23693
72ef6efb 23694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
1bd55598
RD
23695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23696 if (!SWIG_IsOK(res1)) {
72ef6efb 23697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
1bd55598
RD
23698 }
23699 arg1 = reinterpret_cast< wxWindow * >(argp1);
23700 {
23701 if (!wxPyCheckForApp()) SWIG_fail;
23702 PyThreadState* __tstate = wxPyBeginAllowThreads();
72ef6efb 23703 result = (wxWindowDC *)new wxWindowDC(arg1);
1bd55598
RD
23704 wxPyEndAllowThreads(__tstate);
23705 if (PyErr_Occurred()) SWIG_fail;
23706 }
72ef6efb 23707 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
1bd55598
RD
23708 return resultobj;
23709fail:
23710 return NULL;
23711}
23712
23713
72ef6efb 23714SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
23715 PyObject *obj;
23716 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
72ef6efb 23717 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
1bd55598
RD
23718 return SWIG_Py_Void();
23719}
23720
72ef6efb 23721SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
23722 return SWIG_Python_InitShadowInstance(args);
23723}
23724
72ef6efb 23725SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
23726 PyObject *resultobj = 0;
23727 wxWindow *arg1 = (wxWindow *) 0 ;
72ef6efb 23728 wxClientDC *result = 0 ;
1bd55598
RD
23729 void *argp1 = 0 ;
23730 int res1 = 0 ;
23731 PyObject * obj0 = 0 ;
23732 char * kwnames[] = {
23733 (char *) "win", NULL
23734 };
23735
72ef6efb 23736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
1bd55598
RD
23737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23738 if (!SWIG_IsOK(res1)) {
72ef6efb 23739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
1bd55598
RD
23740 }
23741 arg1 = reinterpret_cast< wxWindow * >(argp1);
23742 {
23743 if (!wxPyCheckForApp()) SWIG_fail;
23744 PyThreadState* __tstate = wxPyBeginAllowThreads();
72ef6efb 23745 result = (wxClientDC *)new wxClientDC(arg1);
1bd55598
RD
23746 wxPyEndAllowThreads(__tstate);
23747 if (PyErr_Occurred()) SWIG_fail;
23748 }
72ef6efb 23749 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
1bd55598
RD
23750 return resultobj;
23751fail:
23752 return NULL;
23753}
23754
23755
72ef6efb 23756SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
23757 PyObject *obj;
23758 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
72ef6efb 23759 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
1bd55598
RD
23760 return SWIG_Py_Void();
23761}
23762
72ef6efb 23763SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
23764 return SWIG_Python_InitShadowInstance(args);
23765}
23766
72ef6efb 23767SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
23768 PyObject *resultobj = 0;
23769 wxWindow *arg1 = (wxWindow *) 0 ;
72ef6efb 23770 wxPaintDC *result = 0 ;
1bd55598
RD
23771 void *argp1 = 0 ;
23772 int res1 = 0 ;
23773 PyObject * obj0 = 0 ;
23774 char * kwnames[] = {
23775 (char *) "win", NULL
23776 };
23777
72ef6efb 23778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
1bd55598
RD
23779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23780 if (!SWIG_IsOK(res1)) {
72ef6efb 23781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
1bd55598
RD
23782 }
23783 arg1 = reinterpret_cast< wxWindow * >(argp1);
23784 {
23785 if (!wxPyCheckForApp()) SWIG_fail;
23786 PyThreadState* __tstate = wxPyBeginAllowThreads();
72ef6efb 23787 result = (wxPaintDC *)new wxPaintDC(arg1);
1bd55598
RD
23788 wxPyEndAllowThreads(__tstate);
23789 if (PyErr_Occurred()) SWIG_fail;
23790 }
72ef6efb 23791 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
1bd55598
RD
23792 return resultobj;
23793fail:
23794 return NULL;
23795}
23796
23797
72ef6efb 23798SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
23799 PyObject *obj;
23800 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
72ef6efb 23801 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
1bd55598
RD
23802 return SWIG_Py_Void();
23803}
23804
72ef6efb 23805SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
23806 return SWIG_Python_InitShadowInstance(args);
23807}
23808
23809SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23810 PyObject *resultobj = 0;
23811 wxDC *arg1 = 0 ;
23812 bool arg2 ;
23813 wxMirrorDC *result = 0 ;
23814 void *argp1 = 0 ;
23815 int res1 = 0 ;
23816 bool val2 ;
23817 int ecode2 = 0 ;
23818 PyObject * obj0 = 0 ;
23819 PyObject * obj1 = 0 ;
23820 char * kwnames[] = {
23821 (char *) "dc",(char *) "mirror", NULL
23822 };
23823
23824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
23825 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23826 if (!SWIG_IsOK(res1)) {
23827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
23828 }
23829 if (!argp1) {
23830 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
23831 }
23832 arg1 = reinterpret_cast< wxDC * >(argp1);
23833 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23834 if (!SWIG_IsOK(ecode2)) {
23835 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
23836 }
23837 arg2 = static_cast< bool >(val2);
23838 {
23839 if (!wxPyCheckForApp()) SWIG_fail;
23840 PyThreadState* __tstate = wxPyBeginAllowThreads();
23841 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
23842 wxPyEndAllowThreads(__tstate);
23843 if (PyErr_Occurred()) SWIG_fail;
23844 }
23845 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
23846 return resultobj;
23847fail:
23848 return NULL;
23849}
23850
23851
23852SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23853 PyObject *obj;
23854 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23855 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
23856 return SWIG_Py_Void();
23857}
23858
23859SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23860 return SWIG_Python_InitShadowInstance(args);
23861}
23862
23863SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23864 PyObject *resultobj = 0;
23865 wxPrintData *arg1 = 0 ;
23866 wxPostScriptDC *result = 0 ;
23867 void *argp1 = 0 ;
23868 int res1 = 0 ;
23869 PyObject * obj0 = 0 ;
23870 char * kwnames[] = {
23871 (char *) "printData", NULL
23872 };
23873
23874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
23875 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
23876 if (!SWIG_IsOK(res1)) {
23877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23878 }
23879 if (!argp1) {
23880 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23881 }
23882 arg1 = reinterpret_cast< wxPrintData * >(argp1);
23883 {
23884 if (!wxPyCheckForApp()) SWIG_fail;
23885 PyThreadState* __tstate = wxPyBeginAllowThreads();
23886 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
23887 wxPyEndAllowThreads(__tstate);
23888 if (PyErr_Occurred()) SWIG_fail;
23889 }
23890 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
23891 return resultobj;
23892fail:
23893 return NULL;
23894}
23895
23896
23897SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23898 PyObject *resultobj = 0;
23899 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
23900 wxPrintData *result = 0 ;
23901 void *argp1 = 0 ;
23902 int res1 = 0 ;
23903 PyObject *swig_obj[1] ;
23904
23905 if (!args) SWIG_fail;
23906 swig_obj[0] = args;
23907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
23908 if (!SWIG_IsOK(res1)) {
23909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
23910 }
23911 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
23912 {
23913 PyThreadState* __tstate = wxPyBeginAllowThreads();
e2950dbb 23914 {
1bd55598
RD
23915 wxPrintData &_result_ref = (arg1)->GetPrintData();
23916 result = (wxPrintData *) &_result_ref;
e2950dbb 23917 }
1bd55598
RD
23918 wxPyEndAllowThreads(__tstate);
23919 if (PyErr_Occurred()) SWIG_fail;
23920 }
23921 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
23922 return resultobj;
23923fail:
23924 return NULL;
23925}
23926
23927
23928SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23929 PyObject *resultobj = 0;
23930 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
23931 wxPrintData *arg2 = 0 ;
23932 void *argp1 = 0 ;
23933 int res1 = 0 ;
23934 void *argp2 = 0 ;
23935 int res2 = 0 ;
23936 PyObject * obj0 = 0 ;
23937 PyObject * obj1 = 0 ;
23938 char * kwnames[] = {
23939 (char *) "self",(char *) "data", NULL
23940 };
23941
23942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
23943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
23944 if (!SWIG_IsOK(res1)) {
23945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
23946 }
23947 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
23948 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
23949 if (!SWIG_IsOK(res2)) {
23950 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
23951 }
23952 if (!argp2) {
23953 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
23954 }
23955 arg2 = reinterpret_cast< wxPrintData * >(argp2);
23956 {
23957 PyThreadState* __tstate = wxPyBeginAllowThreads();
23958 (arg1)->SetPrintData((wxPrintData const &)*arg2);
23959 wxPyEndAllowThreads(__tstate);
23960 if (PyErr_Occurred()) SWIG_fail;
23961 }
23962 resultobj = SWIG_Py_Void();
23963 return resultobj;
23964fail:
23965 return NULL;
23966}
23967
23968
23969SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23970 PyObject *resultobj = 0;
23971 int arg1 ;
23972 int val1 ;
23973 int ecode1 = 0 ;
23974 PyObject * obj0 = 0 ;
23975 char * kwnames[] = {
23976 (char *) "ppi", NULL
23977 };
23978
23979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
23980 ecode1 = SWIG_AsVal_int(obj0, &val1);
23981 if (!SWIG_IsOK(ecode1)) {
23982 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
23983 }
23984 arg1 = static_cast< int >(val1);
23985 {
23986 PyThreadState* __tstate = wxPyBeginAllowThreads();
23987 wxPostScriptDC::SetResolution(arg1);
23988 wxPyEndAllowThreads(__tstate);
23989 if (PyErr_Occurred()) SWIG_fail;
23990 }
23991 resultobj = SWIG_Py_Void();
23992 return resultobj;
23993fail:
23994 return NULL;
23995}
23996
23997
23998SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23999 PyObject *resultobj = 0;
24000 int result;
24001
24002 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24003 {
24004 PyThreadState* __tstate = wxPyBeginAllowThreads();
24005 result = (int)wxPostScriptDC::GetResolution();
24006 wxPyEndAllowThreads(__tstate);
24007 if (PyErr_Occurred()) SWIG_fail;
24008 }
24009 resultobj = SWIG_From_int(static_cast< int >(result));
24010 return resultobj;
24011fail:
24012 return NULL;
24013}
24014
24015
24016SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24017 PyObject *obj;
24018 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24019 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24020 return SWIG_Py_Void();
24021}
24022
24023SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24024 return SWIG_Python_InitShadowInstance(args);
24025}
24026
24027SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24028 PyObject *resultobj = 0;
24029 wxString const &arg1_defvalue = wxPyEmptyString ;
24030 wxString *arg1 = (wxString *) &arg1_defvalue ;
24031 wxMetaFile *result = 0 ;
24032 bool temp1 = false ;
24033 PyObject * obj0 = 0 ;
24034 char * kwnames[] = {
24035 (char *) "filename", NULL
24036 };
24037
24038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
24039 if (obj0) {
36ed4f51 24040 {
1bd55598
RD
24041 arg1 = wxString_in_helper(obj0);
24042 if (arg1 == NULL) SWIG_fail;
24043 temp1 = true;
36ed4f51 24044 }
1bd55598
RD
24045 }
24046 {
24047 if (!wxPyCheckForApp()) SWIG_fail;
24048 PyThreadState* __tstate = wxPyBeginAllowThreads();
24049 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
24050 wxPyEndAllowThreads(__tstate);
24051 if (PyErr_Occurred()) SWIG_fail;
24052 }
24053 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
24054 {
24055 if (temp1)
24056 delete arg1;
24057 }
24058 return resultobj;
24059fail:
24060 {
24061 if (temp1)
24062 delete arg1;
24063 }
24064 return NULL;
24065}
24066
24067
24068SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24069 PyObject *resultobj = 0;
24070 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24071 void *argp1 = 0 ;
24072 int res1 = 0 ;
24073 PyObject *swig_obj[1] ;
24074
24075 if (!args) SWIG_fail;
24076 swig_obj[0] = args;
24077 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
24078 if (!SWIG_IsOK(res1)) {
24079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24080 }
24081 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24082 {
24083 PyThreadState* __tstate = wxPyBeginAllowThreads();
24084 delete arg1;
24085
24086 wxPyEndAllowThreads(__tstate);
24087 if (PyErr_Occurred()) SWIG_fail;
24088 }
24089 resultobj = SWIG_Py_Void();
24090 return resultobj;
24091fail:
24092 return NULL;
24093}
24094
24095
b39fe951 24096SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
24097 PyObject *resultobj = 0;
24098 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24099 bool result;
24100 void *argp1 = 0 ;
24101 int res1 = 0 ;
24102 PyObject *swig_obj[1] ;
24103
24104 if (!args) SWIG_fail;
24105 swig_obj[0] = args;
24106 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24107 if (!SWIG_IsOK(res1)) {
b39fe951 24108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'");
1bd55598
RD
24109 }
24110 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24111 {
24112 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 24113 result = (bool)(arg1)->IsOk();
1bd55598
RD
24114 wxPyEndAllowThreads(__tstate);
24115 if (PyErr_Occurred()) SWIG_fail;
24116 }
24117 {
24118 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24119 }
24120 return resultobj;
24121fail:
24122 return NULL;
24123}
24124
24125
24126SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24127 PyObject *resultobj = 0;
24128 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24129 int arg2 = (int) 0 ;
24130 int arg3 = (int) 0 ;
24131 bool result;
24132 void *argp1 = 0 ;
24133 int res1 = 0 ;
24134 int val2 ;
24135 int ecode2 = 0 ;
24136 int val3 ;
24137 int ecode3 = 0 ;
24138 PyObject * obj0 = 0 ;
24139 PyObject * obj1 = 0 ;
24140 PyObject * obj2 = 0 ;
24141 char * kwnames[] = {
24142 (char *) "self",(char *) "width",(char *) "height", NULL
24143 };
24144
24145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24147 if (!SWIG_IsOK(res1)) {
24148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24149 }
24150 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24151 if (obj1) {
24152 ecode2 = SWIG_AsVal_int(obj1, &val2);
24153 if (!SWIG_IsOK(ecode2)) {
24154 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
24155 }
24156 arg2 = static_cast< int >(val2);
24157 }
24158 if (obj2) {
24159 ecode3 = SWIG_AsVal_int(obj2, &val3);
24160 if (!SWIG_IsOK(ecode3)) {
24161 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
24162 }
24163 arg3 = static_cast< int >(val3);
24164 }
24165 {
24166 PyThreadState* __tstate = wxPyBeginAllowThreads();
24167 result = (bool)(arg1)->SetClipboard(arg2,arg3);
24168 wxPyEndAllowThreads(__tstate);
24169 if (PyErr_Occurred()) SWIG_fail;
24170 }
24171 {
24172 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24173 }
24174 return resultobj;
24175fail:
24176 return NULL;
24177}
24178
24179
24180SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24181 PyObject *resultobj = 0;
24182 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24183 wxSize result;
24184 void *argp1 = 0 ;
24185 int res1 = 0 ;
24186 PyObject *swig_obj[1] ;
24187
24188 if (!args) SWIG_fail;
24189 swig_obj[0] = args;
24190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24191 if (!SWIG_IsOK(res1)) {
24192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24193 }
24194 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24195 {
24196 PyThreadState* __tstate = wxPyBeginAllowThreads();
24197 result = (arg1)->GetSize();
24198 wxPyEndAllowThreads(__tstate);
24199 if (PyErr_Occurred()) SWIG_fail;
24200 }
24201 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24202 return resultobj;
24203fail:
24204 return NULL;
24205}
24206
24207
24208SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24209 PyObject *resultobj = 0;
24210 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24211 int result;
24212 void *argp1 = 0 ;
24213 int res1 = 0 ;
24214 PyObject *swig_obj[1] ;
24215
24216 if (!args) SWIG_fail;
24217 swig_obj[0] = args;
24218 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24219 if (!SWIG_IsOK(res1)) {
24220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24221 }
24222 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24223 {
24224 PyThreadState* __tstate = wxPyBeginAllowThreads();
24225 result = (int)(arg1)->GetWidth();
24226 wxPyEndAllowThreads(__tstate);
24227 if (PyErr_Occurred()) SWIG_fail;
24228 }
24229 resultobj = SWIG_From_int(static_cast< int >(result));
24230 return resultobj;
24231fail:
24232 return NULL;
24233}
24234
24235
24236SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24237 PyObject *resultobj = 0;
24238 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24239 int result;
24240 void *argp1 = 0 ;
24241 int res1 = 0 ;
24242 PyObject *swig_obj[1] ;
24243
24244 if (!args) SWIG_fail;
24245 swig_obj[0] = args;
24246 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24247 if (!SWIG_IsOK(res1)) {
24248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24249 }
24250 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24251 {
24252 PyThreadState* __tstate = wxPyBeginAllowThreads();
24253 result = (int)(arg1)->GetHeight();
24254 wxPyEndAllowThreads(__tstate);
24255 if (PyErr_Occurred()) SWIG_fail;
24256 }
24257 resultobj = SWIG_From_int(static_cast< int >(result));
24258 return resultobj;
24259fail:
24260 return NULL;
24261}
24262
24263
24264SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24265 PyObject *obj;
24266 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24267 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
24268 return SWIG_Py_Void();
24269}
24270
24271SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24272 return SWIG_Python_InitShadowInstance(args);
24273}
24274
24275SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24276 PyObject *resultobj = 0;
24277 wxString const &arg1_defvalue = wxPyEmptyString ;
24278 wxString *arg1 = (wxString *) &arg1_defvalue ;
24279 int arg2 = (int) 0 ;
24280 int arg3 = (int) 0 ;
24281 wxString const &arg4_defvalue = wxPyEmptyString ;
24282 wxString *arg4 = (wxString *) &arg4_defvalue ;
24283 wxMetaFileDC *result = 0 ;
24284 bool temp1 = false ;
24285 int val2 ;
24286 int ecode2 = 0 ;
24287 int val3 ;
24288 int ecode3 = 0 ;
24289 bool temp4 = false ;
24290 PyObject * obj0 = 0 ;
24291 PyObject * obj1 = 0 ;
24292 PyObject * obj2 = 0 ;
24293 PyObject * obj3 = 0 ;
24294 char * kwnames[] = {
24295 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
24296 };
24297
24298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24299 if (obj0) {
36ed4f51 24300 {
1bd55598
RD
24301 arg1 = wxString_in_helper(obj0);
24302 if (arg1 == NULL) SWIG_fail;
24303 temp1 = true;
36ed4f51 24304 }
1bd55598
RD
24305 }
24306 if (obj1) {
24307 ecode2 = SWIG_AsVal_int(obj1, &val2);
24308 if (!SWIG_IsOK(ecode2)) {
24309 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
24310 }
24311 arg2 = static_cast< int >(val2);
24312 }
24313 if (obj2) {
24314 ecode3 = SWIG_AsVal_int(obj2, &val3);
24315 if (!SWIG_IsOK(ecode3)) {
24316 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
24317 }
24318 arg3 = static_cast< int >(val3);
24319 }
24320 if (obj3) {
36ed4f51 24321 {
1bd55598
RD
24322 arg4 = wxString_in_helper(obj3);
24323 if (arg4 == NULL) SWIG_fail;
24324 temp4 = true;
36ed4f51 24325 }
1bd55598
RD
24326 }
24327 {
24328 if (!wxPyCheckForApp()) SWIG_fail;
24329 PyThreadState* __tstate = wxPyBeginAllowThreads();
24330 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
24331 wxPyEndAllowThreads(__tstate);
24332 if (PyErr_Occurred()) SWIG_fail;
24333 }
24334 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
24335 {
24336 if (temp1)
24337 delete arg1;
24338 }
24339 {
24340 if (temp4)
24341 delete arg4;
24342 }
24343 return resultobj;
24344fail:
24345 {
24346 if (temp1)
24347 delete arg1;
24348 }
24349 {
24350 if (temp4)
24351 delete arg4;
24352 }
24353 return NULL;
24354}
24355
24356
24357SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24358 PyObject *resultobj = 0;
24359 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
24360 wxMetaFile *result = 0 ;
24361 void *argp1 = 0 ;
24362 int res1 = 0 ;
24363 PyObject *swig_obj[1] ;
24364
24365 if (!args) SWIG_fail;
24366 swig_obj[0] = args;
24367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
24368 if (!SWIG_IsOK(res1)) {
24369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
24370 }
24371 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
24372 {
24373 PyThreadState* __tstate = wxPyBeginAllowThreads();
24374 result = (wxMetaFile *)(arg1)->Close();
24375 wxPyEndAllowThreads(__tstate);
24376 if (PyErr_Occurred()) SWIG_fail;
24377 }
24378 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
24379 return resultobj;
24380fail:
24381 return NULL;
24382}
24383
24384
24385SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24386 PyObject *obj;
24387 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24388 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
24389 return SWIG_Py_Void();
24390}
24391
24392SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24393 return SWIG_Python_InitShadowInstance(args);
24394}
24395
24396SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24397 PyObject *resultobj = 0;
24398 wxPrintData *arg1 = 0 ;
24399 wxPrinterDC *result = 0 ;
24400 void *argp1 = 0 ;
24401 int res1 = 0 ;
24402 PyObject * obj0 = 0 ;
24403 char * kwnames[] = {
24404 (char *) "printData", NULL
24405 };
24406
24407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
24408 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24409 if (!SWIG_IsOK(res1)) {
24410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24411 }
24412 if (!argp1) {
24413 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24414 }
24415 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24416 {
24417 if (!wxPyCheckForApp()) SWIG_fail;
24418 PyThreadState* __tstate = wxPyBeginAllowThreads();
24419 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
24420 wxPyEndAllowThreads(__tstate);
24421 if (PyErr_Occurred()) SWIG_fail;
24422 }
24423 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
24424 return resultobj;
24425fail:
24426 return NULL;
24427}
24428
24429
24430SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24431 PyObject *obj;
24432 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24433 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
24434 return SWIG_Py_Void();
24435}
24436
24437SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24438 return SWIG_Python_InitShadowInstance(args);
24439}
24440
72ef6efb 24441SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 24442 PyObject *resultobj = 0;
72ef6efb 24443 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
1bd55598
RD
24444 void *argp1 = 0 ;
24445 int res1 = 0 ;
24446 PyObject *swig_obj[1] ;
24447
24448 if (!args) SWIG_fail;
24449 swig_obj[0] = args;
72ef6efb 24450 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
1bd55598 24451 if (!SWIG_IsOK(res1)) {
72ef6efb 24452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
1bd55598 24453 }
72ef6efb 24454 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
1bd55598 24455 {
1bd55598
RD
24456 delete arg1;
24457
1bd55598
RD
24458 if (PyErr_Occurred()) SWIG_fail;
24459 }
24460 resultobj = SWIG_Py_Void();
24461 return resultobj;
24462fail:
24463 return NULL;
24464}
24465
24466
72ef6efb 24467SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 24468 PyObject *resultobj = 0;
72ef6efb
RD
24469 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24470 wxDouble arg2 ;
24471 wxDouble arg3 ;
1bd55598
RD
24472 void *argp1 = 0 ;
24473 int res1 = 0 ;
72ef6efb
RD
24474 double val2 ;
24475 int ecode2 = 0 ;
24476 double val3 ;
24477 int ecode3 = 0 ;
1bd55598
RD
24478 PyObject * obj0 = 0 ;
24479 PyObject * obj1 = 0 ;
24480 PyObject * obj2 = 0 ;
24481 char * kwnames[] = {
72ef6efb 24482 (char *) "self",(char *) "x",(char *) "y", NULL
1bd55598
RD
24483 };
24484
72ef6efb
RD
24485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_MoveToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
1bd55598 24487 if (!SWIG_IsOK(res1)) {
72ef6efb 24488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
1bd55598 24489 }
72ef6efb
RD
24490 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24491 ecode2 = SWIG_AsVal_double(obj1, &val2);
24492 if (!SWIG_IsOK(ecode2)) {
24493 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24494 }
24495 arg2 = static_cast< wxDouble >(val2);
24496 ecode3 = SWIG_AsVal_double(obj2, &val3);
24497 if (!SWIG_IsOK(ecode3)) {
24498 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24499 }
24500 arg3 = static_cast< wxDouble >(val3);
1bd55598 24501 {
72ef6efb 24502 (arg1)->MoveToPoint(arg2,arg3);
1bd55598
RD
24503 if (PyErr_Occurred()) SWIG_fail;
24504 }
72ef6efb 24505 resultobj = SWIG_Py_Void();
1bd55598
RD
24506 return resultobj;
24507fail:
24508 return NULL;
24509}
24510
24511
72ef6efb 24512SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 24513 PyObject *resultobj = 0;
72ef6efb
RD
24514 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24515 wxDouble arg2 ;
24516 wxDouble arg3 ;
1bd55598
RD
24517 void *argp1 = 0 ;
24518 int res1 = 0 ;
72ef6efb
RD
24519 double val2 ;
24520 int ecode2 = 0 ;
24521 double val3 ;
24522 int ecode3 = 0 ;
1bd55598
RD
24523 PyObject * obj0 = 0 ;
24524 PyObject * obj1 = 0 ;
24525 PyObject * obj2 = 0 ;
24526 char * kwnames[] = {
72ef6efb 24527 (char *) "self",(char *) "x",(char *) "y", NULL
1bd55598
RD
24528 };
24529
72ef6efb
RD
24530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_AddLineToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
1bd55598 24532 if (!SWIG_IsOK(res1)) {
72ef6efb 24533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
1bd55598 24534 }
72ef6efb
RD
24535 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24536 ecode2 = SWIG_AsVal_double(obj1, &val2);
24537 if (!SWIG_IsOK(ecode2)) {
24538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24539 }
24540 arg2 = static_cast< wxDouble >(val2);
24541 ecode3 = SWIG_AsVal_double(obj2, &val3);
24542 if (!SWIG_IsOK(ecode3)) {
24543 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24544 }
24545 arg3 = static_cast< wxDouble >(val3);
1bd55598 24546 {
72ef6efb 24547 (arg1)->AddLineToPoint(arg2,arg3);
1bd55598
RD
24548 if (PyErr_Occurred()) SWIG_fail;
24549 }
72ef6efb 24550 resultobj = SWIG_Py_Void();
1bd55598
RD
24551 return resultobj;
24552fail:
24553 return NULL;
24554}
24555
24556
72ef6efb 24557SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 24558 PyObject *resultobj = 0;
72ef6efb
RD
24559 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24560 wxDouble arg2 ;
24561 wxDouble arg3 ;
24562 wxDouble arg4 ;
24563 wxDouble arg5 ;
24564 wxDouble arg6 ;
24565 wxDouble arg7 ;
1bd55598
RD
24566 void *argp1 = 0 ;
24567 int res1 = 0 ;
72ef6efb
RD
24568 double val2 ;
24569 int ecode2 = 0 ;
24570 double val3 ;
24571 int ecode3 = 0 ;
24572 double val4 ;
24573 int ecode4 = 0 ;
24574 double val5 ;
24575 int ecode5 = 0 ;
24576 double val6 ;
24577 int ecode6 = 0 ;
24578 double val7 ;
24579 int ecode7 = 0 ;
24580 PyObject * obj0 = 0 ;
24581 PyObject * obj1 = 0 ;
24582 PyObject * obj2 = 0 ;
24583 PyObject * obj3 = 0 ;
24584 PyObject * obj4 = 0 ;
24585 PyObject * obj5 = 0 ;
24586 PyObject * obj6 = 0 ;
24587 char * kwnames[] = {
24588 (char *) "self",(char *) "cx1",(char *) "cy1",(char *) "cx2",(char *) "cy2",(char *) "x",(char *) "y", NULL
24589 };
24590
24591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24593 if (!SWIG_IsOK(res1)) {
24594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24595 }
24596 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24597 ecode2 = SWIG_AsVal_double(obj1, &val2);
24598 if (!SWIG_IsOK(ecode2)) {
24599 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24600 }
24601 arg2 = static_cast< wxDouble >(val2);
24602 ecode3 = SWIG_AsVal_double(obj2, &val3);
24603 if (!SWIG_IsOK(ecode3)) {
24604 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24605 }
24606 arg3 = static_cast< wxDouble >(val3);
24607 ecode4 = SWIG_AsVal_double(obj3, &val4);
24608 if (!SWIG_IsOK(ecode4)) {
24609 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
24610 }
24611 arg4 = static_cast< wxDouble >(val4);
24612 ecode5 = SWIG_AsVal_double(obj4, &val5);
24613 if (!SWIG_IsOK(ecode5)) {
24614 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
24615 }
24616 arg5 = static_cast< wxDouble >(val5);
24617 ecode6 = SWIG_AsVal_double(obj5, &val6);
24618 if (!SWIG_IsOK(ecode6)) {
24619 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
24620 }
24621 arg6 = static_cast< wxDouble >(val6);
24622 ecode7 = SWIG_AsVal_double(obj6, &val7);
24623 if (!SWIG_IsOK(ecode7)) {
24624 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
24625 }
24626 arg7 = static_cast< wxDouble >(val7);
24627 {
72ef6efb 24628 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
24629 if (PyErr_Occurred()) SWIG_fail;
24630 }
24631 resultobj = SWIG_Py_Void();
24632 return resultobj;
24633fail:
24634 return NULL;
24635}
24636
24637
24638SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24639 PyObject *resultobj = 0;
24640 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24641 void *argp1 = 0 ;
24642 int res1 = 0 ;
24643 PyObject *swig_obj[1] ;
24644
24645 if (!args) SWIG_fail;
24646 swig_obj[0] = args;
24647 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24648 if (!SWIG_IsOK(res1)) {
24649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24650 }
24651 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24652 {
72ef6efb 24653 (arg1)->CloseSubpath();
72ef6efb
RD
24654 if (PyErr_Occurred()) SWIG_fail;
24655 }
24656 resultobj = SWIG_Py_Void();
24657 return resultobj;
24658fail:
24659 return NULL;
24660}
24661
24662
24663SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24664 PyObject *resultobj = 0;
24665 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24666 wxPoint2D result;
24667 void *argp1 = 0 ;
24668 int res1 = 0 ;
24669 PyObject *swig_obj[1] ;
24670
24671 if (!args) SWIG_fail;
24672 swig_obj[0] = args;
24673 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24674 if (!SWIG_IsOK(res1)) {
24675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24676 }
24677 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24678 {
72ef6efb 24679 result = (arg1)->GetCurrentPoint();
72ef6efb
RD
24680 if (PyErr_Occurred()) SWIG_fail;
24681 }
24682 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
24683 return resultobj;
24684fail:
24685 return NULL;
24686}
24687
24688
24689SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24690 PyObject *resultobj = 0;
24691 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24692 wxDouble arg2 ;
24693 wxDouble arg3 ;
24694 wxDouble arg4 ;
24695 wxDouble arg5 ;
24696 wxDouble arg6 ;
24697 bool arg7 ;
24698 void *argp1 = 0 ;
24699 int res1 = 0 ;
24700 double val2 ;
24701 int ecode2 = 0 ;
24702 double val3 ;
24703 int ecode3 = 0 ;
24704 double val4 ;
24705 int ecode4 = 0 ;
24706 double val5 ;
24707 int ecode5 = 0 ;
24708 double val6 ;
24709 int ecode6 = 0 ;
24710 bool val7 ;
24711 int ecode7 = 0 ;
24712 PyObject * obj0 = 0 ;
24713 PyObject * obj1 = 0 ;
24714 PyObject * obj2 = 0 ;
24715 PyObject * obj3 = 0 ;
24716 PyObject * obj4 = 0 ;
24717 PyObject * obj5 = 0 ;
24718 PyObject * obj6 = 0 ;
24719 char * kwnames[] = {
24720 (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "startAngle",(char *) "endAngle",(char *) "clockwise", NULL
24721 };
24722
24723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24725 if (!SWIG_IsOK(res1)) {
24726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24727 }
24728 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24729 ecode2 = SWIG_AsVal_double(obj1, &val2);
24730 if (!SWIG_IsOK(ecode2)) {
24731 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
24732 }
24733 arg2 = static_cast< wxDouble >(val2);
24734 ecode3 = SWIG_AsVal_double(obj2, &val3);
24735 if (!SWIG_IsOK(ecode3)) {
24736 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
24737 }
24738 arg3 = static_cast< wxDouble >(val3);
24739 ecode4 = SWIG_AsVal_double(obj3, &val4);
24740 if (!SWIG_IsOK(ecode4)) {
24741 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
24742 }
24743 arg4 = static_cast< wxDouble >(val4);
24744 ecode5 = SWIG_AsVal_double(obj4, &val5);
24745 if (!SWIG_IsOK(ecode5)) {
24746 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
24747 }
24748 arg5 = static_cast< wxDouble >(val5);
24749 ecode6 = SWIG_AsVal_double(obj5, &val6);
24750 if (!SWIG_IsOK(ecode6)) {
24751 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
24752 }
24753 arg6 = static_cast< wxDouble >(val6);
24754 ecode7 = SWIG_AsVal_bool(obj6, &val7);
24755 if (!SWIG_IsOK(ecode7)) {
24756 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
24757 }
24758 arg7 = static_cast< bool >(val7);
24759 {
72ef6efb 24760 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
24761 if (PyErr_Occurred()) SWIG_fail;
24762 }
24763 resultobj = SWIG_Py_Void();
24764 return resultobj;
24765fail:
24766 return NULL;
24767}
24768
24769
24770SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24771 PyObject *resultobj = 0;
24772 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24773 wxDouble arg2 ;
24774 wxDouble arg3 ;
24775 wxDouble arg4 ;
24776 wxDouble arg5 ;
24777 void *argp1 = 0 ;
24778 int res1 = 0 ;
24779 double val2 ;
24780 int ecode2 = 0 ;
24781 double val3 ;
24782 int ecode3 = 0 ;
24783 double val4 ;
24784 int ecode4 = 0 ;
24785 double val5 ;
24786 int ecode5 = 0 ;
24787 PyObject * obj0 = 0 ;
24788 PyObject * obj1 = 0 ;
24789 PyObject * obj2 = 0 ;
24790 PyObject * obj3 = 0 ;
24791 PyObject * obj4 = 0 ;
24792 char * kwnames[] = {
24793 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
24794 };
24795
24796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24798 if (!SWIG_IsOK(res1)) {
24799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24800 }
24801 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24802 ecode2 = SWIG_AsVal_double(obj1, &val2);
24803 if (!SWIG_IsOK(ecode2)) {
24804 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24805 }
24806 arg2 = static_cast< wxDouble >(val2);
24807 ecode3 = SWIG_AsVal_double(obj2, &val3);
24808 if (!SWIG_IsOK(ecode3)) {
24809 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24810 }
24811 arg3 = static_cast< wxDouble >(val3);
24812 ecode4 = SWIG_AsVal_double(obj3, &val4);
24813 if (!SWIG_IsOK(ecode4)) {
24814 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
24815 }
24816 arg4 = static_cast< wxDouble >(val4);
24817 ecode5 = SWIG_AsVal_double(obj4, &val5);
24818 if (!SWIG_IsOK(ecode5)) {
24819 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
24820 }
24821 arg5 = static_cast< wxDouble >(val5);
24822 {
72ef6efb 24823 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
72ef6efb
RD
24824 if (PyErr_Occurred()) SWIG_fail;
24825 }
24826 resultobj = SWIG_Py_Void();
24827 return resultobj;
24828fail:
24829 return NULL;
24830}
24831
24832
24833SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24834 PyObject *resultobj = 0;
24835 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24836 wxDouble arg2 ;
24837 wxDouble arg3 ;
24838 wxDouble arg4 ;
24839 wxDouble arg5 ;
24840 void *argp1 = 0 ;
24841 int res1 = 0 ;
24842 double val2 ;
24843 int ecode2 = 0 ;
24844 double val3 ;
24845 int ecode3 = 0 ;
24846 double val4 ;
24847 int ecode4 = 0 ;
24848 double val5 ;
24849 int ecode5 = 0 ;
24850 PyObject * obj0 = 0 ;
24851 PyObject * obj1 = 0 ;
24852 PyObject * obj2 = 0 ;
24853 PyObject * obj3 = 0 ;
24854 PyObject * obj4 = 0 ;
24855 char * kwnames[] = {
24856 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
24857 };
24858
24859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24861 if (!SWIG_IsOK(res1)) {
24862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24863 }
24864 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24865 ecode2 = SWIG_AsVal_double(obj1, &val2);
24866 if (!SWIG_IsOK(ecode2)) {
24867 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
24868 }
24869 arg2 = static_cast< wxDouble >(val2);
24870 ecode3 = SWIG_AsVal_double(obj2, &val3);
24871 if (!SWIG_IsOK(ecode3)) {
24872 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
24873 }
24874 arg3 = static_cast< wxDouble >(val3);
24875 ecode4 = SWIG_AsVal_double(obj3, &val4);
24876 if (!SWIG_IsOK(ecode4)) {
24877 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
24878 }
24879 arg4 = static_cast< wxDouble >(val4);
24880 ecode5 = SWIG_AsVal_double(obj4, &val5);
24881 if (!SWIG_IsOK(ecode5)) {
24882 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
24883 }
24884 arg5 = static_cast< wxDouble >(val5);
24885 {
72ef6efb 24886 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
72ef6efb
RD
24887 if (PyErr_Occurred()) SWIG_fail;
24888 }
24889 resultobj = SWIG_Py_Void();
24890 return resultobj;
24891fail:
24892 return NULL;
24893}
24894
24895
24896SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24897 PyObject *resultobj = 0;
24898 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24899 wxDouble arg2 ;
24900 wxDouble arg3 ;
24901 wxDouble arg4 ;
24902 void *argp1 = 0 ;
24903 int res1 = 0 ;
24904 double val2 ;
24905 int ecode2 = 0 ;
24906 double val3 ;
24907 int ecode3 = 0 ;
24908 double val4 ;
24909 int ecode4 = 0 ;
24910 PyObject * obj0 = 0 ;
24911 PyObject * obj1 = 0 ;
24912 PyObject * obj2 = 0 ;
24913 PyObject * obj3 = 0 ;
24914 char * kwnames[] = {
24915 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
24916 };
24917
24918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24920 if (!SWIG_IsOK(res1)) {
24921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24922 }
24923 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24924 ecode2 = SWIG_AsVal_double(obj1, &val2);
24925 if (!SWIG_IsOK(ecode2)) {
24926 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
24927 }
24928 arg2 = static_cast< wxDouble >(val2);
24929 ecode3 = SWIG_AsVal_double(obj2, &val3);
24930 if (!SWIG_IsOK(ecode3)) {
24931 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
24932 }
24933 arg3 = static_cast< wxDouble >(val3);
24934 ecode4 = SWIG_AsVal_double(obj3, &val4);
24935 if (!SWIG_IsOK(ecode4)) {
24936 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
24937 }
24938 arg4 = static_cast< wxDouble >(val4);
24939 {
72ef6efb 24940 (arg1)->AddCircle(arg2,arg3,arg4);
72ef6efb
RD
24941 if (PyErr_Occurred()) SWIG_fail;
24942 }
24943 resultobj = SWIG_Py_Void();
24944 return resultobj;
24945fail:
24946 return NULL;
24947}
24948
24949
24950SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24951 PyObject *resultobj = 0;
24952 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24953 wxDouble arg2 ;
24954 wxDouble arg3 ;
24955 wxDouble arg4 ;
24956 wxDouble arg5 ;
24957 wxDouble arg6 ;
24958 void *argp1 = 0 ;
24959 int res1 = 0 ;
24960 double val2 ;
24961 int ecode2 = 0 ;
24962 double val3 ;
24963 int ecode3 = 0 ;
24964 double val4 ;
24965 int ecode4 = 0 ;
24966 double val5 ;
24967 int ecode5 = 0 ;
24968 double val6 ;
24969 int ecode6 = 0 ;
24970 PyObject * obj0 = 0 ;
24971 PyObject * obj1 = 0 ;
24972 PyObject * obj2 = 0 ;
24973 PyObject * obj3 = 0 ;
24974 PyObject * obj4 = 0 ;
24975 PyObject * obj5 = 0 ;
24976 char * kwnames[] = {
24977 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
24978 };
24979
24980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
24981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24982 if (!SWIG_IsOK(res1)) {
24983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24984 }
24985 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24986 ecode2 = SWIG_AsVal_double(obj1, &val2);
24987 if (!SWIG_IsOK(ecode2)) {
24988 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24989 }
24990 arg2 = static_cast< wxDouble >(val2);
24991 ecode3 = SWIG_AsVal_double(obj2, &val3);
24992 if (!SWIG_IsOK(ecode3)) {
24993 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24994 }
24995 arg3 = static_cast< wxDouble >(val3);
24996 ecode4 = SWIG_AsVal_double(obj3, &val4);
24997 if (!SWIG_IsOK(ecode4)) {
24998 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
24999 }
25000 arg4 = static_cast< wxDouble >(val4);
25001 ecode5 = SWIG_AsVal_double(obj4, &val5);
25002 if (!SWIG_IsOK(ecode5)) {
25003 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
25004 }
25005 arg5 = static_cast< wxDouble >(val5);
25006 ecode6 = SWIG_AsVal_double(obj5, &val6);
25007 if (!SWIG_IsOK(ecode6)) {
25008 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
25009 }
25010 arg6 = static_cast< wxDouble >(val6);
25011 {
72ef6efb 25012 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
25013 if (PyErr_Occurred()) SWIG_fail;
25014 }
25015 resultobj = SWIG_Py_Void();
25016 return resultobj;
25017fail:
25018 return NULL;
25019}
25020
25021
25022SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25023 PyObject *obj;
25024 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25025 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
25026 return SWIG_Py_Void();
25027}
25028
25029SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25030 PyObject *resultobj = 0;
25031 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25032 void *argp1 = 0 ;
25033 int res1 = 0 ;
25034 PyObject *swig_obj[1] ;
25035
25036 if (!args) SWIG_fail;
25037 swig_obj[0] = args;
25038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
25039 if (!SWIG_IsOK(res1)) {
25040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25041 }
25042 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25043 {
72ef6efb
RD
25044 delete arg1;
25045
72ef6efb
RD
25046 if (PyErr_Occurred()) SWIG_fail;
25047 }
25048 resultobj = SWIG_Py_Void();
25049 return resultobj;
25050fail:
25051 return NULL;
25052}
25053
25054
25055SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25056 PyObject *resultobj = 0;
25057 wxWindowDC *arg1 = 0 ;
25058 wxGraphicsContext *result = 0 ;
25059 void *argp1 = 0 ;
25060 int res1 = 0 ;
25061 PyObject * obj0 = 0 ;
25062 char * kwnames[] = {
25063 (char *) "dc", NULL
25064 };
25065
25066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_Create",kwnames,&obj0)) SWIG_fail;
25067 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
25068 if (!SWIG_IsOK(res1)) {
25069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
25070 }
25071 if (!argp1) {
25072 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
25073 }
25074 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
25075 {
72ef6efb 25076 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
72ef6efb
RD
25077 if (PyErr_Occurred()) SWIG_fail;
25078 }
25079 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25080 return resultobj;
25081fail:
25082 return NULL;
25083}
25084
25085
25086SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25087 PyObject *resultobj = 0;
25088 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25089 wxGraphicsPath *result = 0 ;
25090 void *argp1 = 0 ;
25091 int res1 = 0 ;
25092 PyObject *swig_obj[1] ;
25093
25094 if (!args) SWIG_fail;
25095 swig_obj[0] = args;
25096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25097 if (!SWIG_IsOK(res1)) {
25098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25099 }
25100 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25101 {
72ef6efb 25102 result = (wxGraphicsPath *)(arg1)->CreatePath();
72ef6efb
RD
25103 if (PyErr_Occurred()) SWIG_fail;
25104 }
25105 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25106 return resultobj;
25107fail:
25108 return NULL;
25109}
25110
25111
25112SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25113 PyObject *resultobj = 0;
25114 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25115 void *argp1 = 0 ;
25116 int res1 = 0 ;
25117 PyObject *swig_obj[1] ;
25118
25119 if (!args) SWIG_fail;
25120 swig_obj[0] = args;
25121 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25122 if (!SWIG_IsOK(res1)) {
25123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25124 }
25125 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25126 {
72ef6efb 25127 (arg1)->PushState();
72ef6efb
RD
25128 if (PyErr_Occurred()) SWIG_fail;
25129 }
25130 resultobj = SWIG_Py_Void();
25131 return resultobj;
25132fail:
25133 return NULL;
25134}
25135
25136
25137SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25138 PyObject *resultobj = 0;
25139 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25140 void *argp1 = 0 ;
25141 int res1 = 0 ;
25142 PyObject *swig_obj[1] ;
25143
25144 if (!args) SWIG_fail;
25145 swig_obj[0] = args;
25146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25147 if (!SWIG_IsOK(res1)) {
25148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25149 }
25150 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25151 {
72ef6efb 25152 (arg1)->PopState();
72ef6efb
RD
25153 if (PyErr_Occurred()) SWIG_fail;
25154 }
25155 resultobj = SWIG_Py_Void();
25156 return resultobj;
25157fail:
25158 return NULL;
25159}
25160
25161
25162SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25163 PyObject *resultobj = 0;
25164 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25165 wxRegion *arg2 = 0 ;
25166 void *argp1 = 0 ;
25167 int res1 = 0 ;
25168 void *argp2 = 0 ;
25169 int res2 = 0 ;
25170 PyObject * obj0 = 0 ;
25171 PyObject * obj1 = 0 ;
25172 char * kwnames[] = {
25173 (char *) "self",(char *) "region", NULL
25174 };
25175
25176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Clip",kwnames,&obj0,&obj1)) SWIG_fail;
25177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25178 if (!SWIG_IsOK(res1)) {
25179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25180 }
25181 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25182 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
25183 if (!SWIG_IsOK(res2)) {
25184 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxRegion const &""'");
25185 }
25186 if (!argp2) {
25187 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxRegion const &""'");
25188 }
25189 arg2 = reinterpret_cast< wxRegion * >(argp2);
25190 {
72ef6efb 25191 (arg1)->Clip((wxRegion const &)*arg2);
72ef6efb
RD
25192 if (PyErr_Occurred()) SWIG_fail;
25193 }
25194 resultobj = SWIG_Py_Void();
25195 return resultobj;
25196fail:
25197 return NULL;
25198}
25199
25200
25201SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25202 PyObject *resultobj = 0;
25203 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25204 wxDouble arg2 ;
25205 wxDouble arg3 ;
25206 void *argp1 = 0 ;
25207 int res1 = 0 ;
25208 double val2 ;
25209 int ecode2 = 0 ;
25210 double val3 ;
25211 int ecode3 = 0 ;
25212 PyObject * obj0 = 0 ;
25213 PyObject * obj1 = 0 ;
25214 PyObject * obj2 = 0 ;
25215 char * kwnames[] = {
25216 (char *) "self",(char *) "dx",(char *) "dy", NULL
25217 };
25218
25219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25221 if (!SWIG_IsOK(res1)) {
25222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25223 }
25224 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25225 ecode2 = SWIG_AsVal_double(obj1, &val2);
25226 if (!SWIG_IsOK(ecode2)) {
25227 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
25228 }
25229 arg2 = static_cast< wxDouble >(val2);
25230 ecode3 = SWIG_AsVal_double(obj2, &val3);
25231 if (!SWIG_IsOK(ecode3)) {
25232 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
25233 }
25234 arg3 = static_cast< wxDouble >(val3);
25235 {
72ef6efb 25236 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
25237 if (PyErr_Occurred()) SWIG_fail;
25238 }
25239 resultobj = SWIG_Py_Void();
25240 return resultobj;
25241fail:
25242 return NULL;
25243}
25244
25245
25246SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25247 PyObject *resultobj = 0;
25248 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25249 wxDouble arg2 ;
25250 wxDouble arg3 ;
25251 void *argp1 = 0 ;
25252 int res1 = 0 ;
25253 double val2 ;
25254 int ecode2 = 0 ;
25255 double val3 ;
25256 int ecode3 = 0 ;
25257 PyObject * obj0 = 0 ;
25258 PyObject * obj1 = 0 ;
25259 PyObject * obj2 = 0 ;
25260 char * kwnames[] = {
25261 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
25262 };
25263
25264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25266 if (!SWIG_IsOK(res1)) {
25267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25268 }
25269 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25270 ecode2 = SWIG_AsVal_double(obj1, &val2);
25271 if (!SWIG_IsOK(ecode2)) {
25272 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
25273 }
25274 arg2 = static_cast< wxDouble >(val2);
25275 ecode3 = SWIG_AsVal_double(obj2, &val3);
25276 if (!SWIG_IsOK(ecode3)) {
25277 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
25278 }
25279 arg3 = static_cast< wxDouble >(val3);
25280 {
72ef6efb 25281 (arg1)->Scale(arg2,arg3);
72ef6efb
RD
25282 if (PyErr_Occurred()) SWIG_fail;
25283 }
25284 resultobj = SWIG_Py_Void();
25285 return resultobj;
25286fail:
25287 return NULL;
25288}
25289
25290
25291SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25292 PyObject *resultobj = 0;
25293 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25294 wxDouble arg2 ;
25295 void *argp1 = 0 ;
25296 int res1 = 0 ;
25297 double val2 ;
25298 int ecode2 = 0 ;
25299 PyObject * obj0 = 0 ;
25300 PyObject * obj1 = 0 ;
25301 char * kwnames[] = {
25302 (char *) "self",(char *) "angle", NULL
25303 };
25304
25305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
25306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25307 if (!SWIG_IsOK(res1)) {
25308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25309 }
25310 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25311 ecode2 = SWIG_AsVal_double(obj1, &val2);
25312 if (!SWIG_IsOK(ecode2)) {
25313 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
25314 }
25315 arg2 = static_cast< wxDouble >(val2);
25316 {
72ef6efb 25317 (arg1)->Rotate(arg2);
72ef6efb
RD
25318 if (PyErr_Occurred()) SWIG_fail;
25319 }
25320 resultobj = SWIG_Py_Void();
25321 return resultobj;
25322fail:
25323 return NULL;
25324}
25325
25326
25327SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25328 PyObject *resultobj = 0;
25329 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25330 wxPen *arg2 = 0 ;
25331 void *argp1 = 0 ;
25332 int res1 = 0 ;
25333 void *argp2 = 0 ;
25334 int res2 = 0 ;
25335 PyObject * obj0 = 0 ;
25336 PyObject * obj1 = 0 ;
25337 char * kwnames[] = {
25338 (char *) "self",(char *) "pen", NULL
25339 };
25340
25341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
25342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25343 if (!SWIG_IsOK(res1)) {
25344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25345 }
25346 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25347 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
25348 if (!SWIG_IsOK(res2)) {
25349 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
25350 }
25351 if (!argp2) {
25352 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
25353 }
25354 arg2 = reinterpret_cast< wxPen * >(argp2);
25355 {
72ef6efb 25356 (arg1)->SetPen((wxPen const &)*arg2);
72ef6efb
RD
25357 if (PyErr_Occurred()) SWIG_fail;
25358 }
25359 resultobj = SWIG_Py_Void();
25360 return resultobj;
25361fail:
25362 return NULL;
25363}
25364
25365
25366SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25367 PyObject *resultobj = 0;
25368 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25369 wxBrush *arg2 = 0 ;
25370 void *argp1 = 0 ;
25371 int res1 = 0 ;
25372 void *argp2 = 0 ;
25373 int res2 = 0 ;
25374 PyObject * obj0 = 0 ;
25375 PyObject * obj1 = 0 ;
25376 char * kwnames[] = {
25377 (char *) "self",(char *) "brush", NULL
25378 };
25379
25380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
25381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25382 if (!SWIG_IsOK(res1)) {
25383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25384 }
25385 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25386 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
25387 if (!SWIG_IsOK(res2)) {
25388 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
25389 }
25390 if (!argp2) {
25391 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
25392 }
25393 arg2 = reinterpret_cast< wxBrush * >(argp2);
25394 {
72ef6efb 25395 (arg1)->SetBrush((wxBrush const &)*arg2);
72ef6efb
RD
25396 if (PyErr_Occurred()) SWIG_fail;
25397 }
25398 resultobj = SWIG_Py_Void();
25399 return resultobj;
25400fail:
25401 return NULL;
25402}
25403
25404
25405SWIGINTERN PyObject *_wrap_GraphicsContext_SetLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25406 PyObject *resultobj = 0;
25407 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25408 wxDouble arg2 ;
25409 wxDouble arg3 ;
25410 wxDouble arg4 ;
25411 wxDouble arg5 ;
25412 wxColour *arg6 = 0 ;
25413 wxColour *arg7 = 0 ;
25414 void *argp1 = 0 ;
25415 int res1 = 0 ;
25416 double val2 ;
25417 int ecode2 = 0 ;
25418 double val3 ;
25419 int ecode3 = 0 ;
25420 double val4 ;
25421 int ecode4 = 0 ;
25422 double val5 ;
25423 int ecode5 = 0 ;
25424 wxColour temp6 ;
25425 wxColour temp7 ;
25426 PyObject * obj0 = 0 ;
25427 PyObject * obj1 = 0 ;
25428 PyObject * obj2 = 0 ;
25429 PyObject * obj3 = 0 ;
25430 PyObject * obj4 = 0 ;
25431 PyObject * obj5 = 0 ;
25432 PyObject * obj6 = 0 ;
25433 char * kwnames[] = {
25434 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
25435 };
25436
25437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_SetLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25439 if (!SWIG_IsOK(res1)) {
25440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25441 }
25442 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25443 ecode2 = SWIG_AsVal_double(obj1, &val2);
25444 if (!SWIG_IsOK(ecode2)) {
25445 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
25446 }
25447 arg2 = static_cast< wxDouble >(val2);
25448 ecode3 = SWIG_AsVal_double(obj2, &val3);
25449 if (!SWIG_IsOK(ecode3)) {
25450 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
25451 }
25452 arg3 = static_cast< wxDouble >(val3);
25453 ecode4 = SWIG_AsVal_double(obj3, &val4);
25454 if (!SWIG_IsOK(ecode4)) {
25455 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
25456 }
25457 arg4 = static_cast< wxDouble >(val4);
25458 ecode5 = SWIG_AsVal_double(obj4, &val5);
25459 if (!SWIG_IsOK(ecode5)) {
25460 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
25461 }
25462 arg5 = static_cast< wxDouble >(val5);
25463 {
25464 arg6 = &temp6;
25465 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
25466 }
25467 {
25468 arg7 = &temp7;
25469 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
25470 }
25471 {
72ef6efb 25472 (arg1)->SetLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
25473 if (PyErr_Occurred()) SWIG_fail;
25474 }
25475 resultobj = SWIG_Py_Void();
25476 return resultobj;
25477fail:
25478 return NULL;
25479}
25480
25481
25482SWIGINTERN PyObject *_wrap_GraphicsContext_SetRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25483 PyObject *resultobj = 0;
25484 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25485 wxDouble arg2 ;
25486 wxDouble arg3 ;
25487 wxDouble arg4 ;
25488 wxDouble arg5 ;
25489 wxDouble arg6 ;
25490 wxColour *arg7 = 0 ;
25491 wxColour *arg8 = 0 ;
25492 void *argp1 = 0 ;
25493 int res1 = 0 ;
25494 double val2 ;
25495 int ecode2 = 0 ;
25496 double val3 ;
25497 int ecode3 = 0 ;
25498 double val4 ;
25499 int ecode4 = 0 ;
25500 double val5 ;
25501 int ecode5 = 0 ;
25502 double val6 ;
25503 int ecode6 = 0 ;
25504 wxColour temp7 ;
25505 wxColour temp8 ;
25506 PyObject * obj0 = 0 ;
25507 PyObject * obj1 = 0 ;
25508 PyObject * obj2 = 0 ;
25509 PyObject * obj3 = 0 ;
25510 PyObject * obj4 = 0 ;
25511 PyObject * obj5 = 0 ;
25512 PyObject * obj6 = 0 ;
25513 PyObject * obj7 = 0 ;
25514 char * kwnames[] = {
25515 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
25516 };
25517
25518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_SetRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
25519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25520 if (!SWIG_IsOK(res1)) {
25521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25522 }
25523 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25524 ecode2 = SWIG_AsVal_double(obj1, &val2);
25525 if (!SWIG_IsOK(ecode2)) {
25526 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
25527 }
25528 arg2 = static_cast< wxDouble >(val2);
25529 ecode3 = SWIG_AsVal_double(obj2, &val3);
25530 if (!SWIG_IsOK(ecode3)) {
25531 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
25532 }
25533 arg3 = static_cast< wxDouble >(val3);
25534 ecode4 = SWIG_AsVal_double(obj3, &val4);
25535 if (!SWIG_IsOK(ecode4)) {
25536 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
25537 }
25538 arg4 = static_cast< wxDouble >(val4);
25539 ecode5 = SWIG_AsVal_double(obj4, &val5);
25540 if (!SWIG_IsOK(ecode5)) {
25541 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
25542 }
25543 arg5 = static_cast< wxDouble >(val5);
25544 ecode6 = SWIG_AsVal_double(obj5, &val6);
25545 if (!SWIG_IsOK(ecode6)) {
25546 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
25547 }
25548 arg6 = static_cast< wxDouble >(val6);
25549 {
25550 arg7 = &temp7;
25551 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
25552 }
25553 {
25554 arg8 = &temp8;
25555 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
25556 }
25557 {
72ef6efb 25558 (arg1)->SetRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
25559 if (PyErr_Occurred()) SWIG_fail;
25560 }
25561 resultobj = SWIG_Py_Void();
25562 return resultobj;
25563fail:
25564 return NULL;
25565}
25566
25567
25568SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25569 PyObject *resultobj = 0;
25570 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25571 wxFont *arg2 = 0 ;
25572 void *argp1 = 0 ;
25573 int res1 = 0 ;
25574 void *argp2 = 0 ;
25575 int res2 = 0 ;
25576 PyObject * obj0 = 0 ;
25577 PyObject * obj1 = 0 ;
25578 char * kwnames[] = {
25579 (char *) "self",(char *) "font", NULL
25580 };
25581
25582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25584 if (!SWIG_IsOK(res1)) {
25585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25586 }
25587 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25588 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
25589 if (!SWIG_IsOK(res2)) {
25590 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25591 }
25592 if (!argp2) {
25593 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25594 }
25595 arg2 = reinterpret_cast< wxFont * >(argp2);
25596 {
72ef6efb 25597 (arg1)->SetFont((wxFont const &)*arg2);
72ef6efb
RD
25598 if (PyErr_Occurred()) SWIG_fail;
25599 }
25600 resultobj = SWIG_Py_Void();
25601 return resultobj;
25602fail:
25603 return NULL;
25604}
25605
25606
25607SWIGINTERN PyObject *_wrap_GraphicsContext_SetTextColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25608 PyObject *resultobj = 0;
25609 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25610 wxColour *arg2 = 0 ;
25611 void *argp1 = 0 ;
25612 int res1 = 0 ;
25613 wxColour temp2 ;
25614 PyObject * obj0 = 0 ;
25615 PyObject * obj1 = 0 ;
25616 char * kwnames[] = {
25617 (char *) "self",(char *) "col", NULL
25618 };
25619
25620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTextColor",kwnames,&obj0,&obj1)) SWIG_fail;
25621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25622 if (!SWIG_IsOK(res1)) {
25623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTextColor" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25624 }
25625 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25626 {
25627 arg2 = &temp2;
25628 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25629 }
25630 {
72ef6efb 25631 (arg1)->SetTextColor((wxColour const &)*arg2);
72ef6efb
RD
25632 if (PyErr_Occurred()) SWIG_fail;
25633 }
25634 resultobj = SWIG_Py_Void();
25635 return resultobj;
25636fail:
25637 return NULL;
25638}
25639
25640
25641SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25642 PyObject *resultobj = 0;
25643 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25644 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
25645 void *argp1 = 0 ;
25646 int res1 = 0 ;
25647 void *argp2 = 0 ;
25648 int res2 = 0 ;
25649 PyObject * obj0 = 0 ;
25650 PyObject * obj1 = 0 ;
25651 char * kwnames[] = {
25652 (char *) "self",(char *) "path", NULL
25653 };
25654
25655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
25656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25657 if (!SWIG_IsOK(res1)) {
25658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25659 }
25660 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25661 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25662 if (!SWIG_IsOK(res2)) {
25663 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
25664 }
25665 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
25666 {
72ef6efb 25667 (arg1)->StrokePath((wxGraphicsPath const *)arg2);
72ef6efb
RD
25668 if (PyErr_Occurred()) SWIG_fail;
25669 }
25670 resultobj = SWIG_Py_Void();
25671 return resultobj;
25672fail:
25673 return NULL;
25674}
25675
25676
25677SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25678 PyObject *resultobj = 0;
25679 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25680 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
25681 int arg3 = (int) wxWINDING_RULE ;
25682 void *argp1 = 0 ;
25683 int res1 = 0 ;
25684 void *argp2 = 0 ;
25685 int res2 = 0 ;
25686 int val3 ;
25687 int ecode3 = 0 ;
25688 PyObject * obj0 = 0 ;
25689 PyObject * obj1 = 0 ;
25690 PyObject * obj2 = 0 ;
25691 char * kwnames[] = {
25692 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
25693 };
25694
25695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25697 if (!SWIG_IsOK(res1)) {
25698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25699 }
25700 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25701 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25702 if (!SWIG_IsOK(res2)) {
25703 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
25704 }
25705 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
25706 if (obj2) {
25707 ecode3 = SWIG_AsVal_int(obj2, &val3);
25708 if (!SWIG_IsOK(ecode3)) {
25709 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
25710 }
25711 arg3 = static_cast< int >(val3);
25712 }
25713 {
72ef6efb 25714 (arg1)->FillPath((wxGraphicsPath const *)arg2,arg3);
72ef6efb
RD
25715 if (PyErr_Occurred()) SWIG_fail;
25716 }
25717 resultobj = SWIG_Py_Void();
25718 return resultobj;
25719fail:
25720 return NULL;
25721}
25722
25723
25724SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25725 PyObject *resultobj = 0;
25726 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25727 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
25728 int arg3 = (int) wxWINDING_RULE ;
25729 void *argp1 = 0 ;
25730 int res1 = 0 ;
25731 void *argp2 = 0 ;
25732 int res2 = 0 ;
25733 int val3 ;
25734 int ecode3 = 0 ;
25735 PyObject * obj0 = 0 ;
25736 PyObject * obj1 = 0 ;
25737 PyObject * obj2 = 0 ;
25738 char * kwnames[] = {
25739 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
25740 };
25741
25742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25744 if (!SWIG_IsOK(res1)) {
25745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25746 }
25747 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25748 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25749 if (!SWIG_IsOK(res2)) {
25750 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
25751 }
25752 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
25753 if (obj2) {
25754 ecode3 = SWIG_AsVal_int(obj2, &val3);
25755 if (!SWIG_IsOK(ecode3)) {
25756 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
25757 }
25758 arg3 = static_cast< int >(val3);
25759 }
25760 {
72ef6efb 25761 (arg1)->DrawPath((wxGraphicsPath const *)arg2,arg3);
72ef6efb
RD
25762 if (PyErr_Occurred()) SWIG_fail;
25763 }
25764 resultobj = SWIG_Py_Void();
25765 return resultobj;
25766fail:
25767 return NULL;
25768}
25769
25770
b39fe951 25771SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
25772 PyObject *resultobj = 0;
25773 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25774 wxString *arg2 = 0 ;
25775 wxDouble arg3 ;
25776 wxDouble arg4 ;
25777 void *argp1 = 0 ;
25778 int res1 = 0 ;
25779 bool temp2 = false ;
25780 double val3 ;
25781 int ecode3 = 0 ;
25782 double val4 ;
25783 int ecode4 = 0 ;
b39fe951
RD
25784 PyObject * obj0 = 0 ;
25785 PyObject * obj1 = 0 ;
25786 PyObject * obj2 = 0 ;
25787 PyObject * obj3 = 0 ;
25788 char * kwnames[] = {
25789 (char *) "self",(char *) "str",(char *) "x",(char *) "y", NULL
25790 };
72ef6efb 25791
b39fe951
RD
25792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
25794 if (!SWIG_IsOK(res1)) {
25795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25796 }
25797 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25798 {
b39fe951 25799 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
25800 if (arg2 == NULL) SWIG_fail;
25801 temp2 = true;
25802 }
b39fe951 25803 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb
RD
25804 if (!SWIG_IsOK(ecode3)) {
25805 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
25806 }
25807 arg3 = static_cast< wxDouble >(val3);
b39fe951 25808 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb
RD
25809 if (!SWIG_IsOK(ecode4)) {
25810 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
25811 }
25812 arg4 = static_cast< wxDouble >(val4);
25813 {
72ef6efb 25814 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
72ef6efb
RD
25815 if (PyErr_Occurred()) SWIG_fail;
25816 }
25817 resultobj = SWIG_Py_Void();
25818 {
25819 if (temp2)
25820 delete arg2;
25821 }
25822 return resultobj;
25823fail:
25824 {
25825 if (temp2)
25826 delete arg2;
25827 }
25828 return NULL;
25829}
25830
25831
b39fe951 25832SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
25833 PyObject *resultobj = 0;
25834 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25835 wxString *arg2 = 0 ;
25836 wxDouble arg3 ;
25837 wxDouble arg4 ;
25838 wxDouble arg5 ;
25839 void *argp1 = 0 ;
25840 int res1 = 0 ;
25841 bool temp2 = false ;
25842 double val3 ;
25843 int ecode3 = 0 ;
25844 double val4 ;
25845 int ecode4 = 0 ;
25846 double val5 ;
25847 int ecode5 = 0 ;
b39fe951
RD
25848 PyObject * obj0 = 0 ;
25849 PyObject * obj1 = 0 ;
25850 PyObject * obj2 = 0 ;
25851 PyObject * obj3 = 0 ;
25852 PyObject * obj4 = 0 ;
25853 char * kwnames[] = {
25854 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle", NULL
25855 };
72ef6efb 25856
b39fe951
RD
25857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 25859 if (!SWIG_IsOK(res1)) {
b39fe951 25860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
25861 }
25862 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25863 {
b39fe951 25864 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
25865 if (arg2 == NULL) SWIG_fail;
25866 temp2 = true;
25867 }
b39fe951 25868 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 25869 if (!SWIG_IsOK(ecode3)) {
b39fe951 25870 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
25871 }
25872 arg3 = static_cast< wxDouble >(val3);
b39fe951 25873 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb 25874 if (!SWIG_IsOK(ecode4)) {
b39fe951 25875 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
25876 }
25877 arg4 = static_cast< wxDouble >(val4);
b39fe951 25878 ecode5 = SWIG_AsVal_double(obj4, &val5);
72ef6efb 25879 if (!SWIG_IsOK(ecode5)) {
b39fe951 25880 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
25881 }
25882 arg5 = static_cast< wxDouble >(val5);
25883 {
72ef6efb 25884 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4,arg5);
72ef6efb
RD
25885 if (PyErr_Occurred()) SWIG_fail;
25886 }
25887 resultobj = SWIG_Py_Void();
25888 {
25889 if (temp2)
25890 delete arg2;
25891 }
25892 return resultobj;
25893fail:
25894 {
25895 if (temp2)
25896 delete arg2;
25897 }
25898 return NULL;
25899}
25900
25901
72ef6efb
RD
25902SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25903 PyObject *resultobj = 0;
25904 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25905 wxString *arg2 = 0 ;
25906 wxDouble *arg3 = (wxDouble *) 0 ;
25907 wxDouble *arg4 = (wxDouble *) 0 ;
25908 wxDouble *arg5 = (wxDouble *) 0 ;
25909 wxDouble *arg6 = (wxDouble *) 0 ;
25910 void *argp1 = 0 ;
25911 int res1 = 0 ;
25912 bool temp2 = false ;
25913 wxDouble temp3 ;
25914 int res3 = SWIG_TMPOBJ ;
25915 wxDouble temp4 ;
25916 int res4 = SWIG_TMPOBJ ;
25917 wxDouble temp5 ;
25918 int res5 = SWIG_TMPOBJ ;
25919 wxDouble temp6 ;
25920 int res6 = SWIG_TMPOBJ ;
25921 PyObject * obj0 = 0 ;
25922 PyObject * obj1 = 0 ;
25923 char * kwnames[] = {
25924 (char *) "self",(char *) "text", NULL
25925 };
25926
25927 arg3 = &temp3;
25928 arg4 = &temp4;
25929 arg5 = &temp5;
25930 arg6 = &temp6;
25931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
25932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25933 if (!SWIG_IsOK(res1)) {
25934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
25935 }
25936 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25937 {
25938 arg2 = wxString_in_helper(obj1);
25939 if (arg2 == NULL) SWIG_fail;
25940 temp2 = true;
25941 }
25942 {
72ef6efb 25943 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
25944 if (PyErr_Occurred()) SWIG_fail;
25945 }
25946 resultobj = SWIG_Py_Void();
25947 if (SWIG_IsTmpObj(res3)) {
25948 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
25949 } else {
25950 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25951 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
25952 }
25953 if (SWIG_IsTmpObj(res4)) {
25954 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
25955 } else {
25956 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25957 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
25958 }
25959 if (SWIG_IsTmpObj(res5)) {
25960 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
25961 } else {
25962 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25963 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
25964 }
25965 if (SWIG_IsTmpObj(res6)) {
25966 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
25967 } else {
25968 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25969 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
25970 }
25971 {
25972 if (temp2)
25973 delete arg2;
25974 }
25975 return resultobj;
25976fail:
25977 {
25978 if (temp2)
25979 delete arg2;
25980 }
25981 return NULL;
25982}
25983
25984
25985SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25986 PyObject *resultobj = 0;
25987 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25988 wxString *arg2 = 0 ;
b39fe951 25989 wxArrayDouble result;
72ef6efb
RD
25990 void *argp1 = 0 ;
25991 int res1 = 0 ;
25992 bool temp2 = false ;
72ef6efb
RD
25993 PyObject * obj0 = 0 ;
25994 PyObject * obj1 = 0 ;
72ef6efb 25995 char * kwnames[] = {
b39fe951 25996 (char *) "self",(char *) "text", NULL
72ef6efb
RD
25997 };
25998
b39fe951 25999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
26000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26001 if (!SWIG_IsOK(res1)) {
b39fe951 26002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
26003 }
26004 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26005 {
26006 arg2 = wxString_in_helper(obj1);
26007 if (arg2 == NULL) SWIG_fail;
26008 temp2 = true;
26009 }
72ef6efb 26010 {
b39fe951 26011 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
72ef6efb
RD
26012 if (PyErr_Occurred()) SWIG_fail;
26013 }
b39fe951
RD
26014 {
26015 resultobj = wxArrayDouble2PyList_helper(result);
26016 }
72ef6efb
RD
26017 {
26018 if (temp2)
26019 delete arg2;
26020 }
26021 return resultobj;
26022fail:
26023 {
26024 if (temp2)
26025 delete arg2;
26026 }
26027 return NULL;
26028}
26029
26030
26031SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26032 PyObject *resultobj = 0;
26033 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26034 wxBitmap *arg2 = 0 ;
26035 wxDouble arg3 ;
26036 wxDouble arg4 ;
26037 wxDouble arg5 ;
26038 wxDouble arg6 ;
26039 void *argp1 = 0 ;
26040 int res1 = 0 ;
26041 void *argp2 = 0 ;
26042 int res2 = 0 ;
26043 double val3 ;
26044 int ecode3 = 0 ;
26045 double val4 ;
26046 int ecode4 = 0 ;
26047 double val5 ;
26048 int ecode5 = 0 ;
26049 double val6 ;
26050 int ecode6 = 0 ;
26051 PyObject * obj0 = 0 ;
26052 PyObject * obj1 = 0 ;
26053 PyObject * obj2 = 0 ;
26054 PyObject * obj3 = 0 ;
26055 PyObject * obj4 = 0 ;
26056 PyObject * obj5 = 0 ;
26057 char * kwnames[] = {
26058 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26059 };
26060
26061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26063 if (!SWIG_IsOK(res1)) {
26064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26065 }
26066 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26067 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
26068 if (!SWIG_IsOK(res2)) {
26069 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26070 }
26071 if (!argp2) {
26072 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26073 }
26074 arg2 = reinterpret_cast< wxBitmap * >(argp2);
26075 ecode3 = SWIG_AsVal_double(obj2, &val3);
26076 if (!SWIG_IsOK(ecode3)) {
26077 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
26078 }
26079 arg3 = static_cast< wxDouble >(val3);
26080 ecode4 = SWIG_AsVal_double(obj3, &val4);
26081 if (!SWIG_IsOK(ecode4)) {
26082 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
26083 }
26084 arg4 = static_cast< wxDouble >(val4);
26085 ecode5 = SWIG_AsVal_double(obj4, &val5);
26086 if (!SWIG_IsOK(ecode5)) {
26087 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
26088 }
26089 arg5 = static_cast< wxDouble >(val5);
26090 ecode6 = SWIG_AsVal_double(obj5, &val6);
26091 if (!SWIG_IsOK(ecode6)) {
26092 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
26093 }
26094 arg6 = static_cast< wxDouble >(val6);
26095 {
72ef6efb 26096 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
26097 if (PyErr_Occurred()) SWIG_fail;
26098 }
26099 resultobj = SWIG_Py_Void();
26100 return resultobj;
26101fail:
26102 return NULL;
26103}
26104
26105
26106SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26107 PyObject *resultobj = 0;
26108 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26109 wxIcon *arg2 = 0 ;
26110 wxDouble arg3 ;
26111 wxDouble arg4 ;
26112 wxDouble arg5 ;
26113 wxDouble arg6 ;
26114 void *argp1 = 0 ;
26115 int res1 = 0 ;
26116 void *argp2 = 0 ;
26117 int res2 = 0 ;
26118 double val3 ;
26119 int ecode3 = 0 ;
26120 double val4 ;
26121 int ecode4 = 0 ;
26122 double val5 ;
26123 int ecode5 = 0 ;
26124 double val6 ;
26125 int ecode6 = 0 ;
26126 PyObject * obj0 = 0 ;
26127 PyObject * obj1 = 0 ;
26128 PyObject * obj2 = 0 ;
26129 PyObject * obj3 = 0 ;
26130 PyObject * obj4 = 0 ;
26131 PyObject * obj5 = 0 ;
26132 char * kwnames[] = {
26133 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26134 };
26135
26136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26138 if (!SWIG_IsOK(res1)) {
26139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26140 }
26141 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26142 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
26143 if (!SWIG_IsOK(res2)) {
26144 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
26145 }
26146 if (!argp2) {
26147 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
26148 }
26149 arg2 = reinterpret_cast< wxIcon * >(argp2);
26150 ecode3 = SWIG_AsVal_double(obj2, &val3);
26151 if (!SWIG_IsOK(ecode3)) {
26152 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
26153 }
26154 arg3 = static_cast< wxDouble >(val3);
26155 ecode4 = SWIG_AsVal_double(obj3, &val4);
26156 if (!SWIG_IsOK(ecode4)) {
26157 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
26158 }
26159 arg4 = static_cast< wxDouble >(val4);
26160 ecode5 = SWIG_AsVal_double(obj4, &val5);
26161 if (!SWIG_IsOK(ecode5)) {
26162 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
26163 }
26164 arg5 = static_cast< wxDouble >(val5);
26165 ecode6 = SWIG_AsVal_double(obj5, &val6);
26166 if (!SWIG_IsOK(ecode6)) {
26167 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
26168 }
26169 arg6 = static_cast< wxDouble >(val6);
26170 {
72ef6efb 26171 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
26172 if (PyErr_Occurred()) SWIG_fail;
26173 }
26174 resultobj = SWIG_Py_Void();
26175 return resultobj;
26176fail:
26177 return NULL;
26178}
26179
26180
26181SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26182 PyObject *resultobj = 0;
26183 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26184 wxDouble arg2 ;
26185 wxDouble arg3 ;
26186 wxDouble arg4 ;
26187 wxDouble arg5 ;
26188 void *argp1 = 0 ;
26189 int res1 = 0 ;
26190 double val2 ;
26191 int ecode2 = 0 ;
26192 double val3 ;
26193 int ecode3 = 0 ;
26194 double val4 ;
26195 int ecode4 = 0 ;
26196 double val5 ;
26197 int ecode5 = 0 ;
26198 PyObject * obj0 = 0 ;
26199 PyObject * obj1 = 0 ;
26200 PyObject * obj2 = 0 ;
26201 PyObject * obj3 = 0 ;
26202 PyObject * obj4 = 0 ;
26203 char * kwnames[] = {
26204 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
26205 };
26206
26207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26209 if (!SWIG_IsOK(res1)) {
26210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26211 }
26212 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26213 ecode2 = SWIG_AsVal_double(obj1, &val2);
26214 if (!SWIG_IsOK(ecode2)) {
26215 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
26216 }
26217 arg2 = static_cast< wxDouble >(val2);
26218 ecode3 = SWIG_AsVal_double(obj2, &val3);
26219 if (!SWIG_IsOK(ecode3)) {
26220 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
26221 }
26222 arg3 = static_cast< wxDouble >(val3);
26223 ecode4 = SWIG_AsVal_double(obj3, &val4);
26224 if (!SWIG_IsOK(ecode4)) {
26225 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
26226 }
26227 arg4 = static_cast< wxDouble >(val4);
26228 ecode5 = SWIG_AsVal_double(obj4, &val5);
26229 if (!SWIG_IsOK(ecode5)) {
26230 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
26231 }
26232 arg5 = static_cast< wxDouble >(val5);
26233 {
72ef6efb 26234 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
72ef6efb
RD
26235 if (PyErr_Occurred()) SWIG_fail;
26236 }
26237 resultobj = SWIG_Py_Void();
26238 return resultobj;
26239fail:
26240 return NULL;
26241}
26242
26243
b39fe951 26244SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
26245 PyObject *resultobj = 0;
26246 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26247 size_t arg2 ;
26248 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
26249 void *argp1 = 0 ;
26250 int res1 = 0 ;
b39fe951
RD
26251 PyObject * obj0 = 0 ;
26252 PyObject * obj1 = 0 ;
26253 char * kwnames[] = {
26254 (char *) "self",(char *) "points", NULL
26255 };
72ef6efb 26256
b39fe951
RD
26257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
26258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
26259 if (!SWIG_IsOK(res1)) {
26260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26261 }
26262 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
b39fe951
RD
26263 {
26264 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
26265 if (arg3 == NULL) SWIG_fail;
72ef6efb 26266 }
72ef6efb 26267 {
72ef6efb 26268 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
72ef6efb
RD
26269 if (PyErr_Occurred()) SWIG_fail;
26270 }
26271 resultobj = SWIG_Py_Void();
b39fe951
RD
26272 {
26273 if (arg3) delete [] arg3;
26274 }
72ef6efb
RD
26275 return resultobj;
26276fail:
b39fe951
RD
26277 {
26278 if (arg3) delete [] arg3;
26279 }
72ef6efb
RD
26280 return NULL;
26281}
26282
26283
b39fe951 26284SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeDisconnectedLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
26285 PyObject *resultobj = 0;
26286 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
b39fe951
RD
26287 PyObject *arg2 = (PyObject *) 0 ;
26288 PyObject *arg3 = (PyObject *) 0 ;
72ef6efb
RD
26289 void *argp1 = 0 ;
26290 int res1 = 0 ;
b39fe951
RD
26291 PyObject * obj0 = 0 ;
26292 PyObject * obj1 = 0 ;
26293 PyObject * obj2 = 0 ;
26294 char * kwnames[] = {
26295 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
26296 };
72ef6efb 26297
b39fe951
RD
26298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeDisconnectedLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 26300 if (!SWIG_IsOK(res1)) {
b39fe951 26301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeDisconnectedLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
26302 }
26303 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
b39fe951
RD
26304 arg2 = obj1;
26305 arg3 = obj2;
72ef6efb 26306 {
b39fe951 26307 wxGraphicsContext_StrokeDisconnectedLines(arg1,arg2,arg3);
72ef6efb
RD
26308 if (PyErr_Occurred()) SWIG_fail;
26309 }
26310 resultobj = SWIG_Py_Void();
26311 return resultobj;
26312fail:
26313 return NULL;
26314}
26315
26316
72ef6efb
RD
26317SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26318 PyObject *resultobj = 0;
26319 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26320 size_t arg2 ;
26321 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
26322 int arg4 = (int) wxWINDING_RULE ;
26323 void *argp1 = 0 ;
26324 int res1 = 0 ;
72ef6efb
RD
26325 int val4 ;
26326 int ecode4 = 0 ;
26327 PyObject * obj0 = 0 ;
26328 PyObject * obj1 = 0 ;
26329 PyObject * obj2 = 0 ;
72ef6efb 26330 char * kwnames[] = {
b39fe951 26331 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
72ef6efb
RD
26332 };
26333
b39fe951 26334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
72ef6efb
RD
26335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26336 if (!SWIG_IsOK(res1)) {
26337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26338 }
26339 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
b39fe951
RD
26340 {
26341 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
26342 if (arg3 == NULL) SWIG_fail;
72ef6efb 26343 }
b39fe951
RD
26344 if (obj2) {
26345 ecode4 = SWIG_AsVal_int(obj2, &val4);
72ef6efb
RD
26346 if (!SWIG_IsOK(ecode4)) {
26347 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
26348 }
26349 arg4 = static_cast< int >(val4);
26350 }
26351 {
72ef6efb 26352 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
72ef6efb
RD
26353 if (PyErr_Occurred()) SWIG_fail;
26354 }
26355 resultobj = SWIG_Py_Void();
b39fe951
RD
26356 {
26357 if (arg3) delete [] arg3;
26358 }
72ef6efb
RD
26359 return resultobj;
26360fail:
b39fe951
RD
26361 {
26362 if (arg3) delete [] arg3;
26363 }
72ef6efb
RD
26364 return NULL;
26365}
26366
26367
26368SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26369 PyObject *resultobj = 0;
26370 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26371 wxDouble arg2 ;
26372 wxDouble arg3 ;
26373 wxDouble arg4 ;
26374 wxDouble arg5 ;
26375 void *argp1 = 0 ;
26376 int res1 = 0 ;
26377 double val2 ;
26378 int ecode2 = 0 ;
26379 double val3 ;
26380 int ecode3 = 0 ;
26381 double val4 ;
26382 int ecode4 = 0 ;
26383 double val5 ;
26384 int ecode5 = 0 ;
26385 PyObject * obj0 = 0 ;
26386 PyObject * obj1 = 0 ;
26387 PyObject * obj2 = 0 ;
26388 PyObject * obj3 = 0 ;
26389 PyObject * obj4 = 0 ;
26390 char * kwnames[] = {
26391 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26392 };
26393
26394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26396 if (!SWIG_IsOK(res1)) {
26397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26398 }
26399 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26400 ecode2 = SWIG_AsVal_double(obj1, &val2);
26401 if (!SWIG_IsOK(ecode2)) {
26402 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26403 }
26404 arg2 = static_cast< wxDouble >(val2);
26405 ecode3 = SWIG_AsVal_double(obj2, &val3);
26406 if (!SWIG_IsOK(ecode3)) {
26407 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26408 }
26409 arg3 = static_cast< wxDouble >(val3);
26410 ecode4 = SWIG_AsVal_double(obj3, &val4);
26411 if (!SWIG_IsOK(ecode4)) {
26412 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26413 }
26414 arg4 = static_cast< wxDouble >(val4);
26415 ecode5 = SWIG_AsVal_double(obj4, &val5);
26416 if (!SWIG_IsOK(ecode5)) {
26417 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26418 }
26419 arg5 = static_cast< wxDouble >(val5);
26420 {
72ef6efb 26421 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
72ef6efb
RD
26422 if (PyErr_Occurred()) SWIG_fail;
26423 }
26424 resultobj = SWIG_Py_Void();
26425 return resultobj;
26426fail:
26427 return NULL;
26428}
26429
26430
26431SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26432 PyObject *resultobj = 0;
26433 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26434 wxDouble arg2 ;
26435 wxDouble arg3 ;
26436 wxDouble arg4 ;
26437 wxDouble arg5 ;
26438 void *argp1 = 0 ;
26439 int res1 = 0 ;
26440 double val2 ;
26441 int ecode2 = 0 ;
26442 double val3 ;
26443 int ecode3 = 0 ;
26444 double val4 ;
26445 int ecode4 = 0 ;
26446 double val5 ;
26447 int ecode5 = 0 ;
26448 PyObject * obj0 = 0 ;
26449 PyObject * obj1 = 0 ;
26450 PyObject * obj2 = 0 ;
26451 PyObject * obj3 = 0 ;
26452 PyObject * obj4 = 0 ;
26453 char * kwnames[] = {
26454 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26455 };
26456
26457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26459 if (!SWIG_IsOK(res1)) {
26460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26461 }
26462 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26463 ecode2 = SWIG_AsVal_double(obj1, &val2);
26464 if (!SWIG_IsOK(ecode2)) {
26465 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
26466 }
26467 arg2 = static_cast< wxDouble >(val2);
26468 ecode3 = SWIG_AsVal_double(obj2, &val3);
26469 if (!SWIG_IsOK(ecode3)) {
26470 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
26471 }
26472 arg3 = static_cast< wxDouble >(val3);
26473 ecode4 = SWIG_AsVal_double(obj3, &val4);
26474 if (!SWIG_IsOK(ecode4)) {
26475 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
26476 }
26477 arg4 = static_cast< wxDouble >(val4);
26478 ecode5 = SWIG_AsVal_double(obj4, &val5);
26479 if (!SWIG_IsOK(ecode5)) {
26480 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
26481 }
26482 arg5 = static_cast< wxDouble >(val5);
26483 {
72ef6efb 26484 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
72ef6efb
RD
26485 if (PyErr_Occurred()) SWIG_fail;
26486 }
26487 resultobj = SWIG_Py_Void();
26488 return resultobj;
26489fail:
26490 return NULL;
26491}
26492
26493
26494SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26495 PyObject *resultobj = 0;
26496 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26497 wxDouble arg2 ;
26498 wxDouble arg3 ;
26499 wxDouble arg4 ;
26500 wxDouble arg5 ;
26501 wxDouble arg6 ;
26502 void *argp1 = 0 ;
26503 int res1 = 0 ;
26504 double val2 ;
26505 int ecode2 = 0 ;
26506 double val3 ;
26507 int ecode3 = 0 ;
26508 double val4 ;
26509 int ecode4 = 0 ;
26510 double val5 ;
26511 int ecode5 = 0 ;
26512 double val6 ;
26513 int ecode6 = 0 ;
26514 PyObject * obj0 = 0 ;
26515 PyObject * obj1 = 0 ;
26516 PyObject * obj2 = 0 ;
26517 PyObject * obj3 = 0 ;
26518 PyObject * obj4 = 0 ;
26519 PyObject * obj5 = 0 ;
26520 char * kwnames[] = {
26521 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
26522 };
26523
26524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26526 if (!SWIG_IsOK(res1)) {
26527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26528 }
26529 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26530 ecode2 = SWIG_AsVal_double(obj1, &val2);
26531 if (!SWIG_IsOK(ecode2)) {
26532 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26533 }
26534 arg2 = static_cast< wxDouble >(val2);
26535 ecode3 = SWIG_AsVal_double(obj2, &val3);
26536 if (!SWIG_IsOK(ecode3)) {
26537 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26538 }
26539 arg3 = static_cast< wxDouble >(val3);
26540 ecode4 = SWIG_AsVal_double(obj3, &val4);
26541 if (!SWIG_IsOK(ecode4)) {
26542 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26543 }
26544 arg4 = static_cast< wxDouble >(val4);
26545 ecode5 = SWIG_AsVal_double(obj4, &val5);
26546 if (!SWIG_IsOK(ecode5)) {
26547 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26548 }
26549 arg5 = static_cast< wxDouble >(val5);
26550 ecode6 = SWIG_AsVal_double(obj5, &val6);
26551 if (!SWIG_IsOK(ecode6)) {
26552 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
26553 }
26554 arg6 = static_cast< wxDouble >(val6);
26555 {
72ef6efb 26556 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
26557 if (PyErr_Occurred()) SWIG_fail;
26558 }
26559 resultobj = SWIG_Py_Void();
26560 return resultobj;
26561fail:
26562 return NULL;
26563}
26564
26565
26566SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26567 PyObject *obj;
26568 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26569 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
26570 return SWIG_Py_Void();
26571}
26572
26573SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26574 PyObject *resultobj = 0;
26575 wxWindowDC *arg1 = 0 ;
26576 wxGCDC *result = 0 ;
26577 void *argp1 = 0 ;
26578 int res1 = 0 ;
26579 PyObject * obj0 = 0 ;
26580 char * kwnames[] = {
26581 (char *) "dc", NULL
26582 };
26583
26584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_GCDC",kwnames,&obj0)) SWIG_fail;
26585 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
26586 if (!SWIG_IsOK(res1)) {
26587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
26588 }
26589 if (!argp1) {
26590 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
26591 }
26592 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
26593 {
26594 if (!wxPyCheckForApp()) SWIG_fail;
26595 PyThreadState* __tstate = wxPyBeginAllowThreads();
26596 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
26597 wxPyEndAllowThreads(__tstate);
26598 if (PyErr_Occurred()) SWIG_fail;
26599 }
26600 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
26601 return resultobj;
26602fail:
26603 return NULL;
26604}
26605
26606
26607SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26608 PyObject *resultobj = 0;
26609 wxGCDC *arg1 = (wxGCDC *) 0 ;
26610 void *argp1 = 0 ;
26611 int res1 = 0 ;
26612 PyObject *swig_obj[1] ;
26613
26614 if (!args) SWIG_fail;
26615 swig_obj[0] = args;
26616 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
26617 if (!SWIG_IsOK(res1)) {
26618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
26619 }
26620 arg1 = reinterpret_cast< wxGCDC * >(argp1);
26621 {
72ef6efb
RD
26622 delete arg1;
26623
72ef6efb
RD
26624 if (PyErr_Occurred()) SWIG_fail;
26625 }
26626 resultobj = SWIG_Py_Void();
26627 return resultobj;
26628fail:
26629 return NULL;
26630}
26631
26632
26633SWIGINTERN PyObject *_wrap_GCDC_GetGraphicContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26634 PyObject *resultobj = 0;
26635 wxGCDC *arg1 = (wxGCDC *) 0 ;
26636 wxGraphicsContext *result = 0 ;
26637 void *argp1 = 0 ;
26638 int res1 = 0 ;
26639 PyObject *swig_obj[1] ;
26640
26641 if (!args) SWIG_fail;
26642 swig_obj[0] = args;
26643 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
26644 if (!SWIG_IsOK(res1)) {
26645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
26646 }
26647 arg1 = reinterpret_cast< wxGCDC * >(argp1);
26648 {
72ef6efb 26649 result = (wxGraphicsContext *)(arg1)->GetGraphicContext();
72ef6efb
RD
26650 if (PyErr_Occurred()) SWIG_fail;
26651 }
26652 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26653 return resultobj;
26654fail:
26655 return NULL;
26656}
26657
26658
26659SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26660 PyObject *obj;
26661 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26662 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
26663 return SWIG_Py_Void();
26664}
26665
26666SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26667 return SWIG_Python_InitShadowInstance(args);
26668}
26669
b39fe951
RD
26670SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26671 PyObject *resultobj = 0;
26672 wxOverlay *result = 0 ;
26673
26674 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
26675 {
26676 PyThreadState* __tstate = wxPyBeginAllowThreads();
26677 result = (wxOverlay *)new wxOverlay();
26678 wxPyEndAllowThreads(__tstate);
26679 if (PyErr_Occurred()) SWIG_fail;
26680 }
26681 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
26682 return resultobj;
26683fail:
26684 return NULL;
26685}
26686
26687
26688SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26689 PyObject *resultobj = 0;
26690 wxOverlay *arg1 = (wxOverlay *) 0 ;
26691 void *argp1 = 0 ;
26692 int res1 = 0 ;
26693 PyObject *swig_obj[1] ;
26694
26695 if (!args) SWIG_fail;
26696 swig_obj[0] = args;
26697 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
26698 if (!SWIG_IsOK(res1)) {
26699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
26700 }
26701 arg1 = reinterpret_cast< wxOverlay * >(argp1);
26702 {
26703 PyThreadState* __tstate = wxPyBeginAllowThreads();
26704 delete arg1;
26705
26706 wxPyEndAllowThreads(__tstate);
26707 if (PyErr_Occurred()) SWIG_fail;
26708 }
26709 resultobj = SWIG_Py_Void();
26710 return resultobj;
26711fail:
26712 return NULL;
26713}
26714
26715
26716SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26717 PyObject *resultobj = 0;
26718 wxOverlay *arg1 = (wxOverlay *) 0 ;
26719 void *argp1 = 0 ;
26720 int res1 = 0 ;
26721 PyObject *swig_obj[1] ;
26722
26723 if (!args) SWIG_fail;
26724 swig_obj[0] = args;
26725 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
26726 if (!SWIG_IsOK(res1)) {
26727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
26728 }
26729 arg1 = reinterpret_cast< wxOverlay * >(argp1);
26730 {
26731 PyThreadState* __tstate = wxPyBeginAllowThreads();
26732 (arg1)->Reset();
26733 wxPyEndAllowThreads(__tstate);
26734 if (PyErr_Occurred()) SWIG_fail;
26735 }
26736 resultobj = SWIG_Py_Void();
26737 return resultobj;
26738fail:
26739 return NULL;
26740}
26741
26742
26743SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26744 PyObject *obj;
26745 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26746 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
26747 return SWIG_Py_Void();
26748}
26749
26750SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26751 return SWIG_Python_InitShadowInstance(args);
26752}
26753
26754SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26755 PyObject *resultobj = 0;
26756 wxOverlay *arg1 = 0 ;
26757 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
26758 int arg3 ;
26759 int arg4 ;
26760 int arg5 ;
26761 int arg6 ;
26762 wxDCOverlay *result = 0 ;
26763 void *argp1 = 0 ;
26764 int res1 = 0 ;
26765 void *argp2 = 0 ;
26766 int res2 = 0 ;
26767 int val3 ;
26768 int ecode3 = 0 ;
26769 int val4 ;
26770 int ecode4 = 0 ;
26771 int val5 ;
26772 int ecode5 = 0 ;
26773 int val6 ;
26774 int ecode6 = 0 ;
26775
26776 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
26777 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
26778 if (!SWIG_IsOK(res1)) {
26779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
26780 }
26781 if (!argp1) {
26782 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
26783 }
26784 arg1 = reinterpret_cast< wxOverlay * >(argp1);
26785 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
26786 if (!SWIG_IsOK(res2)) {
26787 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
26788 }
26789 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
26790 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
26791 if (!SWIG_IsOK(ecode3)) {
26792 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
26793 }
26794 arg3 = static_cast< int >(val3);
26795 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
26796 if (!SWIG_IsOK(ecode4)) {
26797 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
26798 }
26799 arg4 = static_cast< int >(val4);
26800 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
26801 if (!SWIG_IsOK(ecode5)) {
26802 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
26803 }
26804 arg5 = static_cast< int >(val5);
26805 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
26806 if (!SWIG_IsOK(ecode6)) {
26807 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
26808 }
26809 arg6 = static_cast< int >(val6);
26810 {
26811 PyThreadState* __tstate = wxPyBeginAllowThreads();
26812 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
26813 wxPyEndAllowThreads(__tstate);
26814 if (PyErr_Occurred()) SWIG_fail;
26815 }
26816 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
26817 return resultobj;
26818fail:
26819 return NULL;
26820}
26821
26822
26823SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26824 PyObject *resultobj = 0;
26825 wxOverlay *arg1 = 0 ;
26826 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
26827 wxDCOverlay *result = 0 ;
26828 void *argp1 = 0 ;
26829 int res1 = 0 ;
26830 void *argp2 = 0 ;
26831 int res2 = 0 ;
26832
26833 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26834 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
26835 if (!SWIG_IsOK(res1)) {
26836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
26837 }
26838 if (!argp1) {
26839 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
26840 }
26841 arg1 = reinterpret_cast< wxOverlay * >(argp1);
26842 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
26843 if (!SWIG_IsOK(res2)) {
26844 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
26845 }
26846 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
26847 {
26848 PyThreadState* __tstate = wxPyBeginAllowThreads();
26849 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
26850 wxPyEndAllowThreads(__tstate);
26851 if (PyErr_Occurred()) SWIG_fail;
26852 }
26853 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
26854 return resultobj;
26855fail:
26856 return NULL;
26857}
26858
26859
26860SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
26861 int argc;
26862 PyObject *argv[7];
26863
26864 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
26865 --argc;
26866 if (argc == 2) {
26867 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
26868 }
26869 if (argc == 6) {
26870 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
26871 }
26872
26873fail:
26874 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
26875 return NULL;
26876}
26877
26878
26879SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26880 PyObject *resultobj = 0;
26881 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
26882 void *argp1 = 0 ;
26883 int res1 = 0 ;
26884 PyObject *swig_obj[1] ;
26885
26886 if (!args) SWIG_fail;
26887 swig_obj[0] = args;
26888 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
26889 if (!SWIG_IsOK(res1)) {
26890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
26891 }
26892 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
26893 {
26894 PyThreadState* __tstate = wxPyBeginAllowThreads();
26895 delete arg1;
26896
26897 wxPyEndAllowThreads(__tstate);
26898 if (PyErr_Occurred()) SWIG_fail;
26899 }
26900 resultobj = SWIG_Py_Void();
26901 return resultobj;
26902fail:
26903 return NULL;
26904}
26905
26906
26907SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26908 PyObject *resultobj = 0;
26909 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
26910 void *argp1 = 0 ;
26911 int res1 = 0 ;
26912 PyObject *swig_obj[1] ;
26913
26914 if (!args) SWIG_fail;
26915 swig_obj[0] = args;
26916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
26917 if (!SWIG_IsOK(res1)) {
26918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
26919 }
26920 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
26921 {
26922 PyThreadState* __tstate = wxPyBeginAllowThreads();
26923 (arg1)->Clear();
26924 wxPyEndAllowThreads(__tstate);
26925 if (PyErr_Occurred()) SWIG_fail;
26926 }
26927 resultobj = SWIG_Py_Void();
26928 return resultobj;
26929fail:
26930 return NULL;
26931}
26932
26933
26934SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26935 PyObject *obj;
26936 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26937 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
26938 return SWIG_Py_Void();
26939}
26940
26941SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26942 return SWIG_Python_InitShadowInstance(args);
26943}
26944
72ef6efb
RD
26945SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26946 PyObject *resultobj = 0;
26947 int arg1 ;
26948 int arg2 ;
26949 int arg3 = (int) true ;
26950 int arg4 = (int) 1 ;
26951 wxImageList *result = 0 ;
26952 int val1 ;
26953 int ecode1 = 0 ;
26954 int val2 ;
26955 int ecode2 = 0 ;
26956 int val3 ;
26957 int ecode3 = 0 ;
26958 int val4 ;
26959 int ecode4 = 0 ;
26960 PyObject * obj0 = 0 ;
26961 PyObject * obj1 = 0 ;
26962 PyObject * obj2 = 0 ;
26963 PyObject * obj3 = 0 ;
26964 char * kwnames[] = {
26965 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
26966 };
26967
26968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26969 ecode1 = SWIG_AsVal_int(obj0, &val1);
26970 if (!SWIG_IsOK(ecode1)) {
26971 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
26972 }
26973 arg1 = static_cast< int >(val1);
26974 ecode2 = SWIG_AsVal_int(obj1, &val2);
26975 if (!SWIG_IsOK(ecode2)) {
26976 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
26977 }
26978 arg2 = static_cast< int >(val2);
26979 if (obj2) {
26980 ecode3 = SWIG_AsVal_int(obj2, &val3);
26981 if (!SWIG_IsOK(ecode3)) {
26982 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
26983 }
26984 arg3 = static_cast< int >(val3);
26985 }
26986 if (obj3) {
26987 ecode4 = SWIG_AsVal_int(obj3, &val4);
26988 if (!SWIG_IsOK(ecode4)) {
26989 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
26990 }
26991 arg4 = static_cast< int >(val4);
26992 }
26993 {
26994 if (!wxPyCheckForApp()) SWIG_fail;
26995 PyThreadState* __tstate = wxPyBeginAllowThreads();
26996 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
26997 wxPyEndAllowThreads(__tstate);
26998 if (PyErr_Occurred()) SWIG_fail;
26999 }
27000 {
27001 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
27002 }
27003 return resultobj;
27004fail:
27005 return NULL;
27006}
27007
27008
27009SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27010 PyObject *resultobj = 0;
27011 wxImageList *arg1 = (wxImageList *) 0 ;
27012 void *argp1 = 0 ;
27013 int res1 = 0 ;
27014 PyObject *swig_obj[1] ;
27015
27016 if (!args) SWIG_fail;
27017 swig_obj[0] = args;
27018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
27019 if (!SWIG_IsOK(res1)) {
27020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
27021 }
27022 arg1 = reinterpret_cast< wxImageList * >(argp1);
27023 {
27024 PyThreadState* __tstate = wxPyBeginAllowThreads();
27025 delete arg1;
27026
27027 wxPyEndAllowThreads(__tstate);
27028 if (PyErr_Occurred()) SWIG_fail;
27029 }
27030 resultobj = SWIG_Py_Void();
27031 return resultobj;
27032fail:
27033 return NULL;
27034}
27035
27036
27037SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27038 PyObject *resultobj = 0;
27039 wxImageList *arg1 = (wxImageList *) 0 ;
27040 wxBitmap *arg2 = 0 ;
27041 wxBitmap const &arg3_defvalue = wxNullBitmap ;
27042 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
27043 int result;
27044 void *argp1 = 0 ;
27045 int res1 = 0 ;
27046 void *argp2 = 0 ;
27047 int res2 = 0 ;
27048 void *argp3 = 0 ;
27049 int res3 = 0 ;
27050 PyObject * obj0 = 0 ;
27051 PyObject * obj1 = 0 ;
27052 PyObject * obj2 = 0 ;
27053 char * kwnames[] = {
27054 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
27055 };
27056
27057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27059 if (!SWIG_IsOK(res1)) {
27060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
27061 }
27062 arg1 = reinterpret_cast< wxImageList * >(argp1);
27063 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
27064 if (!SWIG_IsOK(res2)) {
27065 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27066 }
27067 if (!argp2) {
27068 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27069 }
27070 arg2 = reinterpret_cast< wxBitmap * >(argp2);
27071 if (obj2) {
27072 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
27073 if (!SWIG_IsOK(res3)) {
27074 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27075 }
27076 if (!argp3) {
27077 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27078 }
27079 arg3 = reinterpret_cast< wxBitmap * >(argp3);
27080 }
27081 {
27082 PyThreadState* __tstate = wxPyBeginAllowThreads();
27083 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
27084 wxPyEndAllowThreads(__tstate);
27085 if (PyErr_Occurred()) SWIG_fail;
27086 }
27087 resultobj = SWIG_From_int(static_cast< int >(result));
27088 return resultobj;
27089fail:
27090 return NULL;
27091}
27092
27093
27094SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27095 PyObject *resultobj = 0;
27096 wxImageList *arg1 = (wxImageList *) 0 ;
27097 wxBitmap *arg2 = 0 ;
27098 wxColour *arg3 = 0 ;
27099 int result;
27100 void *argp1 = 0 ;
27101 int res1 = 0 ;
27102 void *argp2 = 0 ;
27103 int res2 = 0 ;
27104 wxColour temp3 ;
27105 PyObject * obj0 = 0 ;
27106 PyObject * obj1 = 0 ;
27107 PyObject * obj2 = 0 ;
27108 char * kwnames[] = {
27109 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
27110 };
27111
27112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27114 if (!SWIG_IsOK(res1)) {
27115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
27116 }
27117 arg1 = reinterpret_cast< wxImageList * >(argp1);
27118 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
27119 if (!SWIG_IsOK(res2)) {
27120 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27121 }
27122 if (!argp2) {
27123 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27124 }
27125 arg2 = reinterpret_cast< wxBitmap * >(argp2);
27126 {
27127 arg3 = &temp3;
27128 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
27129 }
27130 {
27131 PyThreadState* __tstate = wxPyBeginAllowThreads();
27132 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
27133 wxPyEndAllowThreads(__tstate);
27134 if (PyErr_Occurred()) SWIG_fail;
27135 }
27136 resultobj = SWIG_From_int(static_cast< int >(result));
27137 return resultobj;
27138fail:
27139 return NULL;
27140}
27141
27142
27143SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27144 PyObject *resultobj = 0;
27145 wxImageList *arg1 = (wxImageList *) 0 ;
27146 wxIcon *arg2 = 0 ;
27147 int result;
27148 void *argp1 = 0 ;
27149 int res1 = 0 ;
27150 void *argp2 = 0 ;
27151 int res2 = 0 ;
27152 PyObject * obj0 = 0 ;
27153 PyObject * obj1 = 0 ;
27154 char * kwnames[] = {
27155 (char *) "self",(char *) "icon", NULL
27156 };
27157
27158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
27159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27160 if (!SWIG_IsOK(res1)) {
27161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
27162 }
1bd55598
RD
27163 arg1 = reinterpret_cast< wxImageList * >(argp1);
27164 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
27165 if (!SWIG_IsOK(res2)) {
27166 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
27167 }
27168 if (!argp2) {
27169 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
27170 }
27171 arg2 = reinterpret_cast< wxIcon * >(argp2);
27172 {
27173 PyThreadState* __tstate = wxPyBeginAllowThreads();
27174 result = (int)(arg1)->Add((wxIcon const &)*arg2);
27175 wxPyEndAllowThreads(__tstate);
27176 if (PyErr_Occurred()) SWIG_fail;
27177 }
27178 resultobj = SWIG_From_int(static_cast< int >(result));
27179 return resultobj;
27180fail:
27181 return NULL;
27182}
27183
27184
27185SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27186 PyObject *resultobj = 0;
27187 wxImageList *arg1 = (wxImageList *) 0 ;
27188 int arg2 ;
27189 SwigValueWrapper<wxBitmap > result;
27190 void *argp1 = 0 ;
27191 int res1 = 0 ;
27192 int val2 ;
27193 int ecode2 = 0 ;
27194 PyObject * obj0 = 0 ;
27195 PyObject * obj1 = 0 ;
27196 char * kwnames[] = {
27197 (char *) "self",(char *) "index", NULL
27198 };
27199
27200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
27201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27202 if (!SWIG_IsOK(res1)) {
27203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
27204 }
27205 arg1 = reinterpret_cast< wxImageList * >(argp1);
27206 ecode2 = SWIG_AsVal_int(obj1, &val2);
27207 if (!SWIG_IsOK(ecode2)) {
27208 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
27209 }
27210 arg2 = static_cast< int >(val2);
27211 {
27212 PyThreadState* __tstate = wxPyBeginAllowThreads();
27213 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
27214 wxPyEndAllowThreads(__tstate);
27215 if (PyErr_Occurred()) SWIG_fail;
27216 }
27217 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
27218 return resultobj;
27219fail:
27220 return NULL;
27221}
27222
27223
27224SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27225 PyObject *resultobj = 0;
27226 wxImageList *arg1 = (wxImageList *) 0 ;
27227 int arg2 ;
27228 wxIcon result;
27229 void *argp1 = 0 ;
27230 int res1 = 0 ;
27231 int val2 ;
27232 int ecode2 = 0 ;
27233 PyObject * obj0 = 0 ;
27234 PyObject * obj1 = 0 ;
27235 char * kwnames[] = {
27236 (char *) "self",(char *) "index", NULL
27237 };
27238
27239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
27240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27241 if (!SWIG_IsOK(res1)) {
27242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
27243 }
27244 arg1 = reinterpret_cast< wxImageList * >(argp1);
27245 ecode2 = SWIG_AsVal_int(obj1, &val2);
27246 if (!SWIG_IsOK(ecode2)) {
27247 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
27248 }
27249 arg2 = static_cast< int >(val2);
27250 {
27251 PyThreadState* __tstate = wxPyBeginAllowThreads();
27252 result = ((wxImageList const *)arg1)->GetIcon(arg2);
27253 wxPyEndAllowThreads(__tstate);
27254 if (PyErr_Occurred()) SWIG_fail;
27255 }
27256 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
27257 return resultobj;
27258fail:
27259 return NULL;
27260}
27261
27262
27263SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27264 PyObject *resultobj = 0;
27265 wxImageList *arg1 = (wxImageList *) 0 ;
27266 int arg2 ;
27267 wxBitmap *arg3 = 0 ;
2131d850
RD
27268 wxBitmap const &arg4_defvalue = wxNullBitmap ;
27269 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
1bd55598
RD
27270 bool result;
27271 void *argp1 = 0 ;
27272 int res1 = 0 ;
27273 int val2 ;
27274 int ecode2 = 0 ;
27275 void *argp3 = 0 ;
27276 int res3 = 0 ;
2131d850
RD
27277 void *argp4 = 0 ;
27278 int res4 = 0 ;
1bd55598
RD
27279 PyObject * obj0 = 0 ;
27280 PyObject * obj1 = 0 ;
27281 PyObject * obj2 = 0 ;
2131d850 27282 PyObject * obj3 = 0 ;
1bd55598 27283 char * kwnames[] = {
2131d850 27284 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
1bd55598
RD
27285 };
27286
2131d850 27287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
27288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27289 if (!SWIG_IsOK(res1)) {
27290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
27291 }
27292 arg1 = reinterpret_cast< wxImageList * >(argp1);
27293 ecode2 = SWIG_AsVal_int(obj1, &val2);
27294 if (!SWIG_IsOK(ecode2)) {
27295 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
27296 }
27297 arg2 = static_cast< int >(val2);
27298 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
27299 if (!SWIG_IsOK(res3)) {
27300 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27301 }
27302 if (!argp3) {
27303 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27304 }
27305 arg3 = reinterpret_cast< wxBitmap * >(argp3);
2131d850
RD
27306 if (obj3) {
27307 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
27308 if (!SWIG_IsOK(res4)) {
27309 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
27310 }
27311 if (!argp4) {
27312 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
27313 }
27314 arg4 = reinterpret_cast< wxBitmap * >(argp4);
27315 }
1bd55598
RD
27316 {
27317 PyThreadState* __tstate = wxPyBeginAllowThreads();
2131d850 27318 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
1bd55598
RD
27319 wxPyEndAllowThreads(__tstate);
27320 if (PyErr_Occurred()) SWIG_fail;
27321 }
27322 {
27323 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27324 }
27325 return resultobj;
27326fail:
27327 return NULL;
27328}
27329
27330
27331SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27332 PyObject *resultobj = 0;
27333 wxImageList *arg1 = (wxImageList *) 0 ;
27334 int arg2 ;
27335 wxDC *arg3 = 0 ;
27336 int arg4 ;
27337 int arg5 ;
27338 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
27339 bool arg7 = (bool) (bool)false ;
27340 bool result;
27341 void *argp1 = 0 ;
27342 int res1 = 0 ;
27343 int val2 ;
27344 int ecode2 = 0 ;
27345 void *argp3 = 0 ;
27346 int res3 = 0 ;
27347 int val4 ;
27348 int ecode4 = 0 ;
27349 int val5 ;
27350 int ecode5 = 0 ;
27351 int val6 ;
27352 int ecode6 = 0 ;
27353 bool val7 ;
27354 int ecode7 = 0 ;
27355 PyObject * obj0 = 0 ;
27356 PyObject * obj1 = 0 ;
27357 PyObject * obj2 = 0 ;
27358 PyObject * obj3 = 0 ;
27359 PyObject * obj4 = 0 ;
27360 PyObject * obj5 = 0 ;
27361 PyObject * obj6 = 0 ;
27362 char * kwnames[] = {
27363 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
27364 };
27365
27366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27368 if (!SWIG_IsOK(res1)) {
27369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
27370 }
27371 arg1 = reinterpret_cast< wxImageList * >(argp1);
27372 ecode2 = SWIG_AsVal_int(obj1, &val2);
27373 if (!SWIG_IsOK(ecode2)) {
27374 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
27375 }
27376 arg2 = static_cast< int >(val2);
27377 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27378 if (!SWIG_IsOK(res3)) {
27379 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
27380 }
27381 if (!argp3) {
27382 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
27383 }
27384 arg3 = reinterpret_cast< wxDC * >(argp3);
27385 ecode4 = SWIG_AsVal_int(obj3, &val4);
27386 if (!SWIG_IsOK(ecode4)) {
27387 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
27388 }
27389 arg4 = static_cast< int >(val4);
27390 ecode5 = SWIG_AsVal_int(obj4, &val5);
27391 if (!SWIG_IsOK(ecode5)) {
27392 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
27393 }
27394 arg5 = static_cast< int >(val5);
27395 if (obj5) {
27396 ecode6 = SWIG_AsVal_int(obj5, &val6);
27397 if (!SWIG_IsOK(ecode6)) {
27398 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
27399 }
27400 arg6 = static_cast< int >(val6);
27401 }
27402 if (obj6) {
27403 ecode7 = SWIG_AsVal_bool(obj6, &val7);
27404 if (!SWIG_IsOK(ecode7)) {
27405 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
27406 }
27407 arg7 = static_cast< bool >(val7);
27408 }
27409 {
27410 PyThreadState* __tstate = wxPyBeginAllowThreads();
27411 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
27412 wxPyEndAllowThreads(__tstate);
27413 if (PyErr_Occurred()) SWIG_fail;
27414 }
27415 {
27416 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27417 }
27418 return resultobj;
27419fail:
27420 return NULL;
27421}
27422
27423
27424SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27425 PyObject *resultobj = 0;
27426 wxImageList *arg1 = (wxImageList *) 0 ;
27427 int result;
27428 void *argp1 = 0 ;
27429 int res1 = 0 ;
27430 PyObject *swig_obj[1] ;
27431
27432 if (!args) SWIG_fail;
27433 swig_obj[0] = args;
27434 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27435 if (!SWIG_IsOK(res1)) {
27436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
27437 }
27438 arg1 = reinterpret_cast< wxImageList * >(argp1);
27439 {
27440 PyThreadState* __tstate = wxPyBeginAllowThreads();
27441 result = (int)(arg1)->GetImageCount();
27442 wxPyEndAllowThreads(__tstate);
27443 if (PyErr_Occurred()) SWIG_fail;
27444 }
27445 resultobj = SWIG_From_int(static_cast< int >(result));
27446 return resultobj;
27447fail:
27448 return NULL;
27449}
27450
27451
27452SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27453 PyObject *resultobj = 0;
27454 wxImageList *arg1 = (wxImageList *) 0 ;
27455 int arg2 ;
27456 bool result;
27457 void *argp1 = 0 ;
27458 int res1 = 0 ;
27459 int val2 ;
27460 int ecode2 = 0 ;
27461 PyObject * obj0 = 0 ;
27462 PyObject * obj1 = 0 ;
27463 char * kwnames[] = {
27464 (char *) "self",(char *) "index", NULL
27465 };
27466
27467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
27468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27469 if (!SWIG_IsOK(res1)) {
27470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
27471 }
27472 arg1 = reinterpret_cast< wxImageList * >(argp1);
27473 ecode2 = SWIG_AsVal_int(obj1, &val2);
27474 if (!SWIG_IsOK(ecode2)) {
27475 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
27476 }
27477 arg2 = static_cast< int >(val2);
27478 {
27479 PyThreadState* __tstate = wxPyBeginAllowThreads();
27480 result = (bool)(arg1)->Remove(arg2);
27481 wxPyEndAllowThreads(__tstate);
27482 if (PyErr_Occurred()) SWIG_fail;
27483 }
27484 {
27485 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27486 }
27487 return resultobj;
27488fail:
27489 return NULL;
27490}
27491
27492
27493SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27494 PyObject *resultobj = 0;
27495 wxImageList *arg1 = (wxImageList *) 0 ;
27496 bool result;
27497 void *argp1 = 0 ;
27498 int res1 = 0 ;
27499 PyObject *swig_obj[1] ;
27500
27501 if (!args) SWIG_fail;
27502 swig_obj[0] = args;
27503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27504 if (!SWIG_IsOK(res1)) {
27505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
27506 }
27507 arg1 = reinterpret_cast< wxImageList * >(argp1);
27508 {
27509 PyThreadState* __tstate = wxPyBeginAllowThreads();
27510 result = (bool)(arg1)->RemoveAll();
27511 wxPyEndAllowThreads(__tstate);
27512 if (PyErr_Occurred()) SWIG_fail;
27513 }
27514 {
27515 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27516 }
27517 return resultobj;
27518fail:
27519 return NULL;
27520}
27521
27522
27523SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27524 PyObject *resultobj = 0;
27525 wxImageList *arg1 = (wxImageList *) 0 ;
27526 int arg2 ;
27527 int *arg3 = 0 ;
27528 int *arg4 = 0 ;
27529 void *argp1 = 0 ;
27530 int res1 = 0 ;
27531 int val2 ;
27532 int ecode2 = 0 ;
27533 int temp3 ;
27534 int res3 = SWIG_TMPOBJ ;
27535 int temp4 ;
27536 int res4 = SWIG_TMPOBJ ;
27537 PyObject * obj0 = 0 ;
27538 PyObject * obj1 = 0 ;
27539 char * kwnames[] = {
27540 (char *) "self",(char *) "index", NULL
27541 };
27542
27543 arg3 = &temp3;
27544 arg4 = &temp4;
27545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
27546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27547 if (!SWIG_IsOK(res1)) {
27548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
27549 }
27550 arg1 = reinterpret_cast< wxImageList * >(argp1);
27551 ecode2 = SWIG_AsVal_int(obj1, &val2);
27552 if (!SWIG_IsOK(ecode2)) {
27553 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
27554 }
27555 arg2 = static_cast< int >(val2);
27556 {
27557 PyThreadState* __tstate = wxPyBeginAllowThreads();
27558 (arg1)->GetSize(arg2,*arg3,*arg4);
27559 wxPyEndAllowThreads(__tstate);
27560 if (PyErr_Occurred()) SWIG_fail;
27561 }
27562 resultobj = SWIG_Py_Void();
27563 if (SWIG_IsTmpObj(res3)) {
27564 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
27565 } else {
27566 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27567 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
27568 }
27569 if (SWIG_IsTmpObj(res4)) {
27570 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
27571 } else {
27572 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27573 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
27574 }
27575 return resultobj;
27576fail:
27577 return NULL;
27578}
27579
27580
27581SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27582 PyObject *obj;
27583 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27584 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
27585 return SWIG_Py_Void();
27586}
27587
27588SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27589 return SWIG_Python_InitShadowInstance(args);
27590}
27591
da91cb0f
RD
27592SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27593 PyObject *resultobj = 0;
27594 wxStockGDI *result = 0 ;
1bd55598 27595
da91cb0f
RD
27596 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
27597 {
27598 PyThreadState* __tstate = wxPyBeginAllowThreads();
27599 result = (wxStockGDI *)new wxStockGDI();
27600 wxPyEndAllowThreads(__tstate);
27601 if (PyErr_Occurred()) SWIG_fail;
27602 }
27603 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
27604 return resultobj;
27605fail:
27606 return NULL;
1bd55598
RD
27607}
27608
27609
da91cb0f
RD
27610SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27611 PyObject *resultobj = 0;
27612 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
27613 void *argp1 = 0 ;
27614 int res1 = 0 ;
27615 PyObject *swig_obj[1] ;
1bd55598 27616
da91cb0f
RD
27617 if (!args) SWIG_fail;
27618 swig_obj[0] = args;
27619 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
27620 if (!SWIG_IsOK(res1)) {
27621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
27622 }
27623 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
27624 {
27625 PyThreadState* __tstate = wxPyBeginAllowThreads();
27626 delete arg1;
27627
27628 wxPyEndAllowThreads(__tstate);
27629 if (PyErr_Occurred()) SWIG_fail;
27630 }
27631 resultobj = SWIG_Py_Void();
27632 return resultobj;
27633fail:
27634 return NULL;
1bd55598
RD
27635}
27636
27637
da91cb0f
RD
27638SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27639 PyObject *resultobj = 0;
1bd55598 27640
da91cb0f
RD
27641 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
27642 {
27643 PyThreadState* __tstate = wxPyBeginAllowThreads();
27644 wxStockGDI::DeleteAll();
27645 wxPyEndAllowThreads(__tstate);
27646 if (PyErr_Occurred()) SWIG_fail;
27647 }
27648 resultobj = SWIG_Py_Void();
27649 return resultobj;
27650fail:
27651 return NULL;
1bd55598
RD
27652}
27653
27654
da91cb0f
RD
27655SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27656 PyObject *resultobj = 0;
27657 wxStockGDI *result = 0 ;
1bd55598 27658
da91cb0f
RD
27659 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
27660 {
27661 PyThreadState* __tstate = wxPyBeginAllowThreads();
27662 {
27663 wxStockGDI &_result_ref = wxStockGDI::instance();
27664 result = (wxStockGDI *) &_result_ref;
27665 }
27666 wxPyEndAllowThreads(__tstate);
27667 if (PyErr_Occurred()) SWIG_fail;
27668 }
27669 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
27670 return resultobj;
27671fail:
27672 return NULL;
1bd55598
RD
27673}
27674
27675
da91cb0f
RD
27676SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27677 PyObject *resultobj = 0;
27678 wxStockGDI::Item arg1 ;
27679 wxBrush *result = 0 ;
27680 int val1 ;
27681 int ecode1 = 0 ;
27682 PyObject * obj0 = 0 ;
27683 char * kwnames[] = {
27684 (char *) "item", NULL
27685 };
27686
27687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
27688 ecode1 = SWIG_AsVal_int(obj0, &val1);
27689 if (!SWIG_IsOK(ecode1)) {
27690 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27691 }
27692 arg1 = static_cast< wxStockGDI::Item >(val1);
27693 {
27694 PyThreadState* __tstate = wxPyBeginAllowThreads();
27695 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
27696 wxPyEndAllowThreads(__tstate);
27697 if (PyErr_Occurred()) SWIG_fail;
27698 }
27699 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
27700 return resultobj;
27701fail:
27702 return NULL;
1bd55598
RD
27703}
27704
27705
da91cb0f
RD
27706SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27707 PyObject *resultobj = 0;
27708 wxStockGDI::Item arg1 ;
27709 wxColour *result = 0 ;
27710 int val1 ;
27711 int ecode1 = 0 ;
27712 PyObject * obj0 = 0 ;
27713 char * kwnames[] = {
27714 (char *) "item", NULL
27715 };
1bd55598 27716
da91cb0f
RD
27717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
27718 ecode1 = SWIG_AsVal_int(obj0, &val1);
27719 if (!SWIG_IsOK(ecode1)) {
27720 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27721 }
27722 arg1 = static_cast< wxStockGDI::Item >(val1);
27723 {
27724 PyThreadState* __tstate = wxPyBeginAllowThreads();
27725 result = (wxColour *)wxStockGDI::GetColour(arg1);
27726 wxPyEndAllowThreads(__tstate);
27727 if (PyErr_Occurred()) SWIG_fail;
27728 }
27729 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
27730 return resultobj;
27731fail:
27732 return NULL;
1bd55598
RD
27733}
27734
27735
da91cb0f
RD
27736SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27737 PyObject *resultobj = 0;
27738 wxStockGDI::Item arg1 ;
27739 wxCursor *result = 0 ;
27740 int val1 ;
27741 int ecode1 = 0 ;
27742 PyObject * obj0 = 0 ;
27743 char * kwnames[] = {
27744 (char *) "item", NULL
27745 };
27746
27747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
27748 ecode1 = SWIG_AsVal_int(obj0, &val1);
27749 if (!SWIG_IsOK(ecode1)) {
27750 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27751 }
27752 arg1 = static_cast< wxStockGDI::Item >(val1);
27753 {
27754 PyThreadState* __tstate = wxPyBeginAllowThreads();
27755 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
27756 wxPyEndAllowThreads(__tstate);
27757 if (PyErr_Occurred()) SWIG_fail;
27758 }
27759 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
27760 return resultobj;
27761fail:
27762 return NULL;
1bd55598
RD
27763}
27764
27765
da91cb0f
RD
27766SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27767 PyObject *resultobj = 0;
27768 wxStockGDI::Item arg1 ;
27769 wxPen *result = 0 ;
27770 int val1 ;
27771 int ecode1 = 0 ;
27772 PyObject * obj0 = 0 ;
27773 char * kwnames[] = {
27774 (char *) "item", NULL
27775 };
27776
27777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
27778 ecode1 = SWIG_AsVal_int(obj0, &val1);
27779 if (!SWIG_IsOK(ecode1)) {
27780 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27781 }
27782 arg1 = static_cast< wxStockGDI::Item >(val1);
27783 {
27784 PyThreadState* __tstate = wxPyBeginAllowThreads();
27785 result = (wxPen *)wxStockGDI::GetPen(arg1);
27786 wxPyEndAllowThreads(__tstate);
27787 if (PyErr_Occurred()) SWIG_fail;
27788 }
27789 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
27790 return resultobj;
27791fail:
27792 return NULL;
1bd55598
RD
27793}
27794
27795
da91cb0f
RD
27796SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27797 PyObject *resultobj = 0;
27798 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
27799 wxStockGDI::Item arg2 ;
27800 wxFont *result = 0 ;
27801 void *argp1 = 0 ;
27802 int res1 = 0 ;
27803 int val2 ;
27804 int ecode2 = 0 ;
27805 PyObject * obj0 = 0 ;
27806 PyObject * obj1 = 0 ;
27807 char * kwnames[] = {
27808 (char *) "self",(char *) "item", NULL
27809 };
1bd55598 27810
da91cb0f
RD
27811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
27812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
27813 if (!SWIG_IsOK(res1)) {
27814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
27815 }
27816 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
27817 ecode2 = SWIG_AsVal_int(obj1, &val2);
27818 if (!SWIG_IsOK(ecode2)) {
27819 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
27820 }
27821 arg2 = static_cast< wxStockGDI::Item >(val2);
27822 {
27823 PyThreadState* __tstate = wxPyBeginAllowThreads();
27824 result = (wxFont *)(arg1)->GetFont(arg2);
27825 wxPyEndAllowThreads(__tstate);
27826 if (PyErr_Occurred()) SWIG_fail;
27827 }
27828 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
27829 return resultobj;
27830fail:
27831 return NULL;
1bd55598
RD
27832}
27833
27834
da91cb0f
RD
27835SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27836 PyObject *obj;
27837 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27838 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
27839 return SWIG_Py_Void();
1bd55598
RD
27840}
27841
da91cb0f
RD
27842SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27843 return SWIG_Python_InitShadowInstance(args);
1bd55598
RD
27844}
27845
1bd55598
RD
27846SWIGINTERN int NullBitmap_set(PyObject *) {
27847 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
27848 return 1;
27849}
27850
27851
27852SWIGINTERN PyObject *NullBitmap_get(void) {
27853 PyObject *pyobj = 0;
27854
27855 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
27856 return pyobj;
27857}
27858
27859
27860SWIGINTERN int NullIcon_set(PyObject *) {
27861 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
27862 return 1;
27863}
27864
27865
27866SWIGINTERN PyObject *NullIcon_get(void) {
27867 PyObject *pyobj = 0;
27868
27869 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
27870 return pyobj;
27871}
27872
27873
27874SWIGINTERN int NullCursor_set(PyObject *) {
27875 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
27876 return 1;
27877}
27878
27879
27880SWIGINTERN PyObject *NullCursor_get(void) {
27881 PyObject *pyobj = 0;
27882
27883 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
27884 return pyobj;
27885}
27886
27887
27888SWIGINTERN int NullPen_set(PyObject *) {
27889 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
27890 return 1;
27891}
27892
27893
27894SWIGINTERN PyObject *NullPen_get(void) {
27895 PyObject *pyobj = 0;
27896
27897 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
27898 return pyobj;
27899}
27900
27901
27902SWIGINTERN int NullBrush_set(PyObject *) {
27903 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
27904 return 1;
27905}
27906
27907
27908SWIGINTERN PyObject *NullBrush_get(void) {
27909 PyObject *pyobj = 0;
27910
27911 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
27912 return pyobj;
27913}
27914
27915
27916SWIGINTERN int NullPalette_set(PyObject *) {
27917 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
27918 return 1;
27919}
27920
27921
27922SWIGINTERN PyObject *NullPalette_get(void) {
27923 PyObject *pyobj = 0;
27924
27925 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
27926 return pyobj;
27927}
27928
27929
27930SWIGINTERN int NullFont_set(PyObject *) {
27931 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
27932 return 1;
27933}
27934
27935
27936SWIGINTERN PyObject *NullFont_get(void) {
27937 PyObject *pyobj = 0;
27938
27939 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
27940 return pyobj;
27941}
27942
27943
27944SWIGINTERN int NullColour_set(PyObject *) {
27945 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
27946 return 1;
27947}
27948
27949
27950SWIGINTERN PyObject *NullColour_get(void) {
27951 PyObject *pyobj = 0;
27952
27953 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
27954 return pyobj;
27955}
27956
27957
da91cb0f 27958SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 27959 PyObject *resultobj = 0;
da91cb0f
RD
27960 wxGDIObjListBase *result = 0 ;
27961
27962 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
27963 {
27964 PyThreadState* __tstate = wxPyBeginAllowThreads();
27965 result = (wxGDIObjListBase *)new wxGDIObjListBase();
27966 wxPyEndAllowThreads(__tstate);
27967 if (PyErr_Occurred()) SWIG_fail;
27968 }
27969 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
27970 return resultobj;
27971fail:
27972 return NULL;
27973}
27974
27975
27976SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27977 PyObject *resultobj = 0;
27978 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
1bd55598
RD
27979 void *argp1 = 0 ;
27980 int res1 = 0 ;
da91cb0f 27981 PyObject *swig_obj[1] ;
1bd55598 27982
da91cb0f
RD
27983 if (!args) SWIG_fail;
27984 swig_obj[0] = args;
27985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
1bd55598 27986 if (!SWIG_IsOK(res1)) {
da91cb0f 27987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
1bd55598 27988 }
da91cb0f 27989 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
1bd55598
RD
27990 {
27991 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f
RD
27992 delete arg1;
27993
1bd55598
RD
27994 wxPyEndAllowThreads(__tstate);
27995 if (PyErr_Occurred()) SWIG_fail;
27996 }
27997 resultobj = SWIG_Py_Void();
27998 return resultobj;
27999fail:
28000 return NULL;
28001}
28002
28003
da91cb0f
RD
28004SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28005 PyObject *obj;
28006 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28007 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
28008 return SWIG_Py_Void();
28009}
28010
28011SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28012 return SWIG_Python_InitShadowInstance(args);
28013}
28014
1bd55598
RD
28015SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28016 PyObject *resultobj = 0;
28017 wxPenList *arg1 = (wxPenList *) 0 ;
28018 wxColour *arg2 = 0 ;
28019 int arg3 ;
28020 int arg4 ;
28021 wxPen *result = 0 ;
28022 void *argp1 = 0 ;
28023 int res1 = 0 ;
28024 wxColour temp2 ;
28025 int val3 ;
28026 int ecode3 = 0 ;
28027 int val4 ;
28028 int ecode4 = 0 ;
28029 PyObject * obj0 = 0 ;
28030 PyObject * obj1 = 0 ;
28031 PyObject * obj2 = 0 ;
28032 PyObject * obj3 = 0 ;
28033 char * kwnames[] = {
28034 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
28035 };
28036
28037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
28039 if (!SWIG_IsOK(res1)) {
28040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
28041 }
28042 arg1 = reinterpret_cast< wxPenList * >(argp1);
28043 {
28044 arg2 = &temp2;
28045 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28046 }
28047 ecode3 = SWIG_AsVal_int(obj2, &val3);
28048 if (!SWIG_IsOK(ecode3)) {
28049 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
28050 }
28051 arg3 = static_cast< int >(val3);
28052 ecode4 = SWIG_AsVal_int(obj3, &val4);
28053 if (!SWIG_IsOK(ecode4)) {
28054 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
28055 }
28056 arg4 = static_cast< int >(val4);
28057 {
28058 PyThreadState* __tstate = wxPyBeginAllowThreads();
28059 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
28060 wxPyEndAllowThreads(__tstate);
28061 if (PyErr_Occurred()) SWIG_fail;
28062 }
28063 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
28064 return resultobj;
28065fail:
28066 return NULL;
28067}
28068
28069
da91cb0f 28070SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
28071 PyObject *resultobj = 0;
28072 wxPenList *arg1 = (wxPenList *) 0 ;
28073 wxPen *arg2 = (wxPen *) 0 ;
28074 void *argp1 = 0 ;
28075 int res1 = 0 ;
28076 void *argp2 = 0 ;
28077 int res2 = 0 ;
28078 PyObject * obj0 = 0 ;
28079 PyObject * obj1 = 0 ;
28080 char * kwnames[] = {
28081 (char *) "self",(char *) "pen", NULL
28082 };
28083
da91cb0f 28084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
1bd55598
RD
28085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
28086 if (!SWIG_IsOK(res1)) {
da91cb0f 28087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
1bd55598
RD
28088 }
28089 arg1 = reinterpret_cast< wxPenList * >(argp1);
28090 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
28091 if (!SWIG_IsOK(res2)) {
da91cb0f 28092 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
1bd55598
RD
28093 }
28094 arg2 = reinterpret_cast< wxPen * >(argp2);
28095 {
28096 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 28097 (arg1)->AddPen(arg2);
1bd55598
RD
28098 wxPyEndAllowThreads(__tstate);
28099 if (PyErr_Occurred()) SWIG_fail;
28100 }
28101 resultobj = SWIG_Py_Void();
28102 return resultobj;
28103fail:
28104 return NULL;
28105}
28106
28107
da91cb0f 28108SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
28109 PyObject *resultobj = 0;
28110 wxPenList *arg1 = (wxPenList *) 0 ;
da91cb0f 28111 wxPen *arg2 = (wxPen *) 0 ;
1bd55598
RD
28112 void *argp1 = 0 ;
28113 int res1 = 0 ;
da91cb0f
RD
28114 void *argp2 = 0 ;
28115 int res2 = 0 ;
28116 PyObject * obj0 = 0 ;
28117 PyObject * obj1 = 0 ;
28118 char * kwnames[] = {
28119 (char *) "self",(char *) "pen", NULL
28120 };
1bd55598 28121
da91cb0f
RD
28122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
28123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
1bd55598 28124 if (!SWIG_IsOK(res1)) {
da91cb0f 28125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
1bd55598
RD
28126 }
28127 arg1 = reinterpret_cast< wxPenList * >(argp1);
da91cb0f
RD
28128 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
28129 if (!SWIG_IsOK(res2)) {
28130 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
28131 }
28132 arg2 = reinterpret_cast< wxPen * >(argp2);
1bd55598
RD
28133 {
28134 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 28135 (arg1)->RemovePen(arg2);
1bd55598
RD
28136 wxPyEndAllowThreads(__tstate);
28137 if (PyErr_Occurred()) SWIG_fail;
28138 }
da91cb0f 28139 resultobj = SWIG_Py_Void();
1bd55598
RD
28140 return resultobj;
28141fail:
28142 return NULL;
28143}
28144
28145
28146SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28147 PyObject *obj;
28148 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28149 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
28150 return SWIG_Py_Void();
28151}
28152
da91cb0f
RD
28153SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28154 PyObject *resultobj = 0;
28155 wxBrushList *arg1 = (wxBrushList *) 0 ;
28156 wxColour *arg2 = 0 ;
28157 int arg3 = (int) wxSOLID ;
28158 wxBrush *result = 0 ;
28159 void *argp1 = 0 ;
28160 int res1 = 0 ;
28161 wxColour temp2 ;
28162 int val3 ;
28163 int ecode3 = 0 ;
28164 PyObject * obj0 = 0 ;
28165 PyObject * obj1 = 0 ;
28166 PyObject * obj2 = 0 ;
28167 char * kwnames[] = {
28168 (char *) "self",(char *) "colour",(char *) "style", NULL
28169 };
28170
28171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
28173 if (!SWIG_IsOK(res1)) {
28174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
28175 }
28176 arg1 = reinterpret_cast< wxBrushList * >(argp1);
28177 {
28178 arg2 = &temp2;
28179 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28180 }
28181 if (obj2) {
28182 ecode3 = SWIG_AsVal_int(obj2, &val3);
28183 if (!SWIG_IsOK(ecode3)) {
28184 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
28185 }
28186 arg3 = static_cast< int >(val3);
28187 }
28188 {
28189 PyThreadState* __tstate = wxPyBeginAllowThreads();
28190 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
28191 wxPyEndAllowThreads(__tstate);
28192 if (PyErr_Occurred()) SWIG_fail;
28193 }
28194 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
28195 return resultobj;
28196fail:
28197 return NULL;
28198}
28199
28200
1bd55598
RD
28201SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28202 PyObject *resultobj = 0;
28203 wxBrushList *arg1 = (wxBrushList *) 0 ;
28204 wxBrush *arg2 = (wxBrush *) 0 ;
28205 void *argp1 = 0 ;
28206 int res1 = 0 ;
28207 void *argp2 = 0 ;
28208 int res2 = 0 ;
28209 PyObject * obj0 = 0 ;
28210 PyObject * obj1 = 0 ;
28211 char * kwnames[] = {
28212 (char *) "self",(char *) "brush", NULL
28213 };
28214
28215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
28217 if (!SWIG_IsOK(res1)) {
28218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
28219 }
28220 arg1 = reinterpret_cast< wxBrushList * >(argp1);
28221 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
28222 if (!SWIG_IsOK(res2)) {
28223 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
28224 }
28225 arg2 = reinterpret_cast< wxBrush * >(argp2);
28226 {
28227 PyThreadState* __tstate = wxPyBeginAllowThreads();
28228 (arg1)->AddBrush(arg2);
28229 wxPyEndAllowThreads(__tstate);
28230 if (PyErr_Occurred()) SWIG_fail;
28231 }
28232 resultobj = SWIG_Py_Void();
28233 return resultobj;
28234fail:
28235 return NULL;
28236}
28237
28238
da91cb0f 28239SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
28240 PyObject *resultobj = 0;
28241 wxBrushList *arg1 = (wxBrushList *) 0 ;
da91cb0f 28242 wxBrush *arg2 = (wxBrush *) 0 ;
1bd55598
RD
28243 void *argp1 = 0 ;
28244 int res1 = 0 ;
da91cb0f
RD
28245 void *argp2 = 0 ;
28246 int res2 = 0 ;
28247 PyObject * obj0 = 0 ;
28248 PyObject * obj1 = 0 ;
28249 char * kwnames[] = {
28250 (char *) "self",(char *) "brush", NULL
28251 };
28252
28253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
28255 if (!SWIG_IsOK(res1)) {
28256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
28257 }
28258 arg1 = reinterpret_cast< wxBrushList * >(argp1);
28259 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
28260 if (!SWIG_IsOK(res2)) {
28261 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
28262 }
28263 arg2 = reinterpret_cast< wxBrush * >(argp2);
28264 {
28265 PyThreadState* __tstate = wxPyBeginAllowThreads();
28266 (arg1)->RemoveBrush(arg2);
28267 wxPyEndAllowThreads(__tstate);
28268 if (PyErr_Occurred()) SWIG_fail;
28269 }
28270 resultobj = SWIG_Py_Void();
28271 return resultobj;
28272fail:
28273 return NULL;
28274}
28275
28276
28277SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28278 PyObject *obj;
28279 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28280 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
28281 return SWIG_Py_Void();
28282}
28283
28284SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28285 PyObject *resultobj = 0;
28286 wxFontList *arg1 = (wxFontList *) 0 ;
28287 int arg2 ;
28288 int arg3 ;
28289 int arg4 ;
28290 int arg5 ;
28291 bool arg6 = (bool) false ;
28292 wxString const &arg7_defvalue = wxPyEmptyString ;
28293 wxString *arg7 = (wxString *) &arg7_defvalue ;
28294 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
28295 wxFont *result = 0 ;
28296 void *argp1 = 0 ;
28297 int res1 = 0 ;
28298 int val2 ;
28299 int ecode2 = 0 ;
1bd55598
RD
28300 int val3 ;
28301 int ecode3 = 0 ;
da91cb0f
RD
28302 int val4 ;
28303 int ecode4 = 0 ;
28304 int val5 ;
28305 int ecode5 = 0 ;
28306 bool val6 ;
28307 int ecode6 = 0 ;
28308 bool temp7 = false ;
28309 int val8 ;
28310 int ecode8 = 0 ;
1bd55598
RD
28311 PyObject * obj0 = 0 ;
28312 PyObject * obj1 = 0 ;
28313 PyObject * obj2 = 0 ;
da91cb0f
RD
28314 PyObject * obj3 = 0 ;
28315 PyObject * obj4 = 0 ;
28316 PyObject * obj5 = 0 ;
28317 PyObject * obj6 = 0 ;
28318 PyObject * obj7 = 0 ;
1bd55598 28319 char * kwnames[] = {
da91cb0f 28320 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
1bd55598
RD
28321 };
28322
da91cb0f
RD
28323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 28325 if (!SWIG_IsOK(res1)) {
da91cb0f 28326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 28327 }
da91cb0f
RD
28328 arg1 = reinterpret_cast< wxFontList * >(argp1);
28329 ecode2 = SWIG_AsVal_int(obj1, &val2);
28330 if (!SWIG_IsOK(ecode2)) {
28331 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
28332 }
28333 arg2 = static_cast< int >(val2);
28334 ecode3 = SWIG_AsVal_int(obj2, &val3);
28335 if (!SWIG_IsOK(ecode3)) {
28336 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
28337 }
28338 arg3 = static_cast< int >(val3);
28339 ecode4 = SWIG_AsVal_int(obj3, &val4);
28340 if (!SWIG_IsOK(ecode4)) {
28341 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
28342 }
28343 arg4 = static_cast< int >(val4);
28344 ecode5 = SWIG_AsVal_int(obj4, &val5);
28345 if (!SWIG_IsOK(ecode5)) {
28346 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
28347 }
28348 arg5 = static_cast< int >(val5);
28349 if (obj5) {
28350 ecode6 = SWIG_AsVal_bool(obj5, &val6);
28351 if (!SWIG_IsOK(ecode6)) {
28352 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
28353 }
28354 arg6 = static_cast< bool >(val6);
1bd55598 28355 }
da91cb0f
RD
28356 if (obj6) {
28357 {
28358 arg7 = wxString_in_helper(obj6);
28359 if (arg7 == NULL) SWIG_fail;
28360 temp7 = true;
28361 }
28362 }
28363 if (obj7) {
28364 ecode8 = SWIG_AsVal_int(obj7, &val8);
28365 if (!SWIG_IsOK(ecode8)) {
28366 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
1bd55598 28367 }
da91cb0f 28368 arg8 = static_cast< wxFontEncoding >(val8);
1bd55598
RD
28369 }
28370 {
28371 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 28372 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
1bd55598
RD
28373 wxPyEndAllowThreads(__tstate);
28374 if (PyErr_Occurred()) SWIG_fail;
28375 }
da91cb0f
RD
28376 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
28377 {
28378 if (temp7)
28379 delete arg7;
28380 }
1bd55598
RD
28381 return resultobj;
28382fail:
da91cb0f
RD
28383 {
28384 if (temp7)
28385 delete arg7;
28386 }
1bd55598
RD
28387 return NULL;
28388}
28389
28390
da91cb0f 28391SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 28392 PyObject *resultobj = 0;
da91cb0f
RD
28393 wxFontList *arg1 = (wxFontList *) 0 ;
28394 wxFont *arg2 = (wxFont *) 0 ;
1bd55598
RD
28395 void *argp1 = 0 ;
28396 int res1 = 0 ;
28397 void *argp2 = 0 ;
28398 int res2 = 0 ;
28399 PyObject * obj0 = 0 ;
28400 PyObject * obj1 = 0 ;
28401 char * kwnames[] = {
da91cb0f 28402 (char *) "self",(char *) "font", NULL
1bd55598
RD
28403 };
28404
da91cb0f
RD
28405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
28406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 28407 if (!SWIG_IsOK(res1)) {
da91cb0f 28408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 28409 }
da91cb0f
RD
28410 arg1 = reinterpret_cast< wxFontList * >(argp1);
28411 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
1bd55598 28412 if (!SWIG_IsOK(res2)) {
da91cb0f 28413 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
1bd55598 28414 }
da91cb0f 28415 arg2 = reinterpret_cast< wxFont * >(argp2);
1bd55598
RD
28416 {
28417 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 28418 (arg1)->AddFont(arg2);
1bd55598
RD
28419 wxPyEndAllowThreads(__tstate);
28420 if (PyErr_Occurred()) SWIG_fail;
28421 }
28422 resultobj = SWIG_Py_Void();
28423 return resultobj;
28424fail:
28425 return NULL;
28426}
28427
28428
da91cb0f 28429SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 28430 PyObject *resultobj = 0;
da91cb0f
RD
28431 wxFontList *arg1 = (wxFontList *) 0 ;
28432 wxFont *arg2 = (wxFont *) 0 ;
1bd55598
RD
28433 void *argp1 = 0 ;
28434 int res1 = 0 ;
da91cb0f
RD
28435 void *argp2 = 0 ;
28436 int res2 = 0 ;
28437 PyObject * obj0 = 0 ;
28438 PyObject * obj1 = 0 ;
28439 char * kwnames[] = {
28440 (char *) "self",(char *) "font", NULL
28441 };
1bd55598 28442
da91cb0f
RD
28443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
28444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 28445 if (!SWIG_IsOK(res1)) {
da91cb0f 28446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 28447 }
da91cb0f
RD
28448 arg1 = reinterpret_cast< wxFontList * >(argp1);
28449 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
28450 if (!SWIG_IsOK(res2)) {
28451 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
28452 }
28453 arg2 = reinterpret_cast< wxFont * >(argp2);
1bd55598
RD
28454 {
28455 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 28456 (arg1)->RemoveFont(arg2);
1bd55598
RD
28457 wxPyEndAllowThreads(__tstate);
28458 if (PyErr_Occurred()) SWIG_fail;
28459 }
da91cb0f 28460 resultobj = SWIG_Py_Void();
1bd55598
RD
28461 return resultobj;
28462fail:
28463 return NULL;
28464}
28465
28466
da91cb0f 28467SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
28468 PyObject *obj;
28469 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
da91cb0f 28470 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
1bd55598
RD
28471 return SWIG_Py_Void();
28472}
28473
28474SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28475 PyObject *resultobj = 0;
28476 wxColourDatabase *result = 0 ;
28477
28478 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
28479 {
28480 if (!wxPyCheckForApp()) SWIG_fail;
28481 PyThreadState* __tstate = wxPyBeginAllowThreads();
28482 result = (wxColourDatabase *)new wxColourDatabase();
28483 wxPyEndAllowThreads(__tstate);
28484 if (PyErr_Occurred()) SWIG_fail;
28485 }
28486 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
28487 return resultobj;
28488fail:
28489 return NULL;
28490}
28491
28492
28493SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28494 PyObject *resultobj = 0;
28495 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28496 void *argp1 = 0 ;
28497 int res1 = 0 ;
28498 PyObject *swig_obj[1] ;
28499
28500 if (!args) SWIG_fail;
28501 swig_obj[0] = args;
28502 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
28503 if (!SWIG_IsOK(res1)) {
28504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
28505 }
28506 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28507 {
28508 PyThreadState* __tstate = wxPyBeginAllowThreads();
28509 delete arg1;
28510
28511 wxPyEndAllowThreads(__tstate);
28512 if (PyErr_Occurred()) SWIG_fail;
28513 }
28514 resultobj = SWIG_Py_Void();
28515 return resultobj;
28516fail:
28517 return NULL;
28518}
28519
28520
28521SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28522 PyObject *resultobj = 0;
28523 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28524 wxString *arg2 = 0 ;
28525 wxColour result;
28526 void *argp1 = 0 ;
28527 int res1 = 0 ;
28528 bool temp2 = false ;
28529 PyObject * obj0 = 0 ;
28530 PyObject * obj1 = 0 ;
28531 char * kwnames[] = {
28532 (char *) "self",(char *) "name", NULL
28533 };
28534
28535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
28536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28537 if (!SWIG_IsOK(res1)) {
28538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
28539 }
28540 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28541 {
28542 arg2 = wxString_in_helper(obj1);
28543 if (arg2 == NULL) SWIG_fail;
28544 temp2 = true;
28545 }
28546 {
28547 PyThreadState* __tstate = wxPyBeginAllowThreads();
28548 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
28549 wxPyEndAllowThreads(__tstate);
28550 if (PyErr_Occurred()) SWIG_fail;
28551 }
28552 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28553 {
28554 if (temp2)
28555 delete arg2;
28556 }
28557 return resultobj;
28558fail:
28559 {
28560 if (temp2)
28561 delete arg2;
28562 }
28563 return NULL;
28564}
28565
28566
28567SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28568 PyObject *resultobj = 0;
28569 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28570 wxColour *arg2 = 0 ;
28571 wxString result;
28572 void *argp1 = 0 ;
28573 int res1 = 0 ;
28574 wxColour temp2 ;
28575 PyObject * obj0 = 0 ;
28576 PyObject * obj1 = 0 ;
28577 char * kwnames[] = {
28578 (char *) "self",(char *) "colour", NULL
28579 };
28580
28581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
28582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28583 if (!SWIG_IsOK(res1)) {
28584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
28585 }
28586 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28587 {
28588 arg2 = &temp2;
28589 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28590 }
28591 {
28592 PyThreadState* __tstate = wxPyBeginAllowThreads();
28593 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
28594 wxPyEndAllowThreads(__tstate);
28595 if (PyErr_Occurred()) SWIG_fail;
28596 }
28597 {
28598#if wxUSE_UNICODE
28599 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28600#else
28601 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28602#endif
28603 }
28604 return resultobj;
28605fail:
28606 return NULL;
28607}
28608
28609
28610SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28611 PyObject *resultobj = 0;
28612 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28613 wxString *arg2 = 0 ;
28614 wxColour *arg3 = 0 ;
28615 void *argp1 = 0 ;
28616 int res1 = 0 ;
28617 bool temp2 = false ;
28618 wxColour temp3 ;
28619 PyObject * obj0 = 0 ;
28620 PyObject * obj1 = 0 ;
28621 PyObject * obj2 = 0 ;
28622 char * kwnames[] = {
28623 (char *) "self",(char *) "name",(char *) "colour", NULL
28624 };
28625
28626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28628 if (!SWIG_IsOK(res1)) {
28629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
28630 }
28631 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28632 {
28633 arg2 = wxString_in_helper(obj1);
28634 if (arg2 == NULL) SWIG_fail;
28635 temp2 = true;
28636 }
28637 {
28638 arg3 = &temp3;
28639 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28640 }
28641 {
28642 PyThreadState* __tstate = wxPyBeginAllowThreads();
28643 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
28644 wxPyEndAllowThreads(__tstate);
28645 if (PyErr_Occurred()) SWIG_fail;
28646 }
28647 resultobj = SWIG_Py_Void();
28648 {
28649 if (temp2)
28650 delete arg2;
28651 }
28652 return resultobj;
28653fail:
28654 {
28655 if (temp2)
28656 delete arg2;
28657 }
28658 return NULL;
28659}
28660
28661
28662SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28663 PyObject *resultobj = 0;
28664 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28665 wxString *arg2 = 0 ;
28666 int arg3 ;
28667 int arg4 ;
28668 int arg5 ;
28669 void *argp1 = 0 ;
28670 int res1 = 0 ;
28671 bool temp2 = false ;
28672 int val3 ;
28673 int ecode3 = 0 ;
28674 int val4 ;
28675 int ecode4 = 0 ;
da91cb0f
RD
28676 int val5 ;
28677 int ecode5 = 0 ;
1bd55598
RD
28678 PyObject * obj0 = 0 ;
28679 PyObject * obj1 = 0 ;
28680 PyObject * obj2 = 0 ;
28681 PyObject * obj3 = 0 ;
28682 PyObject * obj4 = 0 ;
1bd55598 28683 char * kwnames[] = {
da91cb0f 28684 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
1bd55598
RD
28685 };
28686
da91cb0f
RD
28687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
1bd55598 28689 if (!SWIG_IsOK(res1)) {
da91cb0f
RD
28690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
28691 }
28692 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28693 {
28694 arg2 = wxString_in_helper(obj1);
28695 if (arg2 == NULL) SWIG_fail;
28696 temp2 = true;
1bd55598 28697 }
1bd55598
RD
28698 ecode3 = SWIG_AsVal_int(obj2, &val3);
28699 if (!SWIG_IsOK(ecode3)) {
da91cb0f 28700 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
1bd55598
RD
28701 }
28702 arg3 = static_cast< int >(val3);
28703 ecode4 = SWIG_AsVal_int(obj3, &val4);
28704 if (!SWIG_IsOK(ecode4)) {
da91cb0f 28705 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
1bd55598
RD
28706 }
28707 arg4 = static_cast< int >(val4);
28708 ecode5 = SWIG_AsVal_int(obj4, &val5);
28709 if (!SWIG_IsOK(ecode5)) {
da91cb0f 28710 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
1bd55598
RD
28711 }
28712 arg5 = static_cast< int >(val5);
1bd55598
RD
28713 {
28714 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 28715 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
1bd55598
RD
28716 wxPyEndAllowThreads(__tstate);
28717 if (PyErr_Occurred()) SWIG_fail;
28718 }
da91cb0f 28719 resultobj = SWIG_Py_Void();
1bd55598 28720 {
da91cb0f
RD
28721 if (temp2)
28722 delete arg2;
1bd55598
RD
28723 }
28724 return resultobj;
28725fail:
28726 {
da91cb0f
RD
28727 if (temp2)
28728 delete arg2;
1bd55598
RD
28729 }
28730 return NULL;
28731}
28732
28733
da91cb0f
RD
28734SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28735 PyObject *obj;
28736 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28737 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
28738 return SWIG_Py_Void();
28739}
28740
28741SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28742 return SWIG_Python_InitShadowInstance(args);
28743}
28744
28745SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 28746 PyObject *resultobj = 0;
da91cb0f 28747 wxFontList *result = 0 ;
1bd55598 28748
da91cb0f 28749 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
1bd55598
RD
28750 {
28751 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 28752 result = (wxFontList *)_wxPyInitTheFontList();
1bd55598
RD
28753 wxPyEndAllowThreads(__tstate);
28754 if (PyErr_Occurred()) SWIG_fail;
28755 }
da91cb0f 28756 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598
RD
28757 return resultobj;
28758fail:
28759 return NULL;
28760}
28761
28762
da91cb0f 28763SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 28764 PyObject *resultobj = 0;
da91cb0f 28765 wxPenList *result = 0 ;
1bd55598 28766
da91cb0f 28767 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
1bd55598
RD
28768 {
28769 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 28770 result = (wxPenList *)_wxPyInitThePenList();
1bd55598
RD
28771 wxPyEndAllowThreads(__tstate);
28772 if (PyErr_Occurred()) SWIG_fail;
28773 }
da91cb0f 28774 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
1bd55598
RD
28775 return resultobj;
28776fail:
28777 return NULL;
28778}
28779
28780
da91cb0f
RD
28781SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28782 PyObject *resultobj = 0;
28783 wxBrushList *result = 0 ;
1bd55598 28784
da91cb0f
RD
28785 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
28786 {
28787 PyThreadState* __tstate = wxPyBeginAllowThreads();
28788 result = (wxBrushList *)_wxPyInitTheBrushList();
28789 wxPyEndAllowThreads(__tstate);
28790 if (PyErr_Occurred()) SWIG_fail;
28791 }
28792 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
28793 return resultobj;
28794fail:
28795 return NULL;
1bd55598
RD
28796}
28797
28798
da91cb0f
RD
28799SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28800 PyObject *resultobj = 0;
28801 wxColourDatabase *result = 0 ;
1bd55598 28802
da91cb0f
RD
28803 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
28804 {
28805 PyThreadState* __tstate = wxPyBeginAllowThreads();
28806 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
28807 wxPyEndAllowThreads(__tstate);
28808 if (PyErr_Occurred()) SWIG_fail;
28809 }
28810 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28811 return resultobj;
28812fail:
28813 return NULL;
1bd55598
RD
28814}
28815
28816
28817SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28818 PyObject *resultobj = 0;
28819 wxEffects *result = 0 ;
28820
28821 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
28822 {
28823 PyThreadState* __tstate = wxPyBeginAllowThreads();
28824 result = (wxEffects *)new wxEffects();
28825 wxPyEndAllowThreads(__tstate);
28826 if (PyErr_Occurred()) SWIG_fail;
28827 }
28828 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
28829 return resultobj;
28830fail:
28831 return NULL;
28832}
28833
28834
28835SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28836 PyObject *resultobj = 0;
28837 wxEffects *arg1 = (wxEffects *) 0 ;
28838 wxColour result;
28839 void *argp1 = 0 ;
28840 int res1 = 0 ;
28841 PyObject *swig_obj[1] ;
28842
28843 if (!args) SWIG_fail;
28844 swig_obj[0] = args;
28845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28846 if (!SWIG_IsOK(res1)) {
28847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
28848 }
28849 arg1 = reinterpret_cast< wxEffects * >(argp1);
28850 {
28851 PyThreadState* __tstate = wxPyBeginAllowThreads();
28852 result = ((wxEffects const *)arg1)->GetHighlightColour();
28853 wxPyEndAllowThreads(__tstate);
28854 if (PyErr_Occurred()) SWIG_fail;
28855 }
28856 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28857 return resultobj;
28858fail:
28859 return NULL;
28860}
28861
28862
28863SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28864 PyObject *resultobj = 0;
28865 wxEffects *arg1 = (wxEffects *) 0 ;
28866 wxColour result;
28867 void *argp1 = 0 ;
28868 int res1 = 0 ;
28869 PyObject *swig_obj[1] ;
28870
28871 if (!args) SWIG_fail;
28872 swig_obj[0] = args;
28873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28874 if (!SWIG_IsOK(res1)) {
28875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
28876 }
28877 arg1 = reinterpret_cast< wxEffects * >(argp1);
28878 {
28879 PyThreadState* __tstate = wxPyBeginAllowThreads();
28880 result = ((wxEffects const *)arg1)->GetLightShadow();
28881 wxPyEndAllowThreads(__tstate);
28882 if (PyErr_Occurred()) SWIG_fail;
28883 }
28884 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28885 return resultobj;
28886fail:
28887 return NULL;
28888}
28889
28890
28891SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28892 PyObject *resultobj = 0;
28893 wxEffects *arg1 = (wxEffects *) 0 ;
28894 wxColour result;
28895 void *argp1 = 0 ;
28896 int res1 = 0 ;
28897 PyObject *swig_obj[1] ;
28898
28899 if (!args) SWIG_fail;
28900 swig_obj[0] = args;
28901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28902 if (!SWIG_IsOK(res1)) {
28903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
28904 }
28905 arg1 = reinterpret_cast< wxEffects * >(argp1);
28906 {
28907 PyThreadState* __tstate = wxPyBeginAllowThreads();
28908 result = ((wxEffects const *)arg1)->GetFaceColour();
28909 wxPyEndAllowThreads(__tstate);
28910 if (PyErr_Occurred()) SWIG_fail;
28911 }
28912 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28913 return resultobj;
28914fail:
28915 return NULL;
28916}
28917
28918
28919SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28920 PyObject *resultobj = 0;
28921 wxEffects *arg1 = (wxEffects *) 0 ;
28922 wxColour result;
28923 void *argp1 = 0 ;
28924 int res1 = 0 ;
28925 PyObject *swig_obj[1] ;
28926
28927 if (!args) SWIG_fail;
28928 swig_obj[0] = args;
28929 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28930 if (!SWIG_IsOK(res1)) {
28931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
28932 }
28933 arg1 = reinterpret_cast< wxEffects * >(argp1);
28934 {
28935 PyThreadState* __tstate = wxPyBeginAllowThreads();
28936 result = ((wxEffects const *)arg1)->GetMediumShadow();
28937 wxPyEndAllowThreads(__tstate);
28938 if (PyErr_Occurred()) SWIG_fail;
28939 }
28940 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28941 return resultobj;
28942fail:
28943 return NULL;
28944}
28945
28946
28947SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28948 PyObject *resultobj = 0;
28949 wxEffects *arg1 = (wxEffects *) 0 ;
28950 wxColour result;
28951 void *argp1 = 0 ;
28952 int res1 = 0 ;
28953 PyObject *swig_obj[1] ;
28954
28955 if (!args) SWIG_fail;
28956 swig_obj[0] = args;
28957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28958 if (!SWIG_IsOK(res1)) {
28959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
28960 }
28961 arg1 = reinterpret_cast< wxEffects * >(argp1);
28962 {
28963 PyThreadState* __tstate = wxPyBeginAllowThreads();
28964 result = ((wxEffects const *)arg1)->GetDarkShadow();
28965 wxPyEndAllowThreads(__tstate);
28966 if (PyErr_Occurred()) SWIG_fail;
28967 }
28968 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28969 return resultobj;
28970fail:
28971 return NULL;
28972}
28973
28974
28975SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28976 PyObject *resultobj = 0;
28977 wxEffects *arg1 = (wxEffects *) 0 ;
28978 wxColour *arg2 = 0 ;
28979 void *argp1 = 0 ;
28980 int res1 = 0 ;
28981 wxColour temp2 ;
28982 PyObject * obj0 = 0 ;
28983 PyObject * obj1 = 0 ;
28984 char * kwnames[] = {
28985 (char *) "self",(char *) "c", NULL
28986 };
28987
28988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
28989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28990 if (!SWIG_IsOK(res1)) {
28991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
28992 }
28993 arg1 = reinterpret_cast< wxEffects * >(argp1);
28994 {
28995 arg2 = &temp2;
28996 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28997 }
28998 {
28999 PyThreadState* __tstate = wxPyBeginAllowThreads();
29000 (arg1)->SetHighlightColour((wxColour const &)*arg2);
29001 wxPyEndAllowThreads(__tstate);
29002 if (PyErr_Occurred()) SWIG_fail;
29003 }
29004 resultobj = SWIG_Py_Void();
29005 return resultobj;
29006fail:
29007 return NULL;
29008}
29009
29010
29011SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29012 PyObject *resultobj = 0;
29013 wxEffects *arg1 = (wxEffects *) 0 ;
29014 wxColour *arg2 = 0 ;
29015 void *argp1 = 0 ;
29016 int res1 = 0 ;
29017 wxColour temp2 ;
29018 PyObject * obj0 = 0 ;
29019 PyObject * obj1 = 0 ;
29020 char * kwnames[] = {
29021 (char *) "self",(char *) "c", NULL
29022 };
29023
29024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
29025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29026 if (!SWIG_IsOK(res1)) {
29027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
29028 }
29029 arg1 = reinterpret_cast< wxEffects * >(argp1);
29030 {
29031 arg2 = &temp2;
29032 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29033 }
29034 {
29035 PyThreadState* __tstate = wxPyBeginAllowThreads();
29036 (arg1)->SetLightShadow((wxColour const &)*arg2);
29037 wxPyEndAllowThreads(__tstate);
29038 if (PyErr_Occurred()) SWIG_fail;
29039 }
29040 resultobj = SWIG_Py_Void();
29041 return resultobj;
29042fail:
29043 return NULL;
29044}
29045
29046
29047SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29048 PyObject *resultobj = 0;
29049 wxEffects *arg1 = (wxEffects *) 0 ;
29050 wxColour *arg2 = 0 ;
29051 void *argp1 = 0 ;
29052 int res1 = 0 ;
29053 wxColour temp2 ;
29054 PyObject * obj0 = 0 ;
29055 PyObject * obj1 = 0 ;
29056 char * kwnames[] = {
29057 (char *) "self",(char *) "c", NULL
29058 };
29059
29060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
29061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29062 if (!SWIG_IsOK(res1)) {
29063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
29064 }
29065 arg1 = reinterpret_cast< wxEffects * >(argp1);
29066 {
29067 arg2 = &temp2;
29068 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29069 }
29070 {
29071 PyThreadState* __tstate = wxPyBeginAllowThreads();
29072 (arg1)->SetFaceColour((wxColour const &)*arg2);
29073 wxPyEndAllowThreads(__tstate);
29074 if (PyErr_Occurred()) SWIG_fail;
29075 }
29076 resultobj = SWIG_Py_Void();
29077 return resultobj;
29078fail:
29079 return NULL;
29080}
29081
29082
29083SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29084 PyObject *resultobj = 0;
29085 wxEffects *arg1 = (wxEffects *) 0 ;
29086 wxColour *arg2 = 0 ;
29087 void *argp1 = 0 ;
29088 int res1 = 0 ;
29089 wxColour temp2 ;
29090 PyObject * obj0 = 0 ;
29091 PyObject * obj1 = 0 ;
29092 char * kwnames[] = {
29093 (char *) "self",(char *) "c", NULL
29094 };
29095
29096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
29097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29098 if (!SWIG_IsOK(res1)) {
29099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
29100 }
29101 arg1 = reinterpret_cast< wxEffects * >(argp1);
29102 {
29103 arg2 = &temp2;
29104 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29105 }
29106 {
29107 PyThreadState* __tstate = wxPyBeginAllowThreads();
29108 (arg1)->SetMediumShadow((wxColour const &)*arg2);
29109 wxPyEndAllowThreads(__tstate);
29110 if (PyErr_Occurred()) SWIG_fail;
29111 }
29112 resultobj = SWIG_Py_Void();
29113 return resultobj;
29114fail:
29115 return NULL;
29116}
29117
29118
29119SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29120 PyObject *resultobj = 0;
29121 wxEffects *arg1 = (wxEffects *) 0 ;
29122 wxColour *arg2 = 0 ;
29123 void *argp1 = 0 ;
29124 int res1 = 0 ;
29125 wxColour temp2 ;
29126 PyObject * obj0 = 0 ;
29127 PyObject * obj1 = 0 ;
29128 char * kwnames[] = {
29129 (char *) "self",(char *) "c", NULL
29130 };
29131
29132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
29133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29134 if (!SWIG_IsOK(res1)) {
29135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
29136 }
29137 arg1 = reinterpret_cast< wxEffects * >(argp1);
29138 {
29139 arg2 = &temp2;
29140 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29141 }
29142 {
29143 PyThreadState* __tstate = wxPyBeginAllowThreads();
29144 (arg1)->SetDarkShadow((wxColour const &)*arg2);
29145 wxPyEndAllowThreads(__tstate);
29146 if (PyErr_Occurred()) SWIG_fail;
29147 }
29148 resultobj = SWIG_Py_Void();
29149 return resultobj;
29150fail:
29151 return NULL;
29152}
29153
29154
29155SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29156 PyObject *resultobj = 0;
29157 wxEffects *arg1 = (wxEffects *) 0 ;
29158 wxColour *arg2 = 0 ;
29159 wxColour *arg3 = 0 ;
29160 wxColour *arg4 = 0 ;
29161 wxColour *arg5 = 0 ;
29162 wxColour *arg6 = 0 ;
29163 void *argp1 = 0 ;
29164 int res1 = 0 ;
29165 wxColour temp2 ;
29166 wxColour temp3 ;
29167 wxColour temp4 ;
29168 wxColour temp5 ;
29169 wxColour temp6 ;
29170 PyObject * obj0 = 0 ;
29171 PyObject * obj1 = 0 ;
29172 PyObject * obj2 = 0 ;
29173 PyObject * obj3 = 0 ;
29174 PyObject * obj4 = 0 ;
29175 PyObject * obj5 = 0 ;
29176 char * kwnames[] = {
29177 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
29178 };
29179
29180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29182 if (!SWIG_IsOK(res1)) {
29183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
29184 }
29185 arg1 = reinterpret_cast< wxEffects * >(argp1);
29186 {
29187 arg2 = &temp2;
29188 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29189 }
29190 {
29191 arg3 = &temp3;
29192 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
29193 }
29194 {
29195 arg4 = &temp4;
29196 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
29197 }
29198 {
29199 arg5 = &temp5;
29200 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
29201 }
29202 {
29203 arg6 = &temp6;
29204 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
29205 }
29206 {
29207 PyThreadState* __tstate = wxPyBeginAllowThreads();
29208 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
29209 wxPyEndAllowThreads(__tstate);
29210 if (PyErr_Occurred()) SWIG_fail;
29211 }
29212 resultobj = SWIG_Py_Void();
29213 return resultobj;
29214fail:
29215 return NULL;
29216}
29217
29218
29219SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29220 PyObject *resultobj = 0;
29221 wxEffects *arg1 = (wxEffects *) 0 ;
29222 wxDC *arg2 = 0 ;
29223 wxRect *arg3 = 0 ;
29224 int arg4 = (int) 1 ;
29225 void *argp1 = 0 ;
29226 int res1 = 0 ;
29227 void *argp2 = 0 ;
29228 int res2 = 0 ;
29229 wxRect temp3 ;
29230 int val4 ;
29231 int ecode4 = 0 ;
29232 PyObject * obj0 = 0 ;
29233 PyObject * obj1 = 0 ;
29234 PyObject * obj2 = 0 ;
29235 PyObject * obj3 = 0 ;
29236 char * kwnames[] = {
29237 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
29238 };
29239
29240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29242 if (!SWIG_IsOK(res1)) {
29243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
29244 }
29245 arg1 = reinterpret_cast< wxEffects * >(argp1);
29246 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
29247 if (!SWIG_IsOK(res2)) {
29248 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
29249 }
29250 if (!argp2) {
29251 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
29252 }
29253 arg2 = reinterpret_cast< wxDC * >(argp2);
29254 {
29255 arg3 = &temp3;
29256 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
29257 }
29258 if (obj3) {
29259 ecode4 = SWIG_AsVal_int(obj3, &val4);
29260 if (!SWIG_IsOK(ecode4)) {
29261 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
29262 }
29263 arg4 = static_cast< int >(val4);
29264 }
29265 {
29266 PyThreadState* __tstate = wxPyBeginAllowThreads();
29267 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
29268 wxPyEndAllowThreads(__tstate);
29269 if (PyErr_Occurred()) SWIG_fail;
29270 }
29271 resultobj = SWIG_Py_Void();
29272 return resultobj;
29273fail:
29274 return NULL;
29275}
29276
29277
29278SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29279 PyObject *resultobj = 0;
29280 wxEffects *arg1 = (wxEffects *) 0 ;
29281 wxRect *arg2 = 0 ;
29282 wxDC *arg3 = 0 ;
29283 wxBitmap *arg4 = 0 ;
29284 bool result;
29285 void *argp1 = 0 ;
29286 int res1 = 0 ;
29287 wxRect temp2 ;
29288 void *argp3 = 0 ;
29289 int res3 = 0 ;
29290 void *argp4 = 0 ;
29291 int res4 = 0 ;
29292 PyObject * obj0 = 0 ;
29293 PyObject * obj1 = 0 ;
29294 PyObject * obj2 = 0 ;
29295 PyObject * obj3 = 0 ;
29296 char * kwnames[] = {
29297 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
29298 };
29299
29300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29302 if (!SWIG_IsOK(res1)) {
29303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
29304 }
29305 arg1 = reinterpret_cast< wxEffects * >(argp1);
29306 {
29307 arg2 = &temp2;
29308 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
29309 }
29310 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
29311 if (!SWIG_IsOK(res3)) {
29312 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
29313 }
29314 if (!argp3) {
29315 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
29316 }
29317 arg3 = reinterpret_cast< wxDC * >(argp3);
29318 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
29319 if (!SWIG_IsOK(res4)) {
29320 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
29321 }
29322 if (!argp4) {
29323 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
29324 }
29325 arg4 = reinterpret_cast< wxBitmap * >(argp4);
29326 {
29327 PyThreadState* __tstate = wxPyBeginAllowThreads();
29328 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
29329 wxPyEndAllowThreads(__tstate);
29330 if (PyErr_Occurred()) SWIG_fail;
29331 }
29332 {
29333 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29334 }
29335 return resultobj;
29336fail:
29337 return NULL;
29338}
29339
29340
29341SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29342 PyObject *obj;
29343 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29344 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
29345 return SWIG_Py_Void();
29346}
29347
29348SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29349 return SWIG_Python_InitShadowInstance(args);
29350}
29351
29352SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29353 PyObject *resultobj = 0;
29354 int arg1 ;
29355 int arg2 ;
29356 bool arg3 ;
29357 wxSplitterRenderParams *result = 0 ;
29358 int val1 ;
29359 int ecode1 = 0 ;
29360 int val2 ;
29361 int ecode2 = 0 ;
29362 bool val3 ;
29363 int ecode3 = 0 ;
29364 PyObject * obj0 = 0 ;
29365 PyObject * obj1 = 0 ;
29366 PyObject * obj2 = 0 ;
29367 char * kwnames[] = {
29368 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
29369 };
29370
29371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29372 ecode1 = SWIG_AsVal_int(obj0, &val1);
29373 if (!SWIG_IsOK(ecode1)) {
29374 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
29375 }
29376 arg1 = static_cast< int >(val1);
29377 ecode2 = SWIG_AsVal_int(obj1, &val2);
29378 if (!SWIG_IsOK(ecode2)) {
29379 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
29380 }
29381 arg2 = static_cast< int >(val2);
29382 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29383 if (!SWIG_IsOK(ecode3)) {
29384 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
29385 }
29386 arg3 = static_cast< bool >(val3);
29387 {
29388 PyThreadState* __tstate = wxPyBeginAllowThreads();
29389 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
29390 wxPyEndAllowThreads(__tstate);
29391 if (PyErr_Occurred()) SWIG_fail;
29392 }
29393 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
29394 return resultobj;
29395fail:
29396 return NULL;
29397}
29398
29399
29400SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29401 PyObject *resultobj = 0;
29402 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29403 void *argp1 = 0 ;
29404 int res1 = 0 ;
29405 PyObject *swig_obj[1] ;
29406
29407 if (!args) SWIG_fail;
29408 swig_obj[0] = args;
29409 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
29410 if (!SWIG_IsOK(res1)) {
29411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29412 }
29413 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29414 {
29415 PyThreadState* __tstate = wxPyBeginAllowThreads();
29416 delete arg1;
29417
29418 wxPyEndAllowThreads(__tstate);
29419 if (PyErr_Occurred()) SWIG_fail;
29420 }
29421 resultobj = SWIG_Py_Void();
29422 return resultobj;
29423fail:
29424 return NULL;
29425}
29426
29427
29428SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29429 PyObject *resultobj = 0;
29430 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29431 int result;
29432 void *argp1 = 0 ;
29433 int res1 = 0 ;
29434 PyObject *swig_obj[1] ;
29435
29436 if (!args) SWIG_fail;
29437 swig_obj[0] = args;
29438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
29439 if (!SWIG_IsOK(res1)) {
29440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29441 }
29442 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29443 result = (int)(int) ((arg1)->widthSash);
29444 resultobj = SWIG_From_int(static_cast< int >(result));
29445 return resultobj;
29446fail:
29447 return NULL;
29448}
29449
29450
29451SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29452 PyObject *resultobj = 0;
29453 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29454 int result;
29455 void *argp1 = 0 ;
29456 int res1 = 0 ;
29457 PyObject *swig_obj[1] ;
29458
29459 if (!args) SWIG_fail;
29460 swig_obj[0] = args;
29461 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
29462 if (!SWIG_IsOK(res1)) {
29463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29464 }
29465 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29466 result = (int)(int) ((arg1)->border);
29467 resultobj = SWIG_From_int(static_cast< int >(result));
29468 return resultobj;
29469fail:
29470 return NULL;
29471}
29472
29473
29474SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29475 PyObject *resultobj = 0;
29476 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29477 bool result;
29478 void *argp1 = 0 ;
29479 int res1 = 0 ;
29480 PyObject *swig_obj[1] ;
29481
29482 if (!args) SWIG_fail;
29483 swig_obj[0] = args;
29484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
29485 if (!SWIG_IsOK(res1)) {
29486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29487 }
29488 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29489 result = (bool)(bool) ((arg1)->isHotSensitive);
29490 resultobj = SWIG_From_bool(static_cast< bool >(result));
29491 return resultobj;
29492fail:
29493 return NULL;
29494}
29495
29496
29497SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29498 PyObject *obj;
29499 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29500 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
29501 return SWIG_Py_Void();
29502}
29503
29504SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29505 return SWIG_Python_InitShadowInstance(args);
29506}
29507
33d6fd3b
RD
29508SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29509 PyObject *resultobj = 0;
29510 wxHeaderButtonParams *result = 0 ;
29511
29512 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
29513 {
29514 PyThreadState* __tstate = wxPyBeginAllowThreads();
29515 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
29516 wxPyEndAllowThreads(__tstate);
29517 if (PyErr_Occurred()) SWIG_fail;
29518 }
29519 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
29520 return resultobj;
29521fail:
29522 return NULL;
29523}
29524
29525
29526SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29527 PyObject *resultobj = 0;
29528 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29529 void *argp1 = 0 ;
29530 int res1 = 0 ;
29531 PyObject *swig_obj[1] ;
29532
29533 if (!args) SWIG_fail;
29534 swig_obj[0] = args;
29535 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
29536 if (!SWIG_IsOK(res1)) {
29537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29538 }
29539 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29540 {
29541 PyThreadState* __tstate = wxPyBeginAllowThreads();
29542 delete arg1;
29543
29544 wxPyEndAllowThreads(__tstate);
29545 if (PyErr_Occurred()) SWIG_fail;
29546 }
29547 resultobj = SWIG_Py_Void();
29548 return resultobj;
29549fail:
29550 return NULL;
29551}
29552
29553
29554SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29555 PyObject *resultobj = 0;
29556 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29557 wxColour *arg2 = (wxColour *) 0 ;
29558 void *argp1 = 0 ;
29559 int res1 = 0 ;
29560 wxColour temp2 ;
29561 PyObject *swig_obj[2] ;
29562
29563 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
29564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29565 if (!SWIG_IsOK(res1)) {
29566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29567 }
29568 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29569 {
29570 arg2 = &temp2;
29571 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
29572 }
29573 if (arg1) (arg1)->m_arrowColour = *arg2;
29574
29575 resultobj = SWIG_Py_Void();
29576 return resultobj;
29577fail:
29578 return NULL;
29579}
29580
29581
29582SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29583 PyObject *resultobj = 0;
29584 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29585 wxColour *result = 0 ;
29586 void *argp1 = 0 ;
29587 int res1 = 0 ;
29588 PyObject *swig_obj[1] ;
29589
29590 if (!args) SWIG_fail;
29591 swig_obj[0] = args;
29592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29593 if (!SWIG_IsOK(res1)) {
29594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29595 }
29596 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29597 result = (wxColour *)& ((arg1)->m_arrowColour);
29598 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
29599 return resultobj;
29600fail:
29601 return NULL;
29602}
29603
29604
29605SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29606 PyObject *resultobj = 0;
29607 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29608 wxColour *arg2 = (wxColour *) 0 ;
29609 void *argp1 = 0 ;
29610 int res1 = 0 ;
29611 wxColour temp2 ;
29612 PyObject *swig_obj[2] ;
29613
29614 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
29615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29616 if (!SWIG_IsOK(res1)) {
29617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29618 }
29619 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29620 {
29621 arg2 = &temp2;
29622 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
29623 }
29624 if (arg1) (arg1)->m_selectionColour = *arg2;
29625
29626 resultobj = SWIG_Py_Void();
29627 return resultobj;
29628fail:
29629 return NULL;
29630}
29631
29632
29633SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29634 PyObject *resultobj = 0;
29635 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29636 wxColour *result = 0 ;
29637 void *argp1 = 0 ;
29638 int res1 = 0 ;
29639 PyObject *swig_obj[1] ;
29640
29641 if (!args) SWIG_fail;
29642 swig_obj[0] = args;
29643 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29644 if (!SWIG_IsOK(res1)) {
29645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29646 }
29647 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29648 result = (wxColour *)& ((arg1)->m_selectionColour);
29649 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
29650 return resultobj;
29651fail:
29652 return NULL;
29653}
29654
29655
29656SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29657 PyObject *resultobj = 0;
29658 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29659 wxString *arg2 = (wxString *) 0 ;
29660 void *argp1 = 0 ;
29661 int res1 = 0 ;
29662 bool temp2 = false ;
29663 PyObject *swig_obj[2] ;
29664
29665 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
29666 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29667 if (!SWIG_IsOK(res1)) {
29668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29669 }
29670 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29671 {
29672 arg2 = wxString_in_helper(swig_obj[1]);
29673 if (arg2 == NULL) SWIG_fail;
29674 temp2 = true;
29675 }
29676 if (arg1) (arg1)->m_labelText = *arg2;
29677
29678 resultobj = SWIG_Py_Void();
29679 {
29680 if (temp2)
29681 delete arg2;
29682 }
29683 return resultobj;
29684fail:
29685 {
29686 if (temp2)
29687 delete arg2;
29688 }
29689 return NULL;
29690}
29691
29692
29693SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29694 PyObject *resultobj = 0;
29695 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29696 wxString *result = 0 ;
29697 void *argp1 = 0 ;
29698 int res1 = 0 ;
29699 PyObject *swig_obj[1] ;
29700
29701 if (!args) SWIG_fail;
29702 swig_obj[0] = args;
29703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29704 if (!SWIG_IsOK(res1)) {
29705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29706 }
29707 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29708 result = (wxString *)& ((arg1)->m_labelText);
29709 {
29710#if wxUSE_UNICODE
29711 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
29712#else
29713 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
29714#endif
29715 }
29716 return resultobj;
29717fail:
29718 return NULL;
29719}
29720
29721
29722SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29723 PyObject *resultobj = 0;
29724 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29725 wxFont *arg2 = (wxFont *) 0 ;
29726 void *argp1 = 0 ;
29727 int res1 = 0 ;
29728 void *argp2 = 0 ;
29729 int res2 = 0 ;
29730 PyObject *swig_obj[2] ;
29731
29732 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
29733 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29734 if (!SWIG_IsOK(res1)) {
29735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29736 }
29737 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29738 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
29739 if (!SWIG_IsOK(res2)) {
29740 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
29741 }
29742 arg2 = reinterpret_cast< wxFont * >(argp2);
29743 if (arg1) (arg1)->m_labelFont = *arg2;
29744
29745 resultobj = SWIG_Py_Void();
29746 return resultobj;
29747fail:
29748 return NULL;
29749}
29750
29751
29752SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29753 PyObject *resultobj = 0;
29754 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29755 wxFont *result = 0 ;
29756 void *argp1 = 0 ;
29757 int res1 = 0 ;
29758 PyObject *swig_obj[1] ;
29759
29760 if (!args) SWIG_fail;
29761 swig_obj[0] = args;
29762 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29763 if (!SWIG_IsOK(res1)) {
29764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29765 }
29766 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29767 result = (wxFont *)& ((arg1)->m_labelFont);
29768 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
29769 return resultobj;
29770fail:
29771 return NULL;
29772}
29773
29774
29775SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29776 PyObject *resultobj = 0;
29777 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29778 wxColour *arg2 = (wxColour *) 0 ;
29779 void *argp1 = 0 ;
29780 int res1 = 0 ;
29781 wxColour temp2 ;
29782 PyObject *swig_obj[2] ;
29783
29784 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
29785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29786 if (!SWIG_IsOK(res1)) {
29787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29788 }
29789 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29790 {
29791 arg2 = &temp2;
29792 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
29793 }
29794 if (arg1) (arg1)->m_labelColour = *arg2;
29795
29796 resultobj = SWIG_Py_Void();
29797 return resultobj;
29798fail:
29799 return NULL;
29800}
29801
29802
29803SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29804 PyObject *resultobj = 0;
29805 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29806 wxColour *result = 0 ;
29807 void *argp1 = 0 ;
29808 int res1 = 0 ;
29809 PyObject *swig_obj[1] ;
29810
29811 if (!args) SWIG_fail;
29812 swig_obj[0] = args;
29813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29814 if (!SWIG_IsOK(res1)) {
29815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29816 }
29817 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29818 result = (wxColour *)& ((arg1)->m_labelColour);
29819 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
29820 return resultobj;
29821fail:
29822 return NULL;
29823}
29824
29825
29826SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29827 PyObject *resultobj = 0;
29828 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29829 wxBitmap *arg2 = (wxBitmap *) 0 ;
29830 void *argp1 = 0 ;
29831 int res1 = 0 ;
29832 void *argp2 = 0 ;
29833 int res2 = 0 ;
29834 PyObject *swig_obj[2] ;
29835
29836 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
29837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29838 if (!SWIG_IsOK(res1)) {
29839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29840 }
29841 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29842 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
29843 if (!SWIG_IsOK(res2)) {
29844 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
29845 }
29846 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29847 if (arg1) (arg1)->m_labelBitmap = *arg2;
29848
29849 resultobj = SWIG_Py_Void();
29850 return resultobj;
29851fail:
29852 return NULL;
29853}
29854
29855
29856SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29857 PyObject *resultobj = 0;
29858 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29859 wxBitmap *result = 0 ;
29860 void *argp1 = 0 ;
29861 int res1 = 0 ;
29862 PyObject *swig_obj[1] ;
29863
29864 if (!args) SWIG_fail;
29865 swig_obj[0] = args;
29866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29867 if (!SWIG_IsOK(res1)) {
29868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29869 }
29870 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29871 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
29872 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
29873 return resultobj;
29874fail:
29875 return NULL;
29876}
29877
29878
29879SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29880 PyObject *resultobj = 0;
29881 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29882 int arg2 ;
29883 void *argp1 = 0 ;
29884 int res1 = 0 ;
29885 int val2 ;
29886 int ecode2 = 0 ;
29887 PyObject *swig_obj[2] ;
29888
29889 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
29890 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29891 if (!SWIG_IsOK(res1)) {
29892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29893 }
29894 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29895 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
29896 if (!SWIG_IsOK(ecode2)) {
29897 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
29898 }
29899 arg2 = static_cast< int >(val2);
29900 if (arg1) (arg1)->m_labelAlignment = arg2;
29901
29902 resultobj = SWIG_Py_Void();
29903 return resultobj;
29904fail:
29905 return NULL;
29906}
29907
29908
29909SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29910 PyObject *resultobj = 0;
29911 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29912 int result;
29913 void *argp1 = 0 ;
29914 int res1 = 0 ;
29915 PyObject *swig_obj[1] ;
29916
29917 if (!args) SWIG_fail;
29918 swig_obj[0] = args;
29919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29920 if (!SWIG_IsOK(res1)) {
29921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29922 }
29923 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29924 result = (int) ((arg1)->m_labelAlignment);
29925 resultobj = SWIG_From_int(static_cast< int >(result));
29926 return resultobj;
29927fail:
29928 return NULL;
29929}
29930
29931
29932SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29933 PyObject *obj;
29934 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29935 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
29936 return SWIG_Py_Void();
29937}
29938
29939SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29940 return SWIG_Python_InitShadowInstance(args);
29941}
29942
1bd55598
RD
29943SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29944 PyObject *resultobj = 0;
29945 int arg1 ;
29946 int arg2 ;
29947 wxRendererVersion *result = 0 ;
29948 int val1 ;
29949 int ecode1 = 0 ;
29950 int val2 ;
29951 int ecode2 = 0 ;
29952 PyObject * obj0 = 0 ;
29953 PyObject * obj1 = 0 ;
29954 char * kwnames[] = {
29955 (char *) "version_",(char *) "age_", NULL
29956 };
29957
29958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
29959 ecode1 = SWIG_AsVal_int(obj0, &val1);
29960 if (!SWIG_IsOK(ecode1)) {
29961 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
29962 }
29963 arg1 = static_cast< int >(val1);
29964 ecode2 = SWIG_AsVal_int(obj1, &val2);
29965 if (!SWIG_IsOK(ecode2)) {
29966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
29967 }
29968 arg2 = static_cast< int >(val2);
29969 {
29970 PyThreadState* __tstate = wxPyBeginAllowThreads();
29971 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
29972 wxPyEndAllowThreads(__tstate);
29973 if (PyErr_Occurred()) SWIG_fail;
29974 }
29975 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
29976 return resultobj;
29977fail:
29978 return NULL;
29979}
29980
29981
29982SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29983 PyObject *resultobj = 0;
29984 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
29985 void *argp1 = 0 ;
29986 int res1 = 0 ;
29987 PyObject *swig_obj[1] ;
29988
29989 if (!args) SWIG_fail;
29990 swig_obj[0] = args;
29991 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
29992 if (!SWIG_IsOK(res1)) {
29993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
29994 }
29995 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
29996 {
29997 PyThreadState* __tstate = wxPyBeginAllowThreads();
29998 delete arg1;
29999
30000 wxPyEndAllowThreads(__tstate);
30001 if (PyErr_Occurred()) SWIG_fail;
30002 }
30003 resultobj = SWIG_Py_Void();
30004 return resultobj;
30005fail:
30006 return NULL;
30007}
30008
30009
30010SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30011 PyObject *resultobj = 0;
30012 wxRendererVersion *arg1 = 0 ;
30013 bool result;
30014 void *argp1 = 0 ;
30015 int res1 = 0 ;
30016 PyObject * obj0 = 0 ;
30017 char * kwnames[] = {
30018 (char *) "ver", NULL
30019 };
30020
30021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
30022 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
30023 if (!SWIG_IsOK(res1)) {
30024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
30025 }
30026 if (!argp1) {
30027 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
30028 }
30029 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30030 {
30031 PyThreadState* __tstate = wxPyBeginAllowThreads();
30032 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
30033 wxPyEndAllowThreads(__tstate);
30034 if (PyErr_Occurred()) SWIG_fail;
30035 }
30036 {
30037 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30038 }
30039 return resultobj;
30040fail:
30041 return NULL;
30042}
30043
30044
30045SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30046 PyObject *resultobj = 0;
30047 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
30048 int result;
30049 void *argp1 = 0 ;
30050 int res1 = 0 ;
30051 PyObject *swig_obj[1] ;
30052
30053 if (!args) SWIG_fail;
30054 swig_obj[0] = args;
30055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
30056 if (!SWIG_IsOK(res1)) {
30057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
30058 }
30059 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30060 result = (int)(int) ((arg1)->version);
30061 resultobj = SWIG_From_int(static_cast< int >(result));
30062 return resultobj;
30063fail:
30064 return NULL;
30065}
30066
30067
30068SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30069 PyObject *resultobj = 0;
30070 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
30071 int result;
30072 void *argp1 = 0 ;
30073 int res1 = 0 ;
30074 PyObject *swig_obj[1] ;
30075
30076 if (!args) SWIG_fail;
30077 swig_obj[0] = args;
30078 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
30079 if (!SWIG_IsOK(res1)) {
30080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
30081 }
30082 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30083 result = (int)(int) ((arg1)->age);
30084 resultobj = SWIG_From_int(static_cast< int >(result));
30085 return resultobj;
30086fail:
30087 return NULL;
30088}
30089
30090
30091SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30092 PyObject *obj;
30093 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30094 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
30095 return SWIG_Py_Void();
30096}
30097
30098SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30099 return SWIG_Python_InitShadowInstance(args);
30100}
30101
30102SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30103 PyObject *resultobj = 0;
30104 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30105 wxWindow *arg2 = (wxWindow *) 0 ;
30106 wxDC *arg3 = 0 ;
30107 wxRect *arg4 = 0 ;
30108 int arg5 = (int) 0 ;
33d6fd3b
RD
30109 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
30110 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
1bd55598
RD
30111 void *argp1 = 0 ;
30112 int res1 = 0 ;
30113 void *argp2 = 0 ;
30114 int res2 = 0 ;
30115 void *argp3 = 0 ;
30116 int res3 = 0 ;
30117 wxRect temp4 ;
30118 int val5 ;
30119 int ecode5 = 0 ;
33d6fd3b
RD
30120 int val6 ;
30121 int ecode6 = 0 ;
30122 void *argp7 = 0 ;
30123 int res7 = 0 ;
1bd55598
RD
30124 PyObject * obj0 = 0 ;
30125 PyObject * obj1 = 0 ;
30126 PyObject * obj2 = 0 ;
30127 PyObject * obj3 = 0 ;
30128 PyObject * obj4 = 0 ;
33d6fd3b
RD
30129 PyObject * obj5 = 0 ;
30130 PyObject * obj6 = 0 ;
1bd55598 30131 char * kwnames[] = {
33d6fd3b 30132 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
1bd55598
RD
30133 };
30134
33d6fd3b 30135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
1bd55598
RD
30136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30137 if (!SWIG_IsOK(res1)) {
30138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30139 }
30140 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30141 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30142 if (!SWIG_IsOK(res2)) {
30143 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30144 }
30145 arg2 = reinterpret_cast< wxWindow * >(argp2);
30146 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30147 if (!SWIG_IsOK(res3)) {
30148 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
30149 }
30150 if (!argp3) {
30151 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
30152 }
30153 arg3 = reinterpret_cast< wxDC * >(argp3);
30154 {
30155 arg4 = &temp4;
30156 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30157 }
30158 if (obj4) {
30159 ecode5 = SWIG_AsVal_int(obj4, &val5);
30160 if (!SWIG_IsOK(ecode5)) {
30161 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
30162 }
30163 arg5 = static_cast< int >(val5);
30164 }
33d6fd3b
RD
30165 if (obj5) {
30166 ecode6 = SWIG_AsVal_int(obj5, &val6);
30167 if (!SWIG_IsOK(ecode6)) {
30168 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
30169 }
30170 arg6 = static_cast< wxHeaderSortIconType >(val6);
30171 }
30172 if (obj6) {
30173 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30174 if (!SWIG_IsOK(res7)) {
30175 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
30176 }
30177 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
30178 }
30179 {
30180 PyThreadState* __tstate = wxPyBeginAllowThreads();
30181 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
30182 wxPyEndAllowThreads(__tstate);
30183 if (PyErr_Occurred()) SWIG_fail;
30184 }
30185 resultobj = SWIG_Py_Void();
30186 return resultobj;
30187fail:
30188 return NULL;
30189}
30190
30191
30192SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30193 PyObject *resultobj = 0;
30194 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30195 wxWindow *arg2 = (wxWindow *) 0 ;
30196 wxDC *arg3 = 0 ;
30197 wxRect *arg4 = 0 ;
30198 int arg5 = (int) 0 ;
30199 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
30200 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
30201 void *argp1 = 0 ;
30202 int res1 = 0 ;
30203 void *argp2 = 0 ;
30204 int res2 = 0 ;
30205 void *argp3 = 0 ;
30206 int res3 = 0 ;
30207 wxRect temp4 ;
30208 int val5 ;
30209 int ecode5 = 0 ;
30210 int val6 ;
30211 int ecode6 = 0 ;
30212 void *argp7 = 0 ;
30213 int res7 = 0 ;
30214 PyObject * obj0 = 0 ;
30215 PyObject * obj1 = 0 ;
30216 PyObject * obj2 = 0 ;
30217 PyObject * obj3 = 0 ;
30218 PyObject * obj4 = 0 ;
30219 PyObject * obj5 = 0 ;
30220 PyObject * obj6 = 0 ;
30221 char * kwnames[] = {
30222 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
30223 };
30224
30225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30227 if (!SWIG_IsOK(res1)) {
30228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30229 }
30230 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30231 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30232 if (!SWIG_IsOK(res2)) {
30233 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
30234 }
30235 arg2 = reinterpret_cast< wxWindow * >(argp2);
30236 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30237 if (!SWIG_IsOK(res3)) {
30238 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
30239 }
30240 if (!argp3) {
30241 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
30242 }
30243 arg3 = reinterpret_cast< wxDC * >(argp3);
30244 {
30245 arg4 = &temp4;
30246 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30247 }
30248 if (obj4) {
30249 ecode5 = SWIG_AsVal_int(obj4, &val5);
30250 if (!SWIG_IsOK(ecode5)) {
30251 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
30252 }
30253 arg5 = static_cast< int >(val5);
30254 }
30255 if (obj5) {
30256 ecode6 = SWIG_AsVal_int(obj5, &val6);
30257 if (!SWIG_IsOK(ecode6)) {
30258 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
30259 }
30260 arg6 = static_cast< wxHeaderSortIconType >(val6);
30261 }
30262 if (obj6) {
30263 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30264 if (!SWIG_IsOK(res7)) {
30265 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
30266 }
30267 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
30268 }
1bd55598
RD
30269 {
30270 PyThreadState* __tstate = wxPyBeginAllowThreads();
33d6fd3b 30271 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
1bd55598
RD
30272 wxPyEndAllowThreads(__tstate);
30273 if (PyErr_Occurred()) SWIG_fail;
30274 }
30275 resultobj = SWIG_Py_Void();
30276 return resultobj;
30277fail:
30278 return NULL;
30279}
30280
30281
33d6fd3b
RD
30282SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30283 PyObject *resultobj = 0;
30284 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30285 wxWindow *arg2 = (wxWindow *) 0 ;
30286 int result;
30287 void *argp1 = 0 ;
30288 int res1 = 0 ;
30289 void *argp2 = 0 ;
30290 int res2 = 0 ;
30291 PyObject * obj0 = 0 ;
30292 PyObject * obj1 = 0 ;
30293 char * kwnames[] = {
30294 (char *) "self",(char *) "win", NULL
30295 };
30296
30297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
30298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30299 if (!SWIG_IsOK(res1)) {
30300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30301 }
30302 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30303 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30304 if (!SWIG_IsOK(res2)) {
30305 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
30306 }
30307 arg2 = reinterpret_cast< wxWindow * >(argp2);
30308 {
30309 PyThreadState* __tstate = wxPyBeginAllowThreads();
30310 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
30311 wxPyEndAllowThreads(__tstate);
30312 if (PyErr_Occurred()) SWIG_fail;
30313 }
30314 resultobj = SWIG_From_int(static_cast< int >(result));
30315 return resultobj;
30316fail:
30317 return NULL;
30318}
30319
30320
1bd55598
RD
30321SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30322 PyObject *resultobj = 0;
30323 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30324 wxWindow *arg2 = (wxWindow *) 0 ;
30325 wxDC *arg3 = 0 ;
30326 wxRect *arg4 = 0 ;
30327 int arg5 = (int) 0 ;
30328 void *argp1 = 0 ;
30329 int res1 = 0 ;
30330 void *argp2 = 0 ;
30331 int res2 = 0 ;
30332 void *argp3 = 0 ;
30333 int res3 = 0 ;
30334 wxRect temp4 ;
30335 int val5 ;
30336 int ecode5 = 0 ;
30337 PyObject * obj0 = 0 ;
30338 PyObject * obj1 = 0 ;
30339 PyObject * obj2 = 0 ;
30340 PyObject * obj3 = 0 ;
30341 PyObject * obj4 = 0 ;
30342 char * kwnames[] = {
30343 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30344 };
30345
30346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30348 if (!SWIG_IsOK(res1)) {
30349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30350 }
30351 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30352 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30353 if (!SWIG_IsOK(res2)) {
30354 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30355 }
30356 arg2 = reinterpret_cast< wxWindow * >(argp2);
30357 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30358 if (!SWIG_IsOK(res3)) {
30359 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
30360 }
30361 if (!argp3) {
30362 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
30363 }
30364 arg3 = reinterpret_cast< wxDC * >(argp3);
30365 {
30366 arg4 = &temp4;
30367 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30368 }
30369 if (obj4) {
30370 ecode5 = SWIG_AsVal_int(obj4, &val5);
30371 if (!SWIG_IsOK(ecode5)) {
30372 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
30373 }
30374 arg5 = static_cast< int >(val5);
30375 }
30376 {
30377 PyThreadState* __tstate = wxPyBeginAllowThreads();
30378 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
30379 wxPyEndAllowThreads(__tstate);
30380 if (PyErr_Occurred()) SWIG_fail;
30381 }
30382 resultobj = SWIG_Py_Void();
30383 return resultobj;
30384fail:
30385 return NULL;
30386}
30387
30388
30389SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30390 PyObject *resultobj = 0;
30391 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30392 wxWindow *arg2 = (wxWindow *) 0 ;
30393 wxDC *arg3 = 0 ;
30394 wxRect *arg4 = 0 ;
30395 int arg5 = (int) 0 ;
30396 void *argp1 = 0 ;
30397 int res1 = 0 ;
30398 void *argp2 = 0 ;
30399 int res2 = 0 ;
30400 void *argp3 = 0 ;
30401 int res3 = 0 ;
30402 wxRect temp4 ;
30403 int val5 ;
30404 int ecode5 = 0 ;
30405 PyObject * obj0 = 0 ;
30406 PyObject * obj1 = 0 ;
30407 PyObject * obj2 = 0 ;
30408 PyObject * obj3 = 0 ;
30409 PyObject * obj4 = 0 ;
30410 char * kwnames[] = {
30411 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30412 };
30413
30414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30416 if (!SWIG_IsOK(res1)) {
30417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30418 }
30419 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30420 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30421 if (!SWIG_IsOK(res2)) {
30422 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
30423 }
30424 arg2 = reinterpret_cast< wxWindow * >(argp2);
30425 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30426 if (!SWIG_IsOK(res3)) {
30427 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
30428 }
30429 if (!argp3) {
30430 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
30431 }
30432 arg3 = reinterpret_cast< wxDC * >(argp3);
30433 {
30434 arg4 = &temp4;
30435 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30436 }
30437 if (obj4) {
30438 ecode5 = SWIG_AsVal_int(obj4, &val5);
30439 if (!SWIG_IsOK(ecode5)) {
30440 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
30441 }
30442 arg5 = static_cast< int >(val5);
30443 }
30444 {
30445 PyThreadState* __tstate = wxPyBeginAllowThreads();
30446 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
30447 wxPyEndAllowThreads(__tstate);
30448 if (PyErr_Occurred()) SWIG_fail;
30449 }
30450 resultobj = SWIG_Py_Void();
30451 return resultobj;
30452fail:
30453 return NULL;
30454}
30455
30456
30457SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30458 PyObject *resultobj = 0;
30459 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30460 wxWindow *arg2 = (wxWindow *) 0 ;
30461 wxDC *arg3 = 0 ;
30462 wxSize *arg4 = 0 ;
30463 int arg5 ;
30464 wxOrientation arg6 ;
30465 int arg7 = (int) 0 ;
30466 void *argp1 = 0 ;
30467 int res1 = 0 ;
30468 void *argp2 = 0 ;
30469 int res2 = 0 ;
30470 void *argp3 = 0 ;
30471 int res3 = 0 ;
30472 wxSize temp4 ;
30473 int val5 ;
30474 int ecode5 = 0 ;
30475 int val6 ;
30476 int ecode6 = 0 ;
30477 int val7 ;
30478 int ecode7 = 0 ;
30479 PyObject * obj0 = 0 ;
30480 PyObject * obj1 = 0 ;
30481 PyObject * obj2 = 0 ;
30482 PyObject * obj3 = 0 ;
30483 PyObject * obj4 = 0 ;
30484 PyObject * obj5 = 0 ;
30485 PyObject * obj6 = 0 ;
30486 char * kwnames[] = {
30487 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
30488 };
30489
30490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30492 if (!SWIG_IsOK(res1)) {
30493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30494 }
30495 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30496 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30497 if (!SWIG_IsOK(res2)) {
30498 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
30499 }
30500 arg2 = reinterpret_cast< wxWindow * >(argp2);
30501 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30502 if (!SWIG_IsOK(res3)) {
30503 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
30504 }
30505 if (!argp3) {
30506 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
30507 }
30508 arg3 = reinterpret_cast< wxDC * >(argp3);
30509 {
30510 arg4 = &temp4;
30511 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
30512 }
30513 ecode5 = SWIG_AsVal_int(obj4, &val5);
30514 if (!SWIG_IsOK(ecode5)) {
30515 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
30516 }
30517 arg5 = static_cast< int >(val5);
30518 ecode6 = SWIG_AsVal_int(obj5, &val6);
30519 if (!SWIG_IsOK(ecode6)) {
30520 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
30521 }
30522 arg6 = static_cast< wxOrientation >(val6);
30523 if (obj6) {
30524 ecode7 = SWIG_AsVal_int(obj6, &val7);
30525 if (!SWIG_IsOK(ecode7)) {
30526 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
30527 }
30528 arg7 = static_cast< int >(val7);
30529 }
30530 {
30531 PyThreadState* __tstate = wxPyBeginAllowThreads();
30532 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
30533 wxPyEndAllowThreads(__tstate);
30534 if (PyErr_Occurred()) SWIG_fail;
30535 }
30536 resultobj = SWIG_Py_Void();
30537 return resultobj;
30538fail:
30539 return NULL;
30540}
30541
30542
30543SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30544 PyObject *resultobj = 0;
30545 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30546 wxWindow *arg2 = (wxWindow *) 0 ;
30547 wxDC *arg3 = 0 ;
30548 wxRect *arg4 = 0 ;
30549 int arg5 = (int) 0 ;
30550 void *argp1 = 0 ;
30551 int res1 = 0 ;
30552 void *argp2 = 0 ;
30553 int res2 = 0 ;
30554 void *argp3 = 0 ;
30555 int res3 = 0 ;
30556 wxRect temp4 ;
30557 int val5 ;
30558 int ecode5 = 0 ;
30559 PyObject * obj0 = 0 ;
30560 PyObject * obj1 = 0 ;
30561 PyObject * obj2 = 0 ;
30562 PyObject * obj3 = 0 ;
30563 PyObject * obj4 = 0 ;
30564 char * kwnames[] = {
30565 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30566 };
30567
30568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30570 if (!SWIG_IsOK(res1)) {
30571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30572 }
30573 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30574 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30575 if (!SWIG_IsOK(res2)) {
30576 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30577 }
30578 arg2 = reinterpret_cast< wxWindow * >(argp2);
30579 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30580 if (!SWIG_IsOK(res3)) {
30581 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
30582 }
30583 if (!argp3) {
30584 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
30585 }
30586 arg3 = reinterpret_cast< wxDC * >(argp3);
30587 {
30588 arg4 = &temp4;
30589 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30590 }
30591 if (obj4) {
30592 ecode5 = SWIG_AsVal_int(obj4, &val5);
30593 if (!SWIG_IsOK(ecode5)) {
30594 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
30595 }
30596 arg5 = static_cast< int >(val5);
30597 }
30598 {
30599 PyThreadState* __tstate = wxPyBeginAllowThreads();
30600 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
30601 wxPyEndAllowThreads(__tstate);
30602 if (PyErr_Occurred()) SWIG_fail;
30603 }
30604 resultobj = SWIG_Py_Void();
30605 return resultobj;
30606fail:
30607 return NULL;
30608}
30609
30610
30611SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30612 PyObject *resultobj = 0;
30613 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30614 wxWindow *arg2 = (wxWindow *) 0 ;
30615 wxDC *arg3 = 0 ;
30616 wxRect *arg4 = 0 ;
30617 int arg5 = (int) 0 ;
30618 void *argp1 = 0 ;
30619 int res1 = 0 ;
30620 void *argp2 = 0 ;
30621 int res2 = 0 ;
30622 void *argp3 = 0 ;
30623 int res3 = 0 ;
30624 wxRect temp4 ;
30625 int val5 ;
30626 int ecode5 = 0 ;
30627 PyObject * obj0 = 0 ;
30628 PyObject * obj1 = 0 ;
30629 PyObject * obj2 = 0 ;
30630 PyObject * obj3 = 0 ;
30631 PyObject * obj4 = 0 ;
30632 char * kwnames[] = {
30633 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30634 };
30635
30636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30638 if (!SWIG_IsOK(res1)) {
30639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30640 }
30641 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30642 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30643 if (!SWIG_IsOK(res2)) {
30644 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
30645 }
30646 arg2 = reinterpret_cast< wxWindow * >(argp2);
30647 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30648 if (!SWIG_IsOK(res3)) {
30649 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
30650 }
30651 if (!argp3) {
30652 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
30653 }
30654 arg3 = reinterpret_cast< wxDC * >(argp3);
30655 {
30656 arg4 = &temp4;
30657 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30658 }
30659 if (obj4) {
30660 ecode5 = SWIG_AsVal_int(obj4, &val5);
30661 if (!SWIG_IsOK(ecode5)) {
30662 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
30663 }
30664 arg5 = static_cast< int >(val5);
30665 }
30666 {
30667 PyThreadState* __tstate = wxPyBeginAllowThreads();
30668 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
30669 wxPyEndAllowThreads(__tstate);
30670 if (PyErr_Occurred()) SWIG_fail;
30671 }
30672 resultobj = SWIG_Py_Void();
30673 return resultobj;
30674fail:
30675 return NULL;
30676}
30677
30678
2131d850 30679SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
da91cb0f
RD
30680 PyObject *resultobj = 0;
30681 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30682 wxWindow *arg2 = (wxWindow *) 0 ;
30683 wxDC *arg3 = 0 ;
30684 wxRect *arg4 = 0 ;
30685 int arg5 = (int) 0 ;
30686 void *argp1 = 0 ;
30687 int res1 = 0 ;
30688 void *argp2 = 0 ;
30689 int res2 = 0 ;
30690 void *argp3 = 0 ;
30691 int res3 = 0 ;
30692 wxRect temp4 ;
30693 int val5 ;
30694 int ecode5 = 0 ;
30695 PyObject * obj0 = 0 ;
30696 PyObject * obj1 = 0 ;
30697 PyObject * obj2 = 0 ;
30698 PyObject * obj3 = 0 ;
30699 PyObject * obj4 = 0 ;
30700 char * kwnames[] = {
30701 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30702 };
30703
2131d850 30704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
da91cb0f
RD
30705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30706 if (!SWIG_IsOK(res1)) {
2131d850 30707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
da91cb0f
RD
30708 }
30709 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30710 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30711 if (!SWIG_IsOK(res2)) {
2131d850 30712 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
da91cb0f
RD
30713 }
30714 arg2 = reinterpret_cast< wxWindow * >(argp2);
30715 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30716 if (!SWIG_IsOK(res3)) {
2131d850 30717 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
da91cb0f
RD
30718 }
30719 if (!argp3) {
2131d850 30720 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
da91cb0f
RD
30721 }
30722 arg3 = reinterpret_cast< wxDC * >(argp3);
30723 {
30724 arg4 = &temp4;
30725 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30726 }
30727 if (obj4) {
30728 ecode5 = SWIG_AsVal_int(obj4, &val5);
30729 if (!SWIG_IsOK(ecode5)) {
2131d850 30730 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
da91cb0f
RD
30731 }
30732 arg5 = static_cast< int >(val5);
30733 }
30734 {
30735 PyThreadState* __tstate = wxPyBeginAllowThreads();
2131d850
RD
30736 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
30737 wxPyEndAllowThreads(__tstate);
30738 if (PyErr_Occurred()) SWIG_fail;
30739 }
30740 resultobj = SWIG_Py_Void();
30741 return resultobj;
30742fail:
30743 return NULL;
30744}
30745
30746
30747SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30748 PyObject *resultobj = 0;
30749 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30750 wxWindow *arg2 = (wxWindow *) 0 ;
30751 wxDC *arg3 = 0 ;
30752 wxRect *arg4 = 0 ;
30753 int arg5 = (int) 0 ;
30754 void *argp1 = 0 ;
30755 int res1 = 0 ;
30756 void *argp2 = 0 ;
30757 int res2 = 0 ;
30758 void *argp3 = 0 ;
30759 int res3 = 0 ;
30760 wxRect temp4 ;
30761 int val5 ;
30762 int ecode5 = 0 ;
30763 PyObject * obj0 = 0 ;
30764 PyObject * obj1 = 0 ;
30765 PyObject * obj2 = 0 ;
30766 PyObject * obj3 = 0 ;
30767 PyObject * obj4 = 0 ;
30768 char * kwnames[] = {
30769 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30770 };
30771
30772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30774 if (!SWIG_IsOK(res1)) {
30775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30776 }
30777 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30778 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30779 if (!SWIG_IsOK(res2)) {
30780 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30781 }
30782 arg2 = reinterpret_cast< wxWindow * >(argp2);
30783 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30784 if (!SWIG_IsOK(res3)) {
30785 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
30786 }
30787 if (!argp3) {
30788 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
30789 }
30790 arg3 = reinterpret_cast< wxDC * >(argp3);
30791 {
30792 arg4 = &temp4;
30793 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30794 }
30795 if (obj4) {
30796 ecode5 = SWIG_AsVal_int(obj4, &val5);
30797 if (!SWIG_IsOK(ecode5)) {
30798 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
30799 }
30800 arg5 = static_cast< int >(val5);
30801 }
30802 {
30803 PyThreadState* __tstate = wxPyBeginAllowThreads();
30804 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
30805 wxPyEndAllowThreads(__tstate);
30806 if (PyErr_Occurred()) SWIG_fail;
30807 }
30808 resultobj = SWIG_Py_Void();
30809 return resultobj;
30810fail:
30811 return NULL;
30812}
30813
30814
30815SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30816 PyObject *resultobj = 0;
30817 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30818 wxWindow *arg2 = (wxWindow *) 0 ;
30819 wxDC *arg3 = 0 ;
30820 wxRect *arg4 = 0 ;
30821 int arg5 = (int) 0 ;
30822 void *argp1 = 0 ;
30823 int res1 = 0 ;
30824 void *argp2 = 0 ;
30825 int res2 = 0 ;
30826 void *argp3 = 0 ;
30827 int res3 = 0 ;
30828 wxRect temp4 ;
30829 int val5 ;
30830 int ecode5 = 0 ;
30831 PyObject * obj0 = 0 ;
30832 PyObject * obj1 = 0 ;
30833 PyObject * obj2 = 0 ;
30834 PyObject * obj3 = 0 ;
30835 PyObject * obj4 = 0 ;
30836 char * kwnames[] = {
30837 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30838 };
30839
30840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30842 if (!SWIG_IsOK(res1)) {
30843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30844 }
30845 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30846 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30847 if (!SWIG_IsOK(res2)) {
30848 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
30849 }
30850 arg2 = reinterpret_cast< wxWindow * >(argp2);
30851 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30852 if (!SWIG_IsOK(res3)) {
30853 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
30854 }
30855 if (!argp3) {
30856 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
30857 }
30858 arg3 = reinterpret_cast< wxDC * >(argp3);
30859 {
30860 arg4 = &temp4;
30861 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30862 }
30863 if (obj4) {
30864 ecode5 = SWIG_AsVal_int(obj4, &val5);
30865 if (!SWIG_IsOK(ecode5)) {
30866 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
30867 }
30868 arg5 = static_cast< int >(val5);
30869 }
30870 {
30871 PyThreadState* __tstate = wxPyBeginAllowThreads();
30872 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
da91cb0f
RD
30873 wxPyEndAllowThreads(__tstate);
30874 if (PyErr_Occurred()) SWIG_fail;
30875 }
30876 resultobj = SWIG_Py_Void();
30877 return resultobj;
30878fail:
30879 return NULL;
30880}
30881
30882
1bd55598
RD
30883SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30884 PyObject *resultobj = 0;
30885 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30886 wxWindow *arg2 = (wxWindow *) 0 ;
30887 SwigValueWrapper<wxSplitterRenderParams > result;
30888 void *argp1 = 0 ;
30889 int res1 = 0 ;
30890 void *argp2 = 0 ;
30891 int res2 = 0 ;
30892 PyObject * obj0 = 0 ;
30893 PyObject * obj1 = 0 ;
30894 char * kwnames[] = {
30895 (char *) "self",(char *) "win", NULL
30896 };
30897
30898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
30899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30900 if (!SWIG_IsOK(res1)) {
30901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30902 }
30903 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30904 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30905 if (!SWIG_IsOK(res2)) {
30906 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
30907 }
30908 arg2 = reinterpret_cast< wxWindow * >(argp2);
30909 {
30910 PyThreadState* __tstate = wxPyBeginAllowThreads();
30911 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
30912 wxPyEndAllowThreads(__tstate);
30913 if (PyErr_Occurred()) SWIG_fail;
30914 }
30915 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
30916 return resultobj;
30917fail:
30918 return NULL;
30919}
30920
30921
30922SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30923 PyObject *resultobj = 0;
30924 wxRendererNative *result = 0 ;
30925
30926 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
30927 {
704eda0c 30928 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 30929 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 30930 {
1bd55598
RD
30931 wxRendererNative &_result_ref = wxRendererNative::Get();
30932 result = (wxRendererNative *) &_result_ref;
36ed4f51 30933 }
1bd55598
RD
30934 wxPyEndAllowThreads(__tstate);
30935 if (PyErr_Occurred()) SWIG_fail;
30936 }
30937 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
30938 return resultobj;
30939fail:
30940 return NULL;
30941}
30942
30943
30944SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30945 PyObject *resultobj = 0;
30946 wxRendererNative *result = 0 ;
30947
30948 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
30949 {
704eda0c 30950 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 30951 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 30952 {
1bd55598
RD
30953 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
30954 result = (wxRendererNative *) &_result_ref;
be9b1dca 30955 }
1bd55598
RD
30956 wxPyEndAllowThreads(__tstate);
30957 if (PyErr_Occurred()) SWIG_fail;
30958 }
30959 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
30960 return resultobj;
30961fail:
30962 return NULL;
30963}
30964
30965
30966SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30967 PyObject *resultobj = 0;
30968 wxRendererNative *result = 0 ;
30969
30970 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
30971 {
704eda0c 30972 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 30973 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 30974 {
1bd55598
RD
30975 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
30976 result = (wxRendererNative *) &_result_ref;
be9b1dca 30977 }
1bd55598
RD
30978 wxPyEndAllowThreads(__tstate);
30979 if (PyErr_Occurred()) SWIG_fail;
30980 }
30981 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
30982 return resultobj;
30983fail:
30984 return NULL;
30985}
30986
30987
30988SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30989 PyObject *resultobj = 0;
30990 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30991 wxRendererNative *result = 0 ;
30992 void *argp1 = 0 ;
30993 int res1 = 0 ;
30994 PyObject * obj0 = 0 ;
30995 char * kwnames[] = {
30996 (char *) "renderer", NULL
30997 };
30998
30999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
31000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31001 if (!SWIG_IsOK(res1)) {
31002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31003 }
31004 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31005 {
704eda0c 31006 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598
RD
31007 PyThreadState* __tstate = wxPyBeginAllowThreads();
31008 result = (wxRendererNative *)wxRendererNative::Set(arg1);
31009 wxPyEndAllowThreads(__tstate);
31010 if (PyErr_Occurred()) SWIG_fail;
31011 }
31012 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31013 return resultobj;
31014fail:
31015 return NULL;
31016}
31017
31018
31019SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31020 PyObject *resultobj = 0;
31021 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31022 SwigValueWrapper<wxRendererVersion > result;
31023 void *argp1 = 0 ;
31024 int res1 = 0 ;
31025 PyObject *swig_obj[1] ;
31026
31027 if (!args) SWIG_fail;
31028 swig_obj[0] = args;
31029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31030 if (!SWIG_IsOK(res1)) {
31031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
31032 }
31033 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31034 {
31035 PyThreadState* __tstate = wxPyBeginAllowThreads();
31036 result = ((wxRendererNative const *)arg1)->GetVersion();
31037 wxPyEndAllowThreads(__tstate);
31038 if (PyErr_Occurred()) SWIG_fail;
31039 }
31040 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
31041 return resultobj;
31042fail:
31043 return NULL;
31044}
31045
31046
31047SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31048 PyObject *obj;
31049 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31050 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
31051 return SWIG_Py_Void();
31052}
31053
27e45892
RD
31054SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31055 PyObject *resultobj = 0;
31056 wxPseudoDC *result = 0 ;
31057
31058 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
31059 {
31060 PyThreadState* __tstate = wxPyBeginAllowThreads();
31061 result = (wxPseudoDC *)new wxPseudoDC();
31062 wxPyEndAllowThreads(__tstate);
31063 if (PyErr_Occurred()) SWIG_fail;
31064 }
31065 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
31066 return resultobj;
31067fail:
31068 return NULL;
31069}
31070
31071
31072SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31073 PyObject *resultobj = 0;
31074 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31075 void *argp1 = 0 ;
31076 int res1 = 0 ;
31077 PyObject *swig_obj[1] ;
31078
31079 if (!args) SWIG_fail;
31080 swig_obj[0] = args;
31081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31082 if (!SWIG_IsOK(res1)) {
31083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31084 }
31085 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31086 {
31087 PyThreadState* __tstate = wxPyBeginAllowThreads();
31088 (arg1)->BeginDrawing();
31089 wxPyEndAllowThreads(__tstate);
31090 if (PyErr_Occurred()) SWIG_fail;
31091 }
31092 resultobj = SWIG_Py_Void();
31093 return resultobj;
31094fail:
31095 return NULL;
31096}
31097
31098
31099SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31100 PyObject *resultobj = 0;
31101 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31102 void *argp1 = 0 ;
31103 int res1 = 0 ;
31104 PyObject *swig_obj[1] ;
31105
31106 if (!args) SWIG_fail;
31107 swig_obj[0] = args;
31108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31109 if (!SWIG_IsOK(res1)) {
31110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31111 }
31112 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31113 {
31114 PyThreadState* __tstate = wxPyBeginAllowThreads();
31115 (arg1)->EndDrawing();
31116 wxPyEndAllowThreads(__tstate);
31117 if (PyErr_Occurred()) SWIG_fail;
31118 }
31119 resultobj = SWIG_Py_Void();
31120 return resultobj;
31121fail:
31122 return NULL;
31123}
31124
31125
31126SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31127 PyObject *resultobj = 0;
31128 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31129 void *argp1 = 0 ;
31130 int res1 = 0 ;
31131 PyObject *swig_obj[1] ;
31132
31133 if (!args) SWIG_fail;
31134 swig_obj[0] = args;
31135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
31136 if (!SWIG_IsOK(res1)) {
31137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31138 }
31139 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31140 {
31141 PyThreadState* __tstate = wxPyBeginAllowThreads();
31142 delete arg1;
31143
31144 wxPyEndAllowThreads(__tstate);
31145 if (PyErr_Occurred()) SWIG_fail;
31146 }
31147 resultobj = SWIG_Py_Void();
31148 return resultobj;
31149fail:
31150 return NULL;
31151}
31152
31153
31154SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31155 PyObject *resultobj = 0;
31156 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31157 void *argp1 = 0 ;
31158 int res1 = 0 ;
31159 PyObject *swig_obj[1] ;
31160
31161 if (!args) SWIG_fail;
31162 swig_obj[0] = args;
31163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31164 if (!SWIG_IsOK(res1)) {
31165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31166 }
31167 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31168 {
31169 PyThreadState* __tstate = wxPyBeginAllowThreads();
31170 (arg1)->RemoveAll();
31171 wxPyEndAllowThreads(__tstate);
31172 if (PyErr_Occurred()) SWIG_fail;
31173 }
31174 resultobj = SWIG_Py_Void();
31175 return resultobj;
31176fail:
31177 return NULL;
31178}
31179
31180
31181SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31182 PyObject *resultobj = 0;
31183 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31184 int result;
31185 void *argp1 = 0 ;
31186 int res1 = 0 ;
31187 PyObject *swig_obj[1] ;
31188
31189 if (!args) SWIG_fail;
31190 swig_obj[0] = args;
31191 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31192 if (!SWIG_IsOK(res1)) {
31193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31194 }
31195 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31196 {
31197 PyThreadState* __tstate = wxPyBeginAllowThreads();
31198 result = (int)(arg1)->GetLen();
31199 wxPyEndAllowThreads(__tstate);
31200 if (PyErr_Occurred()) SWIG_fail;
31201 }
31202 resultobj = SWIG_From_int(static_cast< int >(result));
31203 return resultobj;
31204fail:
31205 return NULL;
31206}
31207
31208
31209SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31210 PyObject *resultobj = 0;
31211 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31212 int arg2 ;
31213 void *argp1 = 0 ;
31214 int res1 = 0 ;
31215 int val2 ;
31216 int ecode2 = 0 ;
31217 PyObject * obj0 = 0 ;
31218 PyObject * obj1 = 0 ;
31219 char * kwnames[] = {
31220 (char *) "self",(char *) "id", NULL
31221 };
31222
31223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
31224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31225 if (!SWIG_IsOK(res1)) {
31226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31227 }
31228 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31229 ecode2 = SWIG_AsVal_int(obj1, &val2);
31230 if (!SWIG_IsOK(ecode2)) {
31231 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
31232 }
31233 arg2 = static_cast< int >(val2);
31234 {
31235 PyThreadState* __tstate = wxPyBeginAllowThreads();
31236 (arg1)->SetId(arg2);
31237 wxPyEndAllowThreads(__tstate);
31238 if (PyErr_Occurred()) SWIG_fail;
31239 }
31240 resultobj = SWIG_Py_Void();
31241 return resultobj;
31242fail:
31243 return NULL;
31244}
31245
31246
31247SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31248 PyObject *resultobj = 0;
31249 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31250 int arg2 ;
31251 void *argp1 = 0 ;
31252 int res1 = 0 ;
31253 int val2 ;
31254 int ecode2 = 0 ;
31255 PyObject * obj0 = 0 ;
31256 PyObject * obj1 = 0 ;
31257 char * kwnames[] = {
31258 (char *) "self",(char *) "id", NULL
31259 };
31260
31261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
31262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31263 if (!SWIG_IsOK(res1)) {
31264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31265 }
31266 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31267 ecode2 = SWIG_AsVal_int(obj1, &val2);
31268 if (!SWIG_IsOK(ecode2)) {
31269 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
31270 }
31271 arg2 = static_cast< int >(val2);
31272 {
31273 PyThreadState* __tstate = wxPyBeginAllowThreads();
31274 (arg1)->ClearId(arg2);
31275 wxPyEndAllowThreads(__tstate);
31276 if (PyErr_Occurred()) SWIG_fail;
31277 }
31278 resultobj = SWIG_Py_Void();
31279 return resultobj;
31280fail:
31281 return NULL;
31282}
31283
31284
31285SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31286 PyObject *resultobj = 0;
31287 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31288 int arg2 ;
31289 void *argp1 = 0 ;
31290 int res1 = 0 ;
31291 int val2 ;
31292 int ecode2 = 0 ;
31293 PyObject * obj0 = 0 ;
31294 PyObject * obj1 = 0 ;
31295 char * kwnames[] = {
31296 (char *) "self",(char *) "id", NULL
31297 };
31298
31299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
31300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31301 if (!SWIG_IsOK(res1)) {
31302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31303 }
31304 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31305 ecode2 = SWIG_AsVal_int(obj1, &val2);
31306 if (!SWIG_IsOK(ecode2)) {
31307 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
31308 }
31309 arg2 = static_cast< int >(val2);
31310 {
31311 PyThreadState* __tstate = wxPyBeginAllowThreads();
31312 (arg1)->RemoveId(arg2);
31313 wxPyEndAllowThreads(__tstate);
31314 if (PyErr_Occurred()) SWIG_fail;
31315 }
31316 resultobj = SWIG_Py_Void();
31317 return resultobj;
31318fail:
31319 return NULL;
31320}
31321
31322
31323SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31324 PyObject *resultobj = 0;
31325 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31326 int arg2 ;
31327 int arg3 ;
31328 int arg4 ;
31329 void *argp1 = 0 ;
31330 int res1 = 0 ;
31331 int val2 ;
31332 int ecode2 = 0 ;
31333 int val3 ;
31334 int ecode3 = 0 ;
31335 int val4 ;
31336 int ecode4 = 0 ;
31337 PyObject * obj0 = 0 ;
31338 PyObject * obj1 = 0 ;
31339 PyObject * obj2 = 0 ;
31340 PyObject * obj3 = 0 ;
31341 char * kwnames[] = {
31342 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
31343 };
31344
31345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31347 if (!SWIG_IsOK(res1)) {
31348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31349 }
31350 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31351 ecode2 = SWIG_AsVal_int(obj1, &val2);
31352 if (!SWIG_IsOK(ecode2)) {
31353 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
31354 }
31355 arg2 = static_cast< int >(val2);
31356 ecode3 = SWIG_AsVal_int(obj2, &val3);
31357 if (!SWIG_IsOK(ecode3)) {
31358 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
31359 }
31360 arg3 = static_cast< int >(val3);
31361 ecode4 = SWIG_AsVal_int(obj3, &val4);
31362 if (!SWIG_IsOK(ecode4)) {
31363 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
31364 }
31365 arg4 = static_cast< int >(val4);
31366 {
31367 PyThreadState* __tstate = wxPyBeginAllowThreads();
31368 (arg1)->TranslateId(arg2,arg3,arg4);
31369 wxPyEndAllowThreads(__tstate);
31370 if (PyErr_Occurred()) SWIG_fail;
31371 }
31372 resultobj = SWIG_Py_Void();
31373 return resultobj;
31374fail:
31375 return NULL;
31376}
31377
31378
72ef6efb
RD
31379SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31380 PyObject *resultobj = 0;
31381 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31382 int arg2 ;
31383 bool arg3 = (bool) true ;
31384 void *argp1 = 0 ;
31385 int res1 = 0 ;
31386 int val2 ;
31387 int ecode2 = 0 ;
31388 bool val3 ;
31389 int ecode3 = 0 ;
31390 PyObject * obj0 = 0 ;
31391 PyObject * obj1 = 0 ;
31392 PyObject * obj2 = 0 ;
31393 char * kwnames[] = {
31394 (char *) "self",(char *) "id",(char *) "greyout", NULL
31395 };
31396
31397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31399 if (!SWIG_IsOK(res1)) {
31400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31401 }
31402 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31403 ecode2 = SWIG_AsVal_int(obj1, &val2);
31404 if (!SWIG_IsOK(ecode2)) {
31405 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
31406 }
31407 arg2 = static_cast< int >(val2);
31408 if (obj2) {
31409 ecode3 = SWIG_AsVal_bool(obj2, &val3);
31410 if (!SWIG_IsOK(ecode3)) {
31411 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
31412 }
31413 arg3 = static_cast< bool >(val3);
31414 }
31415 {
31416 PyThreadState* __tstate = wxPyBeginAllowThreads();
31417 (arg1)->SetIdGreyedOut(arg2,arg3);
31418 wxPyEndAllowThreads(__tstate);
31419 if (PyErr_Occurred()) SWIG_fail;
31420 }
31421 resultobj = SWIG_Py_Void();
31422 return resultobj;
31423fail:
31424 return NULL;
31425}
31426
31427
31428SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31429 PyObject *resultobj = 0;
31430 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31431 int arg2 ;
31432 bool result;
31433 void *argp1 = 0 ;
31434 int res1 = 0 ;
31435 int val2 ;
31436 int ecode2 = 0 ;
31437 PyObject * obj0 = 0 ;
31438 PyObject * obj1 = 0 ;
31439 char * kwnames[] = {
31440 (char *) "self",(char *) "id", NULL
31441 };
31442
31443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
31444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31445 if (!SWIG_IsOK(res1)) {
31446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31447 }
31448 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31449 ecode2 = SWIG_AsVal_int(obj1, &val2);
31450 if (!SWIG_IsOK(ecode2)) {
31451 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
31452 }
31453 arg2 = static_cast< int >(val2);
31454 {
31455 PyThreadState* __tstate = wxPyBeginAllowThreads();
31456 result = (bool)(arg1)->GetIdGreyedOut(arg2);
31457 wxPyEndAllowThreads(__tstate);
31458 if (PyErr_Occurred()) SWIG_fail;
31459 }
31460 {
31461 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31462 }
31463 return resultobj;
31464fail:
31465 return NULL;
31466}
31467
31468
31469SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31470 PyObject *resultobj = 0;
31471 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31472 int arg2 ;
31473 int arg3 ;
31474 int arg4 = (int) 1 ;
31475 wxColor const &arg5_defvalue = *wxWHITE ;
31476 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
31477 PyObject *result = 0 ;
31478 void *argp1 = 0 ;
31479 int res1 = 0 ;
31480 int val2 ;
31481 int ecode2 = 0 ;
31482 int val3 ;
31483 int ecode3 = 0 ;
31484 int val4 ;
31485 int ecode4 = 0 ;
31486 void *argp5 = 0 ;
31487 int res5 = 0 ;
31488 PyObject * obj0 = 0 ;
31489 PyObject * obj1 = 0 ;
31490 PyObject * obj2 = 0 ;
31491 PyObject * obj3 = 0 ;
31492 PyObject * obj4 = 0 ;
31493 char * kwnames[] = {
31494 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
31495 };
31496
31497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31499 if (!SWIG_IsOK(res1)) {
31500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31501 }
31502 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31503 ecode2 = SWIG_AsVal_int(obj1, &val2);
31504 if (!SWIG_IsOK(ecode2)) {
31505 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
31506 }
31507 arg2 = static_cast< int >(val2);
31508 ecode3 = SWIG_AsVal_int(obj2, &val3);
31509 if (!SWIG_IsOK(ecode3)) {
31510 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
31511 }
31512 arg3 = static_cast< int >(val3);
31513 if (obj3) {
31514 ecode4 = SWIG_AsVal_int(obj3, &val4);
31515 if (!SWIG_IsOK(ecode4)) {
31516 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
31517 }
31518 arg4 = static_cast< int >(val4);
31519 }
31520 if (obj4) {
31521 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
31522 if (!SWIG_IsOK(res5)) {
31523 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
31524 }
31525 if (!argp5) {
31526 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
31527 }
31528 arg5 = reinterpret_cast< wxColor * >(argp5);
31529 }
31530 {
31531 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
31532 if (PyErr_Occurred()) SWIG_fail;
31533 }
31534 resultobj = result;
31535 return resultobj;
31536fail:
31537 return NULL;
31538}
31539
31540
31541SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31542 PyObject *resultobj = 0;
31543 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31544 int arg2 ;
31545 int arg3 ;
31546 PyObject *result = 0 ;
31547 void *argp1 = 0 ;
31548 int res1 = 0 ;
31549 int val2 ;
31550 int ecode2 = 0 ;
31551 int val3 ;
31552 int ecode3 = 0 ;
31553 PyObject * obj0 = 0 ;
31554 PyObject * obj1 = 0 ;
31555 PyObject * obj2 = 0 ;
31556 char * kwnames[] = {
31557 (char *) "self",(char *) "x",(char *) "y", NULL
31558 };
31559
31560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31562 if (!SWIG_IsOK(res1)) {
31563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31564 }
31565 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31566 ecode2 = SWIG_AsVal_int(obj1, &val2);
31567 if (!SWIG_IsOK(ecode2)) {
31568 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
31569 }
31570 arg2 = static_cast< int >(val2);
31571 ecode3 = SWIG_AsVal_int(obj2, &val3);
31572 if (!SWIG_IsOK(ecode3)) {
31573 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
31574 }
31575 arg3 = static_cast< int >(val3);
31576 {
31577 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
31578 if (PyErr_Occurred()) SWIG_fail;
31579 }
31580 resultobj = result;
31581 return resultobj;
31582fail:
31583 return NULL;
31584}
31585
31586
27e45892
RD
31587SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31588 PyObject *resultobj = 0;
31589 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31590 int arg2 ;
31591 wxDC *arg3 = (wxDC *) 0 ;
31592 void *argp1 = 0 ;
31593 int res1 = 0 ;
31594 int val2 ;
31595 int ecode2 = 0 ;
31596 void *argp3 = 0 ;
31597 int res3 = 0 ;
31598 PyObject * obj0 = 0 ;
31599 PyObject * obj1 = 0 ;
31600 PyObject * obj2 = 0 ;
31601 char * kwnames[] = {
31602 (char *) "self",(char *) "id",(char *) "dc", NULL
31603 };
31604
31605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31607 if (!SWIG_IsOK(res1)) {
31608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31609 }
31610 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31611 ecode2 = SWIG_AsVal_int(obj1, &val2);
31612 if (!SWIG_IsOK(ecode2)) {
31613 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
31614 }
31615 arg2 = static_cast< int >(val2);
31616 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
31617 if (!SWIG_IsOK(res3)) {
31618 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
31619 }
31620 arg3 = reinterpret_cast< wxDC * >(argp3);
31621 {
31622 PyThreadState* __tstate = wxPyBeginAllowThreads();
31623 (arg1)->DrawIdToDC(arg2,arg3);
31624 wxPyEndAllowThreads(__tstate);
31625 if (PyErr_Occurred()) SWIG_fail;
31626 }
31627 resultobj = SWIG_Py_Void();
31628 return resultobj;
31629fail:
31630 return NULL;
31631}
31632
31633
31634SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31635 PyObject *resultobj = 0;
31636 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31637 int arg2 ;
31638 wxRect *arg3 = 0 ;
31639 void *argp1 = 0 ;
31640 int res1 = 0 ;
31641 int val2 ;
31642 int ecode2 = 0 ;
31643 wxRect temp3 ;
31644 PyObject * obj0 = 0 ;
31645 PyObject * obj1 = 0 ;
31646 PyObject * obj2 = 0 ;
31647 char * kwnames[] = {
31648 (char *) "self",(char *) "id",(char *) "rect", NULL
31649 };
31650
31651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31653 if (!SWIG_IsOK(res1)) {
31654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31655 }
31656 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31657 ecode2 = SWIG_AsVal_int(obj1, &val2);
31658 if (!SWIG_IsOK(ecode2)) {
31659 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
31660 }
31661 arg2 = static_cast< int >(val2);
31662 {
31663 arg3 = &temp3;
31664 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
31665 }
31666 {
31667 PyThreadState* __tstate = wxPyBeginAllowThreads();
31668 (arg1)->SetIdBounds(arg2,*arg3);
31669 wxPyEndAllowThreads(__tstate);
31670 if (PyErr_Occurred()) SWIG_fail;
31671 }
31672 resultobj = SWIG_Py_Void();
31673 return resultobj;
31674fail:
31675 return NULL;
31676}
31677
31678
31679SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31680 PyObject *resultobj = 0;
31681 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31682 int arg2 ;
31683 wxRect result;
31684 void *argp1 = 0 ;
31685 int res1 = 0 ;
31686 int val2 ;
31687 int ecode2 = 0 ;
31688 PyObject * obj0 = 0 ;
31689 PyObject * obj1 = 0 ;
31690 char * kwnames[] = {
31691 (char *) "self",(char *) "id", NULL
31692 };
31693
31694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
31695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31696 if (!SWIG_IsOK(res1)) {
31697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31698 }
31699 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31700 ecode2 = SWIG_AsVal_int(obj1, &val2);
31701 if (!SWIG_IsOK(ecode2)) {
31702 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
31703 }
31704 arg2 = static_cast< int >(val2);
31705 {
31706 PyThreadState* __tstate = wxPyBeginAllowThreads();
31707 result = wxPseudoDC_GetIdBounds(arg1,arg2);
31708 wxPyEndAllowThreads(__tstate);
31709 if (PyErr_Occurred()) SWIG_fail;
31710 }
31711 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
31712 return resultobj;
31713fail:
31714 return NULL;
31715}
31716
31717
31718SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31719 PyObject *resultobj = 0;
31720 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31721 wxDC *arg2 = (wxDC *) 0 ;
31722 wxRect *arg3 = 0 ;
31723 void *argp1 = 0 ;
31724 int res1 = 0 ;
31725 void *argp2 = 0 ;
31726 int res2 = 0 ;
31727 wxRect temp3 ;
31728 PyObject * obj0 = 0 ;
31729 PyObject * obj1 = 0 ;
31730 PyObject * obj2 = 0 ;
31731 char * kwnames[] = {
31732 (char *) "self",(char *) "dc",(char *) "rect", NULL
31733 };
31734
31735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31737 if (!SWIG_IsOK(res1)) {
31738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31739 }
31740 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31741 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
31742 if (!SWIG_IsOK(res2)) {
31743 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
31744 }
31745 arg2 = reinterpret_cast< wxDC * >(argp2);
31746 {
31747 arg3 = &temp3;
31748 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
31749 }
31750 {
31751 PyThreadState* __tstate = wxPyBeginAllowThreads();
31752 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
31753 wxPyEndAllowThreads(__tstate);
31754 if (PyErr_Occurred()) SWIG_fail;
31755 }
31756 resultobj = SWIG_Py_Void();
31757 return resultobj;
31758fail:
31759 return NULL;
31760}
31761
31762
31763SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31764 PyObject *resultobj = 0;
31765 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31766 wxDC *arg2 = (wxDC *) 0 ;
31767 wxRegion *arg3 = 0 ;
31768 void *argp1 = 0 ;
31769 int res1 = 0 ;
31770 void *argp2 = 0 ;
31771 int res2 = 0 ;
31772 void *argp3 = 0 ;
31773 int res3 = 0 ;
31774 PyObject * obj0 = 0 ;
31775 PyObject * obj1 = 0 ;
31776 PyObject * obj2 = 0 ;
31777 char * kwnames[] = {
31778 (char *) "self",(char *) "dc",(char *) "region", NULL
31779 };
31780
31781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31783 if (!SWIG_IsOK(res1)) {
31784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31785 }
31786 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31787 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
31788 if (!SWIG_IsOK(res2)) {
31789 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
31790 }
31791 arg2 = reinterpret_cast< wxDC * >(argp2);
31792 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
31793 if (!SWIG_IsOK(res3)) {
31794 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
31795 }
31796 if (!argp3) {
31797 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
31798 }
31799 arg3 = reinterpret_cast< wxRegion * >(argp3);
31800 {
31801 PyThreadState* __tstate = wxPyBeginAllowThreads();
31802 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
31803 wxPyEndAllowThreads(__tstate);
31804 if (PyErr_Occurred()) SWIG_fail;
31805 }
31806 resultobj = SWIG_Py_Void();
31807 return resultobj;
31808fail:
31809 return NULL;
31810}
31811
31812
31813SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31814 PyObject *resultobj = 0;
31815 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31816 wxDC *arg2 = (wxDC *) 0 ;
31817 void *argp1 = 0 ;
31818 int res1 = 0 ;
31819 void *argp2 = 0 ;
31820 int res2 = 0 ;
31821 PyObject * obj0 = 0 ;
31822 PyObject * obj1 = 0 ;
31823 char * kwnames[] = {
31824 (char *) "self",(char *) "dc", NULL
31825 };
31826
31827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
31828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31829 if (!SWIG_IsOK(res1)) {
31830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31831 }
31832 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31833 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
31834 if (!SWIG_IsOK(res2)) {
31835 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
31836 }
31837 arg2 = reinterpret_cast< wxDC * >(argp2);
31838 {
31839 PyThreadState* __tstate = wxPyBeginAllowThreads();
31840 (arg1)->DrawToDC(arg2);
31841 wxPyEndAllowThreads(__tstate);
31842 if (PyErr_Occurred()) SWIG_fail;
31843 }
31844 resultobj = SWIG_Py_Void();
31845 return resultobj;
31846fail:
31847 return NULL;
31848}
31849
31850
31851SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31852 PyObject *resultobj = 0;
31853 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31854 int arg2 ;
31855 int arg3 ;
31856 wxColour *arg4 = 0 ;
31857 int arg5 = (int) wxFLOOD_SURFACE ;
31858 void *argp1 = 0 ;
31859 int res1 = 0 ;
31860 int val2 ;
31861 int ecode2 = 0 ;
31862 int val3 ;
31863 int ecode3 = 0 ;
31864 wxColour temp4 ;
31865 int val5 ;
31866 int ecode5 = 0 ;
31867 PyObject * obj0 = 0 ;
31868 PyObject * obj1 = 0 ;
31869 PyObject * obj2 = 0 ;
31870 PyObject * obj3 = 0 ;
31871 PyObject * obj4 = 0 ;
31872 char * kwnames[] = {
31873 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
31874 };
31875
31876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31878 if (!SWIG_IsOK(res1)) {
31879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31880 }
31881 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31882 ecode2 = SWIG_AsVal_int(obj1, &val2);
31883 if (!SWIG_IsOK(ecode2)) {
31884 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
31885 }
31886 arg2 = static_cast< int >(val2);
31887 ecode3 = SWIG_AsVal_int(obj2, &val3);
31888 if (!SWIG_IsOK(ecode3)) {
31889 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
31890 }
31891 arg3 = static_cast< int >(val3);
31892 {
31893 arg4 = &temp4;
31894 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
31895 }
31896 if (obj4) {
31897 ecode5 = SWIG_AsVal_int(obj4, &val5);
31898 if (!SWIG_IsOK(ecode5)) {
31899 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
31900 }
31901 arg5 = static_cast< int >(val5);
31902 }
31903 {
31904 PyThreadState* __tstate = wxPyBeginAllowThreads();
31905 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
31906 wxPyEndAllowThreads(__tstate);
31907 if (PyErr_Occurred()) SWIG_fail;
31908 }
31909 resultobj = SWIG_Py_Void();
31910 return resultobj;
31911fail:
31912 return NULL;
31913}
31914
31915
31916SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31917 PyObject *resultobj = 0;
31918 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31919 wxPoint *arg2 = 0 ;
31920 wxColour *arg3 = 0 ;
31921 int arg4 = (int) wxFLOOD_SURFACE ;
31922 void *argp1 = 0 ;
31923 int res1 = 0 ;
31924 wxPoint temp2 ;
31925 wxColour temp3 ;
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 *) "pt",(char *) "col",(char *) "style", NULL
31934 };
31935
31936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31938 if (!SWIG_IsOK(res1)) {
31939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31940 }
31941 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31942 {
31943 arg2 = &temp2;
31944 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31945 }
31946 {
31947 arg3 = &temp3;
31948 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31949 }
31950 if (obj3) {
31951 ecode4 = SWIG_AsVal_int(obj3, &val4);
31952 if (!SWIG_IsOK(ecode4)) {
31953 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
31954 }
31955 arg4 = static_cast< int >(val4);
31956 }
31957 {
31958 PyThreadState* __tstate = wxPyBeginAllowThreads();
31959 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
31960 wxPyEndAllowThreads(__tstate);
31961 if (PyErr_Occurred()) SWIG_fail;
31962 }
31963 resultobj = SWIG_Py_Void();
31964 return resultobj;
31965fail:
31966 return NULL;
31967}
31968
31969
31970SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31971 PyObject *resultobj = 0;
31972 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31973 int arg2 ;
31974 int arg3 ;
31975 int arg4 ;
31976 int arg5 ;
31977 void *argp1 = 0 ;
31978 int res1 = 0 ;
31979 int val2 ;
31980 int ecode2 = 0 ;
31981 int val3 ;
31982 int ecode3 = 0 ;
31983 int val4 ;
31984 int ecode4 = 0 ;
31985 int val5 ;
31986 int ecode5 = 0 ;
31987 PyObject * obj0 = 0 ;
31988 PyObject * obj1 = 0 ;
31989 PyObject * obj2 = 0 ;
31990 PyObject * obj3 = 0 ;
31991 PyObject * obj4 = 0 ;
31992 char * kwnames[] = {
31993 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
31994 };
31995
31996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31998 if (!SWIG_IsOK(res1)) {
31999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32000 }
32001 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32002 ecode2 = SWIG_AsVal_int(obj1, &val2);
32003 if (!SWIG_IsOK(ecode2)) {
32004 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
32005 }
32006 arg2 = static_cast< int >(val2);
32007 ecode3 = SWIG_AsVal_int(obj2, &val3);
32008 if (!SWIG_IsOK(ecode3)) {
32009 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
32010 }
32011 arg3 = static_cast< int >(val3);
32012 ecode4 = SWIG_AsVal_int(obj3, &val4);
32013 if (!SWIG_IsOK(ecode4)) {
32014 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
32015 }
32016 arg4 = static_cast< int >(val4);
32017 ecode5 = SWIG_AsVal_int(obj4, &val5);
32018 if (!SWIG_IsOK(ecode5)) {
32019 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
32020 }
32021 arg5 = static_cast< int >(val5);
32022 {
32023 PyThreadState* __tstate = wxPyBeginAllowThreads();
32024 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
32025 wxPyEndAllowThreads(__tstate);
32026 if (PyErr_Occurred()) SWIG_fail;
32027 }
32028 resultobj = SWIG_Py_Void();
32029 return resultobj;
32030fail:
32031 return NULL;
32032}
32033
32034
32035SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32036 PyObject *resultobj = 0;
32037 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32038 wxPoint *arg2 = 0 ;
32039 wxPoint *arg3 = 0 ;
32040 void *argp1 = 0 ;
32041 int res1 = 0 ;
32042 wxPoint temp2 ;
32043 wxPoint temp3 ;
32044 PyObject * obj0 = 0 ;
32045 PyObject * obj1 = 0 ;
32046 PyObject * obj2 = 0 ;
32047 char * kwnames[] = {
32048 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
32049 };
32050
32051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32053 if (!SWIG_IsOK(res1)) {
32054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32055 }
32056 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32057 {
32058 arg2 = &temp2;
32059 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32060 }
32061 {
32062 arg3 = &temp3;
32063 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32064 }
32065 {
32066 PyThreadState* __tstate = wxPyBeginAllowThreads();
32067 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
32068 wxPyEndAllowThreads(__tstate);
32069 if (PyErr_Occurred()) SWIG_fail;
32070 }
32071 resultobj = SWIG_Py_Void();
32072 return resultobj;
32073fail:
32074 return NULL;
32075}
32076
32077
32078SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32079 PyObject *resultobj = 0;
32080 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32081 int arg2 ;
32082 int arg3 ;
32083 void *argp1 = 0 ;
32084 int res1 = 0 ;
32085 int val2 ;
32086 int ecode2 = 0 ;
32087 int val3 ;
32088 int ecode3 = 0 ;
32089 PyObject * obj0 = 0 ;
32090 PyObject * obj1 = 0 ;
32091 PyObject * obj2 = 0 ;
32092 char * kwnames[] = {
32093 (char *) "self",(char *) "x",(char *) "y", NULL
32094 };
32095
32096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32098 if (!SWIG_IsOK(res1)) {
32099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32100 }
32101 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32102 ecode2 = SWIG_AsVal_int(obj1, &val2);
32103 if (!SWIG_IsOK(ecode2)) {
32104 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
32105 }
32106 arg2 = static_cast< int >(val2);
32107 ecode3 = SWIG_AsVal_int(obj2, &val3);
32108 if (!SWIG_IsOK(ecode3)) {
32109 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
32110 }
32111 arg3 = static_cast< int >(val3);
32112 {
32113 PyThreadState* __tstate = wxPyBeginAllowThreads();
32114 (arg1)->CrossHair(arg2,arg3);
32115 wxPyEndAllowThreads(__tstate);
32116 if (PyErr_Occurred()) SWIG_fail;
32117 }
32118 resultobj = SWIG_Py_Void();
32119 return resultobj;
32120fail:
32121 return NULL;
32122}
32123
32124
32125SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32126 PyObject *resultobj = 0;
32127 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32128 wxPoint *arg2 = 0 ;
32129 void *argp1 = 0 ;
32130 int res1 = 0 ;
32131 wxPoint temp2 ;
32132 PyObject * obj0 = 0 ;
32133 PyObject * obj1 = 0 ;
32134 char * kwnames[] = {
32135 (char *) "self",(char *) "pt", NULL
32136 };
32137
32138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
32139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32140 if (!SWIG_IsOK(res1)) {
32141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32142 }
32143 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32144 {
32145 arg2 = &temp2;
32146 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32147 }
32148 {
32149 PyThreadState* __tstate = wxPyBeginAllowThreads();
32150 (arg1)->CrossHair((wxPoint const &)*arg2);
32151 wxPyEndAllowThreads(__tstate);
32152 if (PyErr_Occurred()) SWIG_fail;
32153 }
32154 resultobj = SWIG_Py_Void();
32155 return resultobj;
32156fail:
32157 return NULL;
32158}
32159
32160
32161SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32162 PyObject *resultobj = 0;
32163 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32164 int arg2 ;
32165 int arg3 ;
32166 int arg4 ;
32167 int arg5 ;
32168 int arg6 ;
32169 int arg7 ;
32170 void *argp1 = 0 ;
32171 int res1 = 0 ;
32172 int val2 ;
32173 int ecode2 = 0 ;
32174 int val3 ;
32175 int ecode3 = 0 ;
32176 int val4 ;
32177 int ecode4 = 0 ;
32178 int val5 ;
32179 int ecode5 = 0 ;
32180 int val6 ;
32181 int ecode6 = 0 ;
32182 int val7 ;
32183 int ecode7 = 0 ;
32184 PyObject * obj0 = 0 ;
32185 PyObject * obj1 = 0 ;
32186 PyObject * obj2 = 0 ;
32187 PyObject * obj3 = 0 ;
32188 PyObject * obj4 = 0 ;
32189 PyObject * obj5 = 0 ;
32190 PyObject * obj6 = 0 ;
32191 char * kwnames[] = {
32192 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
32193 };
32194
32195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32197 if (!SWIG_IsOK(res1)) {
32198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32199 }
32200 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32201 ecode2 = SWIG_AsVal_int(obj1, &val2);
32202 if (!SWIG_IsOK(ecode2)) {
32203 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
32204 }
32205 arg2 = static_cast< int >(val2);
32206 ecode3 = SWIG_AsVal_int(obj2, &val3);
32207 if (!SWIG_IsOK(ecode3)) {
32208 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
32209 }
32210 arg3 = static_cast< int >(val3);
32211 ecode4 = SWIG_AsVal_int(obj3, &val4);
32212 if (!SWIG_IsOK(ecode4)) {
32213 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
32214 }
32215 arg4 = static_cast< int >(val4);
32216 ecode5 = SWIG_AsVal_int(obj4, &val5);
32217 if (!SWIG_IsOK(ecode5)) {
32218 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
32219 }
32220 arg5 = static_cast< int >(val5);
32221 ecode6 = SWIG_AsVal_int(obj5, &val6);
32222 if (!SWIG_IsOK(ecode6)) {
32223 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
32224 }
32225 arg6 = static_cast< int >(val6);
32226 ecode7 = SWIG_AsVal_int(obj6, &val7);
32227 if (!SWIG_IsOK(ecode7)) {
32228 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
32229 }
32230 arg7 = static_cast< int >(val7);
32231 {
32232 PyThreadState* __tstate = wxPyBeginAllowThreads();
32233 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
32234 wxPyEndAllowThreads(__tstate);
32235 if (PyErr_Occurred()) SWIG_fail;
32236 }
32237 resultobj = SWIG_Py_Void();
32238 return resultobj;
32239fail:
32240 return NULL;
32241}
32242
32243
32244SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32245 PyObject *resultobj = 0;
32246 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32247 wxPoint *arg2 = 0 ;
32248 wxPoint *arg3 = 0 ;
32249 wxPoint *arg4 = 0 ;
32250 void *argp1 = 0 ;
32251 int res1 = 0 ;
32252 wxPoint temp2 ;
32253 wxPoint temp3 ;
32254 wxPoint temp4 ;
32255 PyObject * obj0 = 0 ;
32256 PyObject * obj1 = 0 ;
32257 PyObject * obj2 = 0 ;
32258 PyObject * obj3 = 0 ;
32259 char * kwnames[] = {
32260 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
32261 };
32262
32263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32265 if (!SWIG_IsOK(res1)) {
32266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32267 }
32268 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32269 {
32270 arg2 = &temp2;
32271 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32272 }
32273 {
32274 arg3 = &temp3;
32275 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32276 }
32277 {
32278 arg4 = &temp4;
32279 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
32280 }
32281 {
32282 PyThreadState* __tstate = wxPyBeginAllowThreads();
32283 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
32284 wxPyEndAllowThreads(__tstate);
32285 if (PyErr_Occurred()) SWIG_fail;
32286 }
32287 resultobj = SWIG_Py_Void();
32288 return resultobj;
32289fail:
32290 return NULL;
32291}
32292
32293
32294SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32295 PyObject *resultobj = 0;
32296 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32297 int arg2 ;
32298 int arg3 ;
32299 int arg4 ;
32300 int arg5 ;
32301 void *argp1 = 0 ;
32302 int res1 = 0 ;
32303 int val2 ;
32304 int ecode2 = 0 ;
32305 int val3 ;
32306 int ecode3 = 0 ;
32307 int val4 ;
32308 int ecode4 = 0 ;
32309 int val5 ;
32310 int ecode5 = 0 ;
32311 PyObject * obj0 = 0 ;
32312 PyObject * obj1 = 0 ;
32313 PyObject * obj2 = 0 ;
32314 PyObject * obj3 = 0 ;
32315 PyObject * obj4 = 0 ;
32316 char * kwnames[] = {
32317 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
32318 };
32319
32320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32322 if (!SWIG_IsOK(res1)) {
32323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32324 }
32325 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32326 ecode2 = SWIG_AsVal_int(obj1, &val2);
32327 if (!SWIG_IsOK(ecode2)) {
32328 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
32329 }
32330 arg2 = static_cast< int >(val2);
32331 ecode3 = SWIG_AsVal_int(obj2, &val3);
32332 if (!SWIG_IsOK(ecode3)) {
32333 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
32334 }
32335 arg3 = static_cast< int >(val3);
32336 ecode4 = SWIG_AsVal_int(obj3, &val4);
32337 if (!SWIG_IsOK(ecode4)) {
32338 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
32339 }
32340 arg4 = static_cast< int >(val4);
32341 ecode5 = SWIG_AsVal_int(obj4, &val5);
32342 if (!SWIG_IsOK(ecode5)) {
32343 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
32344 }
32345 arg5 = static_cast< int >(val5);
32346 {
32347 PyThreadState* __tstate = wxPyBeginAllowThreads();
32348 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
32349 wxPyEndAllowThreads(__tstate);
32350 if (PyErr_Occurred()) SWIG_fail;
32351 }
32352 resultobj = SWIG_Py_Void();
32353 return resultobj;
32354fail:
32355 return NULL;
32356}
32357
32358
32359SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32360 PyObject *resultobj = 0;
32361 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32362 wxRect *arg2 = 0 ;
32363 void *argp1 = 0 ;
32364 int res1 = 0 ;
32365 wxRect temp2 ;
32366 PyObject * obj0 = 0 ;
32367 PyObject * obj1 = 0 ;
32368 char * kwnames[] = {
32369 (char *) "self",(char *) "rect", NULL
32370 };
32371
32372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
32373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32374 if (!SWIG_IsOK(res1)) {
32375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32376 }
32377 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32378 {
32379 arg2 = &temp2;
32380 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32381 }
32382 {
32383 PyThreadState* __tstate = wxPyBeginAllowThreads();
32384 (arg1)->DrawCheckMark((wxRect const &)*arg2);
32385 wxPyEndAllowThreads(__tstate);
32386 if (PyErr_Occurred()) SWIG_fail;
32387 }
32388 resultobj = SWIG_Py_Void();
32389 return resultobj;
32390fail:
32391 return NULL;
32392}
32393
32394
32395SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32396 PyObject *resultobj = 0;
32397 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32398 int arg2 ;
32399 int arg3 ;
32400 int arg4 ;
32401 int arg5 ;
32402 double arg6 ;
32403 double arg7 ;
32404 void *argp1 = 0 ;
32405 int res1 = 0 ;
32406 int val2 ;
32407 int ecode2 = 0 ;
32408 int val3 ;
32409 int ecode3 = 0 ;
32410 int val4 ;
32411 int ecode4 = 0 ;
32412 int val5 ;
32413 int ecode5 = 0 ;
32414 double val6 ;
32415 int ecode6 = 0 ;
32416 double val7 ;
32417 int ecode7 = 0 ;
32418 PyObject * obj0 = 0 ;
32419 PyObject * obj1 = 0 ;
32420 PyObject * obj2 = 0 ;
32421 PyObject * obj3 = 0 ;
32422 PyObject * obj4 = 0 ;
32423 PyObject * obj5 = 0 ;
32424 PyObject * obj6 = 0 ;
32425 char * kwnames[] = {
32426 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
32427 };
32428
32429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32431 if (!SWIG_IsOK(res1)) {
32432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32433 }
32434 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32435 ecode2 = SWIG_AsVal_int(obj1, &val2);
32436 if (!SWIG_IsOK(ecode2)) {
32437 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
32438 }
32439 arg2 = static_cast< int >(val2);
32440 ecode3 = SWIG_AsVal_int(obj2, &val3);
32441 if (!SWIG_IsOK(ecode3)) {
32442 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
32443 }
32444 arg3 = static_cast< int >(val3);
32445 ecode4 = SWIG_AsVal_int(obj3, &val4);
32446 if (!SWIG_IsOK(ecode4)) {
32447 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
32448 }
32449 arg4 = static_cast< int >(val4);
32450 ecode5 = SWIG_AsVal_int(obj4, &val5);
32451 if (!SWIG_IsOK(ecode5)) {
32452 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
32453 }
32454 arg5 = static_cast< int >(val5);
32455 ecode6 = SWIG_AsVal_double(obj5, &val6);
32456 if (!SWIG_IsOK(ecode6)) {
32457 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
32458 }
32459 arg6 = static_cast< double >(val6);
32460 ecode7 = SWIG_AsVal_double(obj6, &val7);
32461 if (!SWIG_IsOK(ecode7)) {
32462 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
32463 }
32464 arg7 = static_cast< double >(val7);
32465 {
32466 PyThreadState* __tstate = wxPyBeginAllowThreads();
32467 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
32468 wxPyEndAllowThreads(__tstate);
32469 if (PyErr_Occurred()) SWIG_fail;
32470 }
32471 resultobj = SWIG_Py_Void();
32472 return resultobj;
32473fail:
32474 return NULL;
32475}
32476
32477
32478SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32479 PyObject *resultobj = 0;
32480 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32481 wxPoint *arg2 = 0 ;
32482 wxSize *arg3 = 0 ;
32483 double arg4 ;
32484 double arg5 ;
32485 void *argp1 = 0 ;
32486 int res1 = 0 ;
32487 wxPoint temp2 ;
32488 wxSize temp3 ;
32489 double val4 ;
32490 int ecode4 = 0 ;
32491 double val5 ;
32492 int ecode5 = 0 ;
32493 PyObject * obj0 = 0 ;
32494 PyObject * obj1 = 0 ;
32495 PyObject * obj2 = 0 ;
32496 PyObject * obj3 = 0 ;
32497 PyObject * obj4 = 0 ;
32498 char * kwnames[] = {
32499 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
32500 };
32501
32502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32504 if (!SWIG_IsOK(res1)) {
32505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32506 }
32507 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32508 {
32509 arg2 = &temp2;
32510 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32511 }
32512 {
32513 arg3 = &temp3;
32514 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
32515 }
32516 ecode4 = SWIG_AsVal_double(obj3, &val4);
32517 if (!SWIG_IsOK(ecode4)) {
32518 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
32519 }
32520 arg4 = static_cast< double >(val4);
32521 ecode5 = SWIG_AsVal_double(obj4, &val5);
32522 if (!SWIG_IsOK(ecode5)) {
32523 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
32524 }
32525 arg5 = static_cast< double >(val5);
32526 {
32527 PyThreadState* __tstate = wxPyBeginAllowThreads();
32528 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
32529 wxPyEndAllowThreads(__tstate);
32530 if (PyErr_Occurred()) SWIG_fail;
32531 }
32532 resultobj = SWIG_Py_Void();
32533 return resultobj;
32534fail:
32535 return NULL;
32536}
32537
32538
32539SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32540 PyObject *resultobj = 0;
32541 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32542 int arg2 ;
32543 int arg3 ;
32544 void *argp1 = 0 ;
32545 int res1 = 0 ;
32546 int val2 ;
32547 int ecode2 = 0 ;
32548 int val3 ;
32549 int ecode3 = 0 ;
32550 PyObject * obj0 = 0 ;
32551 PyObject * obj1 = 0 ;
32552 PyObject * obj2 = 0 ;
32553 char * kwnames[] = {
32554 (char *) "self",(char *) "x",(char *) "y", NULL
32555 };
32556
32557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32559 if (!SWIG_IsOK(res1)) {
32560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32561 }
32562 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32563 ecode2 = SWIG_AsVal_int(obj1, &val2);
32564 if (!SWIG_IsOK(ecode2)) {
32565 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
32566 }
32567 arg2 = static_cast< int >(val2);
32568 ecode3 = SWIG_AsVal_int(obj2, &val3);
32569 if (!SWIG_IsOK(ecode3)) {
32570 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
32571 }
32572 arg3 = static_cast< int >(val3);
32573 {
32574 PyThreadState* __tstate = wxPyBeginAllowThreads();
32575 (arg1)->DrawPoint(arg2,arg3);
32576 wxPyEndAllowThreads(__tstate);
32577 if (PyErr_Occurred()) SWIG_fail;
32578 }
32579 resultobj = SWIG_Py_Void();
32580 return resultobj;
32581fail:
32582 return NULL;
32583}
32584
32585
32586SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32587 PyObject *resultobj = 0;
32588 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32589 wxPoint *arg2 = 0 ;
32590 void *argp1 = 0 ;
32591 int res1 = 0 ;
32592 wxPoint temp2 ;
32593 PyObject * obj0 = 0 ;
32594 PyObject * obj1 = 0 ;
32595 char * kwnames[] = {
32596 (char *) "self",(char *) "pt", NULL
32597 };
32598
32599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
32600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32601 if (!SWIG_IsOK(res1)) {
32602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32603 }
32604 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32605 {
32606 arg2 = &temp2;
32607 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32608 }
32609 {
32610 PyThreadState* __tstate = wxPyBeginAllowThreads();
32611 (arg1)->DrawPoint((wxPoint const &)*arg2);
32612 wxPyEndAllowThreads(__tstate);
32613 if (PyErr_Occurred()) SWIG_fail;
32614 }
32615 resultobj = SWIG_Py_Void();
32616 return resultobj;
32617fail:
32618 return NULL;
32619}
32620
32621
32622SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32623 PyObject *resultobj = 0;
32624 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32625 int arg2 ;
32626 int arg3 ;
32627 int arg4 ;
32628 int arg5 ;
32629 void *argp1 = 0 ;
32630 int res1 = 0 ;
32631 int val2 ;
32632 int ecode2 = 0 ;
32633 int val3 ;
32634 int ecode3 = 0 ;
32635 int val4 ;
32636 int ecode4 = 0 ;
32637 int val5 ;
32638 int ecode5 = 0 ;
32639 PyObject * obj0 = 0 ;
32640 PyObject * obj1 = 0 ;
32641 PyObject * obj2 = 0 ;
32642 PyObject * obj3 = 0 ;
32643 PyObject * obj4 = 0 ;
32644 char * kwnames[] = {
32645 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
32646 };
32647
32648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32650 if (!SWIG_IsOK(res1)) {
32651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32652 }
32653 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32654 ecode2 = SWIG_AsVal_int(obj1, &val2);
32655 if (!SWIG_IsOK(ecode2)) {
32656 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
32657 }
32658 arg2 = static_cast< int >(val2);
32659 ecode3 = SWIG_AsVal_int(obj2, &val3);
32660 if (!SWIG_IsOK(ecode3)) {
32661 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
32662 }
32663 arg3 = static_cast< int >(val3);
32664 ecode4 = SWIG_AsVal_int(obj3, &val4);
32665 if (!SWIG_IsOK(ecode4)) {
32666 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
32667 }
32668 arg4 = static_cast< int >(val4);
32669 ecode5 = SWIG_AsVal_int(obj4, &val5);
32670 if (!SWIG_IsOK(ecode5)) {
32671 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
32672 }
32673 arg5 = static_cast< int >(val5);
32674 {
32675 PyThreadState* __tstate = wxPyBeginAllowThreads();
32676 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
32677 wxPyEndAllowThreads(__tstate);
32678 if (PyErr_Occurred()) SWIG_fail;
32679 }
32680 resultobj = SWIG_Py_Void();
32681 return resultobj;
32682fail:
32683 return NULL;
32684}
32685
32686
32687SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32688 PyObject *resultobj = 0;
32689 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32690 wxRect *arg2 = 0 ;
32691 void *argp1 = 0 ;
32692 int res1 = 0 ;
32693 wxRect temp2 ;
32694 PyObject * obj0 = 0 ;
32695 PyObject * obj1 = 0 ;
32696 char * kwnames[] = {
32697 (char *) "self",(char *) "rect", NULL
32698 };
32699
32700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
32701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32702 if (!SWIG_IsOK(res1)) {
32703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32704 }
32705 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32706 {
32707 arg2 = &temp2;
32708 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32709 }
32710 {
32711 PyThreadState* __tstate = wxPyBeginAllowThreads();
32712 (arg1)->DrawRectangle((wxRect const &)*arg2);
32713 wxPyEndAllowThreads(__tstate);
32714 if (PyErr_Occurred()) SWIG_fail;
32715 }
32716 resultobj = SWIG_Py_Void();
32717 return resultobj;
32718fail:
32719 return NULL;
32720}
32721
32722
32723SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32724 PyObject *resultobj = 0;
32725 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32726 wxPoint *arg2 = 0 ;
32727 wxSize *arg3 = 0 ;
32728 void *argp1 = 0 ;
32729 int res1 = 0 ;
32730 wxPoint temp2 ;
32731 wxSize temp3 ;
32732 PyObject * obj0 = 0 ;
32733 PyObject * obj1 = 0 ;
32734 PyObject * obj2 = 0 ;
32735 char * kwnames[] = {
32736 (char *) "self",(char *) "pt",(char *) "sz", NULL
32737 };
32738
32739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32741 if (!SWIG_IsOK(res1)) {
32742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32743 }
32744 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32745 {
32746 arg2 = &temp2;
32747 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32748 }
32749 {
32750 arg3 = &temp3;
32751 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
32752 }
32753 {
32754 PyThreadState* __tstate = wxPyBeginAllowThreads();
32755 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
32756 wxPyEndAllowThreads(__tstate);
32757 if (PyErr_Occurred()) SWIG_fail;
32758 }
32759 resultobj = SWIG_Py_Void();
32760 return resultobj;
32761fail:
32762 return NULL;
32763}
32764
32765
32766SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32767 PyObject *resultobj = 0;
32768 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32769 int arg2 ;
32770 int arg3 ;
32771 int arg4 ;
32772 int arg5 ;
32773 double arg6 ;
32774 void *argp1 = 0 ;
32775 int res1 = 0 ;
32776 int val2 ;
32777 int ecode2 = 0 ;
32778 int val3 ;
32779 int ecode3 = 0 ;
32780 int val4 ;
32781 int ecode4 = 0 ;
32782 int val5 ;
32783 int ecode5 = 0 ;
32784 double val6 ;
32785 int ecode6 = 0 ;
32786 PyObject * obj0 = 0 ;
32787 PyObject * obj1 = 0 ;
32788 PyObject * obj2 = 0 ;
32789 PyObject * obj3 = 0 ;
32790 PyObject * obj4 = 0 ;
32791 PyObject * obj5 = 0 ;
32792 char * kwnames[] = {
32793 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
32794 };
32795
32796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
32797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32798 if (!SWIG_IsOK(res1)) {
32799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32800 }
32801 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32802 ecode2 = SWIG_AsVal_int(obj1, &val2);
32803 if (!SWIG_IsOK(ecode2)) {
32804 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
32805 }
32806 arg2 = static_cast< int >(val2);
32807 ecode3 = SWIG_AsVal_int(obj2, &val3);
32808 if (!SWIG_IsOK(ecode3)) {
32809 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
32810 }
32811 arg3 = static_cast< int >(val3);
32812 ecode4 = SWIG_AsVal_int(obj3, &val4);
32813 if (!SWIG_IsOK(ecode4)) {
32814 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
32815 }
32816 arg4 = static_cast< int >(val4);
32817 ecode5 = SWIG_AsVal_int(obj4, &val5);
32818 if (!SWIG_IsOK(ecode5)) {
32819 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
32820 }
32821 arg5 = static_cast< int >(val5);
32822 ecode6 = SWIG_AsVal_double(obj5, &val6);
32823 if (!SWIG_IsOK(ecode6)) {
32824 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
32825 }
32826 arg6 = static_cast< double >(val6);
32827 {
32828 PyThreadState* __tstate = wxPyBeginAllowThreads();
32829 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
32830 wxPyEndAllowThreads(__tstate);
32831 if (PyErr_Occurred()) SWIG_fail;
32832 }
32833 resultobj = SWIG_Py_Void();
32834 return resultobj;
32835fail:
32836 return NULL;
32837}
32838
32839
32840SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32841 PyObject *resultobj = 0;
32842 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32843 wxRect *arg2 = 0 ;
32844 double arg3 ;
32845 void *argp1 = 0 ;
32846 int res1 = 0 ;
32847 wxRect temp2 ;
32848 double val3 ;
32849 int ecode3 = 0 ;
32850 PyObject * obj0 = 0 ;
32851 PyObject * obj1 = 0 ;
32852 PyObject * obj2 = 0 ;
32853 char * kwnames[] = {
32854 (char *) "self",(char *) "r",(char *) "radius", NULL
32855 };
32856
32857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32859 if (!SWIG_IsOK(res1)) {
32860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32861 }
32862 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32863 {
32864 arg2 = &temp2;
32865 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32866 }
32867 ecode3 = SWIG_AsVal_double(obj2, &val3);
32868 if (!SWIG_IsOK(ecode3)) {
32869 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
32870 }
32871 arg3 = static_cast< double >(val3);
32872 {
32873 PyThreadState* __tstate = wxPyBeginAllowThreads();
32874 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
32875 wxPyEndAllowThreads(__tstate);
32876 if (PyErr_Occurred()) SWIG_fail;
32877 }
32878 resultobj = SWIG_Py_Void();
32879 return resultobj;
32880fail:
32881 return NULL;
32882}
32883
32884
32885SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32886 PyObject *resultobj = 0;
32887 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32888 wxPoint *arg2 = 0 ;
32889 wxSize *arg3 = 0 ;
32890 double arg4 ;
32891 void *argp1 = 0 ;
32892 int res1 = 0 ;
32893 wxPoint temp2 ;
32894 wxSize temp3 ;
32895 double val4 ;
32896 int ecode4 = 0 ;
32897 PyObject * obj0 = 0 ;
32898 PyObject * obj1 = 0 ;
32899 PyObject * obj2 = 0 ;
32900 PyObject * obj3 = 0 ;
32901 char * kwnames[] = {
32902 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
32903 };
32904
32905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32907 if (!SWIG_IsOK(res1)) {
32908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32909 }
32910 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32911 {
32912 arg2 = &temp2;
32913 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32914 }
32915 {
32916 arg3 = &temp3;
32917 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
32918 }
32919 ecode4 = SWIG_AsVal_double(obj3, &val4);
32920 if (!SWIG_IsOK(ecode4)) {
32921 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
32922 }
32923 arg4 = static_cast< double >(val4);
32924 {
32925 PyThreadState* __tstate = wxPyBeginAllowThreads();
32926 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
32927 wxPyEndAllowThreads(__tstate);
32928 if (PyErr_Occurred()) SWIG_fail;
32929 }
32930 resultobj = SWIG_Py_Void();
32931 return resultobj;
32932fail:
32933 return NULL;
32934}
32935
32936
32937SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32938 PyObject *resultobj = 0;
32939 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32940 int arg2 ;
32941 int arg3 ;
32942 int arg4 ;
32943 void *argp1 = 0 ;
32944 int res1 = 0 ;
32945 int val2 ;
32946 int ecode2 = 0 ;
32947 int val3 ;
32948 int ecode3 = 0 ;
32949 int val4 ;
32950 int ecode4 = 0 ;
32951 PyObject * obj0 = 0 ;
32952 PyObject * obj1 = 0 ;
32953 PyObject * obj2 = 0 ;
32954 PyObject * obj3 = 0 ;
32955 char * kwnames[] = {
32956 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
32957 };
32958
32959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32961 if (!SWIG_IsOK(res1)) {
32962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32963 }
32964 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32965 ecode2 = SWIG_AsVal_int(obj1, &val2);
32966 if (!SWIG_IsOK(ecode2)) {
32967 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
32968 }
32969 arg2 = static_cast< int >(val2);
32970 ecode3 = SWIG_AsVal_int(obj2, &val3);
32971 if (!SWIG_IsOK(ecode3)) {
32972 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
32973 }
32974 arg3 = static_cast< int >(val3);
32975 ecode4 = SWIG_AsVal_int(obj3, &val4);
32976 if (!SWIG_IsOK(ecode4)) {
32977 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
32978 }
32979 arg4 = static_cast< int >(val4);
32980 {
32981 PyThreadState* __tstate = wxPyBeginAllowThreads();
32982 (arg1)->DrawCircle(arg2,arg3,arg4);
32983 wxPyEndAllowThreads(__tstate);
32984 if (PyErr_Occurred()) SWIG_fail;
32985 }
32986 resultobj = SWIG_Py_Void();
32987 return resultobj;
32988fail:
32989 return NULL;
32990}
32991
32992
32993SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32994 PyObject *resultobj = 0;
32995 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32996 wxPoint *arg2 = 0 ;
32997 int arg3 ;
32998 void *argp1 = 0 ;
32999 int res1 = 0 ;
33000 wxPoint temp2 ;
33001 int val3 ;
33002 int ecode3 = 0 ;
33003 PyObject * obj0 = 0 ;
33004 PyObject * obj1 = 0 ;
33005 PyObject * obj2 = 0 ;
33006 char * kwnames[] = {
33007 (char *) "self",(char *) "pt",(char *) "radius", NULL
33008 };
33009
33010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33012 if (!SWIG_IsOK(res1)) {
33013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33014 }
33015 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33016 {
33017 arg2 = &temp2;
33018 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33019 }
33020 ecode3 = SWIG_AsVal_int(obj2, &val3);
33021 if (!SWIG_IsOK(ecode3)) {
33022 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
33023 }
33024 arg3 = static_cast< int >(val3);
33025 {
33026 PyThreadState* __tstate = wxPyBeginAllowThreads();
33027 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
33028 wxPyEndAllowThreads(__tstate);
33029 if (PyErr_Occurred()) SWIG_fail;
33030 }
33031 resultobj = SWIG_Py_Void();
33032 return resultobj;
33033fail:
33034 return NULL;
33035}
33036
33037
33038SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33039 PyObject *resultobj = 0;
33040 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33041 int arg2 ;
33042 int arg3 ;
33043 int arg4 ;
33044 int arg5 ;
33045 void *argp1 = 0 ;
33046 int res1 = 0 ;
33047 int val2 ;
33048 int ecode2 = 0 ;
33049 int val3 ;
33050 int ecode3 = 0 ;
33051 int val4 ;
33052 int ecode4 = 0 ;
33053 int val5 ;
33054 int ecode5 = 0 ;
33055 PyObject * obj0 = 0 ;
33056 PyObject * obj1 = 0 ;
33057 PyObject * obj2 = 0 ;
33058 PyObject * obj3 = 0 ;
33059 PyObject * obj4 = 0 ;
33060 char * kwnames[] = {
33061 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
33062 };
33063
33064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33066 if (!SWIG_IsOK(res1)) {
33067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33068 }
33069 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33070 ecode2 = SWIG_AsVal_int(obj1, &val2);
33071 if (!SWIG_IsOK(ecode2)) {
33072 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
33073 }
33074 arg2 = static_cast< int >(val2);
33075 ecode3 = SWIG_AsVal_int(obj2, &val3);
33076 if (!SWIG_IsOK(ecode3)) {
33077 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
33078 }
33079 arg3 = static_cast< int >(val3);
33080 ecode4 = SWIG_AsVal_int(obj3, &val4);
33081 if (!SWIG_IsOK(ecode4)) {
33082 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
33083 }
33084 arg4 = static_cast< int >(val4);
33085 ecode5 = SWIG_AsVal_int(obj4, &val5);
33086 if (!SWIG_IsOK(ecode5)) {
33087 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
33088 }
33089 arg5 = static_cast< int >(val5);
33090 {
33091 PyThreadState* __tstate = wxPyBeginAllowThreads();
33092 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
33093 wxPyEndAllowThreads(__tstate);
33094 if (PyErr_Occurred()) SWIG_fail;
33095 }
33096 resultobj = SWIG_Py_Void();
33097 return resultobj;
33098fail:
33099 return NULL;
33100}
33101
33102
33103SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33104 PyObject *resultobj = 0;
33105 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33106 wxRect *arg2 = 0 ;
33107 void *argp1 = 0 ;
33108 int res1 = 0 ;
33109 wxRect temp2 ;
33110 PyObject * obj0 = 0 ;
33111 PyObject * obj1 = 0 ;
33112 char * kwnames[] = {
33113 (char *) "self",(char *) "rect", NULL
33114 };
33115
33116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
33117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33118 if (!SWIG_IsOK(res1)) {
33119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33120 }
33121 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33122 {
33123 arg2 = &temp2;
33124 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33125 }
33126 {
33127 PyThreadState* __tstate = wxPyBeginAllowThreads();
33128 (arg1)->DrawEllipse((wxRect const &)*arg2);
33129 wxPyEndAllowThreads(__tstate);
33130 if (PyErr_Occurred()) SWIG_fail;
33131 }
33132 resultobj = SWIG_Py_Void();
33133 return resultobj;
33134fail:
33135 return NULL;
33136}
33137
33138
33139SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33140 PyObject *resultobj = 0;
33141 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33142 wxPoint *arg2 = 0 ;
33143 wxSize *arg3 = 0 ;
33144 void *argp1 = 0 ;
33145 int res1 = 0 ;
33146 wxPoint temp2 ;
33147 wxSize temp3 ;
33148 PyObject * obj0 = 0 ;
33149 PyObject * obj1 = 0 ;
33150 PyObject * obj2 = 0 ;
33151 char * kwnames[] = {
33152 (char *) "self",(char *) "pt",(char *) "sz", NULL
33153 };
33154
33155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33157 if (!SWIG_IsOK(res1)) {
33158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33159 }
33160 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33161 {
33162 arg2 = &temp2;
33163 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33164 }
33165 {
33166 arg3 = &temp3;
33167 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
33168 }
33169 {
33170 PyThreadState* __tstate = wxPyBeginAllowThreads();
33171 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
33172 wxPyEndAllowThreads(__tstate);
33173 if (PyErr_Occurred()) SWIG_fail;
33174 }
33175 resultobj = SWIG_Py_Void();
33176 return resultobj;
33177fail:
33178 return NULL;
33179}
33180
33181
33182SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33183 PyObject *resultobj = 0;
33184 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33185 wxIcon *arg2 = 0 ;
33186 int arg3 ;
33187 int arg4 ;
33188 void *argp1 = 0 ;
33189 int res1 = 0 ;
33190 void *argp2 = 0 ;
33191 int res2 = 0 ;
33192 int val3 ;
33193 int ecode3 = 0 ;
33194 int val4 ;
33195 int ecode4 = 0 ;
33196 PyObject * obj0 = 0 ;
33197 PyObject * obj1 = 0 ;
33198 PyObject * obj2 = 0 ;
33199 PyObject * obj3 = 0 ;
33200 char * kwnames[] = {
33201 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
33202 };
33203
33204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33206 if (!SWIG_IsOK(res1)) {
33207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33208 }
33209 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33210 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
33211 if (!SWIG_IsOK(res2)) {
33212 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
33213 }
33214 if (!argp2) {
33215 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
33216 }
33217 arg2 = reinterpret_cast< wxIcon * >(argp2);
33218 ecode3 = SWIG_AsVal_int(obj2, &val3);
33219 if (!SWIG_IsOK(ecode3)) {
33220 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
33221 }
33222 arg3 = static_cast< int >(val3);
33223 ecode4 = SWIG_AsVal_int(obj3, &val4);
33224 if (!SWIG_IsOK(ecode4)) {
33225 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
33226 }
33227 arg4 = static_cast< int >(val4);
33228 {
33229 PyThreadState* __tstate = wxPyBeginAllowThreads();
33230 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
33231 wxPyEndAllowThreads(__tstate);
33232 if (PyErr_Occurred()) SWIG_fail;
33233 }
33234 resultobj = SWIG_Py_Void();
33235 return resultobj;
33236fail:
33237 return NULL;
33238}
33239
33240
33241SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33242 PyObject *resultobj = 0;
33243 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33244 wxIcon *arg2 = 0 ;
33245 wxPoint *arg3 = 0 ;
33246 void *argp1 = 0 ;
33247 int res1 = 0 ;
33248 void *argp2 = 0 ;
33249 int res2 = 0 ;
33250 wxPoint temp3 ;
33251 PyObject * obj0 = 0 ;
33252 PyObject * obj1 = 0 ;
33253 PyObject * obj2 = 0 ;
33254 char * kwnames[] = {
33255 (char *) "self",(char *) "icon",(char *) "pt", NULL
33256 };
33257
33258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33260 if (!SWIG_IsOK(res1)) {
33261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33262 }
33263 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33264 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
33265 if (!SWIG_IsOK(res2)) {
33266 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
33267 }
33268 if (!argp2) {
33269 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
33270 }
33271 arg2 = reinterpret_cast< wxIcon * >(argp2);
33272 {
33273 arg3 = &temp3;
33274 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33275 }
33276 {
33277 PyThreadState* __tstate = wxPyBeginAllowThreads();
33278 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
33279 wxPyEndAllowThreads(__tstate);
33280 if (PyErr_Occurred()) SWIG_fail;
33281 }
33282 resultobj = SWIG_Py_Void();
33283 return resultobj;
33284fail:
33285 return NULL;
33286}
33287
33288
33289SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33290 PyObject *resultobj = 0;
33291 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33292 wxBitmap *arg2 = 0 ;
33293 int arg3 ;
33294 int arg4 ;
33295 bool arg5 = (bool) false ;
33296 void *argp1 = 0 ;
33297 int res1 = 0 ;
33298 void *argp2 = 0 ;
33299 int res2 = 0 ;
33300 int val3 ;
33301 int ecode3 = 0 ;
33302 int val4 ;
33303 int ecode4 = 0 ;
33304 bool val5 ;
33305 int ecode5 = 0 ;
33306 PyObject * obj0 = 0 ;
33307 PyObject * obj1 = 0 ;
33308 PyObject * obj2 = 0 ;
33309 PyObject * obj3 = 0 ;
33310 PyObject * obj4 = 0 ;
33311 char * kwnames[] = {
33312 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
33313 };
33314
33315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33317 if (!SWIG_IsOK(res1)) {
33318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33319 }
33320 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33321 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
33322 if (!SWIG_IsOK(res2)) {
33323 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33324 }
33325 if (!argp2) {
33326 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33327 }
33328 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33329 ecode3 = SWIG_AsVal_int(obj2, &val3);
33330 if (!SWIG_IsOK(ecode3)) {
33331 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
33332 }
33333 arg3 = static_cast< int >(val3);
33334 ecode4 = SWIG_AsVal_int(obj3, &val4);
33335 if (!SWIG_IsOK(ecode4)) {
33336 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
33337 }
33338 arg4 = static_cast< int >(val4);
33339 if (obj4) {
33340 ecode5 = SWIG_AsVal_bool(obj4, &val5);
33341 if (!SWIG_IsOK(ecode5)) {
33342 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
33343 }
33344 arg5 = static_cast< bool >(val5);
33345 }
33346 {
33347 PyThreadState* __tstate = wxPyBeginAllowThreads();
33348 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
33349 wxPyEndAllowThreads(__tstate);
33350 if (PyErr_Occurred()) SWIG_fail;
33351 }
33352 resultobj = SWIG_Py_Void();
33353 return resultobj;
33354fail:
33355 return NULL;
33356}
33357
33358
33359SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33360 PyObject *resultobj = 0;
33361 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33362 wxBitmap *arg2 = 0 ;
33363 wxPoint *arg3 = 0 ;
33364 bool arg4 = (bool) false ;
33365 void *argp1 = 0 ;
33366 int res1 = 0 ;
33367 void *argp2 = 0 ;
33368 int res2 = 0 ;
33369 wxPoint temp3 ;
33370 bool val4 ;
33371 int ecode4 = 0 ;
33372 PyObject * obj0 = 0 ;
33373 PyObject * obj1 = 0 ;
33374 PyObject * obj2 = 0 ;
33375 PyObject * obj3 = 0 ;
33376 char * kwnames[] = {
33377 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
33378 };
33379
33380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33382 if (!SWIG_IsOK(res1)) {
33383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33384 }
33385 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33386 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
33387 if (!SWIG_IsOK(res2)) {
33388 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33389 }
33390 if (!argp2) {
33391 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33392 }
33393 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33394 {
33395 arg3 = &temp3;
33396 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33397 }
33398 if (obj3) {
33399 ecode4 = SWIG_AsVal_bool(obj3, &val4);
33400 if (!SWIG_IsOK(ecode4)) {
33401 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
33402 }
33403 arg4 = static_cast< bool >(val4);
33404 }
33405 {
33406 PyThreadState* __tstate = wxPyBeginAllowThreads();
33407 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
33408 wxPyEndAllowThreads(__tstate);
33409 if (PyErr_Occurred()) SWIG_fail;
33410 }
33411 resultobj = SWIG_Py_Void();
33412 return resultobj;
33413fail:
33414 return NULL;
33415}
33416
33417
33418SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33419 PyObject *resultobj = 0;
33420 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33421 wxString *arg2 = 0 ;
33422 int arg3 ;
33423 int arg4 ;
33424 void *argp1 = 0 ;
33425 int res1 = 0 ;
33426 bool temp2 = false ;
33427 int val3 ;
33428 int ecode3 = 0 ;
33429 int val4 ;
33430 int ecode4 = 0 ;
33431 PyObject * obj0 = 0 ;
33432 PyObject * obj1 = 0 ;
33433 PyObject * obj2 = 0 ;
33434 PyObject * obj3 = 0 ;
33435 char * kwnames[] = {
33436 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
33437 };
33438
33439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33441 if (!SWIG_IsOK(res1)) {
33442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33443 }
33444 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33445 {
33446 arg2 = wxString_in_helper(obj1);
33447 if (arg2 == NULL) SWIG_fail;
33448 temp2 = true;
33449 }
33450 ecode3 = SWIG_AsVal_int(obj2, &val3);
33451 if (!SWIG_IsOK(ecode3)) {
33452 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
33453 }
33454 arg3 = static_cast< int >(val3);
33455 ecode4 = SWIG_AsVal_int(obj3, &val4);
33456 if (!SWIG_IsOK(ecode4)) {
33457 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
33458 }
33459 arg4 = static_cast< int >(val4);
33460 {
33461 PyThreadState* __tstate = wxPyBeginAllowThreads();
33462 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
33463 wxPyEndAllowThreads(__tstate);
33464 if (PyErr_Occurred()) SWIG_fail;
33465 }
33466 resultobj = SWIG_Py_Void();
33467 {
33468 if (temp2)
33469 delete arg2;
33470 }
33471 return resultobj;
33472fail:
33473 {
33474 if (temp2)
33475 delete arg2;
33476 }
33477 return NULL;
33478}
33479
33480
33481SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33482 PyObject *resultobj = 0;
33483 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33484 wxString *arg2 = 0 ;
33485 wxPoint *arg3 = 0 ;
33486 void *argp1 = 0 ;
33487 int res1 = 0 ;
33488 bool temp2 = false ;
33489 wxPoint temp3 ;
33490 PyObject * obj0 = 0 ;
33491 PyObject * obj1 = 0 ;
33492 PyObject * obj2 = 0 ;
33493 char * kwnames[] = {
33494 (char *) "self",(char *) "text",(char *) "pt", NULL
33495 };
33496
33497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33499 if (!SWIG_IsOK(res1)) {
33500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33501 }
33502 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33503 {
33504 arg2 = wxString_in_helper(obj1);
33505 if (arg2 == NULL) SWIG_fail;
33506 temp2 = true;
33507 }
33508 {
33509 arg3 = &temp3;
33510 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33511 }
33512 {
33513 PyThreadState* __tstate = wxPyBeginAllowThreads();
33514 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
33515 wxPyEndAllowThreads(__tstate);
33516 if (PyErr_Occurred()) SWIG_fail;
33517 }
33518 resultobj = SWIG_Py_Void();
33519 {
33520 if (temp2)
33521 delete arg2;
33522 }
33523 return resultobj;
33524fail:
33525 {
33526 if (temp2)
33527 delete arg2;
33528 }
33529 return NULL;
33530}
33531
33532
33533SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33534 PyObject *resultobj = 0;
33535 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33536 wxString *arg2 = 0 ;
33537 int arg3 ;
33538 int arg4 ;
33539 double arg5 ;
33540 void *argp1 = 0 ;
33541 int res1 = 0 ;
33542 bool temp2 = false ;
33543 int val3 ;
33544 int ecode3 = 0 ;
33545 int val4 ;
33546 int ecode4 = 0 ;
33547 double val5 ;
33548 int ecode5 = 0 ;
33549 PyObject * obj0 = 0 ;
33550 PyObject * obj1 = 0 ;
33551 PyObject * obj2 = 0 ;
33552 PyObject * obj3 = 0 ;
33553 PyObject * obj4 = 0 ;
33554 char * kwnames[] = {
33555 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
33556 };
33557
33558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33560 if (!SWIG_IsOK(res1)) {
33561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33562 }
33563 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33564 {
33565 arg2 = wxString_in_helper(obj1);
33566 if (arg2 == NULL) SWIG_fail;
33567 temp2 = true;
33568 }
33569 ecode3 = SWIG_AsVal_int(obj2, &val3);
33570 if (!SWIG_IsOK(ecode3)) {
33571 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
33572 }
33573 arg3 = static_cast< int >(val3);
33574 ecode4 = SWIG_AsVal_int(obj3, &val4);
33575 if (!SWIG_IsOK(ecode4)) {
33576 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
33577 }
33578 arg4 = static_cast< int >(val4);
33579 ecode5 = SWIG_AsVal_double(obj4, &val5);
33580 if (!SWIG_IsOK(ecode5)) {
33581 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
33582 }
33583 arg5 = static_cast< double >(val5);
33584 {
33585 PyThreadState* __tstate = wxPyBeginAllowThreads();
33586 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
33587 wxPyEndAllowThreads(__tstate);
33588 if (PyErr_Occurred()) SWIG_fail;
33589 }
33590 resultobj = SWIG_Py_Void();
33591 {
33592 if (temp2)
33593 delete arg2;
33594 }
33595 return resultobj;
33596fail:
33597 {
33598 if (temp2)
33599 delete arg2;
33600 }
33601 return NULL;
33602}
33603
33604
33605SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33606 PyObject *resultobj = 0;
33607 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33608 wxString *arg2 = 0 ;
33609 wxPoint *arg3 = 0 ;
33610 double arg4 ;
33611 void *argp1 = 0 ;
33612 int res1 = 0 ;
33613 bool temp2 = false ;
33614 wxPoint temp3 ;
33615 double val4 ;
33616 int ecode4 = 0 ;
33617 PyObject * obj0 = 0 ;
33618 PyObject * obj1 = 0 ;
33619 PyObject * obj2 = 0 ;
33620 PyObject * obj3 = 0 ;
33621 char * kwnames[] = {
33622 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
33623 };
33624
33625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33627 if (!SWIG_IsOK(res1)) {
33628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33629 }
33630 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33631 {
33632 arg2 = wxString_in_helper(obj1);
33633 if (arg2 == NULL) SWIG_fail;
33634 temp2 = true;
33635 }
33636 {
33637 arg3 = &temp3;
33638 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33639 }
33640 ecode4 = SWIG_AsVal_double(obj3, &val4);
33641 if (!SWIG_IsOK(ecode4)) {
33642 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
33643 }
33644 arg4 = static_cast< double >(val4);
33645 {
33646 PyThreadState* __tstate = wxPyBeginAllowThreads();
33647 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
33648 wxPyEndAllowThreads(__tstate);
33649 if (PyErr_Occurred()) SWIG_fail;
33650 }
33651 resultobj = SWIG_Py_Void();
33652 {
33653 if (temp2)
33654 delete arg2;
33655 }
33656 return resultobj;
33657fail:
33658 {
33659 if (temp2)
33660 delete arg2;
33661 }
33662 return NULL;
33663}
33664
33665
33666SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33667 PyObject *resultobj = 0;
33668 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33669 int arg2 ;
33670 wxPoint *arg3 = (wxPoint *) 0 ;
33671 int arg4 = (int) 0 ;
33672 int arg5 = (int) 0 ;
33673 void *argp1 = 0 ;
33674 int res1 = 0 ;
33675 int val4 ;
33676 int ecode4 = 0 ;
33677 int val5 ;
33678 int ecode5 = 0 ;
33679 PyObject * obj0 = 0 ;
33680 PyObject * obj1 = 0 ;
33681 PyObject * obj2 = 0 ;
33682 PyObject * obj3 = 0 ;
33683 char * kwnames[] = {
33684 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
33685 };
33686
33687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33689 if (!SWIG_IsOK(res1)) {
33690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33691 }
33692 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33693 {
33694 arg3 = wxPoint_LIST_helper(obj1, &arg2);
33695 if (arg3 == NULL) SWIG_fail;
33696 }
33697 if (obj2) {
33698 ecode4 = SWIG_AsVal_int(obj2, &val4);
33699 if (!SWIG_IsOK(ecode4)) {
33700 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
33701 }
33702 arg4 = static_cast< int >(val4);
33703 }
33704 if (obj3) {
33705 ecode5 = SWIG_AsVal_int(obj3, &val5);
33706 if (!SWIG_IsOK(ecode5)) {
33707 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
33708 }
33709 arg5 = static_cast< int >(val5);
33710 }
33711 {
33712 PyThreadState* __tstate = wxPyBeginAllowThreads();
33713 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
33714 wxPyEndAllowThreads(__tstate);
33715 if (PyErr_Occurred()) SWIG_fail;
33716 }
33717 resultobj = SWIG_Py_Void();
33718 {
33719 if (arg3) delete [] arg3;
33720 }
33721 return resultobj;
33722fail:
33723 {
33724 if (arg3) delete [] arg3;
33725 }
33726 return NULL;
33727}
33728
33729
33730SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33731 PyObject *resultobj = 0;
33732 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33733 int arg2 ;
33734 wxPoint *arg3 = (wxPoint *) 0 ;
33735 int arg4 = (int) 0 ;
33736 int arg5 = (int) 0 ;
33737 int arg6 = (int) wxODDEVEN_RULE ;
33738 void *argp1 = 0 ;
33739 int res1 = 0 ;
33740 int val4 ;
33741 int ecode4 = 0 ;
33742 int val5 ;
33743 int ecode5 = 0 ;
33744 int val6 ;
33745 int ecode6 = 0 ;
33746 PyObject * obj0 = 0 ;
33747 PyObject * obj1 = 0 ;
33748 PyObject * obj2 = 0 ;
33749 PyObject * obj3 = 0 ;
33750 PyObject * obj4 = 0 ;
33751 char * kwnames[] = {
33752 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
33753 };
33754
33755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33757 if (!SWIG_IsOK(res1)) {
33758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33759 }
33760 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33761 {
33762 arg3 = wxPoint_LIST_helper(obj1, &arg2);
33763 if (arg3 == NULL) SWIG_fail;
33764 }
33765 if (obj2) {
33766 ecode4 = SWIG_AsVal_int(obj2, &val4);
33767 if (!SWIG_IsOK(ecode4)) {
33768 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
33769 }
33770 arg4 = static_cast< int >(val4);
33771 }
33772 if (obj3) {
33773 ecode5 = SWIG_AsVal_int(obj3, &val5);
33774 if (!SWIG_IsOK(ecode5)) {
33775 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
33776 }
33777 arg5 = static_cast< int >(val5);
33778 }
33779 if (obj4) {
33780 ecode6 = SWIG_AsVal_int(obj4, &val6);
33781 if (!SWIG_IsOK(ecode6)) {
33782 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
33783 }
33784 arg6 = static_cast< int >(val6);
33785 }
33786 {
33787 PyThreadState* __tstate = wxPyBeginAllowThreads();
33788 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
33789 wxPyEndAllowThreads(__tstate);
33790 if (PyErr_Occurred()) SWIG_fail;
33791 }
33792 resultobj = SWIG_Py_Void();
33793 {
33794 if (arg3) delete [] arg3;
33795 }
33796 return resultobj;
33797fail:
33798 {
33799 if (arg3) delete [] arg3;
33800 }
33801 return NULL;
33802}
33803
33804
33805SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33806 PyObject *resultobj = 0;
33807 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33808 wxString *arg2 = 0 ;
33809 wxRect *arg3 = 0 ;
33810 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
33811 int arg5 = (int) -1 ;
33812 void *argp1 = 0 ;
33813 int res1 = 0 ;
33814 bool temp2 = false ;
33815 wxRect temp3 ;
33816 int val4 ;
33817 int ecode4 = 0 ;
33818 int val5 ;
33819 int ecode5 = 0 ;
33820 PyObject * obj0 = 0 ;
33821 PyObject * obj1 = 0 ;
33822 PyObject * obj2 = 0 ;
33823 PyObject * obj3 = 0 ;
33824 PyObject * obj4 = 0 ;
33825 char * kwnames[] = {
33826 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
33827 };
33828
33829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33831 if (!SWIG_IsOK(res1)) {
33832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33833 }
33834 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33835 {
33836 arg2 = wxString_in_helper(obj1);
33837 if (arg2 == NULL) SWIG_fail;
33838 temp2 = true;
33839 }
33840 {
33841 arg3 = &temp3;
33842 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
33843 }
33844 if (obj3) {
33845 ecode4 = SWIG_AsVal_int(obj3, &val4);
33846 if (!SWIG_IsOK(ecode4)) {
33847 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
33848 }
33849 arg4 = static_cast< int >(val4);
33850 }
33851 if (obj4) {
33852 ecode5 = SWIG_AsVal_int(obj4, &val5);
33853 if (!SWIG_IsOK(ecode5)) {
33854 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
33855 }
33856 arg5 = static_cast< int >(val5);
33857 }
33858 {
33859 PyThreadState* __tstate = wxPyBeginAllowThreads();
33860 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
33861 wxPyEndAllowThreads(__tstate);
33862 if (PyErr_Occurred()) SWIG_fail;
33863 }
33864 resultobj = SWIG_Py_Void();
33865 {
33866 if (temp2)
33867 delete arg2;
33868 }
33869 return resultobj;
33870fail:
33871 {
33872 if (temp2)
33873 delete arg2;
33874 }
33875 return NULL;
33876}
33877
33878
33879SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33880 PyObject *resultobj = 0;
33881 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33882 wxString *arg2 = 0 ;
33883 wxBitmap *arg3 = 0 ;
33884 wxRect *arg4 = 0 ;
33885 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
33886 int arg6 = (int) -1 ;
33887 void *argp1 = 0 ;
33888 int res1 = 0 ;
33889 bool temp2 = false ;
33890 void *argp3 = 0 ;
33891 int res3 = 0 ;
33892 wxRect temp4 ;
33893 int val5 ;
33894 int ecode5 = 0 ;
33895 int val6 ;
33896 int ecode6 = 0 ;
33897 PyObject * obj0 = 0 ;
33898 PyObject * obj1 = 0 ;
33899 PyObject * obj2 = 0 ;
33900 PyObject * obj3 = 0 ;
33901 PyObject * obj4 = 0 ;
33902 PyObject * obj5 = 0 ;
33903 char * kwnames[] = {
33904 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
33905 };
33906
33907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33909 if (!SWIG_IsOK(res1)) {
33910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33911 }
33912 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33913 {
33914 arg2 = wxString_in_helper(obj1);
33915 if (arg2 == NULL) SWIG_fail;
33916 temp2 = true;
33917 }
33918 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
33919 if (!SWIG_IsOK(res3)) {
33920 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
33921 }
33922 if (!argp3) {
33923 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
33924 }
33925 arg3 = reinterpret_cast< wxBitmap * >(argp3);
33926 {
33927 arg4 = &temp4;
33928 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
33929 }
33930 if (obj4) {
33931 ecode5 = SWIG_AsVal_int(obj4, &val5);
33932 if (!SWIG_IsOK(ecode5)) {
33933 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
33934 }
33935 arg5 = static_cast< int >(val5);
33936 }
33937 if (obj5) {
33938 ecode6 = SWIG_AsVal_int(obj5, &val6);
33939 if (!SWIG_IsOK(ecode6)) {
33940 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
33941 }
33942 arg6 = static_cast< int >(val6);
33943 }
33944 {
33945 PyThreadState* __tstate = wxPyBeginAllowThreads();
33946 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
33947 wxPyEndAllowThreads(__tstate);
33948 if (PyErr_Occurred()) SWIG_fail;
33949 }
33950 resultobj = SWIG_Py_Void();
33951 {
33952 if (temp2)
33953 delete arg2;
33954 }
33955 return resultobj;
33956fail:
33957 {
33958 if (temp2)
33959 delete arg2;
33960 }
33961 return NULL;
33962}
33963
33964
33965SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33966 PyObject *resultobj = 0;
33967 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33968 int arg2 ;
33969 wxPoint *arg3 = (wxPoint *) 0 ;
33970 void *argp1 = 0 ;
33971 int res1 = 0 ;
33972 PyObject * obj0 = 0 ;
33973 PyObject * obj1 = 0 ;
33974 char * kwnames[] = {
33975 (char *) "self",(char *) "points", NULL
33976 };
33977
33978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
33979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33980 if (!SWIG_IsOK(res1)) {
33981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33982 }
33983 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33984 {
33985 arg3 = wxPoint_LIST_helper(obj1, &arg2);
33986 if (arg3 == NULL) SWIG_fail;
33987 }
33988 {
33989 PyThreadState* __tstate = wxPyBeginAllowThreads();
33990 (arg1)->DrawSpline(arg2,arg3);
33991 wxPyEndAllowThreads(__tstate);
33992 if (PyErr_Occurred()) SWIG_fail;
33993 }
33994 resultobj = SWIG_Py_Void();
33995 {
33996 if (arg3) delete [] arg3;
33997 }
33998 return resultobj;
33999fail:
34000 {
34001 if (arg3) delete [] arg3;
34002 }
34003 return NULL;
34004}
34005
34006
34007SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34008 PyObject *resultobj = 0;
34009 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34010 void *argp1 = 0 ;
34011 int res1 = 0 ;
34012 PyObject *swig_obj[1] ;
34013
34014 if (!args) SWIG_fail;
34015 swig_obj[0] = args;
34016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34017 if (!SWIG_IsOK(res1)) {
34018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34019 }
34020 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34021 {
34022 PyThreadState* __tstate = wxPyBeginAllowThreads();
34023 (arg1)->Clear();
34024 wxPyEndAllowThreads(__tstate);
34025 if (PyErr_Occurred()) SWIG_fail;
34026 }
34027 resultobj = SWIG_Py_Void();
34028 return resultobj;
34029fail:
34030 return NULL;
34031}
34032
34033
34034SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34035 PyObject *resultobj = 0;
34036 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34037 wxFont *arg2 = 0 ;
34038 void *argp1 = 0 ;
34039 int res1 = 0 ;
34040 void *argp2 = 0 ;
34041 int res2 = 0 ;
34042 PyObject * obj0 = 0 ;
34043 PyObject * obj1 = 0 ;
34044 char * kwnames[] = {
34045 (char *) "self",(char *) "font", NULL
34046 };
34047
34048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
34049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34050 if (!SWIG_IsOK(res1)) {
34051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34052 }
34053 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34054 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
34055 if (!SWIG_IsOK(res2)) {
34056 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
34057 }
34058 if (!argp2) {
34059 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
34060 }
34061 arg2 = reinterpret_cast< wxFont * >(argp2);
34062 {
34063 PyThreadState* __tstate = wxPyBeginAllowThreads();
34064 (arg1)->SetFont((wxFont const &)*arg2);
34065 wxPyEndAllowThreads(__tstate);
34066 if (PyErr_Occurred()) SWIG_fail;
34067 }
34068 resultobj = SWIG_Py_Void();
34069 return resultobj;
34070fail:
34071 return NULL;
34072}
34073
34074
34075SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34076 PyObject *resultobj = 0;
34077 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34078 wxPen *arg2 = 0 ;
34079 void *argp1 = 0 ;
34080 int res1 = 0 ;
34081 void *argp2 = 0 ;
34082 int res2 = 0 ;
34083 PyObject * obj0 = 0 ;
34084 PyObject * obj1 = 0 ;
34085 char * kwnames[] = {
34086 (char *) "self",(char *) "pen", NULL
34087 };
34088
34089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
34090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34091 if (!SWIG_IsOK(res1)) {
34092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34093 }
34094 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34095 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
34096 if (!SWIG_IsOK(res2)) {
34097 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
34098 }
34099 if (!argp2) {
34100 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
34101 }
34102 arg2 = reinterpret_cast< wxPen * >(argp2);
34103 {
34104 PyThreadState* __tstate = wxPyBeginAllowThreads();
34105 (arg1)->SetPen((wxPen const &)*arg2);
34106 wxPyEndAllowThreads(__tstate);
34107 if (PyErr_Occurred()) SWIG_fail;
34108 }
34109 resultobj = SWIG_Py_Void();
34110 return resultobj;
34111fail:
34112 return NULL;
34113}
34114
34115
34116SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34117 PyObject *resultobj = 0;
34118 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34119 wxBrush *arg2 = 0 ;
34120 void *argp1 = 0 ;
34121 int res1 = 0 ;
34122 void *argp2 = 0 ;
34123 int res2 = 0 ;
34124 PyObject * obj0 = 0 ;
34125 PyObject * obj1 = 0 ;
34126 char * kwnames[] = {
34127 (char *) "self",(char *) "brush", NULL
34128 };
34129
34130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
34131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34132 if (!SWIG_IsOK(res1)) {
34133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34134 }
34135 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34136 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
34137 if (!SWIG_IsOK(res2)) {
34138 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
34139 }
34140 if (!argp2) {
34141 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
34142 }
34143 arg2 = reinterpret_cast< wxBrush * >(argp2);
34144 {
34145 PyThreadState* __tstate = wxPyBeginAllowThreads();
34146 (arg1)->SetBrush((wxBrush const &)*arg2);
34147 wxPyEndAllowThreads(__tstate);
34148 if (PyErr_Occurred()) SWIG_fail;
34149 }
34150 resultobj = SWIG_Py_Void();
34151 return resultobj;
34152fail:
34153 return NULL;
34154}
34155
34156
34157SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34158 PyObject *resultobj = 0;
34159 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34160 wxBrush *arg2 = 0 ;
34161 void *argp1 = 0 ;
34162 int res1 = 0 ;
34163 void *argp2 = 0 ;
34164 int res2 = 0 ;
34165 PyObject * obj0 = 0 ;
34166 PyObject * obj1 = 0 ;
34167 char * kwnames[] = {
34168 (char *) "self",(char *) "brush", NULL
34169 };
34170
34171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
34172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34173 if (!SWIG_IsOK(res1)) {
34174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34175 }
34176 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34177 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
34178 if (!SWIG_IsOK(res2)) {
34179 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
34180 }
34181 if (!argp2) {
34182 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
34183 }
34184 arg2 = reinterpret_cast< wxBrush * >(argp2);
34185 {
34186 PyThreadState* __tstate = wxPyBeginAllowThreads();
34187 (arg1)->SetBackground((wxBrush const &)*arg2);
34188 wxPyEndAllowThreads(__tstate);
34189 if (PyErr_Occurred()) SWIG_fail;
34190 }
34191 resultobj = SWIG_Py_Void();
34192 return resultobj;
34193fail:
34194 return NULL;
34195}
34196
34197
34198SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34199 PyObject *resultobj = 0;
34200 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34201 int arg2 ;
34202 void *argp1 = 0 ;
34203 int res1 = 0 ;
34204 int val2 ;
34205 int ecode2 = 0 ;
34206 PyObject * obj0 = 0 ;
34207 PyObject * obj1 = 0 ;
34208 char * kwnames[] = {
34209 (char *) "self",(char *) "mode", NULL
34210 };
34211
34212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
34213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34214 if (!SWIG_IsOK(res1)) {
34215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34216 }
34217 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34218 ecode2 = SWIG_AsVal_int(obj1, &val2);
34219 if (!SWIG_IsOK(ecode2)) {
34220 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
34221 }
34222 arg2 = static_cast< int >(val2);
34223 {
34224 PyThreadState* __tstate = wxPyBeginAllowThreads();
34225 (arg1)->SetBackgroundMode(arg2);
34226 wxPyEndAllowThreads(__tstate);
34227 if (PyErr_Occurred()) SWIG_fail;
34228 }
34229 resultobj = SWIG_Py_Void();
34230 return resultobj;
34231fail:
34232 return NULL;
34233}
34234
34235
34236SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34237 PyObject *resultobj = 0;
34238 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34239 wxPalette *arg2 = 0 ;
34240 void *argp1 = 0 ;
34241 int res1 = 0 ;
34242 void *argp2 = 0 ;
34243 int res2 = 0 ;
34244 PyObject * obj0 = 0 ;
34245 PyObject * obj1 = 0 ;
34246 char * kwnames[] = {
34247 (char *) "self",(char *) "palette", NULL
34248 };
34249
34250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
34251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34252 if (!SWIG_IsOK(res1)) {
34253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34254 }
34255 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34256 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
34257 if (!SWIG_IsOK(res2)) {
34258 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
34259 }
34260 if (!argp2) {
34261 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
34262 }
34263 arg2 = reinterpret_cast< wxPalette * >(argp2);
34264 {
34265 PyThreadState* __tstate = wxPyBeginAllowThreads();
34266 (arg1)->SetPalette((wxPalette const &)*arg2);
34267 wxPyEndAllowThreads(__tstate);
34268 if (PyErr_Occurred()) SWIG_fail;
34269 }
34270 resultobj = SWIG_Py_Void();
34271 return resultobj;
34272fail:
34273 return NULL;
34274}
34275
34276
34277SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34278 PyObject *resultobj = 0;
34279 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34280 wxColour *arg2 = 0 ;
34281 void *argp1 = 0 ;
34282 int res1 = 0 ;
34283 wxColour temp2 ;
34284 PyObject * obj0 = 0 ;
34285 PyObject * obj1 = 0 ;
34286 char * kwnames[] = {
34287 (char *) "self",(char *) "colour", NULL
34288 };
34289
34290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
34291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34292 if (!SWIG_IsOK(res1)) {
34293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34294 }
34295 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34296 {
34297 arg2 = &temp2;
34298 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34299 }
34300 {
34301 PyThreadState* __tstate = wxPyBeginAllowThreads();
34302 (arg1)->SetTextForeground((wxColour const &)*arg2);
34303 wxPyEndAllowThreads(__tstate);
34304 if (PyErr_Occurred()) SWIG_fail;
34305 }
34306 resultobj = SWIG_Py_Void();
34307 return resultobj;
34308fail:
34309 return NULL;
34310}
34311
34312
34313SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34314 PyObject *resultobj = 0;
34315 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34316 wxColour *arg2 = 0 ;
34317 void *argp1 = 0 ;
34318 int res1 = 0 ;
34319 wxColour temp2 ;
34320 PyObject * obj0 = 0 ;
34321 PyObject * obj1 = 0 ;
34322 char * kwnames[] = {
34323 (char *) "self",(char *) "colour", NULL
34324 };
34325
34326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
34327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34328 if (!SWIG_IsOK(res1)) {
34329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34330 }
34331 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34332 {
34333 arg2 = &temp2;
34334 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34335 }
34336 {
34337 PyThreadState* __tstate = wxPyBeginAllowThreads();
34338 (arg1)->SetTextBackground((wxColour const &)*arg2);
34339 wxPyEndAllowThreads(__tstate);
34340 if (PyErr_Occurred()) SWIG_fail;
34341 }
34342 resultobj = SWIG_Py_Void();
34343 return resultobj;
34344fail:
34345 return NULL;
34346}
34347
34348
34349SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34350 PyObject *resultobj = 0;
34351 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34352 int arg2 ;
34353 void *argp1 = 0 ;
34354 int res1 = 0 ;
34355 int val2 ;
34356 int ecode2 = 0 ;
34357 PyObject * obj0 = 0 ;
34358 PyObject * obj1 = 0 ;
34359 char * kwnames[] = {
34360 (char *) "self",(char *) "function", NULL
34361 };
34362
34363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
34364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34365 if (!SWIG_IsOK(res1)) {
34366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34367 }
34368 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34369 ecode2 = SWIG_AsVal_int(obj1, &val2);
34370 if (!SWIG_IsOK(ecode2)) {
34371 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
34372 }
34373 arg2 = static_cast< int >(val2);
34374 {
34375 PyThreadState* __tstate = wxPyBeginAllowThreads();
34376 (arg1)->SetLogicalFunction(arg2);
34377 wxPyEndAllowThreads(__tstate);
34378 if (PyErr_Occurred()) SWIG_fail;
34379 }
34380 resultobj = SWIG_Py_Void();
34381 return resultobj;
34382fail:
34383 return NULL;
34384}
34385
34386
34387SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34388 PyObject *obj;
34389 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34390 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
34391 return SWIG_Py_Void();
34392}
34393
34394SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34395 return SWIG_Python_InitShadowInstance(args);
34396}
34397
34398static PyMethodDef SwigMethods[] = {
34399 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
34400 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
34401 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
34402 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
34403 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
34404 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
34405 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
34406 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
34407 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
34408 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
34409 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
34410 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
fc46b7f3 34411 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
b39fe951 34412 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
27e45892
RD
34413 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34414 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
34415 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
34416 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
34417 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
34418 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34419 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
fc46b7f3 34420 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
34421 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
34422 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
34423 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
34424 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
34425 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
34426 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
34427 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
34428 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
b39fe951 34429 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
27e45892
RD
34430 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
34431 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
34432 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
34433 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
34434 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
34435 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
34436 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
34437 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
34438 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
b39fe951 34439 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
27e45892
RD
34440 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
34441 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
34442 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
34443 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34444 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
34445 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
34446 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
34447 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
34448 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34449 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34450 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
34451 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
34452 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
34453 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34454 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
34455 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
34456 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34457 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
34458 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
34459 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
34460 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
34461 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
b39fe951 34462 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
27e45892
RD
34463 { (char *)"Brush_MacGetTheme", (PyCFunction)_wrap_Brush_MacGetTheme, METH_O, NULL},
34464 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL},
34465 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
34466 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
34467 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34468 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
34469 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34470 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34471 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
34472 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
34473 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 34474 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
27e45892
RD
34475 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
34476 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
34477 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
34478 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
34479 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
34480 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
34481 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
34482 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
34483 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34484 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
34485 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
34486 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
34487 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34488 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
34489 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
34490 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
34491 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
34492 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34493 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34494 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
34495 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
34496 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
34497 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
34498 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
34499 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
34500 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
34501 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
34502 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
34503 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
34504 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
34505 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
34506 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
34507 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
34508 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
34509 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
34510 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
34511 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
34512 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
34513 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
34514 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
34515 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
34516 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
34517 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
34518 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
34519 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
34520 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
34521 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34522 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
34523 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
34524 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
34525 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
34526 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
34527 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
34528 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
34529 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
34530 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
34531 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
34532 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
34533 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
34534 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
34535 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
34536 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
34537 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
34538 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
34539 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
34540 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
34541 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34542 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
34543 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
34544 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
27e45892
RD
34545 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
34546 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
34547 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
34548 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
34549 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
34550 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
34551 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
34552 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
34553 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34554 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 34555 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
27e45892
RD
34556 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
34557 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
34558 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
34559 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
34560 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
34561 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
34562 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34563 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
34564 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
34565 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
34566 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
34567 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
34568 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
34569 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
34570 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
34571 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
34572 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
34573 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
34574 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
34575 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
34576 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34577 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
34578 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34579 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
34580 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34581 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
34582 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
34583 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
34584 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
34585 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
34586 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 34587 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
27e45892
RD
34588 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
34589 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
34590 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
34591 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34592 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
34593 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
34594 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
34595 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
34596 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
34597 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
34598 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34599 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
34600 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
34601 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
34602 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
34603 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
34604 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34605 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
f5263701 34606 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
34607 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
34608 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
34609 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34610 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
34611 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
34612 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34613 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
34614 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
34615 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34616 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
34617 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34618 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
34619 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
34620 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
34621 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
34622 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
34623 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
34624 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
34625 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
34626 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
34627 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
34628 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
34629 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
34630 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
34631 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
34632 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
34633 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
34634 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
34635 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
34636 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
34637 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
34638 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
34639 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
34640 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
34641 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
34642 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
34643 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
34644 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
34645 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
34646 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
34647 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34648 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34649 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
34650 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
34651 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
34652 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
34653 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34654 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
34655 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
34656 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
34657 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
34658 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
34659 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
34660 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
34661 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
34662 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
34663 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
34664 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
34665 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
34666 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
34667 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
34668 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
34669 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
34670 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
34671 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34672 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34673 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
34674 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
34675 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
34676 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34677 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34678 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
34679 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34680 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
34681 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
34682 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
34683 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
34684 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
34685 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34686 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
34687 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
34688 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
34689 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
34690 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
34691 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
34692 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
34693 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34694 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
34695 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
34696 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
34697 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 34698 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
27e45892 34699 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
34700 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34701 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
34702 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
34703 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
34704 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
34705 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
34706 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
34707 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
34708 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
34709 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
34710 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
34711 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
34712 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
34713 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
34714 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34715 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
34716 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
34717 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34718 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
34719 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
34720 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
34721 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34722 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34723 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
34724 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
34725 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
34726 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
34727 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
34728 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
34729 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
34730 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
34731 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34732 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
34733 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
34734 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
34735 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
34736 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34737 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
34738 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
34739 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
34740 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
34741 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
34742 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
34743 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
34744 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
34745 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
34746 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
34747 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
34748 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
34749 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
34750 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
34751 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
34752 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
34753 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
34754 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
34755 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
34756 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
34757 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
34758 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
34759 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
34760 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
34761 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
34762 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
34763 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
34764 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b 34765 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
34766 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
34767 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34768 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
34769 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34770 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
34771 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
34772 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
34773 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
34774 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
34775 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
34776 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
34777 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34778 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
34779 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
34780 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
34781 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
1bd55598
RD
34782 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
34783 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
34784 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
34785 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
34786 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
34787 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
34788 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
34789 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
34790 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
34791 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
34792 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
34793 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
34794 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
34795 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34796 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
34797 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
34798 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
34799 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34800 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
34801 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
34802 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
34803 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34804 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
34805 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34806 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
34807 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
34808 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
34809 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34810 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34811 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34812 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34813 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
34814 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34815 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34816 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
34817 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34818 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
34819 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
34820 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
34821 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
34822 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34823 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34824 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34825 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34826 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34827 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
34828 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34829 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
34830 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34831 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
34832 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34833 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34834 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34835 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34836 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
34837 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
34838 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
34839 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
34840 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
34841 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
34842 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
34843 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
34844 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
34845 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
34846 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
34847 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
34848 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
34849 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34850 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
34851 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
34852 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
34853 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
34854 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
34855 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
34856 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
34857 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
34858 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
34859 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
34860 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
34861 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
34862 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
34863 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
34864 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
34865 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
34866 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
34867 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
34868 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
34869 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
34870 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
34871 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
34872 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
34873 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
34874 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
34875 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
34876 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
34877 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
b39fe951 34878 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
1bd55598
RD
34879 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
34880 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
34881 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
34882 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
34883 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
34884 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
34885 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
34886 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
34887 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
34888 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
34889 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
34890 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
34891 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
34892 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
34893 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
34894 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
34895 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
34896 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
34897 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34898 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
34899 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
34900 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
34901 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34902 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
34903 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
34904 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
34905 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
34906 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
34907 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34908 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
34909 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
34910 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
34911 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
34912 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
34913 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
b39fe951
RD
34914 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
34915 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
34916 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
34917 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
34918 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
34919 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
34920 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
34921 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
34922 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
34923 { (char *)"new_MemoryDC", (PyCFunction)_wrap_new_MemoryDC, METH_NOARGS, NULL},
34924 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
34925 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
34926 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
34927 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
34928 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
34929 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
34930 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
34931 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
34932 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
34933 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
34934 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
34935 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
34936 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
34937 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
34938 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
34939 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
34940 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
34941 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
72ef6efb
RD
34942 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
34943 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
34944 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
1bd55598
RD
34945 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
34946 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
34947 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
34948 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
34949 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
34950 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
1bd55598
RD
34951 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
34952 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
34953 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
34954 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
34955 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
34956 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
34957 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
34958 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
34959 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
34960 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
34961 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
34962 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
b39fe951 34963 { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL},
1bd55598
RD
34964 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
34965 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
34966 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
34967 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
34968 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
34969 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
34970 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
34971 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
34972 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
34973 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
34974 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
34975 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
34976 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
72ef6efb
RD
34977 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
34978 { (char *)"GraphicsPath_MoveToPoint", (PyCFunction) _wrap_GraphicsPath_MoveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34979 { (char *)"GraphicsPath_AddLineToPoint", (PyCFunction) _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34980 { (char *)"GraphicsPath_AddCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34981 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
34982 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
34983 { (char *)"GraphicsPath_AddArc", (PyCFunction) _wrap_GraphicsPath_AddArc, METH_VARARGS | METH_KEYWORDS, NULL},
34984 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34985 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34986 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
34987 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34988 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
34989 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
34990 { (char *)"GraphicsContext_Create", (PyCFunction) _wrap_GraphicsContext_Create, METH_VARARGS | METH_KEYWORDS, NULL},
34991 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
34992 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
34993 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
34994 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
34995 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
34996 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
34997 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
34998 { (char *)"GraphicsContext_SetPen", (PyCFunction) _wrap_GraphicsContext_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
34999 { (char *)"GraphicsContext_SetBrush", (PyCFunction) _wrap_GraphicsContext_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35000 { (char *)"GraphicsContext_SetLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35001 { (char *)"GraphicsContext_SetRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35002 { (char *)"GraphicsContext_SetFont", (PyCFunction) _wrap_GraphicsContext_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35003 { (char *)"GraphicsContext_SetTextColor", (PyCFunction) _wrap_GraphicsContext_SetTextColor, METH_VARARGS | METH_KEYWORDS, NULL},
35004 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
35005 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
35006 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
35007 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
35008 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
35009 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35010 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
35011 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35012 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35013 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
35014 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
35015 { (char *)"GraphicsContext_StrokeDisconnectedLines", (PyCFunction) _wrap_GraphicsContext_StrokeDisconnectedLines, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
35016 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
35017 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35018 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
35019 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35020 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
35021 { (char *)"new_GCDC", (PyCFunction) _wrap_new_GCDC, METH_VARARGS | METH_KEYWORDS, NULL},
35022 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
35023 { (char *)"GCDC_GetGraphicContext", (PyCFunction)_wrap_GCDC_GetGraphicContext, METH_O, NULL},
35024 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
35025 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
b39fe951
RD
35026 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
35027 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
35028 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
35029 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
35030 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
35031 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
35032 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
35033 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
35034 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
35035 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
1bd55598
RD
35036 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
35037 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
35038 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
35039 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
35040 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35041 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35042 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35043 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
35044 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
35045 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
35046 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
35047 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
35048 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
35049 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
35050 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
da91cb0f
RD
35051 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
35052 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
35053 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
35054 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
35055 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35056 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
35057 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
35058 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35059 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35060 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
35061 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
35062 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
35063 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
35064 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
35065 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
1bd55598 35066 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
da91cb0f 35067 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 35068 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 35069 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
1bd55598 35070 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
da91cb0f 35071 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 35072 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 35073 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
da91cb0f
RD
35074 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
35075 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
35076 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
35077 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
1bd55598
RD
35078 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
35079 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
35080 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
35081 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
35082 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
35083 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
35084 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
35085 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
da91cb0f
RD
35086 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
35087 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
35088 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
35089 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
1bd55598
RD
35090 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
35091 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
35092 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
35093 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
35094 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
35095 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
35096 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
35097 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
35098 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
35099 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
35100 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
35101 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35102 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
35103 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35104 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
35105 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
35106 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
35107 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
35108 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
35109 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
35110 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
35111 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
35112 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
33d6fd3b
RD
35113 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
35114 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
35115 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
35116 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
35117 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
35118 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
35119 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
35120 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
35121 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
35122 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
35123 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
35124 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
35125 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
35126 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
35127 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
35128 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
35129 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
35130 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
1bd55598
RD
35131 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
35132 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
35133 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
35134 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
35135 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
35136 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
35137 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
35138 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b
RD
35139 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
35140 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
35141 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
35142 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
35143 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
35144 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
35145 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
2131d850
RD
35146 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
35147 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
35148 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
35149 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
35150 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
35151 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
35152 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
35153 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35154 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
35155 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
27e45892
RD
35156 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
35157 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
35158 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
35159 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
35160 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
35161 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
35162 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
35163 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
35164 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
35165 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
35166 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
35167 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
35168 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
35169 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
35170 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
35171 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
35172 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
35173 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
35174 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
35175 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
35176 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
35177 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35178 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
35179 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35180 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
35181 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35182 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
35183 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35184 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
35185 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
35186 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
35187 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35188 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35189 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35190 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35191 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35192 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35193 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35194 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35195 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35196 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
35197 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35198 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
35199 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
35200 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35201 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35202 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35203 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35204 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35205 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
35206 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35207 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
35208 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35209 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
35210 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
35211 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35212 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35213 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
35214 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
35215 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35216 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35217 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35218 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35219 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
35220 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
35221 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
35222 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35223 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
35224 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
35225 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
1bd55598
RD
35226 { NULL, NULL, 0, NULL }
35227};
35228
35229
35230/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
35231
72ef6efb
RD
35232static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
35233 return (void *)((wxClientDC *) ((wxPaintDC *) x));
35234}
72ef6efb
RD
35235static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
35236 return (void *)((wxWindowDC *) ((wxClientDC *) x));
35237}
35238static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
35239 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
35240}
fc46b7f3
RD
35241static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
35242 return (void *)((wxLocale *) ((wxPyLocale *) x));
35243}
1bd55598
RD
35244static void *_p_wxIconTo_p_wxGDIObject(void *x) {
35245 return (void *)((wxGDIObject *) ((wxIcon *) x));
35246}
35247static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
35248 return (void *)((wxGDIObject *) ((wxPalette *) x));
35249}
35250static void *_p_wxPenTo_p_wxGDIObject(void *x) {
35251 return (void *)((wxGDIObject *) ((wxPen *) x));
35252}
35253static void *_p_wxFontTo_p_wxGDIObject(void *x) {
35254 return (void *)((wxGDIObject *) ((wxFont *) x));
35255}
35256static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
35257 return (void *)((wxGDIObject *) ((wxCursor *) x));
35258}
35259static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
35260 return (void *)((wxGDIObject *) ((wxBitmap *) x));
35261}
35262static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
35263 return (void *)((wxGDIObject *) ((wxRegion *) x));
35264}
35265static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
35266 return (void *)((wxGDIObject *) ((wxBrush *) x));
35267}
72ef6efb
RD
35268static void *_p_wxGCDCTo_p_wxDC(void *x) {
35269 return (void *)((wxDC *) ((wxGCDC *) x));
35270}
1bd55598 35271static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
b39fe951 35272 return (void *)((wxDC *) ((wxBufferedDC *) x));
1bd55598
RD
35273}
35274static void *_p_wxScreenDCTo_p_wxDC(void *x) {
35275 return (void *)((wxDC *) ((wxScreenDC *) x));
35276}
35277static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
35278 return (void *)((wxDC *) ((wxMirrorDC *) x));
35279}
35280static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
35281 return (void *)((wxDC *) ((wxMemoryDC *) x));
35282}
35283static void *_p_wxWindowDCTo_p_wxDC(void *x) {
35284 return (void *)((wxDC *) ((wxWindowDC *) x));
35285}
35286static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
35287 return (void *)((wxDC *) ((wxMetaFileDC *) x));
35288}
35289static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
b39fe951 35290 return (void *)((wxDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
1bd55598
RD
35291}
35292static void *_p_wxClientDCTo_p_wxDC(void *x) {
72ef6efb 35293 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
1bd55598
RD
35294}
35295static void *_p_wxPaintDCTo_p_wxDC(void *x) {
72ef6efb 35296 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
1bd55598
RD
35297}
35298static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
35299 return (void *)((wxDC *) ((wxPostScriptDC *) x));
35300}
35301static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
35302 return (void *)((wxDC *) ((wxPrinterDC *) x));
35303}
da91cb0f
RD
35304static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
35305 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
35306}
35307static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
35308 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
35309}
35310static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
35311 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
35312}
1bd55598
RD
35313static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
35314 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
35315}
35316static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
35317 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
35318}
35319static void *_p_wxPenTo_p_wxObject(void *x) {
35320 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
35321}
35322static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
35323 return (void *)((wxObject *) ((wxRegionIterator *) x));
35324}
1bd55598
RD
35325static void *_p_wxSizerItemTo_p_wxObject(void *x) {
35326 return (void *)((wxObject *) ((wxSizerItem *) x));
35327}
34e0a3bb
RD
35328static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
35329 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
35330}
1bd55598
RD
35331static void *_p_wxScrollEventTo_p_wxObject(void *x) {
35332 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
35333}
35334static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
35335 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
35336}
35337static void *_p_wxIconTo_p_wxObject(void *x) {
35338 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
35339}
35340static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
35341 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
35342}
35343static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
35344 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
35345}
35346static void *_p_wxSizerTo_p_wxObject(void *x) {
35347 return (void *)((wxObject *) ((wxSizer *) x));
35348}
35349static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
35350 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
35351}
35352static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
35353 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
35354}
1bd55598
RD
35355static void *_p_wxEventTo_p_wxObject(void *x) {
35356 return (void *)((wxObject *) ((wxEvent *) x));
35357}
35358static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
35359 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
35360}
35361static void *_p_wxGridSizerTo_p_wxObject(void *x) {
35362 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
35363}
35364static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
35365 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
35366}
27e45892
RD
35367static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
35368 return (void *)((wxObject *) ((wxPseudoDC *) x));
35369}
2131d850
RD
35370static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
35371 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
35372}
1bd55598
RD
35373static void *_p_wxPaintEventTo_p_wxObject(void *x) {
35374 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
35375}
35376static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
35377 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
35378}
35379static void *_p_wxDCTo_p_wxObject(void *x) {
35380 return (void *)((wxObject *) ((wxDC *) x));
35381}
35382static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
35383 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
35384}
35385static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
35386 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
35387}
35388static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
35389 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
35390}
35391static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
35392 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
35393}
35394static void *_p_wxControlTo_p_wxObject(void *x) {
35395 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
35396}
35397static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
35398 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
35399}
35400static void *_p_wxClientDCTo_p_wxObject(void *x) {
72ef6efb 35401 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
1bd55598
RD
35402}
35403static void *_p_wxFSFileTo_p_wxObject(void *x) {
35404 return (void *)((wxObject *) ((wxFSFile *) x));
35405}
35406static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
35407 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
35408}
35409static void *_p_wxRegionTo_p_wxObject(void *x) {
35410 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
35411}
35412static void *_p_wxPySizerTo_p_wxObject(void *x) {
35413 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
35414}
35415static void *_p_wxWindowDCTo_p_wxObject(void *x) {
35416 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
35417}
35418static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
35419 return (void *)((wxObject *) ((wxGDIObject *) x));
35420}
35421static void *_p_wxEffectsTo_p_wxObject(void *x) {
35422 return (void *)((wxObject *) ((wxEffects *) x));
35423}
35424static void *_p_wxPyEventTo_p_wxObject(void *x) {
35425 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
35426}
35427static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
35428 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
35429}
35430static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
35431 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
35432}
35433static void *_p_wxShowEventTo_p_wxObject(void *x) {
35434 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
35435}
35436static void *_p_wxMenuItemTo_p_wxObject(void *x) {
35437 return (void *)((wxObject *) ((wxMenuItem *) x));
35438}
35439static void *_p_wxDateEventTo_p_wxObject(void *x) {
35440 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
35441}
35442static void *_p_wxIdleEventTo_p_wxObject(void *x) {
35443 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
35444}
35445static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
35446 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
35447}
35448static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
35449 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
35450}
35451static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
35452 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
35453}
35454static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
35455 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
35456}
35457static void *_p_wxSizeEventTo_p_wxObject(void *x) {
35458 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
35459}
35460static void *_p_wxMoveEventTo_p_wxObject(void *x) {
35461 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
35462}
35463static void *_p_wxActivateEventTo_p_wxObject(void *x) {
35464 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
35465}
35466static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
35467 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
35468}
35469static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
35470 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
35471}
35472static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
35473 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
35474}
35475static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
35476 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
35477}
35478static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
35479 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
35480}
35481static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
35482 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
35483}
35484static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
35485 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
35486}
35487static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
35488 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
35489}
35490static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
35491 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
35492}
35493static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
35494 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
35495}
35496static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
35497 return (void *)((wxObject *) ((wxImageHandler *) x));
35498}
35499static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
35500 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
35501}
35502static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
35503 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
35504}
35505static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
35506 return (void *)((wxObject *) ((wxEvtHandler *) x));
35507}
34e0a3bb
RD
35508static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
35509 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
35510}
1bd55598 35511static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
b39fe951 35512 return (void *)((wxObject *) (wxDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
1bd55598
RD
35513}
35514static void *_p_wxPaintDCTo_p_wxObject(void *x) {
72ef6efb 35515 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
1bd55598
RD
35516}
35517static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
35518 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
35519}
35520static void *_p_wxScreenDCTo_p_wxObject(void *x) {
35521 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
35522}
35523static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
35524 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
35525}
35526static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
35527 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
35528}
35529static void *_p_wxImageTo_p_wxObject(void *x) {
35530 return (void *)((wxObject *) ((wxImage *) x));
35531}
35532static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
35533 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
35534}
35535static void *_p_wxPaletteTo_p_wxObject(void *x) {
35536 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
35537}
35538static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
b39fe951 35539 return (void *)((wxObject *) (wxDC *) ((wxBufferedDC *) x));
1bd55598
RD
35540}
35541static void *_p_wxImageListTo_p_wxObject(void *x) {
35542 return (void *)((wxObject *) ((wxImageList *) x));
35543}
72ef6efb
RD
35544static void *_p_wxGCDCTo_p_wxObject(void *x) {
35545 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
35546}
1bd55598
RD
35547static void *_p_wxCursorTo_p_wxObject(void *x) {
35548 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
35549}
35550static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
35551 return (void *)((wxObject *) ((wxEncodingConverter *) x));
35552}
35553static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
35554 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
35555}
35556static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
35557 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
35558}
35559static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
35560 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
35561}
35562static void *_p_wxKeyEventTo_p_wxObject(void *x) {
35563 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
35564}
35565static void *_p_wxWindowTo_p_wxObject(void *x) {
35566 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
35567}
35568static void *_p_wxMenuTo_p_wxObject(void *x) {
35569 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
35570}
35571static void *_p_wxMenuBarTo_p_wxObject(void *x) {
35572 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
35573}
35574static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
35575 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
35576}
1bd55598
RD
35577static void *_p_wxFileSystemTo_p_wxObject(void *x) {
35578 return (void *)((wxObject *) ((wxFileSystem *) x));
35579}
35580static void *_p_wxBitmapTo_p_wxObject(void *x) {
35581 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
35582}
35583static void *_p_wxMaskTo_p_wxObject(void *x) {
35584 return (void *)((wxObject *) ((wxMask *) x));
35585}
35586static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
35587 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
35588}
35589static void *_p_wxMenuEventTo_p_wxObject(void *x) {
35590 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
35591}
35592static void *_p_wxPyAppTo_p_wxObject(void *x) {
35593 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
35594}
35595static void *_p_wxCloseEventTo_p_wxObject(void *x) {
35596 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
35597}
35598static void *_p_wxMouseEventTo_p_wxObject(void *x) {
35599 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
35600}
35601static void *_p_wxEraseEventTo_p_wxObject(void *x) {
35602 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
35603}
35604static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
35605 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
35606}
35607static void *_p_wxCommandEventTo_p_wxObject(void *x) {
35608 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
35609}
35610static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
35611 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
35612}
35613static void *_p_wxFocusEventTo_p_wxObject(void *x) {
35614 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
35615}
35616static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
35617 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
35618}
35619static void *_p_wxFontTo_p_wxObject(void *x) {
35620 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
35621}
35622static void *_p_wxBrushTo_p_wxObject(void *x) {
35623 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
35624}
35625static void *_p_wxMetaFileTo_p_wxObject(void *x) {
35626 return (void *)((wxObject *) ((wxMetaFile *) x));
35627}
35628static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
35629 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
35630}
35631static void *_p_wxColourTo_p_wxObject(void *x) {
35632 return (void *)((wxObject *) ((wxColour *) x));
35633}
1bd55598
RD
35634static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
35635 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
35636}
35637static void *_p_wxValidatorTo_p_wxObject(void *x) {
35638 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
35639}
35640static void *_p_wxControlTo_p_wxWindow(void *x) {
35641 return (void *)((wxWindow *) ((wxControl *) x));
35642}
35643static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
35644 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
35645}
35646static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
35647 return (void *)((wxWindow *) ((wxMenuBar *) x));
35648}
fc46b7f3
RD
35649static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
35650 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
35651}
35652static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
35653 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
35654}
35655static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
1bd55598 35656static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
72ef6efb 35657static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
1bd55598
RD
35658static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
35659static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
35660static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
35661static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
35662static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
fc46b7f3
RD
35663static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
35664static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
1bd55598
RD
35665static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
35666static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
35667static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
35668static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
35669static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
fc46b7f3 35670static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
1bd55598 35671static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
72ef6efb 35672static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
1bd55598
RD
35673static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
35674static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
35675static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
35676static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
b39fe951 35677static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
1bd55598
RD
35678static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
35679static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
35680static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
35681static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
35682static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
35683static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
35684static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
72ef6efb 35685static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
da91cb0f 35686static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
1bd55598 35687static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
72ef6efb
RD
35688static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
35689static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
33d6fd3b 35690static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
1bd55598
RD
35691static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
35692static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
35693static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
35694static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
35695static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
35696static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
35697static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
35698static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
35699static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
35700static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
35701static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
35702static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
35703static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
35704static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
fc46b7f3
RD
35705static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
35706static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
1bd55598
RD
35707static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
35708static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
1bd55598 35709static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
34e0a3bb 35710static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
1bd55598
RD
35711static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
35712static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
35713static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
35714static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
35715static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
35716static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
35717static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
35718static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
35719static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
35720static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
35721static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
35722static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
2131d850 35723static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
1bd55598
RD
35724static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
35725static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
35726static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
35727static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
35728static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
35729static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
35730static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
35731static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
35732static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
35733static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
35734static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
35735static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
35736static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
35737static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
35738static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
35739static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
35740static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
35741static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
35742static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
35743static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
35744static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
35745static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
35746static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
1bd55598
RD
35747static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
35748static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
35749static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
35750static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
35751static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
35752static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
35753static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
35754static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
72ef6efb 35755static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
27e45892 35756static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
2131d850 35757static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
1bd55598
RD
35758static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
35759static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
35760static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
34e0a3bb 35761static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
1bd55598
RD
35762static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
35763static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
35764static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
35765static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
35766static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
35767static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
35768static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
35769static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
35770static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
35771static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
35772static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
35773static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
35774static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
35775static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
35776static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
35777static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
35778static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
35779static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
35780static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
35781static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
35782static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
35783static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
b39fe951 35784static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
1bd55598
RD
35785static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
35786static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
35787static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
35788static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
35789static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
fc46b7f3 35790static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
1bd55598 35791static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
72ef6efb 35792static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
1bd55598
RD
35793static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
35794static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
35795static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
27e45892 35796static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
1bd55598 35797static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
fc46b7f3 35798static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
1bd55598
RD
35799static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
35800static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
35801static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
35802static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
35803static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
35804static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
35805static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
35806static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
da91cb0f 35807static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
1bd55598
RD
35808static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
35809static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
35810static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
35811
35812static swig_type_info *swig_type_initial[] = {
fc46b7f3 35813 &_swigt__p_buffer,
1bd55598
RD
35814 &_swigt__p_char,
35815 &_swigt__p_double,
35816 &_swigt__p_form_ops_t,
35817 &_swigt__p_int,
35818 &_swigt__p_unsigned_char,
35819 &_swigt__p_unsigned_int,
35820 &_swigt__p_unsigned_long,
35821 &_swigt__p_wxANIHandler,
35822 &_swigt__p_wxAcceleratorTable,
35823 &_swigt__p_wxActivateEvent,
fc46b7f3
RD
35824 &_swigt__p_wxAlphaPixelData,
35825 &_swigt__p_wxAlphaPixelData_Accessor,
1bd55598
RD
35826 &_swigt__p_wxBMPHandler,
35827 &_swigt__p_wxBitmap,
35828 &_swigt__p_wxBoxSizer,
35829 &_swigt__p_wxBrush,
35830 &_swigt__p_wxBrushList,
35831 &_swigt__p_wxBufferedDC,
35832 &_swigt__p_wxBufferedPaintDC,
35833 &_swigt__p_wxCURHandler,
fc46b7f3 35834 &_swigt__p_wxChar,
1bd55598
RD
35835 &_swigt__p_wxChildFocusEvent,
35836 &_swigt__p_wxClientDC,
2131d850 35837 &_swigt__p_wxClipboardTextEvent,
1bd55598 35838 &_swigt__p_wxCloseEvent,
72ef6efb 35839 &_swigt__p_wxColor,
1bd55598
RD
35840 &_swigt__p_wxColour,
35841 &_swigt__p_wxColourDatabase,
35842 &_swigt__p_wxCommandEvent,
35843 &_swigt__p_wxContextMenuEvent,
35844 &_swigt__p_wxControl,
35845 &_swigt__p_wxControlWithItems,
35846 &_swigt__p_wxCursor,
35847 &_swigt__p_wxDC,
b39fe951 35848 &_swigt__p_wxDCOverlay,
1bd55598
RD
35849 &_swigt__p_wxDash,
35850 &_swigt__p_wxDateEvent,
35851 &_swigt__p_wxDisplayChangedEvent,
35852 &_swigt__p_wxDropFilesEvent,
35853 &_swigt__p_wxDuplexMode,
35854 &_swigt__p_wxEffects,
35855 &_swigt__p_wxEncodingConverter,
35856 &_swigt__p_wxEraseEvent,
35857 &_swigt__p_wxEvent,
35858 &_swigt__p_wxEvtHandler,
35859 &_swigt__p_wxFSFile,
35860 &_swigt__p_wxFileSystem,
35861 &_swigt__p_wxFlexGridSizer,
35862 &_swigt__p_wxFocusEvent,
35863 &_swigt__p_wxFont,
35864 &_swigt__p_wxFontList,
35865 &_swigt__p_wxFontMapper,
35866 &_swigt__p_wxGBSizerItem,
72ef6efb 35867 &_swigt__p_wxGCDC,
da91cb0f 35868 &_swigt__p_wxGDIObjListBase,
1bd55598
RD
35869 &_swigt__p_wxGDIObject,
35870 &_swigt__p_wxGIFHandler,
72ef6efb
RD
35871 &_swigt__p_wxGraphicsContext,
35872 &_swigt__p_wxGraphicsPath,
1bd55598
RD
35873 &_swigt__p_wxGridBagSizer,
35874 &_swigt__p_wxGridSizer,
33d6fd3b 35875 &_swigt__p_wxHeaderButtonParams,
1bd55598
RD
35876 &_swigt__p_wxICOHandler,
35877 &_swigt__p_wxIcon,
35878 &_swigt__p_wxIconBundle,
35879 &_swigt__p_wxIconLocation,
35880 &_swigt__p_wxIconizeEvent,
35881 &_swigt__p_wxIdleEvent,
35882 &_swigt__p_wxImage,
35883 &_swigt__p_wxImageHandler,
35884 &_swigt__p_wxImageList,
35885 &_swigt__p_wxIndividualLayoutConstraint,
35886 &_swigt__p_wxInitDialogEvent,
35887 &_swigt__p_wxJPEGHandler,
35888 &_swigt__p_wxKeyEvent,
35889 &_swigt__p_wxLanguageInfo,
35890 &_swigt__p_wxLayoutConstraints,
35891 &_swigt__p_wxLocale,
35892 &_swigt__p_wxMask,
35893 &_swigt__p_wxMaximizeEvent,
35894 &_swigt__p_wxMemoryDC,
35895 &_swigt__p_wxMenu,
35896 &_swigt__p_wxMenuBar,
35897 &_swigt__p_wxMenuEvent,
35898 &_swigt__p_wxMenuItem,
35899 &_swigt__p_wxMetaFile,
35900 &_swigt__p_wxMetaFileDC,
35901 &_swigt__p_wxMirrorDC,
35902 &_swigt__p_wxMouseCaptureChangedEvent,
34e0a3bb 35903 &_swigt__p_wxMouseCaptureLostEvent,
1bd55598
RD
35904 &_swigt__p_wxMouseEvent,
35905 &_swigt__p_wxMoveEvent,
35906 &_swigt__p_wxNativeEncodingInfo,
35907 &_swigt__p_wxNativeFontInfo,
fc46b7f3
RD
35908 &_swigt__p_wxNativePixelData,
35909 &_swigt__p_wxNativePixelData_Accessor,
1bd55598
RD
35910 &_swigt__p_wxNavigationKeyEvent,
35911 &_swigt__p_wxNcPaintEvent,
35912 &_swigt__p_wxNotifyEvent,
35913 &_swigt__p_wxObject,
b39fe951 35914 &_swigt__p_wxOverlay,
1bd55598
RD
35915 &_swigt__p_wxPCXHandler,
35916 &_swigt__p_wxPNGHandler,
35917 &_swigt__p_wxPNMHandler,
35918 &_swigt__p_wxPaintDC,
35919 &_swigt__p_wxPaintEvent,
35920 &_swigt__p_wxPalette,
35921 &_swigt__p_wxPaletteChangedEvent,
35922 &_swigt__p_wxPaperSize,
35923 &_swigt__p_wxPen,
35924 &_swigt__p_wxPenList,
fc46b7f3 35925 &_swigt__p_wxPixelDataBase,
1bd55598 35926 &_swigt__p_wxPoint,
72ef6efb 35927 &_swigt__p_wxPoint2D,
1bd55598
RD
35928 &_swigt__p_wxPostScriptDC,
35929 &_swigt__p_wxPrintData,
35930 &_swigt__p_wxPrinterDC,
27e45892 35931 &_swigt__p_wxPseudoDC,
1bd55598
RD
35932 &_swigt__p_wxPyApp,
35933 &_swigt__p_wxPyCommandEvent,
35934 &_swigt__p_wxPyEvent,
35935 &_swigt__p_wxPyFontEnumerator,
35936 &_swigt__p_wxPyImageHandler,
fc46b7f3 35937 &_swigt__p_wxPyLocale,
1bd55598
RD
35938 &_swigt__p_wxPySizer,
35939 &_swigt__p_wxPyValidator,
35940 &_swigt__p_wxQueryNewPaletteEvent,
35941 &_swigt__p_wxRect,
35942 &_swigt__p_wxRegion,
35943 &_swigt__p_wxRegionIterator,
35944 &_swigt__p_wxRendererNative,
35945 &_swigt__p_wxRendererVersion,
35946 &_swigt__p_wxScreenDC,
35947 &_swigt__p_wxScrollEvent,
35948 &_swigt__p_wxScrollWinEvent,
35949 &_swigt__p_wxSetCursorEvent,
35950 &_swigt__p_wxShowEvent,
35951 &_swigt__p_wxSize,
35952 &_swigt__p_wxSizeEvent,
35953 &_swigt__p_wxSizer,
35954 &_swigt__p_wxSizerItem,
35955 &_swigt__p_wxSplitterRenderParams,
35956 &_swigt__p_wxStaticBoxSizer,
35957 &_swigt__p_wxStdDialogButtonSizer,
da91cb0f 35958 &_swigt__p_wxStockGDI,
1bd55598
RD
35959 &_swigt__p_wxString,
35960 &_swigt__p_wxSysColourChangedEvent,
35961 &_swigt__p_wxTIFFHandler,
35962 &_swigt__p_wxUpdateUIEvent,
35963 &_swigt__p_wxValidator,
35964 &_swigt__p_wxWindow,
35965 &_swigt__p_wxWindowCreateEvent,
35966 &_swigt__p_wxWindowDC,
35967 &_swigt__p_wxWindowDestroyEvent,
35968 &_swigt__p_wxXPMHandler,
35969};
35970
fc46b7f3 35971static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
35972static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
35973static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
35974static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
35975static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
35976static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
35977static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
35978static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
35979static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
35980static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
35981static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
35982static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
35983static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
35984static 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}};
35985static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 35986static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb
RD
35987static 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}};
35988static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
35989static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
35990static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
35991static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 35992static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxDC, 0, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxDC, 0, 0},{0, 0, 0, 0}};
b39fe951 35993static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
35994static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
35995static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
35996static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
35997static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
35998static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
35999static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
36000static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 36001static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
da91cb0f 36002static 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 36003static 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}};
72ef6efb
RD
36004static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
36005static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
33d6fd3b 36006static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
36007static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
36008static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
36009static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
36010static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
36011static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
36012static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 36013static 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 36014static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
b39fe951 36015static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
36016static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
36017static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
36018static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
36019static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
36020static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
36021static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
36022static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 36023static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 36024static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 36025static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
36026static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
36027static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
36028static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
36029static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
36030static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
36031static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
36032static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
36033static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
36034static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
36035static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
36036static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
36037static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 36038static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
36039static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
36040static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
36041static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36042static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36043static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36044static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36045static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
36046static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
36047static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
36048static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
36049static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
36050static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
36051static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
36052static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
36053static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
36054static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
36055static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
36056static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
36057static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
36058static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
36059static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
36060static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
36061static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
36062static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
36063static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
36064static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
36065static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
36066static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
36067static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
36068static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
36069static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 36070static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
27e45892 36071static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 36072static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
36073static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
36074static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
36075static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 36076static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
36077static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
36078static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
36079static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
36080static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
36081static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
36082static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
36083static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
36084static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
36085static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
36086static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
36087static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
36088static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
36089static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
36090static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
36091static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
36092static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
36093static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
36094static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
36095static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
36096static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
36097static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
36098static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 36099static 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_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_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_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_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_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_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_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_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_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 36100static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
36101static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
36102static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
36103static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
36104static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
36105static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 36106static 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 36107static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 36108static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
36109static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
36110static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
36111static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
27e45892 36112static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 36113static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 36114static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
36115static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
36116static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
36117static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
36118static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
36119static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
36120static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
36121static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
36122static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
da91cb0f 36123static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
36124static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
36125static 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 36126static 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
36127
36128static swig_cast_info *swig_cast_initial[] = {
fc46b7f3 36129 _swigc__p_buffer,
1bd55598
RD
36130 _swigc__p_char,
36131 _swigc__p_double,
36132 _swigc__p_form_ops_t,
36133 _swigc__p_int,
36134 _swigc__p_unsigned_char,
36135 _swigc__p_unsigned_int,
36136 _swigc__p_unsigned_long,
36137 _swigc__p_wxANIHandler,
36138 _swigc__p_wxAcceleratorTable,
36139 _swigc__p_wxActivateEvent,
fc46b7f3
RD
36140 _swigc__p_wxAlphaPixelData,
36141 _swigc__p_wxAlphaPixelData_Accessor,
1bd55598
RD
36142 _swigc__p_wxBMPHandler,
36143 _swigc__p_wxBitmap,
36144 _swigc__p_wxBoxSizer,
36145 _swigc__p_wxBrush,
36146 _swigc__p_wxBrushList,
36147 _swigc__p_wxBufferedDC,
36148 _swigc__p_wxBufferedPaintDC,
36149 _swigc__p_wxCURHandler,
fc46b7f3 36150 _swigc__p_wxChar,
1bd55598
RD
36151 _swigc__p_wxChildFocusEvent,
36152 _swigc__p_wxClientDC,
2131d850 36153 _swigc__p_wxClipboardTextEvent,
1bd55598 36154 _swigc__p_wxCloseEvent,
72ef6efb 36155 _swigc__p_wxColor,
1bd55598
RD
36156 _swigc__p_wxColour,
36157 _swigc__p_wxColourDatabase,
36158 _swigc__p_wxCommandEvent,
36159 _swigc__p_wxContextMenuEvent,
36160 _swigc__p_wxControl,
36161 _swigc__p_wxControlWithItems,
36162 _swigc__p_wxCursor,
36163 _swigc__p_wxDC,
b39fe951 36164 _swigc__p_wxDCOverlay,
1bd55598
RD
36165 _swigc__p_wxDash,
36166 _swigc__p_wxDateEvent,
36167 _swigc__p_wxDisplayChangedEvent,
36168 _swigc__p_wxDropFilesEvent,
36169 _swigc__p_wxDuplexMode,
36170 _swigc__p_wxEffects,
36171 _swigc__p_wxEncodingConverter,
36172 _swigc__p_wxEraseEvent,
36173 _swigc__p_wxEvent,
36174 _swigc__p_wxEvtHandler,
36175 _swigc__p_wxFSFile,
36176 _swigc__p_wxFileSystem,
36177 _swigc__p_wxFlexGridSizer,
36178 _swigc__p_wxFocusEvent,
36179 _swigc__p_wxFont,
36180 _swigc__p_wxFontList,
36181 _swigc__p_wxFontMapper,
36182 _swigc__p_wxGBSizerItem,
72ef6efb 36183 _swigc__p_wxGCDC,
da91cb0f 36184 _swigc__p_wxGDIObjListBase,
1bd55598
RD
36185 _swigc__p_wxGDIObject,
36186 _swigc__p_wxGIFHandler,
72ef6efb
RD
36187 _swigc__p_wxGraphicsContext,
36188 _swigc__p_wxGraphicsPath,
1bd55598
RD
36189 _swigc__p_wxGridBagSizer,
36190 _swigc__p_wxGridSizer,
33d6fd3b 36191 _swigc__p_wxHeaderButtonParams,
1bd55598
RD
36192 _swigc__p_wxICOHandler,
36193 _swigc__p_wxIcon,
36194 _swigc__p_wxIconBundle,
36195 _swigc__p_wxIconLocation,
36196 _swigc__p_wxIconizeEvent,
36197 _swigc__p_wxIdleEvent,
36198 _swigc__p_wxImage,
36199 _swigc__p_wxImageHandler,
36200 _swigc__p_wxImageList,
36201 _swigc__p_wxIndividualLayoutConstraint,
36202 _swigc__p_wxInitDialogEvent,
36203 _swigc__p_wxJPEGHandler,
36204 _swigc__p_wxKeyEvent,
36205 _swigc__p_wxLanguageInfo,
36206 _swigc__p_wxLayoutConstraints,
36207 _swigc__p_wxLocale,
36208 _swigc__p_wxMask,
36209 _swigc__p_wxMaximizeEvent,
36210 _swigc__p_wxMemoryDC,
36211 _swigc__p_wxMenu,
36212 _swigc__p_wxMenuBar,
36213 _swigc__p_wxMenuEvent,
36214 _swigc__p_wxMenuItem,
36215 _swigc__p_wxMetaFile,
36216 _swigc__p_wxMetaFileDC,
36217 _swigc__p_wxMirrorDC,
36218 _swigc__p_wxMouseCaptureChangedEvent,
34e0a3bb 36219 _swigc__p_wxMouseCaptureLostEvent,
1bd55598
RD
36220 _swigc__p_wxMouseEvent,
36221 _swigc__p_wxMoveEvent,
36222 _swigc__p_wxNativeEncodingInfo,
36223 _swigc__p_wxNativeFontInfo,
fc46b7f3
RD
36224 _swigc__p_wxNativePixelData,
36225 _swigc__p_wxNativePixelData_Accessor,
1bd55598
RD
36226 _swigc__p_wxNavigationKeyEvent,
36227 _swigc__p_wxNcPaintEvent,
36228 _swigc__p_wxNotifyEvent,
36229 _swigc__p_wxObject,
b39fe951 36230 _swigc__p_wxOverlay,
1bd55598
RD
36231 _swigc__p_wxPCXHandler,
36232 _swigc__p_wxPNGHandler,
36233 _swigc__p_wxPNMHandler,
36234 _swigc__p_wxPaintDC,
36235 _swigc__p_wxPaintEvent,
36236 _swigc__p_wxPalette,
36237 _swigc__p_wxPaletteChangedEvent,
36238 _swigc__p_wxPaperSize,
36239 _swigc__p_wxPen,
36240 _swigc__p_wxPenList,
fc46b7f3 36241 _swigc__p_wxPixelDataBase,
1bd55598 36242 _swigc__p_wxPoint,
72ef6efb 36243 _swigc__p_wxPoint2D,
1bd55598
RD
36244 _swigc__p_wxPostScriptDC,
36245 _swigc__p_wxPrintData,
36246 _swigc__p_wxPrinterDC,
27e45892 36247 _swigc__p_wxPseudoDC,
1bd55598
RD
36248 _swigc__p_wxPyApp,
36249 _swigc__p_wxPyCommandEvent,
36250 _swigc__p_wxPyEvent,
36251 _swigc__p_wxPyFontEnumerator,
36252 _swigc__p_wxPyImageHandler,
fc46b7f3 36253 _swigc__p_wxPyLocale,
1bd55598
RD
36254 _swigc__p_wxPySizer,
36255 _swigc__p_wxPyValidator,
36256 _swigc__p_wxQueryNewPaletteEvent,
36257 _swigc__p_wxRect,
36258 _swigc__p_wxRegion,
36259 _swigc__p_wxRegionIterator,
36260 _swigc__p_wxRendererNative,
36261 _swigc__p_wxRendererVersion,
36262 _swigc__p_wxScreenDC,
36263 _swigc__p_wxScrollEvent,
36264 _swigc__p_wxScrollWinEvent,
36265 _swigc__p_wxSetCursorEvent,
36266 _swigc__p_wxShowEvent,
36267 _swigc__p_wxSize,
36268 _swigc__p_wxSizeEvent,
36269 _swigc__p_wxSizer,
36270 _swigc__p_wxSizerItem,
36271 _swigc__p_wxSplitterRenderParams,
36272 _swigc__p_wxStaticBoxSizer,
36273 _swigc__p_wxStdDialogButtonSizer,
da91cb0f 36274 _swigc__p_wxStockGDI,
1bd55598
RD
36275 _swigc__p_wxString,
36276 _swigc__p_wxSysColourChangedEvent,
36277 _swigc__p_wxTIFFHandler,
36278 _swigc__p_wxUpdateUIEvent,
36279 _swigc__p_wxValidator,
36280 _swigc__p_wxWindow,
36281 _swigc__p_wxWindowCreateEvent,
36282 _swigc__p_wxWindowDC,
36283 _swigc__p_wxWindowDestroyEvent,
36284 _swigc__p_wxXPMHandler,
36285};
36286
36287
36288/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
36289
36290static swig_const_info swig_const_table[] = {
36291{0, 0, 0, 0.0, 0, 0}};
36292
36293#ifdef __cplusplus
36294}
36295#endif
36296/* -----------------------------------------------------------------------------
36297 * Type initialization:
36298 * This problem is tough by the requirement that no dynamic
36299 * memory is used. Also, since swig_type_info structures store pointers to
36300 * swig_cast_info structures and swig_cast_info structures store pointers back
36301 * to swig_type_info structures, we need some lookup code at initialization.
36302 * The idea is that swig generates all the structures that are needed.
36303 * The runtime then collects these partially filled structures.
36304 * The SWIG_InitializeModule function takes these initial arrays out of
36305 * swig_module, and does all the lookup, filling in the swig_module.types
36306 * array with the correct data and linking the correct swig_cast_info
36307 * structures together.
36308 *
36309 * The generated swig_type_info structures are assigned staticly to an initial
36310 * array. We just loop though that array, and handle each type individually.
36311 * First we lookup if this type has been already loaded, and if so, use the
36312 * loaded structure instead of the generated one. Then we have to fill in the
36313 * cast linked list. The cast data is initially stored in something like a
36314 * two-dimensional array. Each row corresponds to a type (there are the same
36315 * number of rows as there are in the swig_type_initial array). Each entry in
36316 * a column is one of the swig_cast_info structures for that type.
36317 * The cast_initial array is actually an array of arrays, because each row has
36318 * a variable number of columns. So to actually build the cast linked list,
36319 * we find the array of casts associated with the type, and loop through it
36320 * adding the casts to the list. The one last trick we need to do is making
36321 * sure the type pointer in the swig_cast_info struct is correct.
36322 *
36323 * First off, we lookup the cast->type name to see if it is already loaded.
36324 * There are three cases to handle:
36325 * 1) If the cast->type has already been loaded AND the type we are adding
36326 * casting info to has not been loaded (it is in this module), THEN we
36327 * replace the cast->type pointer with the type pointer that has already
36328 * been loaded.
36329 * 2) If BOTH types (the one we are adding casting info to, and the
36330 * cast->type) are loaded, THEN the cast info has already been loaded by
36331 * the previous module so we just ignore it.
36332 * 3) Finally, if cast->type has not already been loaded, then we add that
36333 * swig_cast_info to the linked list (because the cast->type) pointer will
36334 * be correct.
36335 * ----------------------------------------------------------------------------- */
36336
36337#ifdef __cplusplus
36338extern "C" {
36339#if 0
36340} /* c-mode */
36341#endif
36342#endif
36343
36344#if 0
36345#define SWIGRUNTIME_DEBUG
36346#endif
36347
36348SWIGRUNTIME void
36349SWIG_InitializeModule(void *clientdata) {
36350 size_t i;
36351 swig_module_info *module_head;
36352 static int init_run = 0;
36353
36354 clientdata = clientdata;
36355
36356 if (init_run) return;
36357 init_run = 1;
36358
36359 /* Initialize the swig_module */
36360 swig_module.type_initial = swig_type_initial;
36361 swig_module.cast_initial = swig_cast_initial;
36362
36363 /* Try and load any already created modules */
36364 module_head = SWIG_GetModule(clientdata);
36365 if (module_head) {
36366 swig_module.next = module_head->next;
36367 module_head->next = &swig_module;
36368 } else {
36369 /* This is the first module loaded */
36370 swig_module.next = &swig_module;
36371 SWIG_SetModule(clientdata, &swig_module);
36372 }
36373
36374 /* Now work on filling in swig_module.types */
36375#ifdef SWIGRUNTIME_DEBUG
36376 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
36377#endif
36378 for (i = 0; i < swig_module.size; ++i) {
36379 swig_type_info *type = 0;
36380 swig_type_info *ret;
36381 swig_cast_info *cast;
36382
36383#ifdef SWIGRUNTIME_DEBUG
36384 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
36385#endif
36386
36387 /* if there is another module already loaded */
36388 if (swig_module.next != &swig_module) {
36389 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
be9b1dca 36390 }
1bd55598
RD
36391 if (type) {
36392 /* Overwrite clientdata field */
36393#ifdef SWIGRUNTIME_DEBUG
36394 printf("SWIG_InitializeModule: found type %s\n", type->name);
36395#endif
36396 if (swig_module.type_initial[i]->clientdata) {
36397 type->clientdata = swig_module.type_initial[i]->clientdata;
36398#ifdef SWIGRUNTIME_DEBUG
36399 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
36400#endif
36401 }
36402 } else {
36403 type = swig_module.type_initial[i];
be9b1dca 36404 }
1bd55598
RD
36405
36406 /* Insert casting types */
36407 cast = swig_module.cast_initial[i];
36408 while (cast->type) {
36409 /* Don't need to add information already in the list */
36410 ret = 0;
36411#ifdef SWIGRUNTIME_DEBUG
36412 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
36413#endif
36414 if (swig_module.next != &swig_module) {
36415 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
36416#ifdef SWIGRUNTIME_DEBUG
36417 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
36418#endif
36419 }
36420 if (ret) {
36421 if (type == swig_module.type_initial[i]) {
36422#ifdef SWIGRUNTIME_DEBUG
36423 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
36424#endif
36425 cast->type = ret;
36426 ret = 0;
36427 } else {
36428 /* Check for casting already in the list */
36429 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
36430#ifdef SWIGRUNTIME_DEBUG
36431 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
36432#endif
36433 if (!ocast) ret = 0;
36434 }
36435 }
36436
36437 if (!ret) {
36438#ifdef SWIGRUNTIME_DEBUG
36439 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
36440#endif
36441 if (type->cast) {
36442 type->cast->prev = cast;
36443 cast->next = type->cast;
36444 }
36445 type->cast = cast;
36446 }
36447 cast++;
be9b1dca 36448 }
1bd55598
RD
36449 /* Set entry in modules->types array equal to the type */
36450 swig_module.types[i] = type;
36451 }
36452 swig_module.types[i] = 0;
36453
36454#ifdef SWIGRUNTIME_DEBUG
36455 printf("**** SWIG_InitializeModule: Cast List ******\n");
36456 for (i = 0; i < swig_module.size; ++i) {
36457 int j = 0;
36458 swig_cast_info *cast = swig_module.cast_initial[i];
36459 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
36460 while (cast->type) {
36461 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
36462 cast++;
36463 ++j;
36464 }
36465 printf("---- Total casts: %d\n",j);
36466 }
36467 printf("**** SWIG_InitializeModule: Cast List ******\n");
36468#endif
36469}
36470
36471/* This function will propagate the clientdata field of type to
36472* any new swig_type_info structures that have been added into the list
36473* of equivalent types. It is like calling
36474* SWIG_TypeClientData(type, clientdata) a second time.
36475*/
36476SWIGRUNTIME void
36477SWIG_PropagateClientData(void) {
36478 size_t i;
36479 swig_cast_info *equiv;
36480 static int init_run = 0;
36481
36482 if (init_run) return;
36483 init_run = 1;
36484
36485 for (i = 0; i < swig_module.size; i++) {
36486 if (swig_module.types[i]->clientdata) {
36487 equiv = swig_module.types[i]->cast;
36488 while (equiv) {
36489 if (!equiv->converter) {
36490 if (equiv->type && !equiv->type->clientdata)
36491 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
36492 }
36493 equiv = equiv->next;
36494 }
be9b1dca 36495 }
1bd55598
RD
36496 }
36497}
36498
36499#ifdef __cplusplus
36500#if 0
36501{
36502 /* c-mode */
36503#endif
36504}
36505#endif
36506
36507
36508
36509#ifdef __cplusplus
36510extern "C" {
36511#endif
36512
36513 /* Python-specific SWIG API */
36514#define SWIG_newvarlink() SWIG_Python_newvarlink()
36515#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
36516#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
36517
36518 /* -----------------------------------------------------------------------------
36519 * global variable support code.
36520 * ----------------------------------------------------------------------------- */
36521
36522 typedef struct swig_globalvar {
36523 char *name; /* Name of global variable */
36524 PyObject *(*get_attr)(void); /* Return the current value */
36525 int (*set_attr)(PyObject *); /* Set the value */
36526 struct swig_globalvar *next;
36527 } swig_globalvar;
36528
36529 typedef struct swig_varlinkobject {
36530 PyObject_HEAD
36531 swig_globalvar *vars;
36532 } swig_varlinkobject;
36533
36534 SWIGINTERN PyObject *
36535 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
36536 return PyString_FromString("<Swig global variables>");
36537 }
36538
36539 SWIGINTERN PyObject *
36540 swig_varlink_str(swig_varlinkobject *v) {
36541 PyObject *str = PyString_FromString("(");
36542 swig_globalvar *var;
36543 for (var = v->vars; var; var=var->next) {
36544 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
36545 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
36546 }
36547 PyString_ConcatAndDel(&str,PyString_FromString(")"));
36548 return str;
36549 }
36550
36551 SWIGINTERN int
36552 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
36553 PyObject *str = swig_varlink_str(v);
36554 fprintf(fp,"Swig global variables ");
36555 fprintf(fp,"%s\n", PyString_AsString(str));
36556 Py_DECREF(str);
36557 return 0;
36558 }
36559
36560 SWIGINTERN void
36561 swig_varlink_dealloc(swig_varlinkobject *v) {
36562 swig_globalvar *var = v->vars;
36563 while (var) {
36564 swig_globalvar *n = var->next;
36565 free(var->name);
36566 free(var);
36567 var = n;
be9b1dca 36568 }
1bd55598
RD
36569 }
36570
36571 SWIGINTERN PyObject *
36572 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
36573 PyObject *res = NULL;
36574 swig_globalvar *var = v->vars;
36575 while (var) {
36576 if (strcmp(var->name,n) == 0) {
36577 res = (*var->get_attr)();
36578 break;
36579 }
36580 var = var->next;
be9b1dca 36581 }
1bd55598
RD
36582 if (res == NULL && !PyErr_Occurred()) {
36583 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 36584 }
1bd55598
RD
36585 return res;
36586 }
36587
36588 SWIGINTERN int
36589 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
36590 int res = 1;
36591 swig_globalvar *var = v->vars;
36592 while (var) {
36593 if (strcmp(var->name,n) == 0) {
36594 res = (*var->set_attr)(p);
36595 break;
36596 }
36597 var = var->next;
be9b1dca 36598 }
1bd55598
RD
36599 if (res == 1 && !PyErr_Occurred()) {
36600 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 36601 }
1bd55598
RD
36602 return res;
36603 }
36604
36605 SWIGINTERN PyTypeObject*
36606 swig_varlink_type(void) {
36607 static char varlink__doc__[] = "Swig var link object";
36608 static PyTypeObject varlink_type;
36609 static int type_init = 0;
36610 if (!type_init) {
36611 const PyTypeObject tmp
36612 = {
36613 PyObject_HEAD_INIT(NULL)
36614 0, /* Number of items in variable part (ob_size) */
36615 (char *)"swigvarlink", /* Type name (tp_name) */
36616 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
36617 0, /* Itemsize (tp_itemsize) */
36618 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
36619 (printfunc) swig_varlink_print, /* Print (tp_print) */
36620 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
36621 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
36622 0, /* tp_compare */
36623 (reprfunc) swig_varlink_repr, /* tp_repr */
36624 0, /* tp_as_number */
36625 0, /* tp_as_sequence */
36626 0, /* tp_as_mapping */
36627 0, /* tp_hash */
36628 0, /* tp_call */
36629 (reprfunc)swig_varlink_str, /* tp_str */
36630 0, /* tp_getattro */
36631 0, /* tp_setattro */
36632 0, /* tp_as_buffer */
36633 0, /* tp_flags */
36634 varlink__doc__, /* tp_doc */
36635 0, /* tp_traverse */
36636 0, /* tp_clear */
36637 0, /* tp_richcompare */
36638 0, /* tp_weaklistoffset */
36639#if PY_VERSION_HEX >= 0x02020000
36640 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
36641#endif
36642#if PY_VERSION_HEX >= 0x02030000
36643 0, /* tp_del */
36644#endif
36645#ifdef COUNT_ALLOCS
36646 0,0,0,0 /* tp_alloc -> tp_next */
36647#endif
36648 };
36649 varlink_type = tmp;
36650 varlink_type.ob_type = &PyType_Type;
36651 type_init = 1;
be9b1dca 36652 }
1bd55598
RD
36653 return &varlink_type;
36654 }
36655
36656 /* Create a variable linking object for use later */
36657 SWIGINTERN PyObject *
36658 SWIG_Python_newvarlink(void) {
36659 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
36660 if (result) {
36661 result->vars = 0;
36662 }
36663 return ((PyObject*) result);
36664 }
36665
36666 SWIGINTERN void
36667 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
36668 swig_varlinkobject *v = (swig_varlinkobject *) p;
36669 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
36670 if (gv) {
36671 size_t size = strlen(name)+1;
36672 gv->name = (char *)malloc(size);
36673 if (gv->name) {
36674 strncpy(gv->name,name,size);
36675 gv->get_attr = get_attr;
36676 gv->set_attr = set_attr;
36677 gv->next = v->vars;
36678 }
be9b1dca 36679 }
1bd55598
RD
36680 v->vars = gv;
36681 }
36682
36683 SWIGINTERN PyObject *
36684 SWIG_globals() {
36685 static PyObject *_SWIG_globals = 0;
36686 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
36687 return _SWIG_globals;
36688 }
36689
36690 /* -----------------------------------------------------------------------------
36691 * constants/methods manipulation
36692 * ----------------------------------------------------------------------------- */
36693
36694 /* Install Constants */
36695 SWIGINTERN void
36696 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
36697 PyObject *obj = 0;
36698 size_t i;
36699 for (i = 0; constants[i].type; ++i) {
36700 switch(constants[i].type) {
36701 case SWIG_PY_POINTER:
36702 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
36703 break;
36704 case SWIG_PY_BINARY:
36705 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
36706 break;
36707 default:
36708 obj = 0;
36709 break;
36710 }
36711 if (obj) {
36712 PyDict_SetItemString(d, constants[i].name, obj);
36713 Py_DECREF(obj);
36714 }
be9b1dca 36715 }
1bd55598
RD
36716 }
36717
36718 /* -----------------------------------------------------------------------------*/
36719 /* Fix SwigMethods to carry the callback ptrs when needed */
36720 /* -----------------------------------------------------------------------------*/
36721
36722 SWIGINTERN void
36723 SWIG_Python_FixMethods(PyMethodDef *methods,
36724 swig_const_info *const_table,
36725 swig_type_info **types,
36726 swig_type_info **types_initial) {
36727 size_t i;
36728 for (i = 0; methods[i].ml_name; ++i) {
3d6c9062 36729 const char *c = methods[i].ml_doc;
1bd55598
RD
36730 if (c && (c = strstr(c, "swig_ptr: "))) {
36731 int j;
36732 swig_const_info *ci = 0;
3d6c9062 36733 const char *name = c + 10;
1bd55598
RD
36734 for (j = 0; const_table[j].type; ++j) {
36735 if (strncmp(const_table[j].name, name,
36736 strlen(const_table[j].name)) == 0) {
36737 ci = &(const_table[j]);
36738 break;
36739 }
36740 }
36741 if (ci) {
36742 size_t shift = (ci->ptype) - types;
36743 swig_type_info *ty = types_initial[shift];
36744 size_t ldoc = (c - methods[i].ml_doc);
36745 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
36746 char *ndoc = (char*)malloc(ldoc + lptr + 10);
36747 if (ndoc) {
36748 char *buff = ndoc;
36749 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
36750 if (ptr) {
36751 strncpy(buff, methods[i].ml_doc, ldoc);
36752 buff += ldoc;
36753 strncpy(buff, "swig_ptr: ", 10);
36754 buff += 10;
36755 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
36756 methods[i].ml_doc = ndoc;
36757 }
36758 }
36759 }
36760 }
be9b1dca 36761 }
1bd55598
RD
36762 }
36763
36764#ifdef __cplusplus
36765}
36766#endif
36767
36768/* -----------------------------------------------------------------------------*
36769 * Partial Init method
36770 * -----------------------------------------------------------------------------*/
36771
36772#ifdef __cplusplus
36773extern "C"
36774#endif
36775SWIGEXPORT void SWIG_init(void) {
36776 PyObject *m, *d;
36777
36778 /* Fix SwigMethods to carry the callback ptrs when needed */
36779 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
36780
36781 m = Py_InitModule((char *) SWIG_name, SwigMethods);
36782 d = PyModule_GetDict(m);
36783
36784 SWIG_InitializeModule(0);
36785 SWIG_InstallConstants(d,swig_const_table);
36786
36787
2131d850
RD
36788 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
36789 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
36790 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
fc46b7f3
RD
36791 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
36792 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
1bd55598
RD
36793 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
36794 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
36795 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
36796 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
36797 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
36798 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
36799 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
36800 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
36801 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
36802 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
36803 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
36804 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
36805 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
36806 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
36807 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
36808 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
36809 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
36810 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
36811 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
36812 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
36813 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
36814 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
36815 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
36816 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
36817 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
36818 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
36819 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
36820 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
36821 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
36822 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
36823 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
36824 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
36825 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
36826 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
36827 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
36828 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
36829 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
36830 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
36831 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
36832 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
36833 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
36834 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
36835 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
36836 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
36837 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
36838 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
36839 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
36840 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
36841 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
36842 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
36843 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
36844 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
36845 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
36846 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
36847 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
36848 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
36849 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
36850 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
36851 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
36852 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
36853 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
36854 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
36855 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
36856 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
36857 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
36858 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
36859 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
36860 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
36861 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
36862 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
36863 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
36864 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
36865 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
36866 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
36867 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
36868 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
36869 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
36870 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
36871 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
36872 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
36873 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
36874 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
36875 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
36876 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
36877 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
36878 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
36879 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
36880 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
36881 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
36882 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
36883 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
36884 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
36885 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
36886 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
36887 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
36888 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
36889 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
36890 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
36891 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
36892 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
36893 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
36894 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
36895 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
36896 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
36897 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
36898 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
36899 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
36900 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
36901 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
36902 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
36903 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
36904 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
36905 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
36906 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
36907 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
36908 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
36909 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
36910 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
36911 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
36912 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
36913 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
36914 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
36915 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
36916 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
36917 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
36918 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
36919 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
36920
36921 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
36922
36923 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
36924 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
36925 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
36926 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
36927 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
36928 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
36929 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
36930 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
36931 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
36932 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
36933 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
36934 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
36935 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
36936 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
36937 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
36938 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
36939 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
36940 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
36941 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
36942 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
36943 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
36944 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
36945 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
36946 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
36947 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
36948 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
36949 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
36950 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
36951 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
36952 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
36953 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
36954 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
36955 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
36956 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
36957 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
36958 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
36959 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
36960 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
36961 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
36962 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
36963 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
36964 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
36965 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
36966 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
36967 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
36968 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
36969 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
36970 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
36971 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
36972 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
36973 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
36974 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
36975 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
36976 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
36977 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
36978 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
36979 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
36980 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
36981 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
36982 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
36983 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
36984 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
36985 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
36986 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
36987 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
36988 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
36989 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
36990 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
36991 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
36992 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
36993 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
36994 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
36995 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
36996 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
36997 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
36998 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
36999 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
37000 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
37001 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
37002 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
37003 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
37004 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
37005 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
37006 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
37007 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
37008 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
37009 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
37010 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
37011 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
37012 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
37013 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
37014 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
37015 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
37016 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
37017 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
37018 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
37019 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
37020 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
37021 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
37022 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
37023 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
37024 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
37025 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
37026 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
37027 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
37028 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
37029 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
37030 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
37031 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
37032 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
37033 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
37034 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
37035 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
37036 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
37037 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
37038 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
37039 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
37040 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
37041 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
37042 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
37043 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
37044 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
37045 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
37046 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
37047 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
37048 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
37049 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
37050 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
37051 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
37052 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
37053 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
37054 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
37055 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
37056 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
37057 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
37058 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
37059 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
37060 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
37061 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
37062 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
37063 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
37064 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
37065 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
37066 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
37067 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
37068 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
37069 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
37070 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
37071 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
37072 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
37073 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
37074 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
37075 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
37076 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
37077 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
37078 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
37079 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
37080 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
37081 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
37082 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
37083 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
37084 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
37085 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
37086 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
37087 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
37088 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
37089 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
37090 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
37091 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
37092 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
37093 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
37094 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
37095 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
37096 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
37097 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
37098 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
37099 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
37100 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
37101 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
37102 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
37103 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
37104 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
37105 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
37106 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
37107 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
37108 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
37109 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
37110 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
37111 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
37112 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
37113 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
37114 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
37115 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
37116 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
37117 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
37118 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
37119 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
37120 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
37121 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
37122 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
37123 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
37124 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
37125 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
37126 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
37127 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
37128 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
37129 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
37130 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
37131 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
37132 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
37133 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
37134 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
37135 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
37136 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
37137 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
37138 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
37139 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
37140 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
37141 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
37142 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
37143 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
37144 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
37145 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
37146 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
37147 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
37148 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
37149 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
37150 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
37151 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
37152 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
37153 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
37154 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
37155 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
37156 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
37157 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
37158 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
37159 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
37160 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
37161 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
37162 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
37163 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
37164 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
37165 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
37166 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
37167 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
37168 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
37169 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
37170 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
37171 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
37172 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
37173 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
37174 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
37175 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
37176 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
37177 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
da91cb0f
RD
37178 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
37179 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
37180 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
37181 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
37182 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
37183 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
37184 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
37185 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
37186 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
37187 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
37188 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
37189 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
37190 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
37191 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
37192 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
37193 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
37194 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
37195 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
37196 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
37197 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
37198 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
37199 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
37200 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
37201 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
37202 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
37203 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
37204 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
37205 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
37206 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
37207 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
37208 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
37209 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
37210 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
37211 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
37212 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
1bd55598 37213 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
1bd55598
RD
37214 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
37215 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
37216 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
37217 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
37218 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
37219 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
37220 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
37221 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
1bd55598
RD
37222 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
37223 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
37224 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
79df624a 37225 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
1bd55598
RD
37226 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
37227 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
37228 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
79df624a 37229 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
1bd55598
RD
37230 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
37231 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
37232 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
37233 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
37234 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
37235 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
37236 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
33d6fd3b
RD
37237 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
37238 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
37239 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
1bd55598
RD
37240 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
37241 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
37242
37243 // Work around a chicken/egg problem in drawlist.cpp
37244 wxPyDrawList_SetAPIPtr();
37245
d55e5bfc
RD
37246}
37247