]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/_gdi_wrap.cpp
fixed selection when using keyboard after JS' change broke it
[wxWidgets.git] / wxPython / src / mac / _gdi_wrap.cpp
CommitLineData
d55e5bfc
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
1bd55598 3 * Version 1.3.29
d55e5bfc
RD
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
1bd55598 12#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
d55e5bfc
RD
13
14#ifdef __cplusplus
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
36ed4f51 27};
d55e5bfc
RD
28#endif
29
1bd55598 30/* -----------------------------------------------------------------------------
32fe5131
RD
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
1bd55598 33 * ----------------------------------------------------------------------------- */
d55e5bfc 34
32fe5131
RD
35/* template workaround for compilers that cannot correctly implement the C++ standard */
36#ifndef SWIGTEMPLATEDISAMBIGUATOR
1bd55598
RD
37# if defined(__SUNPRO_CC)
38# if (__SUNPRO_CC <= 0x560)
39# define SWIGTEMPLATEDISAMBIGUATOR template
40# else
41# define SWIGTEMPLATEDISAMBIGUATOR
42# endif
43# else
44# define SWIGTEMPLATEDISAMBIGUATOR
45# endif
36ed4f51 46#endif
d55e5bfc 47
32fe5131
RD
48/* inline attribute */
49#ifndef SWIGINLINE
50# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51# define SWIGINLINE inline
52# else
53# define SWIGINLINE
54# endif
55#endif
56
57/* attribute recognised by some compilers to avoid 'unused' warnings */
58#ifndef SWIGUNUSED
1bd55598
RD
59# if defined(__GNUC__)
60# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61# define SWIGUNUSED __attribute__ ((__unused__))
62# else
63# define SWIGUNUSED
64# endif
65# elif defined(__ICC)
66# define SWIGUNUSED __attribute__ ((__unused__))
32fe5131
RD
67# else
68# define SWIGUNUSED
69# endif
70#endif
71
1bd55598
RD
72#ifndef SWIGUNUSEDPARM
73# ifdef __cplusplus
74# define SWIGUNUSEDPARM(p)
75# else
76# define SWIGUNUSEDPARM(p) p SWIGUNUSED
77# endif
78#endif
79
32fe5131
RD
80/* internal SWIG method */
81#ifndef SWIGINTERN
82# define SWIGINTERN static SWIGUNUSED
83#endif
84
85/* internal inline SWIG method */
86#ifndef SWIGINTERNINLINE
87# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88#endif
89
1bd55598
RD
90/* exporting methods */
91#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92# ifndef GCC_HASCLASSVISIBILITY
93# define GCC_HASCLASSVISIBILITY
94# endif
95#endif
96
32fe5131
RD
97#ifndef SWIGEXPORT
98# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99# if defined(STATIC_LINKED)
100# define SWIGEXPORT
101# else
102# define SWIGEXPORT __declspec(dllexport)
103# endif
104# else
1bd55598
RD
105# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106# define SWIGEXPORT __attribute__ ((visibility("default")))
107# else
108# define SWIGEXPORT
109# endif
32fe5131
RD
110# endif
111#endif
112
113/* calling conventions for Windows */
114#ifndef SWIGSTDCALL
115# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116# define SWIGSTDCALL __stdcall
117# else
118# define SWIGSTDCALL
119# endif
120#endif
121
1bd55598
RD
122/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124# define _CRT_SECURE_NO_DEPRECATE
125#endif
32fe5131 126
d55e5bfc 127
1bd55598 128/* Python.h has to appear first */
36ed4f51 129#include <Python.h>
d55e5bfc 130
1bd55598 131/* -----------------------------------------------------------------------------
36ed4f51 132 * swigrun.swg
d55e5bfc 133 *
1bd55598
RD
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
d55e5bfc 137
36ed4f51
RD
138/* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
32fe5131 140#define SWIG_RUNTIME_VERSION "2"
d55e5bfc 141
36ed4f51
RD
142/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143#ifdef SWIG_TYPE_TABLE
32fe5131
RD
144# define SWIG_QUOTE_STRING(x) #x
145# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
d55e5bfc 147#else
32fe5131 148# define SWIG_TYPE_TABLE_NAME
36ed4f51
RD
149#endif
150
151/*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158*/
32fe5131 159
36ed4f51 160#ifndef SWIGRUNTIME
32fe5131 161# define SWIGRUNTIME SWIGINTERN
36ed4f51 162#endif
32fe5131 163
36ed4f51 164#ifndef SWIGRUNTIMEINLINE
32fe5131 165# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
d55e5bfc
RD
166#endif
167
1bd55598
RD
168/* Generic buffer size */
169#ifndef SWIG_BUFFER_SIZE
170# define SWIG_BUFFER_SIZE 1024
171#endif
172
173/* Flags for pointer conversions */
174#define SWIG_POINTER_DISOWN 0x1
175
176/* Flags for new pointer objects */
177#define SWIG_POINTER_OWN 0x1
178
179
180/*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260#define SWIG_OK (0)
261#define SWIG_ERROR (-1)
262#define SWIG_IsOK(r) (r >= 0)
263#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265/* The CastRankLimit says how many bits are used for the cast rank */
266#define SWIG_CASTRANKLIMIT (1 << 8)
267/* The NewMask denotes the object was created (using new/malloc) */
268#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269/* The TmpMask is for in/out typemaps that use temporal objects */
270#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271/* Simple returning values */
272#define SWIG_BADOBJ (SWIG_ERROR)
273#define SWIG_OLDOBJ (SWIG_OK)
274#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276/* Check, add and del mask methods */
277#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285/* Cast-Rank Mode */
286#if defined(SWIG_CASTRANK_MODE)
287# ifndef SWIG_TypeRank
288# define SWIG_TypeRank unsigned long
289# endif
290# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291# define SWIG_MAXCASTRANK (2)
292# endif
293# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297}
298SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300}
301#else /* no cast-rank mode */
302# define SWIG_AddCast
303# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304#endif
305
306
307
308
32fe5131
RD
309#include <string.h>
310
d55e5bfc
RD
311#ifdef __cplusplus
312extern "C" {
313#endif
314
315typedef void *(*swig_converter_func)(void *);
316typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
32fe5131 318/* Structure to store inforomation on one type */
d55e5bfc 319typedef struct swig_type_info {
32fe5131
RD
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
1bd55598 325 int owndata; /* flag if the structure owns the clientdata */
d55e5bfc
RD
326} swig_type_info;
327
32fe5131
RD
328/* Structure to store a type and conversion function used for casting */
329typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334} swig_cast_info;
335
336/* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346} swig_module_info;
347
36ed4f51
RD
348/*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354*/
355SWIGRUNTIME int
356SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
1bd55598 361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
36ed4f51
RD
362 }
363 return (l1 - f1) - (l2 - f2);
364}
365
366/*
367 Check type equivalence in a name list like <name1>|<name2>|...
32fe5131 368 Return 0 if not equal, 1 if equal
36ed4f51
RD
369*/
370SWIGRUNTIME int
371SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
32fe5131 379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
36ed4f51
RD
380 if (*ne) ++ne;
381 }
382 return equiv;
383}
384
385/*
32fe5131
RD
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
36ed4f51 388*/
32fe5131
RD
389SWIGRUNTIME int
390SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
36ed4f51 397 }
32fe5131
RD
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
36ed4f51 400 }
32fe5131 401 return equiv;
36ed4f51
RD
402}
403
32fe5131
RD
404
405/* think of this as a c++ template<> or a scheme macro */
406#define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
36ed4f51
RD
427/*
428 Check the typename
429*/
32fe5131 430SWIGRUNTIME swig_cast_info *
36ed4f51 431SWIG_TypeCheck(const char *c, swig_type_info *ty) {
32fe5131
RD
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433}
434
435/* Same as previous function, except strcmp is replaced with a pointer comparison */
436SWIGRUNTIME swig_cast_info *
437SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
36ed4f51
RD
439}
440
441/*
442 Cast a pointer up an inheritance hierarchy
443*/
444SWIGRUNTIMEINLINE void *
32fe5131 445SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
36ed4f51
RD
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447}
448
449/*
450 Dynamic pointer casting. Down an inheritance hierarchy
451*/
452SWIGRUNTIME swig_type_info *
453SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461}
462
463/*
464 Return the name associated with this type
465*/
466SWIGRUNTIMEINLINE const char *
467SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469}
470
471/*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474*/
475SWIGRUNTIME const char *
476SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
1bd55598 481 if (!type) return NULL;
36ed4f51
RD
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491}
492
36ed4f51
RD
493/*
494 Set the clientdata field for a type
495*/
496SWIGRUNTIME void
32fe5131
RD
497SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
36ed4f51
RD
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
32fe5131
RD
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
36ed4f51 507 }
32fe5131
RD
508 }
509 cast = cast->next;
510 }
511}
1bd55598
RD
512SWIGRUNTIME void
513SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516}
517
32fe5131
RD
518/*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525*/
526SWIGRUNTIME swig_type_info *
527SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
36ed4f51 556 }
32fe5131
RD
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560}
561
562/*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570*/
571SWIGRUNTIME swig_type_info *
572SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
36ed4f51 591 }
32fe5131
RD
592
593 /* neither found a match */
594 return 0;
36ed4f51
RD
595}
596
597/*
598 Pack binary data into a string
599*/
600SWIGRUNTIME char *
601SWIG_PackData(char *c, void *ptr, size_t sz) {
32fe5131
RD
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
36ed4f51 605 for (; u != eu; ++u) {
32fe5131 606 register unsigned char uu = *u;
36ed4f51
RD
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611}
612
613/*
614 Unpack binary data from a string
615*/
616SWIGRUNTIME const char *
617SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
32fe5131 619 register const unsigned char *eu = u + sz;
36ed4f51 620 for (; u != eu; ++u) {
32fe5131 621 register char d = *(c++);
1bd55598 622 register unsigned char uu;
36ed4f51
RD
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639}
640
36ed4f51
RD
641/*
642 Pack 'void *' into a string buffer.
643*/
644SWIGRUNTIME char *
645SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653}
654
655SWIGRUNTIME const char *
656SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666}
667
668SWIGRUNTIME char *
669SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681}
d55e5bfc 682
36ed4f51
RD
683SWIGRUNTIME const char *
684SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694}
d55e5bfc
RD
695
696#ifdef __cplusplus
697}
698#endif
699
1bd55598
RD
700/* Errors in SWIG */
701#define SWIG_UnknownError -1
702#define SWIG_IOError -2
703#define SWIG_RuntimeError -3
704#define SWIG_IndexError -4
705#define SWIG_TypeError -5
706#define SWIG_DivisionByZero -6
707#define SWIG_OverflowError -7
708#define SWIG_SyntaxError -8
709#define SWIG_ValueError -9
710#define SWIG_SystemError -10
711#define SWIG_AttributeError -11
712#define SWIG_MemoryError -12
713#define SWIG_NullReferenceError -13
d55e5bfc 714
1bd55598
RD
715
716
717/* Python.h has to appear first */
718#include <Python.h>
719
720/* Add PyOS_snprintf for old Pythons */
721#if PY_VERSION_HEX < 0x02020000
722# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723# define PyOS_snprintf _snprintf
724# else
725# define PyOS_snprintf snprintf
726# endif
727#endif
728
729/* A crude PyString_FromFormat implementation for old Pythons */
730#if PY_VERSION_HEX < 0x02020000
731
732#ifndef SWIG_PYBUFFER_SIZE
733# define SWIG_PYBUFFER_SIZE 1024
734#endif
735
736static PyObject *
737PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745}
746#endif
747
748/* Add PyObject_Del for old Pythons */
749#if PY_VERSION_HEX < 0x01060000
750# define PyObject_Del(op) PyMem_DEL((op))
751#endif
752#ifndef PyObject_DEL
753# define PyObject_DEL PyObject_Del
754#endif
755
756/* A crude PyExc_StopIteration exception for old Pythons */
757#if PY_VERSION_HEX < 0x02020000
758# ifndef PyExc_StopIteration
759# define PyExc_StopIteration PyExc_RuntimeError
760# endif
761# ifndef PyObject_GenericGetAttr
762# define PyObject_GenericGetAttr 0
763# endif
36ed4f51 764#endif
1bd55598
RD
765/* Py_NotImplemented is defined in 2.1 and up. */
766#if PY_VERSION_HEX < 0x02010000
767# ifndef Py_NotImplemented
768# define Py_NotImplemented PyExc_RuntimeError
769# endif
770#endif
771
772
773/* A crude PyString_AsStringAndSize implementation for old Pythons */
774#if PY_VERSION_HEX < 0x02010000
775# ifndef PyString_AsStringAndSize
776# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777# endif
778#endif
779
780/* PySequence_Size for old Pythons */
781#if PY_VERSION_HEX < 0x02000000
782# ifndef PySequence_Size
783# define PySequence_Size PySequence_Length
784# endif
785#endif
786
787
788/* PyBool_FromLong for old Pythons */
789#if PY_VERSION_HEX < 0x02030000
790static
791PyObject *PyBool_FromLong(long ok)
792{
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796}
797#endif
798
c370783e 799
36ed4f51 800/* -----------------------------------------------------------------------------
1bd55598 801 * error manipulation
36ed4f51 802 * ----------------------------------------------------------------------------- */
d55e5bfc 803
1bd55598
RD
804SWIGRUNTIME PyObject*
805SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845}
d55e5bfc 846
1bd55598
RD
847
848SWIGRUNTIME void
849SWIG_Python_AddErrorMsg(const char* mesg)
850{
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866}
867
868
869
870#if defined(SWIG_PYTHON_NO_THREADS)
871# if defined(SWIG_PYTHON_THREADS)
872# undef SWIG_PYTHON_THREADS
873# endif
874#endif
875#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877# if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878# define SWIG_PYTHON_USE_GIL
879# endif
880# endif
881# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882# ifndef SWIG_PYTHON_INITIALIZE_THREADS
883# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884# endif
885# ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906# else /* C code */
907# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911# endif
912# else /* Old thread way, not implemented, user must provide it */
913# if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914# define SWIG_PYTHON_INITIALIZE_THREADS
915# endif
916# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918# endif
919# if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920# define SWIG_PYTHON_THREAD_END_BLOCK
921# endif
922# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924# endif
925# if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926# define SWIG_PYTHON_THREAD_END_ALLOW
927# endif
928# endif
929#else /* No thread support */
930# define SWIG_PYTHON_INITIALIZE_THREADS
931# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932# define SWIG_PYTHON_THREAD_END_BLOCK
933# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934# define SWIG_PYTHON_THREAD_END_ALLOW
36ed4f51 935#endif
d55e5bfc 936
1bd55598
RD
937/* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
36ed4f51 940
1bd55598
RD
941#ifdef __cplusplus
942extern "C" {
943#if 0
944} /* cc-mode */
945#endif
946#endif
36ed4f51
RD
947
948/* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
d55e5bfc 951
36ed4f51 952/* Constant Types */
36ed4f51
RD
953#define SWIG_PY_POINTER 4
954#define SWIG_PY_BINARY 5
955
956/* Constant information structure */
957typedef struct swig_const_info {
1bd55598
RD
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
36ed4f51 964} swig_const_info;
d55e5bfc 965
d55e5bfc 966#ifdef __cplusplus
1bd55598
RD
967#if 0
968{ /* cc-mode */
969#endif
36ed4f51
RD
970}
971#endif
d55e5bfc 972
d55e5bfc 973
1bd55598
RD
974/* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
36ed4f51
RD
978 * pyrun.swg
979 *
1bd55598
RD
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
36ed4f51 983 *
1bd55598 984 * ----------------------------------------------------------------------------- */
d55e5bfc 985
36ed4f51 986/* Common SWIG API */
d55e5bfc 987
4f89b6b7
RD
988#if PY_VERSION_HEX < 0x02050000
989typedef int Py_ssize_t;
990#endif
991
1bd55598
RD
992/* for raw pointers */
993#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999#define swig_owntype int
d55e5bfc 1000
1bd55598
RD
1001/* for raw packed data */
1002#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
d55e5bfc 1004
1bd55598
RD
1005/* for class or struct pointers */
1006#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
d55e5bfc 1008
1bd55598
RD
1009/* for C or C++ function pointers */
1010#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
d55e5bfc 1012
1bd55598
RD
1013/* for C++ member pointers, ie, member methods */
1014#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
32fe5131 1016
c370783e 1017
1bd55598 1018/* Runtime API */
d55e5bfc 1019
1bd55598
RD
1020#define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022#define SWIG_NewClientData(obj) PySwigClientData_New(obj)
32fe5131 1023
1bd55598
RD
1024#define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028#define SWIG_fail goto fail
32fe5131 1029
d55e5bfc 1030
1bd55598 1031/* Runtime API implementation */
c370783e 1032
1bd55598 1033/* Error manipulation */
c370783e 1034
1bd55598
RD
1035SWIGINTERN void
1036SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
c370783e 1041}
d55e5bfc 1042
1bd55598
RD
1043SWIGINTERN void
1044SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
c370783e 1048}
d55e5bfc 1049
1bd55598 1050#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
32fe5131 1051
1bd55598 1052/* Set a constant value */
d55e5bfc 1053
1bd55598
RD
1054SWIGINTERN void
1055SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
d55e5bfc
RD
1058}
1059
1bd55598 1060/* Append a value to the result obj */
d55e5bfc 1061
1bd55598
RD
1062SWIGINTERN PyObject*
1063SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080#else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
36ed4f51 1088 } else {
1bd55598
RD
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
36ed4f51 1100 }
1bd55598
RD
1101 return result;
1102#endif
36ed4f51 1103}
c370783e 1104
1bd55598 1105/* Unpack the argument tuple */
d55e5bfc 1106
1bd55598
RD
1107SWIGINTERN int
1108SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109{
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143}
1144
1145/* A functor is a function object with one single object argument */
1146#if PY_VERSION_HEX >= 0x02020000
1147#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148#else
1149#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150#endif
1151
1152/*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155*/
1156#ifdef __cplusplus
1157#define SWIG_STATIC_POINTER(var) var
1158#else
1159#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160#endif
1161
1162/* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166/* Flags for new pointer objects */
1167#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172#ifdef __cplusplus
1173extern "C" {
1174#if 0
1175} /* cc-mode */
1176#endif
1177#endif
1178
1179/* How to access Py_None */
1180#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181# ifndef SWIG_PYTHON_NO_BUILD_NONE
1182# ifndef SWIG_PYTHON_BUILD_NONE
1183# define SWIG_PYTHON_BUILD_NONE
1184# endif
1185# endif
1186#endif
1187
1188#ifdef SWIG_PYTHON_BUILD_NONE
1189# ifdef Py_None
1190# undef Py_None
1191# define Py_None SWIG_Py_None()
1192# endif
1193SWIGRUNTIMEINLINE PyObject *
1194_SWIG_Py_None(void)
1195{
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199}
1200SWIGRUNTIME PyObject *
1201SWIG_Py_None(void)
1202{
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205}
1206#endif
1207
1208/* The python void return value */
1209
1210SWIGRUNTIMEINLINE PyObject *
1211SWIG_Py_Void(void)
1212{
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216}
1217
1218/* PySwigClientData */
1219
1220typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227} PySwigClientData;
1228
1229SWIGRUNTIMEINLINE int
1230SWIG_Python_CheckImplicit(swig_type_info *ty)
1231{
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234}
1235
1236SWIGRUNTIMEINLINE PyObject *
1237SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241}
1242
1243
1244SWIGRUNTIME PySwigClientData *
1245PySwigClientData_New(PyObject* obj)
1246{
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260#if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262#else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264#endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284#ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286#else
1287 data->delargs = 0;
1288#endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295}
1296
1297SWIGRUNTIME void
1298PySwigClientData_Del(PySwigClientData* data)
1299{
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303}
1304
1305/* =============== PySwigObject =====================*/
1306
1307typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313} PySwigObject;
1314
1315SWIGRUNTIME PyObject *
1316PySwigObject_long(PySwigObject *v)
1317{
1318 return PyLong_FromVoidPtr(v->ptr);
1319}
1320
1321SWIGRUNTIME PyObject *
1322PySwigObject_format(const char* fmt, PySwigObject *v)
1323{
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337}
1338
1339SWIGRUNTIME PyObject *
1340PySwigObject_oct(PySwigObject *v)
1341{
1342 return PySwigObject_format("%o",v);
1343}
1344
1345SWIGRUNTIME PyObject *
1346PySwigObject_hex(PySwigObject *v)
1347{
1348 return PySwigObject_format("%x",v);
1349}
1350
1351SWIGRUNTIME PyObject *
1352#ifdef METH_NOARGS
1353PySwigObject_repr(PySwigObject *v)
1354#else
1355PySwigObject_repr(PySwigObject *v, PyObject *args)
1356#endif
1357{
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363#ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365#else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367#endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371}
1372
1373SWIGRUNTIME int
1374PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375{
1376#ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378#else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380#endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388}
1389
1390SWIGRUNTIME PyObject *
1391PySwigObject_str(PySwigObject *v)
1392{
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396}
1397
1398SWIGRUNTIME int
1399PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400{
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404}
1405
1406SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408SWIGRUNTIME PyTypeObject*
1409PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412}
1413
1414SWIGRUNTIMEINLINE int
1415PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418}
1419
1420SWIGRUNTIME PyObject *
1421PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423SWIGRUNTIME void
1424PySwigObject_dealloc(PyObject *v)
1425{
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450#endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455}
1456
1457SWIGRUNTIME PyObject*
1458PySwigObject_append(PyObject* v, PyObject* next)
1459{
1460 PySwigObject *sobj = (PySwigObject *) v;
1461#ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465#endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472}
1473
1474SWIGRUNTIME PyObject*
1475#ifdef METH_NOARGS
1476PySwigObject_next(PyObject* v)
1477#else
1478PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479#endif
1480{
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488}
1489
1490SWIGINTERN PyObject*
1491#ifdef METH_NOARGS
1492PySwigObject_disown(PyObject *v)
1493#else
1494PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495#endif
1496{
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500}
1501
1502SWIGINTERN PyObject*
1503#ifdef METH_NOARGS
1504PySwigObject_acquire(PyObject *v)
1505#else
1506PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507#endif
1508{
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512}
1513
1514SWIGINTERN PyObject*
1515PySwigObject_own(PyObject *v, PyObject *args)
1516{
1517 PyObject *val = 0;
1518#if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520#else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522#endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531#ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537#else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543#endif
1544 }
1545 return obj;
1546 }
1547}
1548
1549#ifdef METH_O
1550static PyMethodDef
1551swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559};
1560#else
1561static PyMethodDef
1562swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570};
1571#endif
1572
1573#if PY_VERSION_HEX < 0x02020000
1574SWIGINTERN PyObject *
1575PySwigObject_getattr(PySwigObject *sobj,char *name)
1576{
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578}
1579#endif
1580
1581SWIGRUNTIME PyTypeObject*
1582_PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
36ed4f51
RD
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
32fe5131 1609#if PY_VERSION_HEX >= 0x02020000
36ed4f51 1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
32fe5131
RD
1611#elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
36ed4f51
RD
1613#endif
1614 };
1615
1bd55598 1616 static PyTypeObject pyswigobject_type;
32fe5131 1617 static int type_init = 0;
36ed4f51 1618 if (!type_init) {
1bd55598
RD
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628#if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630#else
1631 (getattrfunc)0, /* tp_getattr */
36ed4f51 1632#endif
1bd55598
RD
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
36ed4f51 1651#if PY_VERSION_HEX >= 0x02020000
1bd55598
RD
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
36ed4f51
RD
1672#endif
1673#if PY_VERSION_HEX >= 0x02030000
1bd55598 1674 0, /* tp_del */
36ed4f51
RD
1675#endif
1676#ifdef COUNT_ALLOCS
1bd55598 1677 0,0,0,0 /* tp_alloc -> tp_next */
36ed4f51 1678#endif
1bd55598 1679 };
32fe5131 1680 pyswigobject_type = tmp;
1bd55598 1681 pyswigobject_type.ob_type = &PyType_Type;
36ed4f51 1682 type_init = 1;
d55e5bfc 1683 }
32fe5131 1684 return &pyswigobject_type;
d55e5bfc
RD
1685}
1686
36ed4f51 1687SWIGRUNTIME PyObject *
1bd55598 1688PySwigObject_New(void *ptr, swig_type_info *ty, int own)
36ed4f51 1689{
1bd55598
RD
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
32fe5131 1696 }
1bd55598 1697 return (PyObject *)sobj;
36ed4f51 1698}
c370783e 1699
36ed4f51
RD
1700/* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1bd55598 1707 swig_type_info *ty;
36ed4f51
RD
1708 size_t size;
1709} PySwigPacked;
1710
1711SWIGRUNTIME int
1bd55598 1712PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
c370783e 1713{
36ed4f51
RD
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
d55e5bfc 1719 }
1bd55598 1720 fputs(v->ty->name,fp);
36ed4f51
RD
1721 fputs(">", fp);
1722 return 0;
c370783e 1723}
c370783e 1724
36ed4f51
RD
1725SWIGRUNTIME PyObject *
1726PySwigPacked_repr(PySwigPacked *v)
c370783e 1727{
36ed4f51
RD
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1bd55598 1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
36ed4f51 1731 } else {
1bd55598 1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
36ed4f51 1733 }
d55e5bfc
RD
1734}
1735
36ed4f51
RD
1736SWIGRUNTIME PyObject *
1737PySwigPacked_str(PySwigPacked *v)
1738{
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1bd55598 1741 return PyString_FromFormat("%s%s", result, v->ty->name);
36ed4f51 1742 } else {
1bd55598 1743 return PyString_FromString(v->ty->name);
36ed4f51
RD
1744 }
1745}
d55e5bfc 1746
36ed4f51
RD
1747SWIGRUNTIME int
1748PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
d55e5bfc 1749{
1bd55598
RD
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
d55e5bfc
RD
1754}
1755
1bd55598 1756SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
d55e5bfc 1757
36ed4f51 1758SWIGRUNTIME PyTypeObject*
32fe5131 1759PySwigPacked_type(void) {
1bd55598
RD
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762}
1763
1764SWIGRUNTIMEINLINE int
1765PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768}
1769
1770SWIGRUNTIME void
1771PySwigPacked_dealloc(PyObject *v)
1772{
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778}
1779
1780SWIGRUNTIME PyTypeObject*
1781_PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814#if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
36ed4f51
RD
1835#endif
1836#if PY_VERSION_HEX >= 0x02030000
1bd55598 1837 0, /* tp_del */
36ed4f51
RD
1838#endif
1839#ifdef COUNT_ALLOCS
1bd55598 1840 0,0,0,0 /* tp_alloc -> tp_next */
36ed4f51 1841#endif
1bd55598 1842 };
32fe5131 1843 pyswigpacked_type = tmp;
1bd55598 1844 pyswigpacked_type.ob_type = &PyType_Type;
36ed4f51
RD
1845 type_init = 1;
1846 }
32fe5131 1847 return &pyswigpacked_type;
36ed4f51
RD
1848}
1849
1850SWIGRUNTIME PyObject *
1bd55598 1851PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
d55e5bfc 1852{
1bd55598
RD
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
36ed4f51 1855 void *pack = malloc(size);
32fe5131
RD
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1bd55598
RD
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
32fe5131 1864 }
d55e5bfc 1865 }
1bd55598 1866 return (PyObject *) sobj;
d55e5bfc
RD
1867}
1868
1bd55598 1869SWIGRUNTIME swig_type_info *
36ed4f51 1870PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
d55e5bfc 1871{
1bd55598
RD
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
36ed4f51 1880}
d55e5bfc 1881
36ed4f51 1882/* -----------------------------------------------------------------------------
1bd55598 1883 * pointers/data manipulation
36ed4f51 1884 * ----------------------------------------------------------------------------- */
d55e5bfc 1885
1bd55598
RD
1886SWIGRUNTIMEINLINE PyObject *
1887_SWIG_This(void)
1888{
1889 return PyString_FromString("this");
1890}
d6c14a4c 1891
1bd55598
RD
1892SWIGRUNTIME PyObject *
1893SWIG_This(void)
1894{
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897}
d55e5bfc 1898
1bd55598 1899/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
36ed4f51 1900
1bd55598
RD
1901SWIGRUNTIME PySwigObject *
1902SWIG_Python_GetSwigThis(PyObject *pyobj)
36ed4f51 1903{
1bd55598
RD
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917#ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922#endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
36ed4f51 1926 } else {
1bd55598
RD
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
36ed4f51 1929 }
36ed4f51 1930 }
1bd55598
RD
1931 }
1932#else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940#endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
c370783e 1947 }
d55e5bfc
RD
1948}
1949
1bd55598
RD
1950/* Acquire a pointer value */
1951
1952SWIGRUNTIME int
1953SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
36ed4f51 1961 }
1bd55598 1962 return 0;
36ed4f51 1963}
d55e5bfc 1964
1bd55598
RD
1965/* Convert a pointer value */
1966
36ed4f51 1967SWIGRUNTIME int
1bd55598
RD
1968SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
36ed4f51 1992 } else {
1bd55598
RD
1993 if (ptr) *ptr = vptr;
1994 break;
36ed4f51 1995 }
36ed4f51 1996 }
1bd55598
RD
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
d55e5bfc 2042 }
c370783e
RD
2043}
2044
1bd55598
RD
2045/* Convert a function ptr value */
2046
36ed4f51 2047SWIGRUNTIME int
1bd55598
RD
2048SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
36ed4f51 2051 } else {
1bd55598
RD
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
4f89b6b7 2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
1bd55598
RD
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
36ed4f51 2069 }
d55e5bfc
RD
2070}
2071
1bd55598 2072/* Convert a packed value value */
d55e5bfc 2073
36ed4f51 2074SWIGRUNTIME int
1bd55598
RD
2075SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
36ed4f51 2084 }
1bd55598
RD
2085 return SWIG_OK;
2086}
d55e5bfc 2087
1bd55598
RD
2088/* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
d55e5bfc 2091
1bd55598
RD
2092/*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095*/
d55e5bfc 2096
1bd55598
RD
2097SWIGRUNTIME PyObject*
2098SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099{
2100#if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
36ed4f51 2115 }
1bd55598
RD
2116#else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119#endif
36ed4f51 2120 }
1bd55598
RD
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
36ed4f51 2126 }
1bd55598
RD
2127 return inst;
2128#else
2129#if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136#else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
36ed4f51 2140 }
1bd55598
RD
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
36ed4f51 2147 }
1bd55598
RD
2148#ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150#endif
2151#ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153#endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156#endif
2157#endif
36ed4f51 2158}
d55e5bfc 2159
1bd55598
RD
2160SWIGRUNTIME void
2161SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162{
2163 PyObject *dict;
2164#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
36ed4f51 2175#endif
1bd55598
RD
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179}
d55e5bfc 2180
1bd55598
RD
2181
2182SWIGINTERN PyObject *
2183SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
36ed4f51 2191 } else {
1bd55598 2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
36ed4f51 2193 }
1bd55598 2194 return SWIG_Py_Void();
d55e5bfc 2195 }
1bd55598
RD
2196}
2197
2198/* Create a new pointer object */
36ed4f51 2199
36ed4f51 2200SWIGRUNTIME PyObject *
1bd55598 2201SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
36ed4f51 2202 if (!ptr) {
1bd55598
RD
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
36ed4f51 2213 }
36ed4f51 2214 }
1bd55598 2215 return robj;
36ed4f51 2216 }
c370783e
RD
2217}
2218
1bd55598
RD
2219/* Create a new packed object */
2220
2221SWIGRUNTIMEINLINE PyObject *
36ed4f51 2222SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
1bd55598 2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
d55e5bfc
RD
2224}
2225
36ed4f51
RD
2226/* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230#ifdef SWIG_LINK_RUNTIME
2231void *SWIG_ReturnGlobalTypeList(void *);
2232#endif
2233
32fe5131
RD
2234SWIGRUNTIME swig_module_info *
2235SWIG_Python_GetModule(void) {
36ed4f51
RD
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239#ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
d55e5bfc 2241#else
36ed4f51
RD
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
d55e5bfc 2248#endif
32fe5131
RD
2249 }
2250 return (swig_module_info *) type_pointer;
36ed4f51 2251}
d55e5bfc 2252
32fe5131
RD
2253#if PY_MAJOR_VERSION < 2
2254/* PyModule_AddObject function was introduced in Python 2.0. The following function
1bd55598 2255 is copied out of Python/modsupport.c in python version 2.3.4 */
32fe5131
RD
2256SWIGINTERN int
2257PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258{
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
1bd55598 2263 return SWIG_ERROR;
32fe5131
RD
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
1bd55598 2268 return SWIG_ERROR;
32fe5131
RD
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
1bd55598 2276 return SWIG_ERROR;
32fe5131
RD
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
1bd55598 2279 return SWIG_ERROR;
32fe5131 2280 Py_DECREF(o);
1bd55598 2281 return SWIG_OK;
36ed4f51 2282}
32fe5131 2283#endif
d55e5bfc 2284
1bd55598
RD
2285SWIGRUNTIME void
2286SWIG_Python_DestroyModule(void *vptr)
2287{
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299}
2300
32fe5131
RD
2301SWIGRUNTIME void
2302SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
1bd55598 2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
32fe5131
RD
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
1bd55598
RD
2310 } else {
2311 Py_XDECREF(pointer);
32fe5131
RD
2312 }
2313}
d55e5bfc 2314
1bd55598
RD
2315/* The python cached type query */
2316SWIGRUNTIME PyObject *
2317SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
36ed4f51 2320}
d55e5bfc 2321
1bd55598
RD
2322SWIGRUNTIME swig_type_info *
2323SWIG_Python_TypeQuery(const char *type)
2324{
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342}
2343
2344/*
2345 For backward compatibility only
2346*/
2347#define SWIG_POINTER_EXCEPTION 0
2348#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351SWIGRUNTIME int
2352SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353{
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374}
2375
2376SWIGRUNTIME int
2377SWIG_Python_ArgFail(int argnum)
2378{
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387}
2388
2389SWIGRUNTIMEINLINE const char *
2390PySwigObject_GetDesc(PyObject *self)
2391{
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395}
2396
2397SWIGRUNTIME void
2398SWIG_Python_TypeError(const char *type, PyObject *obj)
2399{
2400 if (type) {
2401#if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410#endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431}
2432
2433
2434/* Convert a pointer value, signal an exception on a type mismatch */
2435SWIGRUNTIME void *
2436SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446}
2447
2448
2449#ifdef __cplusplus
2450#if 0
2451{ /* cc-mode */
2452#endif
2453}
2454#endif
2455
2456
2457
2458#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464/* -------- TYPES TABLE (BEGIN) -------- */
2465
fc46b7f3
RD
2466#define SWIGTYPE_p_buffer swig_types[0]
2467#define SWIGTYPE_p_char swig_types[1]
2468#define SWIGTYPE_p_double swig_types[2]
2469#define SWIGTYPE_p_form_ops_t swig_types[3]
2470#define SWIGTYPE_p_int swig_types[4]
2471#define SWIGTYPE_p_unsigned_char swig_types[5]
2472#define SWIGTYPE_p_unsigned_int swig_types[6]
2473#define SWIGTYPE_p_unsigned_long swig_types[7]
0a27f394
RD
2474#define SWIGTYPE_p_void swig_types[8]
2475#define SWIGTYPE_p_wxANIHandler swig_types[9]
2476#define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477#define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478#define SWIGTYPE_p_wxAlphaPixelData swig_types[12]
2479#define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[13]
2480#define SWIGTYPE_p_wxAutoBufferedPaintDC swig_types[14]
2481#define SWIGTYPE_p_wxBMPHandler swig_types[15]
2482#define SWIGTYPE_p_wxBitmap swig_types[16]
2483#define SWIGTYPE_p_wxBoxSizer swig_types[17]
2484#define SWIGTYPE_p_wxBrush swig_types[18]
2485#define SWIGTYPE_p_wxBrushList swig_types[19]
2486#define SWIGTYPE_p_wxBufferedDC swig_types[20]
2487#define SWIGTYPE_p_wxBufferedPaintDC swig_types[21]
2488#define SWIGTYPE_p_wxCURHandler swig_types[22]
2489#define SWIGTYPE_p_wxChar swig_types[23]
2490#define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491#define SWIGTYPE_p_wxClientDC swig_types[25]
2492#define SWIGTYPE_p_wxClipboardTextEvent swig_types[26]
2493#define SWIGTYPE_p_wxCloseEvent swig_types[27]
2494#define SWIGTYPE_p_wxColor swig_types[28]
2495#define SWIGTYPE_p_wxColour swig_types[29]
2496#define SWIGTYPE_p_wxColourDatabase swig_types[30]
2497#define SWIGTYPE_p_wxCommandEvent swig_types[31]
2498#define SWIGTYPE_p_wxContextMenuEvent swig_types[32]
2499#define SWIGTYPE_p_wxControl swig_types[33]
2500#define SWIGTYPE_p_wxControlWithItems swig_types[34]
2501#define SWIGTYPE_p_wxCursor swig_types[35]
2502#define SWIGTYPE_p_wxDC swig_types[36]
2503#define SWIGTYPE_p_wxDCOverlay swig_types[37]
2504#define SWIGTYPE_p_wxDash swig_types[38]
2505#define SWIGTYPE_p_wxDateEvent swig_types[39]
2506#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[40]
2507#define SWIGTYPE_p_wxDropFilesEvent swig_types[41]
2508#define SWIGTYPE_p_wxDuplexMode swig_types[42]
2509#define SWIGTYPE_p_wxEffects swig_types[43]
2510#define SWIGTYPE_p_wxEncodingConverter swig_types[44]
2511#define SWIGTYPE_p_wxEraseEvent swig_types[45]
2512#define SWIGTYPE_p_wxEvent swig_types[46]
2513#define SWIGTYPE_p_wxEvtHandler swig_types[47]
2514#define SWIGTYPE_p_wxFSFile swig_types[48]
2515#define SWIGTYPE_p_wxFileSystem swig_types[49]
2516#define SWIGTYPE_p_wxFlexGridSizer swig_types[50]
2517#define SWIGTYPE_p_wxFocusEvent swig_types[51]
2518#define SWIGTYPE_p_wxFont swig_types[52]
2519#define SWIGTYPE_p_wxFontList swig_types[53]
2520#define SWIGTYPE_p_wxFontMapper swig_types[54]
2521#define SWIGTYPE_p_wxGBSizerItem swig_types[55]
2522#define SWIGTYPE_p_wxGCDC swig_types[56]
2523#define SWIGTYPE_p_wxGDIObjListBase swig_types[57]
2524#define SWIGTYPE_p_wxGDIObject swig_types[58]
2525#define SWIGTYPE_p_wxGIFHandler swig_types[59]
2526#define SWIGTYPE_p_wxGraphicsContext swig_types[60]
2527#define SWIGTYPE_p_wxGraphicsPath swig_types[61]
2528#define SWIGTYPE_p_wxGridBagSizer swig_types[62]
2529#define SWIGTYPE_p_wxGridSizer swig_types[63]
2530#define SWIGTYPE_p_wxHeaderButtonParams swig_types[64]
2531#define SWIGTYPE_p_wxICOHandler swig_types[65]
2532#define SWIGTYPE_p_wxIcon swig_types[66]
2533#define SWIGTYPE_p_wxIconBundle swig_types[67]
2534#define SWIGTYPE_p_wxIconLocation swig_types[68]
2535#define SWIGTYPE_p_wxIconizeEvent swig_types[69]
2536#define SWIGTYPE_p_wxIdleEvent swig_types[70]
2537#define SWIGTYPE_p_wxImage swig_types[71]
2538#define SWIGTYPE_p_wxImageHandler swig_types[72]
2539#define SWIGTYPE_p_wxImageList swig_types[73]
2540#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[74]
2541#define SWIGTYPE_p_wxInitDialogEvent swig_types[75]
2542#define SWIGTYPE_p_wxJPEGHandler swig_types[76]
2543#define SWIGTYPE_p_wxKeyEvent swig_types[77]
2544#define SWIGTYPE_p_wxLanguageInfo swig_types[78]
2545#define SWIGTYPE_p_wxLayoutConstraints swig_types[79]
2546#define SWIGTYPE_p_wxLocale swig_types[80]
2547#define SWIGTYPE_p_wxMask swig_types[81]
2548#define SWIGTYPE_p_wxMaximizeEvent swig_types[82]
2549#define SWIGTYPE_p_wxMemoryDC swig_types[83]
2550#define SWIGTYPE_p_wxMenu swig_types[84]
2551#define SWIGTYPE_p_wxMenuBar swig_types[85]
2552#define SWIGTYPE_p_wxMenuEvent swig_types[86]
2553#define SWIGTYPE_p_wxMenuItem swig_types[87]
2554#define SWIGTYPE_p_wxMetaFile swig_types[88]
2555#define SWIGTYPE_p_wxMetaFileDC swig_types[89]
2556#define SWIGTYPE_p_wxMirrorDC swig_types[90]
2557#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[91]
2558#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[92]
2559#define SWIGTYPE_p_wxMouseEvent swig_types[93]
2560#define SWIGTYPE_p_wxMoveEvent swig_types[94]
2561#define SWIGTYPE_p_wxNativeEncodingInfo swig_types[95]
2562#define SWIGTYPE_p_wxNativeFontInfo swig_types[96]
2563#define SWIGTYPE_p_wxNativePixelData swig_types[97]
2564#define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[98]
2565#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[99]
2566#define SWIGTYPE_p_wxNcPaintEvent swig_types[100]
2567#define SWIGTYPE_p_wxNotifyEvent swig_types[101]
2568#define SWIGTYPE_p_wxObject swig_types[102]
2569#define SWIGTYPE_p_wxOverlay swig_types[103]
2570#define SWIGTYPE_p_wxPCXHandler swig_types[104]
2571#define SWIGTYPE_p_wxPNGHandler swig_types[105]
2572#define SWIGTYPE_p_wxPNMHandler swig_types[106]
2573#define SWIGTYPE_p_wxPaintDC swig_types[107]
2574#define SWIGTYPE_p_wxPaintEvent swig_types[108]
2575#define SWIGTYPE_p_wxPalette swig_types[109]
2576#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[110]
2577#define SWIGTYPE_p_wxPaperSize swig_types[111]
2578#define SWIGTYPE_p_wxPen swig_types[112]
2579#define SWIGTYPE_p_wxPenList swig_types[113]
2580#define SWIGTYPE_p_wxPixelDataBase swig_types[114]
2581#define SWIGTYPE_p_wxPoint swig_types[115]
2582#define SWIGTYPE_p_wxPoint2D swig_types[116]
2583#define SWIGTYPE_p_wxPostScriptDC swig_types[117]
2584#define SWIGTYPE_p_wxPrintData swig_types[118]
2585#define SWIGTYPE_p_wxPrinterDC swig_types[119]
2586#define SWIGTYPE_p_wxPseudoDC swig_types[120]
2587#define SWIGTYPE_p_wxPyApp swig_types[121]
2588#define SWIGTYPE_p_wxPyCommandEvent swig_types[122]
2589#define SWIGTYPE_p_wxPyEvent swig_types[123]
2590#define SWIGTYPE_p_wxPyFontEnumerator swig_types[124]
2591#define SWIGTYPE_p_wxPyImageHandler swig_types[125]
2592#define SWIGTYPE_p_wxPyLocale swig_types[126]
2593#define SWIGTYPE_p_wxPySizer swig_types[127]
2594#define SWIGTYPE_p_wxPyValidator swig_types[128]
2595#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[129]
2596#define SWIGTYPE_p_wxRect swig_types[130]
2597#define SWIGTYPE_p_wxRegion swig_types[131]
2598#define SWIGTYPE_p_wxRegionIterator swig_types[132]
2599#define SWIGTYPE_p_wxRendererNative swig_types[133]
2600#define SWIGTYPE_p_wxRendererVersion swig_types[134]
2601#define SWIGTYPE_p_wxScreenDC swig_types[135]
2602#define SWIGTYPE_p_wxScrollEvent swig_types[136]
2603#define SWIGTYPE_p_wxScrollWinEvent swig_types[137]
2604#define SWIGTYPE_p_wxSetCursorEvent swig_types[138]
2605#define SWIGTYPE_p_wxShowEvent swig_types[139]
2606#define SWIGTYPE_p_wxSize swig_types[140]
2607#define SWIGTYPE_p_wxSizeEvent swig_types[141]
2608#define SWIGTYPE_p_wxSizer swig_types[142]
2609#define SWIGTYPE_p_wxSizerItem swig_types[143]
2610#define SWIGTYPE_p_wxSplitterRenderParams swig_types[144]
2611#define SWIGTYPE_p_wxStaticBoxSizer swig_types[145]
2612#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[146]
2613#define SWIGTYPE_p_wxStockGDI swig_types[147]
2614#define SWIGTYPE_p_wxString swig_types[148]
2615#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[149]
2616#define SWIGTYPE_p_wxTIFFHandler swig_types[150]
2617#define SWIGTYPE_p_wxUpdateUIEvent swig_types[151]
2618#define SWIGTYPE_p_wxValidator swig_types[152]
2619#define SWIGTYPE_p_wxWindow swig_types[153]
2620#define SWIGTYPE_p_wxWindowCreateEvent swig_types[154]
2621#define SWIGTYPE_p_wxWindowDC swig_types[155]
2622#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[156]
2623#define SWIGTYPE_p_wxXPMHandler swig_types[157]
2624static swig_type_info *swig_types[159];
2625static swig_module_info swig_module = {swig_types, 158, 0, 0, 0, 0};
32fe5131
RD
2626#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2627#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
d55e5bfc 2628
36ed4f51 2629/* -------- TYPES TABLE (END) -------- */
d55e5bfc 2630
1bd55598
RD
2631#if (PY_VERSION_HEX <= 0x02000000)
2632# if !defined(SWIG_PYTHON_CLASSIC)
2633# error "This python version requires to use swig with the '-classic' option"
2634# endif
2635#endif
2636#if (PY_VERSION_HEX <= 0x02020000)
2637# error "This python version requires to use swig with the '-nomodern' option"
2638#endif
2639#if (PY_VERSION_HEX <= 0x02020000)
2640# error "This python version requires to use swig with the '-nomodernargs' option"
2641#endif
2642#ifndef METH_O
2643# error "This python version requires to use swig with the '-nofastunpack' option"
2644#endif
d55e5bfc 2645
36ed4f51
RD
2646/*-----------------------------------------------
2647 @(target):= _gdi_.so
2648 ------------------------------------------------*/
2649#define SWIG_init init_gdi_
d55e5bfc 2650
36ed4f51 2651#define SWIG_name "_gdi_"
d55e5bfc 2652
1bd55598 2653#define SWIGVERSION 0x010329
d55e5bfc 2654
d55e5bfc 2655
1bd55598
RD
2656#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2657#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
d55e5bfc
RD
2658
2659
1bd55598
RD
2660#include <stdexcept>
2661
2662
2663namespace swig {
2664 class PyObject_ptr {
2665 protected:
2666 PyObject *_obj;
2667
2668 public:
2669 PyObject_ptr() :_obj(0)
2670 {
36ed4f51 2671 }
1bd55598
RD
2672
2673 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2674 {
2675 Py_XINCREF(_obj);
36ed4f51 2676 }
1bd55598
RD
2677
2678 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2679 {
2680 if (initial_ref) Py_XINCREF(_obj);
2681 }
2682
2683 PyObject_ptr & operator=(const PyObject_ptr& item)
2684 {
2685 Py_XINCREF(item._obj);
2686 Py_XDECREF(_obj);
2687 _obj = item._obj;
2688 return *this;
2689 }
2690
2691 ~PyObject_ptr()
2692 {
2693 Py_XDECREF(_obj);
2694 }
2695
2696 operator PyObject *() const
2697 {
2698 return _obj;
2699 }
2700
2701 PyObject *operator->() const
2702 {
2703 return _obj;
2704 }
2705 };
36ed4f51 2706}
d55e5bfc 2707
d55e5bfc 2708
1bd55598
RD
2709namespace swig {
2710 struct PyObject_var : PyObject_ptr {
2711 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2712
2713 PyObject_var & operator = (PyObject* obj)
2714 {
2715 Py_XDECREF(_obj);
2716 _obj = obj;
2717 return *this;
d55e5bfc 2718 }
1bd55598 2719 };
d55e5bfc
RD
2720}
2721
2722
1bd55598
RD
2723#include "wx/wxPython/wxPython.h"
2724#include "wx/wxPython/pyclasses.h"
2725
2726
2727 static const wxString wxPyEmptyString(wxEmptyString);
2728
2131d850
RD
2729 #define SWIG_From_long PyInt_FromLong
2730
2731
2732SWIGINTERNINLINE PyObject *
2733SWIG_From_int (int value)
2734{
2735 return SWIG_From_long (value);
2736}
2737
2738
1bd55598
RD
2739#include <limits.h>
2740#ifndef LLONG_MIN
2741# define LLONG_MIN LONG_LONG_MIN
2742#endif
2743#ifndef LLONG_MAX
2744# define LLONG_MAX LONG_LONG_MAX
2745#endif
2746#ifndef ULLONG_MAX
2747# define ULLONG_MAX ULONG_LONG_MAX
2748#endif
d55e5bfc
RD
2749
2750
da91cb0f
RD
2751SWIGINTERN int
2752SWIG_AsVal_long (PyObject* obj, long* val)
2753{
2754 if (PyNumber_Check(obj)) {
2755 if (val) *val = PyInt_AsLong(obj);
2756 return SWIG_OK;
2757 }
2758 return SWIG_TypeError;
2759}
2760
2761
36ed4f51 2762SWIGINTERN int
1bd55598 2763SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
36ed4f51
RD
2764{
2765 long v = 0;
2766 if (SWIG_AsVal_long(obj, &v) && v < 0) {
1bd55598 2767 return SWIG_TypeError;
36ed4f51
RD
2768 }
2769 else if (val)
2770 *val = (unsigned long)v;
1bd55598 2771 return SWIG_OK;
36ed4f51 2772}
d55e5bfc
RD
2773
2774
36ed4f51 2775SWIGINTERN int
1bd55598
RD
2776SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2777{
36ed4f51 2778 unsigned long v;
1bd55598
RD
2779 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2780 if (SWIG_IsOK(res)) {
2781 if ((v > UCHAR_MAX)) {
2782 return SWIG_OverflowError;
36ed4f51 2783 } else {
1bd55598 2784 if (val) *val = static_cast< unsigned char >(v);
36ed4f51 2785 }
1bd55598
RD
2786 }
2787 return res;
36ed4f51 2788}
d55e5bfc 2789
d55e5bfc 2790
1bd55598
RD
2791SWIGINTERNINLINE PyObject*
2792SWIG_From_unsigned_SS_long (unsigned long value)
36ed4f51 2793{
1bd55598
RD
2794 return (value > LONG_MAX) ?
2795 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
d55e5bfc
RD
2796}
2797
2798
1bd55598
RD
2799SWIGINTERNINLINE PyObject *
2800SWIG_From_unsigned_SS_char (unsigned char value)
2801{
2802 return SWIG_From_unsigned_SS_long (value);
2803}
d55e5bfc 2804
e9d6f3a4
RD
2805SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2806 wxColour temp, *obj = &temp;
2807 if ( other == Py_None ) return false;
2808 if ( ! wxColour_helper(other, &obj) ) {
2809 PyErr_Clear();
2810 return false;
2811 }
2812 return self->operator==(*obj);
2813 }
2814SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2815 wxColour temp, *obj = &temp;
2816 if ( other == Py_None ) return true;
2817 if ( ! wxColour_helper(other, &obj)) {
2818 PyErr_Clear();
2819 return true;
2820 }
2821 return self->operator!=(*obj);
2822 }
fc46b7f3
RD
2823
2824SWIGINTERN int
2825SWIG_AsVal_bool (PyObject *obj, bool *val)
2826{
2827 if (obj == Py_True) {
2828 if (val) *val = true;
2829 return SWIG_OK;
2830 } else if (obj == Py_False) {
2831 if (val) *val = false;
2832 return SWIG_OK;
2833 } else {
2834 long v = 0;
2835 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2836 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2837 return res;
2838 }
2839}
2840
2841SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2842 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
36ed4f51
RD
2843 int red = -1;
2844 int green = -1;
2845 int blue = -1;
fc46b7f3 2846 int alpha = wxALPHA_OPAQUE;
b39fe951 2847 if (self->IsOk()) {
36ed4f51
RD
2848 red = self->Red();
2849 green = self->Green();
2850 blue = self->Blue();
fc46b7f3 2851 alpha = self->Alpha();
36ed4f51
RD
2852 }
2853 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2854 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2855 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
fc46b7f3
RD
2856 if (includeAlpha)
2857 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
36ed4f51
RD
2858 return rv;
2859 }
1bd55598 2860SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
36ed4f51
RD
2861 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2862 }
d55e5bfc 2863
1bd55598
RD
2864SWIGINTERN int
2865SWIG_AsVal_int (PyObject * obj, int *val)
36ed4f51 2866{
1bd55598
RD
2867 long v;
2868 int res = SWIG_AsVal_long (obj, &v);
2869 if (SWIG_IsOK(res)) {
2870 if ((v < INT_MIN || v > INT_MAX)) {
2871 return SWIG_OverflowError;
2872 } else {
2873 if (val) *val = static_cast< int >(v);
2874 }
2875 }
2876 return res;
d55e5bfc
RD
2877}
2878
1bd55598 2879SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
36ed4f51
RD
2880 wxDash* dashes;
2881 int count = self->GetDashes(&dashes);
5a446332 2882 wxPyBlock_t blocked = wxPyBeginBlockThreads();
36ed4f51
RD
2883 PyObject* retval = PyList_New(0);
2884 for (int x=0; x<count; x++) {
2885 PyObject* pyint = PyInt_FromLong(dashes[x]);
2886 PyList_Append(retval, pyint);
2887 Py_DECREF(pyint);
2888 }
2889 wxPyEndBlockThreads(blocked);
2890 return retval;
2891 }
1bd55598 2892SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
5a446332 2893 wxPyBlock_t blocked = wxPyBeginBlockThreads();
36ed4f51
RD
2894 int size = PyList_Size(pyDashes);
2895 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
d55e5bfc 2896
36ed4f51
RD
2897 // black magic warning! The array of wxDashes needs to exist as
2898 // long as the pen does because wxPen does not copy the array. So
2899 // stick a copy in a Python string object and attach it to _self,
2900 // and then call SetDashes with a pointer to that array. Then
2901 // when the Python pen object is destroyed the array will be
2902 // cleaned up too.
2903 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2904 PyObject_SetAttrString(_self, "_dashes", strDashes);
2905
2906 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2907 delete [] dashes;
2908 Py_DECREF(strDashes);
2909 wxPyEndBlockThreads(blocked);
2910 }
1bd55598
RD
2911SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2912SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
d55e5bfc 2913
1bd55598
RD
2914SWIGINTERNINLINE PyObject *
2915SWIG_From_short (short value)
2916{
2917 return SWIG_From_long (value);
2918}
d55e5bfc
RD
2919
2920
36ed4f51 2921SWIGINTERN int
1bd55598
RD
2922SWIG_AsVal_short (PyObject * obj, short *val)
2923{
36ed4f51 2924 long v;
1bd55598
RD
2925 int res = SWIG_AsVal_long (obj, &v);
2926 if (SWIG_IsOK(res)) {
2927 if ((v < SHRT_MIN || v > SHRT_MAX)) {
2928 return SWIG_OverflowError;
36ed4f51 2929 } else {
1bd55598
RD
2930 if (val) *val = static_cast< short >(v);
2931 }
2932 }
2933 return res;
d55e5bfc
RD
2934}
2935
2936
fc46b7f3
RD
2937#include <wx/rawbmp.h>
2938
2939
36ed4f51 2940#include <wx/image.h>
d55e5bfc 2941
36ed4f51
RD
2942 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2943 char** cArray = NULL;
2944 int count;
d55e5bfc 2945
36ed4f51
RD
2946 if (!PyList_Check(listOfStrings)) {
2947 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2948 return NULL;
2949 }
2950 count = PyList_Size(listOfStrings);
2951 cArray = new char*[count];
d55e5bfc 2952
36ed4f51
RD
2953 for(int x=0; x<count; x++) {
2954 // TODO: Need some validation and error checking here
2955 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2956 }
2957 return cArray;
d55e5bfc 2958 }
d55e5bfc
RD
2959
2960
1bd55598 2961SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
fc46b7f3
RD
2962 char** cArray = NULL;
2963 wxBitmap* bmp;
2964
2965 cArray = ConvertListOfStrings(listOfStrings);
2966 if (! cArray)
2967 return NULL;
2968 bmp = new wxBitmap(cArray);
2969 delete [] cArray;
2970 return bmp;
2971 }
1bd55598 2972SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
fc46b7f3
RD
2973 char* buf;
2974 Py_ssize_t length;
2975 PyString_AsStringAndSize(bits, &buf, &length);
2976 return new wxBitmap(buf, width, height, depth);
2977 }
1bd55598 2978SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
36ed4f51
RD
2979 wxSize size(self->GetWidth(), self->GetHeight());
2980 return size;
2981 }
1bd55598 2982SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
36ed4f51
RD
2983 wxMask *mask = new wxMask(*self, colour);
2984 self->SetMask(mask);
2985 }
1bd55598 2986SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
36ed4f51
RD
2987 self->SetWidth(size.x);
2988 self->SetHeight(size.y);
2989 }
1bd55598
RD
2990SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2991SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
fc46b7f3
RD
2992
2993// See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2994// appears to me that the other platforms are already doing it, so I'll just
2995// automatically do it for wxMSW here.
2996#ifdef __WXMSW__
195a89b4
RD
2997#define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2998#define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
fc46b7f3
RD
2999#else
3000#define wxPy_premultiply(p, a) (p)
3001#define wxPy_unpremultiply(p, a) (p)
3002#endif
3003
3004
3005 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
3006 buffer data, int DATASIZE,
3007 buffer alpha, int ALPHASIZE)
3008 {
3009 if (DATASIZE != width*height*3) {
3010 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3011 return NULL;
3012 }
3013
3014 if (ALPHASIZE != width*height) {
3015 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3016 return NULL;
3017 }
3018
3019 wxBitmap* bmp = new wxBitmap(width, height, 32);
3020 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3021 if (! pixData) {
3022 // raise an exception...
3023 wxPyErr_SetString(PyExc_RuntimeError,
3024 "Failed to gain raw access to bitmap data.");
3025 return NULL;
3026 }
3027
3028 pixData.UseAlpha();
3029 wxAlphaPixelData::Iterator p(pixData);
3030 for (int y=0; y<height; y++) {
3031 wxAlphaPixelData::Iterator rowStart = p;
3032 for (int x=0; x<width; x++) {
3033 byte a = *(alpha++);
3034 p.Red() = wxPy_premultiply(*(data++), a);
3035 p.Green() = wxPy_premultiply(*(data++), a);
3036 p.Blue() = wxPy_premultiply(*(data++), a);
3037 p.Alpha() = a;
3038 ++p;
3039 }
3040 p = rowStart;
3041 p.OffsetY(pixData, 1);
3042 }
3043 return bmp;
3044 }
3045
3046 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3047 {
3048 if (DATASIZE != width*height*3) {
3049 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3050 return NULL;
3051 }
3052
3053 wxBitmap* bmp = new wxBitmap(width, height, 24);
3054 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3055 if (! pixData) {
3056 // raise an exception...
3057 wxPyErr_SetString(PyExc_RuntimeError,
3058 "Failed to gain raw access to bitmap data.");
3059 return NULL;
3060 }
3061
3062 wxNativePixelData::Iterator p(pixData);
3063 for (int y=0; y<height; y++) {
3064 wxNativePixelData::Iterator rowStart = p;
3065 for (int x=0; x<width; x++) {
3066 p.Red() = *(data++);
3067 p.Green() = *(data++);
3068 p.Blue() = *(data++);
3069 ++p;
3070 }
3071 p = rowStart;
3072 p.OffsetY(pixData, 1);
3073 }
3074 return bmp;
3075 }
3076
3077
3078 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3079 {
3080 if (DATASIZE != width*height*4) {
3081 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3082 return NULL;
3083 }
3084
3085 wxBitmap* bmp = new wxBitmap(width, height, 32);
3086 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3087 if (! pixData) {
3088 // raise an exception...
3089 wxPyErr_SetString(PyExc_RuntimeError,
3090 "Failed to gain raw access to bitmap data.");
3091 return NULL;
3092 }
3093
3094 pixData.UseAlpha();
3095 wxAlphaPixelData::Iterator p(pixData);
3096 for (int y=0; y<height; y++) {
3097 wxAlphaPixelData::Iterator rowStart = p;
3098 for (int x=0; x<width; x++) {
3099 byte a = data[3];
3100 p.Red() = wxPy_premultiply(*(data++), a);
3101 p.Green() = wxPy_premultiply(*(data++), a);
3102 p.Blue() = wxPy_premultiply(*(data++), a);
3103 p.Alpha() = a; data++;
3104 ++p;
3105 }
3106 p = rowStart;
3107 p.OffsetY(pixData, 1);
3108 }
3109 return bmp;
3110 }
3111
3112
3113 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3114
3115SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3116SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3117SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3118 self->Red() = red;
3119 self->Green() = green;
3120 self->Blue() = blue;
3121 }
3122SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3123 PyObject* rv = PyTuple_New(3);
3124 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3125 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3126 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3127 return rv;
3128 }
3129
3130 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3131
3132SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3133SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3134SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3135 self->Red() = wxPy_premultiply(red, alpha);
3136 self->Green() = wxPy_premultiply(green, alpha);
3137 self->Blue() = wxPy_premultiply(blue, alpha);
3138 self->Alpha() = alpha;
3139 }
3140SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3141 PyObject* rv = PyTuple_New(4);
3142 int red = self->Red();
3143 int green = self->Green();
3144 int blue = self->Blue();
3145 int alpha = self->Alpha();
3146
3147 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3148 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3149 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3150 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3151 return rv;
3152 }
1bd55598 3153SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
b39fe951 3154 if ( !colour.IsOk() )
36ed4f51
RD
3155 return new wxMask(bitmap, *wxBLACK);
3156 else
3157 return new wxMask(bitmap, colour);
3158 }
d55e5bfc 3159
36ed4f51 3160#include <wx/iconbndl.h>
d55e5bfc 3161
1bd55598 3162SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
36ed4f51
RD
3163 wxIcon* icon = new wxIcon();
3164 icon->CopyFromBitmap(bmp);
3165 return icon;
3166 }
1bd55598 3167SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
36ed4f51
RD
3168 char** cArray = NULL;
3169 wxIcon* icon;
d55e5bfc 3170
36ed4f51
RD
3171 cArray = ConvertListOfStrings(listOfStrings);
3172 if (! cArray)
3173 return NULL;
3174 icon = new wxIcon(cArray);
3175 delete [] cArray;
3176 return icon;
3177 }
1bd55598 3178SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
d55e5bfc
RD
3179
3180
d55e5bfc 3181
36ed4f51 3182 return new wxIconLocation(*filename);
d55e5bfc 3183
36ed4f51 3184 }
1bd55598 3185SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
d55e5bfc
RD
3186
3187
d55e5bfc 3188
36ed4f51 3189 // do nothing
d55e5bfc 3190
36ed4f51 3191 }
1bd55598 3192SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
5cbf236d
RD
3193
3194
d55e5bfc 3195
36ed4f51 3196 return -1;
d55e5bfc 3197
36ed4f51 3198 }
1bd55598 3199SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
36ed4f51 3200#ifdef __WXGTK__
fef4c27a
RD
3201 wxImage img(cursorName, type);
3202 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3203 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3204 return new wxCursor(img);
36ed4f51 3205#else
fef4c27a 3206 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
36ed4f51
RD
3207#endif
3208 }
d55e5bfc 3209
d55e5bfc 3210
1bd55598 3211SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
36ed4f51
RD
3212 (*self) ++;
3213 }
1bd55598 3214SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
36ed4f51
RD
3215 return self->operator bool();
3216 }
d55e5bfc 3217
36ed4f51
RD
3218#include <wx/fontutil.h>
3219#include <wx/fontmap.h>
3220#include <wx/fontenum.h>
d55e5bfc 3221
1bd55598 3222SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
36ed4f51
RD
3223 return self->ToString();
3224 }
d55e5bfc 3225
36ed4f51
RD
3226 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3227 static wxNativeEncodingInfo info;
3228 if ( wxGetNativeFontEncoding(encoding, &info) )
3229 return &info;
3230 else
3231 return NULL;
d55e5bfc 3232 }
d55e5bfc 3233
1bd55598
RD
3234
3235SWIGINTERNINLINE PyObject *
3236SWIG_From_size_t (size_t value)
3237{
3238 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3239}
3240
3241
3242SWIGINTERNINLINE int
3243SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3244{
3245 unsigned long v;
3246 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3247 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3248 return res;
3249}
3250
3251SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
36ed4f51
RD
3252 wxFontEncoding alt_enc;
3253 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3254 return PyInt_FromLong(alt_enc);
3255 else {
3256 Py_INCREF(Py_None);
3257 return Py_None;
3258 }
3259 }
1bd55598 3260SWIGINTERN wxFont *new_wxFont(wxString const &info){
a97cefba
RD
3261 wxNativeFontInfo nfi;
3262 nfi.FromString(info);
3263 return new wxFont(nfi);
3264 }
1bd55598 3265SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3266 return wxFont::New(pointSize, family, flags, face, encoding);
3267 }
1bd55598 3268SWIGINTERN 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
3269 return wxFontBase::New(pixelSize, family,
3270 style, weight, underlined,
3271 face, encoding);
3272 }
1bd55598 3273SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3274 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3275 }
1bd55598
RD
3276SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3277SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
d55e5bfc 3278
36ed4f51
RD
3279class wxPyFontEnumerator : public wxFontEnumerator {
3280public:
3281 wxPyFontEnumerator() {}
3282 ~wxPyFontEnumerator() {}
d55e5bfc 3283
36ed4f51
RD
3284 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3285 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
d55e5bfc 3286
36ed4f51
RD
3287 PYPRIVATE;
3288};
d55e5bfc 3289
36ed4f51
RD
3290IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3291IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
d55e5bfc 3292
36ed4f51 3293
704eda0c 3294SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
e9d6f3a4 3295 PyObject* ret;
704eda0c 3296 wxArrayString arr = wxFontEnumerator::GetEncodings();
e9d6f3a4 3297 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3298 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3299 wxPyEndBlockThreads(blocked);
3300 return ret;
36ed4f51 3301 }
704eda0c 3302SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
e9d6f3a4 3303 PyObject* ret;
704eda0c 3304 wxArrayString arr = wxFontEnumerator::GetFacenames();
e9d6f3a4 3305 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3306 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3307 wxPyEndBlockThreads(blocked);
3308 return ret;
36ed4f51
RD
3309 }
3310
3311#include <locale.h>
3312
1bd55598 3313SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
36ed4f51
RD
3314 wxLocale* loc;
3315 if (language == -1)
3316 loc = new wxLocale();
3317 else
3318 loc = new wxLocale(language, flags);
3319 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3320 // for the floating point conversions and such to work right.
3321#if PY_VERSION_HEX < 0x02040000
3322 setlocale(LC_NUMERIC, "C");
3323#endif
3324 return loc;
3325 }
1bd55598 3326SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
36ed4f51
RD
3327 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3328 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3329 // for the floating point conversions and such to work right.
3330#if PY_VERSION_HEX < 0x02040000
3331 setlocale(LC_NUMERIC, "C");
3332#endif
3333 return rc;
3334 }
1bd55598 3335SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
36ed4f51
RD
3336 bool rc = self->Init(language, flags);
3337 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3338 // for the floating point conversions and such to work right.
3339#if PY_VERSION_HEX < 0x02040000
3340 setlocale(LC_NUMERIC, "C");
3341#endif
3342 return rc;
3343 }
3344
fc46b7f3
RD
3345class wxPyLocale : public wxLocale
3346{
3347public:
3348 wxPyLocale();
3349
3350 wxPyLocale(const wxChar *szName, // name (for messages)
3351 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3352 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3353 bool bLoadDefault = true, // preload wxstd.mo?
3354 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3355
3356 wxPyLocale(int language, // wxLanguage id or custom language
3357 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3358
3359 ~wxPyLocale();
3360
3361 virtual const wxChar *GetString(const wxChar *szOrigString,
3362 const wxChar *szDomain = NULL) const;
3363 virtual const wxChar *GetString(const wxChar *szOrigString,
3364 const wxChar *szOrigString2, size_t n,
3365 const wxChar *szDomain = NULL) const;
3366
3367 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3368 const wxChar *szDomain = NULL) const;
3369 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3370 const wxChar *szOrigString2, size_t n,
3371 const wxChar *szDomain = NULL) const;
3372
3373 PYPRIVATE;
3374private:
3375 DECLARE_NO_COPY_CLASS(wxPyLocale)
3376};
3377
3378wxPyLocale::wxPyLocale() : wxLocale()
3379{
3380}
3381
3382wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3383 const wxChar *szShort, // dir prefix (for msg files)
3384 const wxChar *szLocale, // locale (for setlocale)
3385 bool bLoadDefault, // preload wxstd.mo?
3386 bool bConvertEncoding) // convert Win<->Unix if necessary?
3387 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3388{
3389}
3390
3391wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3392 int flags) : wxLocale(language, flags)
3393{
3394}
3395
3396wxPyLocale::~wxPyLocale()
3397{
3398}
3399
3400const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3401 const wxChar *szDomain) const
3402{
3403 wxChar *str = GetSingularString(szOrigString, szDomain);
3404 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3405}
3406
3407const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3408 const wxChar *szOrigString2, size_t n,
3409 const wxChar *szDomain) const
3410{
3411 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3412 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3413}
3414
3415wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3416 const wxChar *szDomain) const
3417{
3418 bool found;
3419 static wxString str;
3420 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.
3421 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3422 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3423 PyObject* param1 = wx2PyString(szOrigString);
3424 PyObject* param2 = wx2PyString(szDomain);
3425 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3426 Py_DECREF(param1);
3427 Py_DECREF(param2);
3428 if (ret) {
3429 str = Py2wxString(ret);
3430 Py_DECREF(ret);
3431 }
3432 }
3433 wxPyEndBlockThreads(blocked);
3434 return (found ? (wxChar*)str.c_str() : NULL);
3435}
3436
3437wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3438 const wxChar *szOrigString2, size_t n,
3439 const wxChar *szDomain) const
3440{
3441 bool found;
3442 static wxString str;
3443 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.
3444 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3445 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3446 PyObject* param1 = wx2PyString(szOrigString);
3447 PyObject* param2 = wx2PyString(szOrigString2);
3448 PyObject* param4 = wx2PyString(szDomain);
3449 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3450 Py_DECREF(param1);
3451 Py_DECREF(param2);
3452 Py_DECREF(param4);
3453 if( ret) {
3454 str = Py2wxString(ret);
3455 Py_DECREF(ret);
3456 }
3457 }
3458 wxPyEndBlockThreads(blocked);
3459 return (found ? (wxChar*)str.c_str() : NULL);
3460}
3461
3462SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3463 wxPyLocale* loc;
3464 if (language == -1)
3465 loc = new wxPyLocale();
3466 else
3467 loc = new wxPyLocale(language, flags);
3468 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3469 // for the floating point conversions and such to work right.
3470#if PY_VERSION_HEX < 0x02040000
3471 setlocale(LC_NUMERIC, "C");
3472#endif
3473 return loc;
3474 }
3475
36ed4f51
RD
3476#include "wx/wxPython/pydrawxxx.h"
3477
1bd55598 3478SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
36ed4f51
RD
3479 wxColour col;
3480 self->GetPixel(x, y, &col);
3481 return col;
3482 }
1bd55598 3483SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
36ed4f51
RD
3484 wxColour col;
3485 self->GetPixel(pt, &col);
3486 return col;
3487 }
3488
3489SWIGINTERN int
1bd55598 3490SWIG_AsVal_double (PyObject *obj, double* val)
36ed4f51
RD
3491{
3492 if (PyNumber_Check(obj)) {
3493 if (val) *val = PyFloat_AsDouble(obj);
1bd55598 3494 return SWIG_OK;
d55e5bfc 3495 }
1bd55598 3496 return SWIG_TypeError;
36ed4f51
RD
3497}
3498
1bd55598 3499SWIGINTERN 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
3500 wxRect rv;
3501 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3502 return rv;
3503 }
1bd55598 3504SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
36ed4f51
RD
3505 wxRect rect;
3506 self->GetClippingBox(rect);
3507 return rect;
3508 }
1bd55598 3509SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
36ed4f51
RD
3510 wxArrayInt widths;
3511 self->GetPartialTextExtents(text, widths);
3512 return widths;
3513 }
3514
1bd55598 3515 #define SWIG_From_double PyFloat_FromDouble
36ed4f51 3516
1bd55598 3517SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3518 self->SetLogicalOrigin(point.x, point.y);
3519 }
1bd55598 3520SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3521 self->SetDeviceOrigin(point.x, point.y);
3522 }
1bd55598 3523SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3524 self->CalcBoundingBox(point.x, point.y);
3525 }
1bd55598 3526SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3527 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3528 }
1bd55598 3529SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3530 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3531 }
1bd55598 3532SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3533 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3534 }
1bd55598 3535SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3536 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3537 }
1bd55598 3538SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3539 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3540 }
1bd55598 3541SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
36ed4f51
RD
3542 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3543 }
3544
3545static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3546 *x1 = dc->MinX();
3547 *y1 = dc->MinY();
3548 *x2 = dc->MaxX();
3549 *y2 = dc->MaxY();
3550}
3551
3552
3553#include <wx/dcbuffer.h>
3554
3555
3556#include <wx/dcps.h>
3557
3558
3559#include <wx/metafile.h>
3560
3561
72ef6efb
RD
3562#include <wx/graphics.h>
3563
3564
3565#if !wxUSE_GRAPHICS_CONTEXT
3566// C++ stub classes for platforms that don't have wxGraphicsContext yet.
3567
3568class wxGraphicsPath
3569{
3570public :
3571 wxGraphicsPath() {
3572 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3573 PyErr_SetString(PyExc_NotImplementedError,
3574 "wxGraphicsPath is not available on this platform.");
3575 wxPyEndBlockThreads(blocked);
3576 }
3577 virtual ~wxGraphicsPath() {}
3578
3579 void MoveToPoint( wxDouble, wxDouble ) {}
3580 void AddLineToPoint( wxDouble, wxDouble ) {}
3581 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
3582 void CloseSubpath() {}
3583 void GetCurrentPoint( wxDouble&, wxDouble&) {}
3584 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
3585
3586 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3587 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3588 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3589 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3590
3591 wxPoint2DDouble GetCurrentPoint() { return wxPoint2DDouble(0,0); }
3592 void MoveToPoint( const wxPoint2DDouble& ) {}
3593 void AddLineToPoint( const wxPoint2DDouble&) {}
3594 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3595 void AddArc( const wxPoint2DDouble&, wxDouble, wxDouble, wxDouble, bool) {}
3596};
3597
3598
3599class wxGraphicsContext
3600{
3601public:
3602 wxGraphicsContext() {
3603 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3604 PyErr_SetString(PyExc_NotImplementedError,
3605 "wxGraphicsContext is not available on this platform.");
3606 wxPyEndBlockThreads(blocked);
3607 }
3608 virtual ~wxGraphicsContext() {}
3609
3610 static wxGraphicsContext* Create( const wxWindowDC&) {
3611 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3612 PyErr_SetString(PyExc_NotImplementedError,
3613 "wxGraphicsPath is not available on this platform.");
3614 wxPyEndBlockThreads(blocked);
3615 return NULL;
3616 }
b876c1e4
RD
3617
3618 static wxGraphicsContext* CreateFromNative( void * ) {
3619 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3620 PyErr_SetString(PyExc_NotImplementedError,
3621 "wxGraphicsContext is not available on this platform.");
3622 wxPyEndBlockThreads(blocked);
3623 return NULL;
3624 }
3625
72ef6efb
RD
3626 wxGraphicsPath * CreatePath() { return NULL; }
3627 void PushState() {}
3628 void PopState() {}
3629 void Clip( const wxRegion & ) {}
b876c1e4
RD
3630 void Clip( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3631 void ResetClip() {}
3632 void * GetNativeContext() { return NULL; }
72ef6efb
RD
3633 void Translate( wxDouble , wxDouble ) {}
3634 void Scale( wxDouble , wxDouble ) {}
3635 void Rotate( wxDouble ) {}
3636 void SetPen( const wxPen & ) {}
3637 void SetBrush( const wxBrush & ) {}
3638 void SetLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3639 const wxColour&, const wxColour&) {}
3640 void SetRadialGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3641 const wxColour &, const wxColour &) {}
3642 void SetFont( const wxFont & ) {}
be68621e 3643 void SetTextColour( const wxColour & ) {}
72ef6efb
RD
3644 void StrokePath( const wxGraphicsPath * ) {}
3645 void FillPath( const wxGraphicsPath *, int ) {}
3646 void DrawPath( const wxGraphicsPath *, int ) {}
3647 void DrawText( const wxString &, wxDouble , wxDouble ) {}
3648 void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3649 void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3650 wxDouble *, wxDouble * ) const {}
3651 void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3652 void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3653 void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3654 void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3655 void StrokeLines( size_t , const wxPoint2DDouble *) {}
3656 void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3657 void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3658 void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3659 void DrawEllipse( wxDouble , wxDouble, wxDouble , wxDouble) {}
3660 void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3661};
3662
3663
3664class wxGCDC: public wxWindowDC
3665{
3666public:
3667 wxGCDC(const wxWindowDC&) {
3668 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3669 PyErr_SetString(PyExc_NotImplementedError,
3670 "wxGCDC is not available on this platform.");
3671 wxPyEndBlockThreads(blocked);
3672 }
3673
3674 wxGCDC() {
3675 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3676 PyErr_SetString(PyExc_NotImplementedError,
3677 "wxGCDC is not available on this platform.");
3678 wxPyEndBlockThreads(blocked);
3679 }
3680
3681 virtual ~wxGCDC() {}
3682
b876c1e4
RD
3683 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3684 void SetGraphicsContext( wxGraphicsContext* ) {}
72ef6efb
RD
3685};
3686
3687#endif
3688
be68621e
RD
3689SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){
3690 wxDouble width = 0.0,
3691 height = 0.0;
3692 self->GetTextExtent(text, &width, &height, NULL, NULL);
3693 // thread wrapers are turned off for this .i file, so no need to acquire GIL...
3694 PyObject* rv = PyTuple_New(2);
3695 PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width));
3696 PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height));
3697 return rv;
3698 }
b39fe951
RD
3699SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3700 wxArrayDouble widths;
3701 self->GetPartialTextExtents(text, widths);
3702 return widths;
3703 }
f8eb59b9 3704SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
b39fe951
RD
3705 size_t c1, c2, count;
3706 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3707 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3708
3709 if ( beginP != NULL && endP != NULL )
3710 {
3711 count = wxMin(c1, c2);
3712 self->StrokeLines(count, beginP, endP);
3713 }
3714 delete [] beginP;
3715 delete [] endP;
3716 }
72ef6efb 3717
0a27f394
RD
3718#include "wx/dcgraph.h"
3719
3720
66493fc7
RD
3721#include <wx/overlay.h>
3722
3723
36ed4f51 3724
1bd55598 3725SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
36ed4f51
RD
3726 self->AddColour(name, wxColour(red, green, blue));
3727 }
3728
da91cb0f
RD
3729 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3730 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3731 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3732 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3733
3734
36ed4f51
RD
3735#include <wx/effects.h>
3736
be9b1dca
RD
3737
3738#include "wx/renderer.h"
3739
3740
32fe5131 3741SWIGINTERNINLINE PyObject*
1bd55598 3742 SWIG_From_bool (bool value)
be9b1dca 3743{
1bd55598 3744 return PyBool_FromLong(value ? 1 : 0);
be9b1dca
RD
3745}
3746
27e45892
RD
3747
3748#include "wx/wxPython/pseudodc.h"
3749
3750SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3751 wxRect rect;
3752 self->GetIdBounds(id, rect);
3753 return rect;
3754 }
36ed4f51
RD
3755#ifdef __cplusplus
3756extern "C" {
3757#endif
1bd55598
RD
3758SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3759 PyObject *resultobj = 0;
3760 wxGDIObject *result = 0 ;
3761
3762 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3763 {
3764 if (!wxPyCheckForApp()) SWIG_fail;
3765 PyThreadState* __tstate = wxPyBeginAllowThreads();
3766 result = (wxGDIObject *)new wxGDIObject();
3767 wxPyEndAllowThreads(__tstate);
3768 if (PyErr_Occurred()) SWIG_fail;
3769 }
3770 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3771 return resultobj;
3772fail:
3773 return NULL;
d55e5bfc
RD
3774}
3775
3776
1bd55598
RD
3777SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3778 PyObject *resultobj = 0;
3779 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3780 void *argp1 = 0 ;
3781 int res1 = 0 ;
3782 PyObject *swig_obj[1] ;
3783
3784 if (!args) SWIG_fail;
3785 swig_obj[0] = args;
3786 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3787 if (!SWIG_IsOK(res1)) {
3788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3789 }
3790 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3791 {
3792 PyThreadState* __tstate = wxPyBeginAllowThreads();
3793 delete arg1;
d55e5bfc 3794
1bd55598
RD
3795 wxPyEndAllowThreads(__tstate);
3796 if (PyErr_Occurred()) SWIG_fail;
3797 }
3798 resultobj = SWIG_Py_Void();
3799 return resultobj;
3800fail:
3801 return NULL;
d55e5bfc
RD
3802}
3803
3804
1bd55598
RD
3805SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3806 PyObject *resultobj = 0;
3807 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3808 bool result;
3809 void *argp1 = 0 ;
3810 int res1 = 0 ;
3811 PyObject *swig_obj[1] ;
3812
3813 if (!args) SWIG_fail;
3814 swig_obj[0] = args;
3815 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3816 if (!SWIG_IsOK(res1)) {
3817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3818 }
3819 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3820 {
3821 PyThreadState* __tstate = wxPyBeginAllowThreads();
3822 result = (bool)(arg1)->IsNull();
3823 wxPyEndAllowThreads(__tstate);
3824 if (PyErr_Occurred()) SWIG_fail;
3825 }
3826 {
3827 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3828 }
3829 return resultobj;
3830fail:
3831 return NULL;
3832}
3833
3834
3835SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3836 PyObject *obj;
3837 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3838 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3839 return SWIG_Py_Void();
3840}
3841
3842SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3843 return SWIG_Python_InitShadowInstance(args);
3844}
3845
3846SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3847 PyObject *resultobj = 0;
3848 byte arg1 = (byte) 0 ;
3849 byte arg2 = (byte) 0 ;
3850 byte arg3 = (byte) 0 ;
fc46b7f3 3851 byte arg4 = (byte) wxALPHA_OPAQUE ;
1bd55598
RD
3852 wxColour *result = 0 ;
3853 unsigned char val1 ;
3854 int ecode1 = 0 ;
3855 unsigned char val2 ;
3856 int ecode2 = 0 ;
3857 unsigned char val3 ;
3858 int ecode3 = 0 ;
fc46b7f3
RD
3859 unsigned char val4 ;
3860 int ecode4 = 0 ;
1bd55598
RD
3861 PyObject * obj0 = 0 ;
3862 PyObject * obj1 = 0 ;
3863 PyObject * obj2 = 0 ;
fc46b7f3 3864 PyObject * obj3 = 0 ;
1bd55598 3865 char * kwnames[] = {
fc46b7f3 3866 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
1bd55598
RD
3867 };
3868
fc46b7f3 3869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
3870 if (obj0) {
3871 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3872 if (!SWIG_IsOK(ecode1)) {
3873 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3874 }
3875 arg1 = static_cast< byte >(val1);
3876 }
3877 if (obj1) {
3878 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3879 if (!SWIG_IsOK(ecode2)) {
3880 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3881 }
3882 arg2 = static_cast< byte >(val2);
3883 }
3884 if (obj2) {
3885 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3886 if (!SWIG_IsOK(ecode3)) {
3887 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3888 }
3889 arg3 = static_cast< byte >(val3);
3890 }
fc46b7f3
RD
3891 if (obj3) {
3892 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3893 if (!SWIG_IsOK(ecode4)) {
3894 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
3895 }
3896 arg4 = static_cast< byte >(val4);
3897 }
1bd55598
RD
3898 {
3899 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 3900 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
1bd55598
RD
3901 wxPyEndAllowThreads(__tstate);
3902 if (PyErr_Occurred()) SWIG_fail;
3903 }
3904 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3905 return resultobj;
3906fail:
3907 return NULL;
d55e5bfc
RD
3908}
3909
3910
1bd55598
RD
3911SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3912 PyObject *resultobj = 0;
3913 wxString *arg1 = 0 ;
3914 wxColour *result = 0 ;
3915 bool temp1 = false ;
3916 PyObject * obj0 = 0 ;
3917 char * kwnames[] = {
3918 (char *) "colorName", NULL
3919 };
3920
3921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3922 {
3923 arg1 = wxString_in_helper(obj0);
3924 if (arg1 == NULL) SWIG_fail;
3925 temp1 = true;
3926 }
3927 {
3928 if (!wxPyCheckForApp()) SWIG_fail;
3929 PyThreadState* __tstate = wxPyBeginAllowThreads();
3930 result = (wxColour *)new wxColour((wxString const &)*arg1);
3931 wxPyEndAllowThreads(__tstate);
3932 if (PyErr_Occurred()) SWIG_fail;
3933 }
3934 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3935 {
3936 if (temp1)
3937 delete arg1;
3938 }
3939 return resultobj;
3940fail:
3941 {
3942 if (temp1)
3943 delete arg1;
3944 }
3945 return NULL;
36ed4f51
RD
3946}
3947
3948
1bd55598
RD
3949SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3950 PyObject *resultobj = 0;
3951 unsigned long arg1 ;
3952 wxColour *result = 0 ;
3953 unsigned long val1 ;
3954 int ecode1 = 0 ;
3955 PyObject * obj0 = 0 ;
3956 char * kwnames[] = {
3957 (char *) "colRGB", NULL
3958 };
3959
3960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3961 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3962 if (!SWIG_IsOK(ecode1)) {
3963 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3964 }
3965 arg1 = static_cast< unsigned long >(val1);
3966 {
3967 PyThreadState* __tstate = wxPyBeginAllowThreads();
3968 result = (wxColour *)new wxColour(arg1);
3969 wxPyEndAllowThreads(__tstate);
3970 if (PyErr_Occurred()) SWIG_fail;
3971 }
3972 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3973 return resultobj;
3974fail:
3975 return NULL;
d55e5bfc
RD
3976}
3977
3978
1bd55598
RD
3979SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3980 PyObject *resultobj = 0;
3981 wxColour *arg1 = (wxColour *) 0 ;
3982 void *argp1 = 0 ;
3983 int res1 = 0 ;
3984 PyObject *swig_obj[1] ;
3985
3986 if (!args) SWIG_fail;
3987 swig_obj[0] = args;
3988 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3989 if (!SWIG_IsOK(res1)) {
3990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3991 }
3992 arg1 = reinterpret_cast< wxColour * >(argp1);
3993 {
3994 PyThreadState* __tstate = wxPyBeginAllowThreads();
3995 delete arg1;
d55e5bfc 3996
1bd55598
RD
3997 wxPyEndAllowThreads(__tstate);
3998 if (PyErr_Occurred()) SWIG_fail;
3999 }
4000 resultobj = SWIG_Py_Void();
4001 return resultobj;
4002fail:
4003 return NULL;
d55e5bfc
RD
4004}
4005
4006
1bd55598
RD
4007SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4008 PyObject *resultobj = 0;
4009 wxColour *arg1 = (wxColour *) 0 ;
4010 byte result;
4011 void *argp1 = 0 ;
4012 int res1 = 0 ;
4013 PyObject *swig_obj[1] ;
4014
4015 if (!args) SWIG_fail;
4016 swig_obj[0] = args;
4017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4018 if (!SWIG_IsOK(res1)) {
4019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4020 }
4021 arg1 = reinterpret_cast< wxColour * >(argp1);
4022 {
4023 PyThreadState* __tstate = wxPyBeginAllowThreads();
4024 result = (byte)(arg1)->Red();
4025 wxPyEndAllowThreads(__tstate);
4026 if (PyErr_Occurred()) SWIG_fail;
4027 }
4028 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4029 return resultobj;
4030fail:
4031 return NULL;
d55e5bfc
RD
4032}
4033
4034
1bd55598
RD
4035SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4036 PyObject *resultobj = 0;
4037 wxColour *arg1 = (wxColour *) 0 ;
4038 byte result;
4039 void *argp1 = 0 ;
4040 int res1 = 0 ;
4041 PyObject *swig_obj[1] ;
4042
4043 if (!args) SWIG_fail;
4044 swig_obj[0] = args;
4045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4046 if (!SWIG_IsOK(res1)) {
4047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4048 }
4049 arg1 = reinterpret_cast< wxColour * >(argp1);
4050 {
4051 PyThreadState* __tstate = wxPyBeginAllowThreads();
4052 result = (byte)(arg1)->Green();
4053 wxPyEndAllowThreads(__tstate);
4054 if (PyErr_Occurred()) SWIG_fail;
4055 }
4056 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4057 return resultobj;
4058fail:
4059 return NULL;
d55e5bfc
RD
4060}
4061
4062
1bd55598
RD
4063SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4064 PyObject *resultobj = 0;
4065 wxColour *arg1 = (wxColour *) 0 ;
4066 byte result;
4067 void *argp1 = 0 ;
4068 int res1 = 0 ;
4069 PyObject *swig_obj[1] ;
4070
4071 if (!args) SWIG_fail;
4072 swig_obj[0] = args;
4073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4074 if (!SWIG_IsOK(res1)) {
4075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4076 }
4077 arg1 = reinterpret_cast< wxColour * >(argp1);
4078 {
4079 PyThreadState* __tstate = wxPyBeginAllowThreads();
4080 result = (byte)(arg1)->Blue();
4081 wxPyEndAllowThreads(__tstate);
4082 if (PyErr_Occurred()) SWIG_fail;
4083 }
4084 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4085 return resultobj;
4086fail:
4087 return NULL;
d55e5bfc
RD
4088}
4089
4090
fc46b7f3
RD
4091SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4092 PyObject *resultobj = 0;
4093 wxColour *arg1 = (wxColour *) 0 ;
4094 byte result;
4095 void *argp1 = 0 ;
4096 int res1 = 0 ;
4097 PyObject *swig_obj[1] ;
4098
4099 if (!args) SWIG_fail;
4100 swig_obj[0] = args;
4101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4102 if (!SWIG_IsOK(res1)) {
4103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4104 }
4105 arg1 = reinterpret_cast< wxColour * >(argp1);
4106 {
4107 PyThreadState* __tstate = wxPyBeginAllowThreads();
4108 result = (byte)(arg1)->Alpha();
4109 wxPyEndAllowThreads(__tstate);
4110 if (PyErr_Occurred()) SWIG_fail;
4111 }
4112 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4113 return resultobj;
4114fail:
4115 return NULL;
4116}
4117
4118
b39fe951 4119SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
4120 PyObject *resultobj = 0;
4121 wxColour *arg1 = (wxColour *) 0 ;
4122 bool result;
4123 void *argp1 = 0 ;
4124 int res1 = 0 ;
4125 PyObject *swig_obj[1] ;
4126
4127 if (!args) SWIG_fail;
4128 swig_obj[0] = args;
4129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4130 if (!SWIG_IsOK(res1)) {
b39fe951 4131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4132 }
4133 arg1 = reinterpret_cast< wxColour * >(argp1);
4134 {
4135 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4136 result = (bool)(arg1)->IsOk();
1bd55598
RD
4137 wxPyEndAllowThreads(__tstate);
4138 if (PyErr_Occurred()) SWIG_fail;
4139 }
4140 {
4141 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4142 }
4143 return resultobj;
4144fail:
4145 return NULL;
4146}
4147
4148
4149SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4150 PyObject *resultobj = 0;
4151 wxColour *arg1 = (wxColour *) 0 ;
4152 byte arg2 ;
4153 byte arg3 ;
4154 byte arg4 ;
fc46b7f3 4155 byte arg5 = (byte) wxALPHA_OPAQUE ;
1bd55598
RD
4156 void *argp1 = 0 ;
4157 int res1 = 0 ;
4158 unsigned char val2 ;
4159 int ecode2 = 0 ;
4160 unsigned char val3 ;
4161 int ecode3 = 0 ;
4162 unsigned char val4 ;
4163 int ecode4 = 0 ;
fc46b7f3
RD
4164 unsigned char val5 ;
4165 int ecode5 = 0 ;
1bd55598
RD
4166 PyObject * obj0 = 0 ;
4167 PyObject * obj1 = 0 ;
4168 PyObject * obj2 = 0 ;
4169 PyObject * obj3 = 0 ;
fc46b7f3 4170 PyObject * obj4 = 0 ;
1bd55598 4171 char * kwnames[] = {
fc46b7f3 4172 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
1bd55598
RD
4173 };
4174
fc46b7f3 4175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
1bd55598
RD
4176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4177 if (!SWIG_IsOK(res1)) {
4178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4179 }
4180 arg1 = reinterpret_cast< wxColour * >(argp1);
4181 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4182 if (!SWIG_IsOK(ecode2)) {
4183 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4184 }
4185 arg2 = static_cast< byte >(val2);
4186 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4187 if (!SWIG_IsOK(ecode3)) {
4188 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4189 }
4190 arg3 = static_cast< byte >(val3);
4191 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4192 if (!SWIG_IsOK(ecode4)) {
4193 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4194 }
4195 arg4 = static_cast< byte >(val4);
fc46b7f3
RD
4196 if (obj4) {
4197 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4198 if (!SWIG_IsOK(ecode5)) {
4199 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4200 }
4201 arg5 = static_cast< byte >(val5);
4202 }
1bd55598
RD
4203 {
4204 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4205 (arg1)->Set(arg2,arg3,arg4,arg5);
1bd55598
RD
4206 wxPyEndAllowThreads(__tstate);
4207 if (PyErr_Occurred()) SWIG_fail;
4208 }
4209 resultobj = SWIG_Py_Void();
4210 return resultobj;
4211fail:
4212 return NULL;
4213}
4214
4215
4216SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4217 PyObject *resultobj = 0;
4218 wxColour *arg1 = (wxColour *) 0 ;
4219 unsigned long arg2 ;
4220 void *argp1 = 0 ;
4221 int res1 = 0 ;
4222 unsigned long val2 ;
4223 int ecode2 = 0 ;
4224 PyObject * obj0 = 0 ;
4225 PyObject * obj1 = 0 ;
4226 char * kwnames[] = {
4227 (char *) "self",(char *) "colRGB", NULL
4228 };
4229
4230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4232 if (!SWIG_IsOK(res1)) {
4233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4234 }
4235 arg1 = reinterpret_cast< wxColour * >(argp1);
4236 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4237 if (!SWIG_IsOK(ecode2)) {
4238 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4239 }
4240 arg2 = static_cast< unsigned long >(val2);
4241 {
4242 PyThreadState* __tstate = wxPyBeginAllowThreads();
4243 (arg1)->Set(arg2);
4244 wxPyEndAllowThreads(__tstate);
4245 if (PyErr_Occurred()) SWIG_fail;
4246 }
4247 resultobj = SWIG_Py_Void();
4248 return resultobj;
4249fail:
4250 return NULL;
4251}
4252
4253
4254SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4255 PyObject *resultobj = 0;
4256 wxColour *arg1 = (wxColour *) 0 ;
4257 wxString *arg2 = 0 ;
4258 void *argp1 = 0 ;
4259 int res1 = 0 ;
4260 bool temp2 = false ;
4261 PyObject * obj0 = 0 ;
4262 PyObject * obj1 = 0 ;
4263 char * kwnames[] = {
4264 (char *) "self",(char *) "colourName", NULL
4265 };
4266
4267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4269 if (!SWIG_IsOK(res1)) {
4270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4271 }
4272 arg1 = reinterpret_cast< wxColour * >(argp1);
4273 {
4274 arg2 = wxString_in_helper(obj1);
4275 if (arg2 == NULL) SWIG_fail;
4276 temp2 = true;
4277 }
4278 {
4279 PyThreadState* __tstate = wxPyBeginAllowThreads();
72ef6efb 4280 (arg1)->Set((wxString const &)*arg2);
1bd55598
RD
4281 wxPyEndAllowThreads(__tstate);
4282 if (PyErr_Occurred()) SWIG_fail;
4283 }
4284 resultobj = SWIG_Py_Void();
4285 {
4286 if (temp2)
4287 delete arg2;
4288 }
4289 return resultobj;
4290fail:
4291 {
4292 if (temp2)
4293 delete arg2;
4294 }
4295 return NULL;
d55e5bfc
RD
4296}
4297
4298
2131d850
RD
4299SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4300 PyObject *resultobj = 0;
4301 wxColour *arg1 = (wxColour *) 0 ;
4302 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4303 wxString result;
4304 void *argp1 = 0 ;
4305 int res1 = 0 ;
4306 long val2 ;
4307 int ecode2 = 0 ;
4308 PyObject * obj0 = 0 ;
4309 PyObject * obj1 = 0 ;
4310 char * kwnames[] = {
4311 (char *) "self",(char *) "flags", NULL
4312 };
4313
4314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4316 if (!SWIG_IsOK(res1)) {
4317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4318 }
4319 arg1 = reinterpret_cast< wxColour * >(argp1);
4320 if (obj1) {
4321 ecode2 = SWIG_AsVal_long(obj1, &val2);
4322 if (!SWIG_IsOK(ecode2)) {
4323 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4324 }
4325 arg2 = static_cast< long >(val2);
4326 }
4327 {
4328 PyThreadState* __tstate = wxPyBeginAllowThreads();
4329 result = ((wxColour const *)arg1)->GetAsString(arg2);
4330 wxPyEndAllowThreads(__tstate);
4331 if (PyErr_Occurred()) SWIG_fail;
4332 }
4333 {
4334#if wxUSE_UNICODE
4335 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4336#else
4337 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4338#endif
4339 }
4340 return resultobj;
4341fail:
4342 return NULL;
4343}
4344
4345
1bd55598
RD
4346SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4347 PyObject *resultobj = 0;
4348 wxColour *arg1 = (wxColour *) 0 ;
4349 long result;
4350 void *argp1 = 0 ;
4351 int res1 = 0 ;
4352 PyObject *swig_obj[1] ;
4353
4354 if (!args) SWIG_fail;
4355 swig_obj[0] = args;
4356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4357 if (!SWIG_IsOK(res1)) {
4358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4359 }
4360 arg1 = reinterpret_cast< wxColour * >(argp1);
4361 {
4362 PyThreadState* __tstate = wxPyBeginAllowThreads();
4363 result = (long)((wxColour const *)arg1)->GetPixel();
4364 wxPyEndAllowThreads(__tstate);
4365 if (PyErr_Occurred()) SWIG_fail;
4366 }
4367 resultobj = SWIG_From_long(static_cast< long >(result));
4368 return resultobj;
4369fail:
4370 return NULL;
4371}
4372
4373
4374SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4375 PyObject *resultobj = 0;
4376 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4377 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
4378 bool result;
4379 void *argp1 = 0 ;
4380 int res1 = 0 ;
1bd55598
RD
4381 PyObject * obj0 = 0 ;
4382 PyObject * obj1 = 0 ;
4383 char * kwnames[] = {
e9d6f3a4 4384 (char *) "self",(char *) "other", NULL
1bd55598
RD
4385 };
4386
4387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4389 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4391 }
4392 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4393 arg2 = obj1;
1bd55598 4394 {
e9d6f3a4 4395 result = (bool)wxColour___eq__(arg1,arg2);
1bd55598
RD
4396 if (PyErr_Occurred()) SWIG_fail;
4397 }
4398 {
4399 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4400 }
4401 return resultobj;
4402fail:
4403 return NULL;
4404}
4405
4406
4407SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4408 PyObject *resultobj = 0;
4409 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4410 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
4411 bool result;
4412 void *argp1 = 0 ;
4413 int res1 = 0 ;
1bd55598
RD
4414 PyObject * obj0 = 0 ;
4415 PyObject * obj1 = 0 ;
4416 char * kwnames[] = {
e9d6f3a4 4417 (char *) "self",(char *) "other", NULL
1bd55598
RD
4418 };
4419
4420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4422 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4424 }
4425 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4426 arg2 = obj1;
1bd55598 4427 {
e9d6f3a4 4428 result = (bool)wxColour___ne__(arg1,arg2);
1bd55598
RD
4429 if (PyErr_Occurred()) SWIG_fail;
4430 }
4431 {
4432 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4433 }
4434 return resultobj;
4435fail:
4436 return NULL;
d55e5bfc
RD
4437}
4438
4439
fc46b7f3 4440SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
4441 PyObject *resultobj = 0;
4442 wxColour *arg1 = (wxColour *) 0 ;
fc46b7f3 4443 bool arg2 = (bool) false ;
1bd55598
RD
4444 PyObject *result = 0 ;
4445 void *argp1 = 0 ;
4446 int res1 = 0 ;
fc46b7f3
RD
4447 bool val2 ;
4448 int ecode2 = 0 ;
4449 PyObject * obj0 = 0 ;
4450 PyObject * obj1 = 0 ;
4451 char * kwnames[] = {
4452 (char *) "self",(char *) "includeAlpha", NULL
4453 };
1bd55598 4454
fc46b7f3
RD
4455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
1bd55598
RD
4457 if (!SWIG_IsOK(res1)) {
4458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4459 }
4460 arg1 = reinterpret_cast< wxColour * >(argp1);
fc46b7f3
RD
4461 if (obj1) {
4462 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4463 if (!SWIG_IsOK(ecode2)) {
4464 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4465 }
4466 arg2 = static_cast< bool >(val2);
4467 }
1bd55598 4468 {
fc46b7f3 4469 result = (PyObject *)wxColour_Get(arg1,arg2);
1bd55598
RD
4470 if (PyErr_Occurred()) SWIG_fail;
4471 }
4472 resultobj = result;
4473 return resultobj;
4474fail:
4475 return NULL;
d55e5bfc
RD
4476}
4477
4478
1bd55598
RD
4479SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4480 PyObject *resultobj = 0;
4481 wxColour *arg1 = (wxColour *) 0 ;
4482 unsigned long result;
4483 void *argp1 = 0 ;
4484 int res1 = 0 ;
4485 PyObject *swig_obj[1] ;
4486
4487 if (!args) SWIG_fail;
4488 swig_obj[0] = args;
4489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4490 if (!SWIG_IsOK(res1)) {
4491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4492 }
4493 arg1 = reinterpret_cast< wxColour * >(argp1);
4494 {
1bd55598 4495 result = (unsigned long)wxColour_GetRGB(arg1);
1bd55598
RD
4496 if (PyErr_Occurred()) SWIG_fail;
4497 }
4498 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4499 return resultobj;
4500fail:
4501 return NULL;
4502}
4503
4504
4505SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4506 PyObject *obj;
4507 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4508 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4509 return SWIG_Py_Void();
4510}
4511
4512SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4513 return SWIG_Python_InitShadowInstance(args);
4514}
4515
4516SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4517 PyObject *resultobj = 0;
4518 int arg1 ;
4519 unsigned char *arg2 = (unsigned char *) 0 ;
4520 unsigned char *arg3 = (unsigned char *) 0 ;
4521 unsigned char *arg4 = (unsigned char *) 0 ;
4522 wxPalette *result = 0 ;
4523 int val1 ;
4524 int ecode1 = 0 ;
4525 void *argp2 = 0 ;
4526 int res2 = 0 ;
4527 void *argp3 = 0 ;
4528 int res3 = 0 ;
4529 void *argp4 = 0 ;
4530 int res4 = 0 ;
4531 PyObject * obj0 = 0 ;
4532 PyObject * obj1 = 0 ;
4533 PyObject * obj2 = 0 ;
4534 PyObject * obj3 = 0 ;
4535 char * kwnames[] = {
4536 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4537 };
4538
4539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4540 ecode1 = SWIG_AsVal_int(obj0, &val1);
4541 if (!SWIG_IsOK(ecode1)) {
4542 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4543 }
4544 arg1 = static_cast< int >(val1);
4545 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4546 if (!SWIG_IsOK(res2)) {
4547 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4548 }
4549 arg2 = reinterpret_cast< unsigned char * >(argp2);
4550 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4551 if (!SWIG_IsOK(res3)) {
4552 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4553 }
4554 arg3 = reinterpret_cast< unsigned char * >(argp3);
4555 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4556 if (!SWIG_IsOK(res4)) {
4557 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4558 }
4559 arg4 = reinterpret_cast< unsigned char * >(argp4);
4560 {
4561 if (!wxPyCheckForApp()) SWIG_fail;
4562 PyThreadState* __tstate = wxPyBeginAllowThreads();
4563 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4564 wxPyEndAllowThreads(__tstate);
4565 if (PyErr_Occurred()) SWIG_fail;
4566 }
4567 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4568 return resultobj;
4569fail:
4570 return NULL;
d55e5bfc
RD
4571}
4572
4573
1bd55598
RD
4574SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4575 PyObject *resultobj = 0;
4576 wxPalette *arg1 = (wxPalette *) 0 ;
4577 void *argp1 = 0 ;
4578 int res1 = 0 ;
4579 PyObject *swig_obj[1] ;
4580
4581 if (!args) SWIG_fail;
4582 swig_obj[0] = args;
4583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4584 if (!SWIG_IsOK(res1)) {
4585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4586 }
4587 arg1 = reinterpret_cast< wxPalette * >(argp1);
4588 {
4589 PyThreadState* __tstate = wxPyBeginAllowThreads();
4590 delete arg1;
d55e5bfc 4591
1bd55598
RD
4592 wxPyEndAllowThreads(__tstate);
4593 if (PyErr_Occurred()) SWIG_fail;
4594 }
4595 resultobj = SWIG_Py_Void();
4596 return resultobj;
4597fail:
4598 return NULL;
4599}
4600
4601
4602SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4603 PyObject *resultobj = 0;
4604 wxPalette *arg1 = (wxPalette *) 0 ;
4605 byte arg2 ;
4606 byte arg3 ;
4607 byte arg4 ;
4608 int result;
4609 void *argp1 = 0 ;
4610 int res1 = 0 ;
4611 unsigned char val2 ;
4612 int ecode2 = 0 ;
4613 unsigned char val3 ;
4614 int ecode3 = 0 ;
4615 unsigned char val4 ;
4616 int ecode4 = 0 ;
4617 PyObject * obj0 = 0 ;
4618 PyObject * obj1 = 0 ;
4619 PyObject * obj2 = 0 ;
4620 PyObject * obj3 = 0 ;
4621 char * kwnames[] = {
4622 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4623 };
4624
4625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4627 if (!SWIG_IsOK(res1)) {
4628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4629 }
4630 arg1 = reinterpret_cast< wxPalette * >(argp1);
4631 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4632 if (!SWIG_IsOK(ecode2)) {
4633 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4634 }
4635 arg2 = static_cast< byte >(val2);
4636 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4637 if (!SWIG_IsOK(ecode3)) {
4638 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4639 }
4640 arg3 = static_cast< byte >(val3);
4641 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4642 if (!SWIG_IsOK(ecode4)) {
4643 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4644 }
4645 arg4 = static_cast< byte >(val4);
4646 {
4647 PyThreadState* __tstate = wxPyBeginAllowThreads();
4648 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4649 wxPyEndAllowThreads(__tstate);
4650 if (PyErr_Occurred()) SWIG_fail;
4651 }
4652 resultobj = SWIG_From_int(static_cast< int >(result));
4653 return resultobj;
4654fail:
4655 return NULL;
4656}
4657
4658
4659SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4660 PyObject *resultobj = 0;
4661 wxPalette *arg1 = (wxPalette *) 0 ;
4662 int arg2 ;
4663 byte *arg3 = (byte *) 0 ;
4664 byte *arg4 = (byte *) 0 ;
4665 byte *arg5 = (byte *) 0 ;
4666 bool result;
4667 void *argp1 = 0 ;
4668 int res1 = 0 ;
4669 int val2 ;
4670 int ecode2 = 0 ;
4671 byte temp3 ;
4672 int res3 = SWIG_TMPOBJ ;
4673 byte temp4 ;
4674 int res4 = SWIG_TMPOBJ ;
4675 byte temp5 ;
4676 int res5 = SWIG_TMPOBJ ;
4677 PyObject * obj0 = 0 ;
4678 PyObject * obj1 = 0 ;
4679 char * kwnames[] = {
4680 (char *) "self",(char *) "pixel", NULL
4681 };
4682
4683 arg3 = &temp3;
4684 arg4 = &temp4;
4685 arg5 = &temp5;
4686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4688 if (!SWIG_IsOK(res1)) {
4689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4690 }
4691 arg1 = reinterpret_cast< wxPalette * >(argp1);
4692 ecode2 = SWIG_AsVal_int(obj1, &val2);
4693 if (!SWIG_IsOK(ecode2)) {
4694 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4695 }
4696 arg2 = static_cast< int >(val2);
4697 {
4698 PyThreadState* __tstate = wxPyBeginAllowThreads();
4699 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4700 wxPyEndAllowThreads(__tstate);
4701 if (PyErr_Occurred()) SWIG_fail;
4702 }
4703 {
4704 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4705 }
4706 if (SWIG_IsTmpObj(res3)) {
4707 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4708 } else {
4709 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4710 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4711 }
4712 if (SWIG_IsTmpObj(res4)) {
4713 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4714 } else {
4715 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4716 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4717 }
4718 if (SWIG_IsTmpObj(res5)) {
4719 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4720 } else {
4721 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4722 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4723 }
4724 return resultobj;
4725fail:
4726 return NULL;
d55e5bfc
RD
4727}
4728
4729
1bd55598
RD
4730SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4731 PyObject *resultobj = 0;
4732 wxPalette *arg1 = (wxPalette *) 0 ;
4733 int result;
4734 void *argp1 = 0 ;
4735 int res1 = 0 ;
4736 PyObject *swig_obj[1] ;
4737
4738 if (!args) SWIG_fail;
4739 swig_obj[0] = args;
4740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4741 if (!SWIG_IsOK(res1)) {
4742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4743 }
4744 arg1 = reinterpret_cast< wxPalette * >(argp1);
4745 {
4746 PyThreadState* __tstate = wxPyBeginAllowThreads();
4747 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4748 wxPyEndAllowThreads(__tstate);
4749 if (PyErr_Occurred()) SWIG_fail;
4750 }
4751 resultobj = SWIG_From_int(static_cast< int >(result));
4752 return resultobj;
4753fail:
4754 return NULL;
d55e5bfc
RD
4755}
4756
4757
b39fe951 4758SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
4759 PyObject *resultobj = 0;
4760 wxPalette *arg1 = (wxPalette *) 0 ;
4761 bool result;
4762 void *argp1 = 0 ;
4763 int res1 = 0 ;
4764 PyObject *swig_obj[1] ;
4765
4766 if (!args) SWIG_fail;
4767 swig_obj[0] = args;
4768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4769 if (!SWIG_IsOK(res1)) {
b39fe951 4770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
1bd55598
RD
4771 }
4772 arg1 = reinterpret_cast< wxPalette * >(argp1);
4773 {
4774 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4775 result = (bool)(arg1)->IsOk();
1bd55598
RD
4776 wxPyEndAllowThreads(__tstate);
4777 if (PyErr_Occurred()) SWIG_fail;
4778 }
4779 {
4780 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4781 }
4782 return resultobj;
4783fail:
4784 return NULL;
4785}
4786
4787
4788SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4789 PyObject *obj;
4790 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4791 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4792 return SWIG_Py_Void();
4793}
4794
4795SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4796 return SWIG_Python_InitShadowInstance(args);
4797}
4798
4799SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4800 PyObject *resultobj = 0;
4801 wxColour *arg1 = 0 ;
4802 int arg2 = (int) 1 ;
4803 int arg3 = (int) wxSOLID ;
4804 wxPen *result = 0 ;
4805 wxColour temp1 ;
4806 int val2 ;
4807 int ecode2 = 0 ;
4808 int val3 ;
4809 int ecode3 = 0 ;
4810 PyObject * obj0 = 0 ;
4811 PyObject * obj1 = 0 ;
4812 PyObject * obj2 = 0 ;
4813 char * kwnames[] = {
4814 (char *) "colour",(char *) "width",(char *) "style", NULL
4815 };
4816
4817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4818 {
4819 arg1 = &temp1;
4820 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4821 }
4822 if (obj1) {
4823 ecode2 = SWIG_AsVal_int(obj1, &val2);
4824 if (!SWIG_IsOK(ecode2)) {
4825 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4826 }
4827 arg2 = static_cast< int >(val2);
4828 }
4829 if (obj2) {
4830 ecode3 = SWIG_AsVal_int(obj2, &val3);
4831 if (!SWIG_IsOK(ecode3)) {
4832 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4833 }
4834 arg3 = static_cast< int >(val3);
4835 }
4836 {
4837 if (!wxPyCheckForApp()) SWIG_fail;
4838 PyThreadState* __tstate = wxPyBeginAllowThreads();
4839 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4840 wxPyEndAllowThreads(__tstate);
4841 if (PyErr_Occurred()) SWIG_fail;
4842 }
4843 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4844 return resultobj;
4845fail:
4846 return NULL;
d55e5bfc
RD
4847}
4848
4849
1bd55598
RD
4850SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4851 PyObject *resultobj = 0;
4852 wxPen *arg1 = (wxPen *) 0 ;
4853 void *argp1 = 0 ;
4854 int res1 = 0 ;
4855 PyObject *swig_obj[1] ;
4856
4857 if (!args) SWIG_fail;
4858 swig_obj[0] = args;
4859 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4860 if (!SWIG_IsOK(res1)) {
4861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4862 }
4863 arg1 = reinterpret_cast< wxPen * >(argp1);
4864 {
4865 PyThreadState* __tstate = wxPyBeginAllowThreads();
4866 delete arg1;
f78cc896 4867
1bd55598
RD
4868 wxPyEndAllowThreads(__tstate);
4869 if (PyErr_Occurred()) SWIG_fail;
4870 }
4871 resultobj = SWIG_Py_Void();
4872 return resultobj;
4873fail:
4874 return NULL;
f78cc896
RD
4875}
4876
4877
1bd55598
RD
4878SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4879 PyObject *resultobj = 0;
4880 wxPen *arg1 = (wxPen *) 0 ;
4881 int result;
4882 void *argp1 = 0 ;
4883 int res1 = 0 ;
4884 PyObject *swig_obj[1] ;
4885
4886 if (!args) SWIG_fail;
4887 swig_obj[0] = args;
4888 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4889 if (!SWIG_IsOK(res1)) {
4890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4891 }
4892 arg1 = reinterpret_cast< wxPen * >(argp1);
4893 {
4894 PyThreadState* __tstate = wxPyBeginAllowThreads();
4895 result = (int)(arg1)->GetCap();
4896 wxPyEndAllowThreads(__tstate);
4897 if (PyErr_Occurred()) SWIG_fail;
4898 }
4899 resultobj = SWIG_From_int(static_cast< int >(result));
4900 return resultobj;
4901fail:
4902 return NULL;
d55e5bfc
RD
4903}
4904
4905
1bd55598
RD
4906SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4907 PyObject *resultobj = 0;
4908 wxPen *arg1 = (wxPen *) 0 ;
4909 wxColour result;
4910 void *argp1 = 0 ;
4911 int res1 = 0 ;
4912 PyObject *swig_obj[1] ;
4913
4914 if (!args) SWIG_fail;
4915 swig_obj[0] = args;
4916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4917 if (!SWIG_IsOK(res1)) {
4918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4919 }
4920 arg1 = reinterpret_cast< wxPen * >(argp1);
4921 {
4922 PyThreadState* __tstate = wxPyBeginAllowThreads();
4923 result = (arg1)->GetColour();
4924 wxPyEndAllowThreads(__tstate);
4925 if (PyErr_Occurred()) SWIG_fail;
4926 }
4927 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4928 return resultobj;
4929fail:
4930 return NULL;
d55e5bfc
RD
4931}
4932
4933
1bd55598
RD
4934SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4935 PyObject *resultobj = 0;
4936 wxPen *arg1 = (wxPen *) 0 ;
4937 int result;
4938 void *argp1 = 0 ;
4939 int res1 = 0 ;
4940 PyObject *swig_obj[1] ;
4941
4942 if (!args) SWIG_fail;
4943 swig_obj[0] = args;
4944 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4945 if (!SWIG_IsOK(res1)) {
4946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4947 }
4948 arg1 = reinterpret_cast< wxPen * >(argp1);
4949 {
4950 PyThreadState* __tstate = wxPyBeginAllowThreads();
4951 result = (int)(arg1)->GetJoin();
4952 wxPyEndAllowThreads(__tstate);
4953 if (PyErr_Occurred()) SWIG_fail;
4954 }
4955 resultobj = SWIG_From_int(static_cast< int >(result));
4956 return resultobj;
4957fail:
4958 return NULL;
d55e5bfc
RD
4959}
4960
4961
1bd55598
RD
4962SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4963 PyObject *resultobj = 0;
4964 wxPen *arg1 = (wxPen *) 0 ;
4965 int result;
4966 void *argp1 = 0 ;
4967 int res1 = 0 ;
4968 PyObject *swig_obj[1] ;
4969
4970 if (!args) SWIG_fail;
4971 swig_obj[0] = args;
4972 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4973 if (!SWIG_IsOK(res1)) {
4974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4975 }
4976 arg1 = reinterpret_cast< wxPen * >(argp1);
4977 {
4978 PyThreadState* __tstate = wxPyBeginAllowThreads();
4979 result = (int)(arg1)->GetStyle();
4980 wxPyEndAllowThreads(__tstate);
4981 if (PyErr_Occurred()) SWIG_fail;
4982 }
4983 resultobj = SWIG_From_int(static_cast< int >(result));
4984 return resultobj;
4985fail:
4986 return NULL;
d55e5bfc
RD
4987}
4988
4989
1bd55598
RD
4990SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4991 PyObject *resultobj = 0;
4992 wxPen *arg1 = (wxPen *) 0 ;
4993 int result;
4994 void *argp1 = 0 ;
4995 int res1 = 0 ;
4996 PyObject *swig_obj[1] ;
4997
4998 if (!args) SWIG_fail;
4999 swig_obj[0] = args;
5000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5001 if (!SWIG_IsOK(res1)) {
5002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5003 }
5004 arg1 = reinterpret_cast< wxPen * >(argp1);
5005 {
5006 PyThreadState* __tstate = wxPyBeginAllowThreads();
5007 result = (int)(arg1)->GetWidth();
5008 wxPyEndAllowThreads(__tstate);
5009 if (PyErr_Occurred()) SWIG_fail;
5010 }
5011 resultobj = SWIG_From_int(static_cast< int >(result));
5012 return resultobj;
5013fail:
5014 return NULL;
d55e5bfc
RD
5015}
5016
5017
b39fe951 5018SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
5019 PyObject *resultobj = 0;
5020 wxPen *arg1 = (wxPen *) 0 ;
5021 bool result;
5022 void *argp1 = 0 ;
5023 int res1 = 0 ;
5024 PyObject *swig_obj[1] ;
5025
5026 if (!args) SWIG_fail;
5027 swig_obj[0] = args;
5028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5029 if (!SWIG_IsOK(res1)) {
b39fe951 5030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
1bd55598
RD
5031 }
5032 arg1 = reinterpret_cast< wxPen * >(argp1);
5033 {
5034 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5035 result = (bool)(arg1)->IsOk();
1bd55598
RD
5036 wxPyEndAllowThreads(__tstate);
5037 if (PyErr_Occurred()) SWIG_fail;
5038 }
5039 {
5040 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5041 }
5042 return resultobj;
5043fail:
5044 return NULL;
5045}
5046
5047
5048SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5049 PyObject *resultobj = 0;
5050 wxPen *arg1 = (wxPen *) 0 ;
5051 int arg2 ;
5052 void *argp1 = 0 ;
5053 int res1 = 0 ;
5054 int val2 ;
5055 int ecode2 = 0 ;
5056 PyObject * obj0 = 0 ;
5057 PyObject * obj1 = 0 ;
5058 char * kwnames[] = {
5059 (char *) "self",(char *) "cap_style", NULL
5060 };
5061
5062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5064 if (!SWIG_IsOK(res1)) {
5065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5066 }
5067 arg1 = reinterpret_cast< wxPen * >(argp1);
5068 ecode2 = SWIG_AsVal_int(obj1, &val2);
5069 if (!SWIG_IsOK(ecode2)) {
5070 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5071 }
5072 arg2 = static_cast< int >(val2);
5073 {
5074 PyThreadState* __tstate = wxPyBeginAllowThreads();
5075 (arg1)->SetCap(arg2);
5076 wxPyEndAllowThreads(__tstate);
5077 if (PyErr_Occurred()) SWIG_fail;
5078 }
5079 resultobj = SWIG_Py_Void();
5080 return resultobj;
5081fail:
5082 return NULL;
5083}
5084
5085
5086SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5087 PyObject *resultobj = 0;
5088 wxPen *arg1 = (wxPen *) 0 ;
5089 wxColour *arg2 = 0 ;
5090 void *argp1 = 0 ;
5091 int res1 = 0 ;
5092 wxColour temp2 ;
5093 PyObject * obj0 = 0 ;
5094 PyObject * obj1 = 0 ;
5095 char * kwnames[] = {
5096 (char *) "self",(char *) "colour", NULL
5097 };
5098
5099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5101 if (!SWIG_IsOK(res1)) {
5102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5103 }
5104 arg1 = reinterpret_cast< wxPen * >(argp1);
5105 {
5106 arg2 = &temp2;
5107 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5108 }
5109 {
5110 PyThreadState* __tstate = wxPyBeginAllowThreads();
5111 (arg1)->SetColour(*arg2);
5112 wxPyEndAllowThreads(__tstate);
5113 if (PyErr_Occurred()) SWIG_fail;
5114 }
5115 resultobj = SWIG_Py_Void();
5116 return resultobj;
5117fail:
5118 return NULL;
5119}
5120
5121
5122SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5123 PyObject *resultobj = 0;
5124 wxPen *arg1 = (wxPen *) 0 ;
5125 int arg2 ;
5126 void *argp1 = 0 ;
5127 int res1 = 0 ;
5128 int val2 ;
5129 int ecode2 = 0 ;
5130 PyObject * obj0 = 0 ;
5131 PyObject * obj1 = 0 ;
5132 char * kwnames[] = {
5133 (char *) "self",(char *) "join_style", NULL
5134 };
5135
5136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5138 if (!SWIG_IsOK(res1)) {
5139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5140 }
5141 arg1 = reinterpret_cast< wxPen * >(argp1);
5142 ecode2 = SWIG_AsVal_int(obj1, &val2);
5143 if (!SWIG_IsOK(ecode2)) {
5144 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5145 }
5146 arg2 = static_cast< int >(val2);
5147 {
5148 PyThreadState* __tstate = wxPyBeginAllowThreads();
5149 (arg1)->SetJoin(arg2);
5150 wxPyEndAllowThreads(__tstate);
5151 if (PyErr_Occurred()) SWIG_fail;
5152 }
5153 resultobj = SWIG_Py_Void();
5154 return resultobj;
5155fail:
5156 return NULL;
5157}
5158
5159
5160SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5161 PyObject *resultobj = 0;
5162 wxPen *arg1 = (wxPen *) 0 ;
5163 int arg2 ;
5164 void *argp1 = 0 ;
5165 int res1 = 0 ;
5166 int val2 ;
5167 int ecode2 = 0 ;
5168 PyObject * obj0 = 0 ;
5169 PyObject * obj1 = 0 ;
5170 char * kwnames[] = {
5171 (char *) "self",(char *) "style", NULL
5172 };
5173
5174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5176 if (!SWIG_IsOK(res1)) {
5177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5178 }
5179 arg1 = reinterpret_cast< wxPen * >(argp1);
5180 ecode2 = SWIG_AsVal_int(obj1, &val2);
5181 if (!SWIG_IsOK(ecode2)) {
5182 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5183 }
5184 arg2 = static_cast< int >(val2);
5185 {
5186 PyThreadState* __tstate = wxPyBeginAllowThreads();
5187 (arg1)->SetStyle(arg2);
5188 wxPyEndAllowThreads(__tstate);
5189 if (PyErr_Occurred()) SWIG_fail;
5190 }
5191 resultobj = SWIG_Py_Void();
5192 return resultobj;
5193fail:
5194 return NULL;
5195}
5196
5197
5198SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5199 PyObject *resultobj = 0;
5200 wxPen *arg1 = (wxPen *) 0 ;
5201 int arg2 ;
5202 void *argp1 = 0 ;
5203 int res1 = 0 ;
5204 int val2 ;
5205 int ecode2 = 0 ;
5206 PyObject * obj0 = 0 ;
5207 PyObject * obj1 = 0 ;
5208 char * kwnames[] = {
5209 (char *) "self",(char *) "width", NULL
5210 };
5211
5212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5214 if (!SWIG_IsOK(res1)) {
5215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5216 }
5217 arg1 = reinterpret_cast< wxPen * >(argp1);
5218 ecode2 = SWIG_AsVal_int(obj1, &val2);
5219 if (!SWIG_IsOK(ecode2)) {
5220 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5221 }
5222 arg2 = static_cast< int >(val2);
5223 {
5224 PyThreadState* __tstate = wxPyBeginAllowThreads();
5225 (arg1)->SetWidth(arg2);
5226 wxPyEndAllowThreads(__tstate);
5227 if (PyErr_Occurred()) SWIG_fail;
5228 }
5229 resultobj = SWIG_Py_Void();
5230 return resultobj;
5231fail:
5232 return NULL;
5233}
5234
5235
5236SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5237 PyObject *resultobj = 0;
5238 wxPen *arg1 = (wxPen *) 0 ;
5239 int arg2 ;
5240 wxDash *arg3 = (wxDash *) 0 ;
5241 void *argp1 = 0 ;
5242 int res1 = 0 ;
5243 PyObject * obj0 = 0 ;
5244 PyObject * obj1 = 0 ;
5245 char * kwnames[] = {
5246 (char *) "self",(char *) "dashes", NULL
5247 };
5248
5249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5251 if (!SWIG_IsOK(res1)) {
5252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5253 }
5254 arg1 = reinterpret_cast< wxPen * >(argp1);
5255 {
5256 arg2 = PyList_Size(obj1);
5257 arg3 = (wxDash*)byte_LIST_helper(obj1);
5258 if (arg3 == NULL) SWIG_fail;
5259 }
5260 {
5261 PyThreadState* __tstate = wxPyBeginAllowThreads();
5262 (arg1)->SetDashes(arg2,arg3);
5263 wxPyEndAllowThreads(__tstate);
5264 if (PyErr_Occurred()) SWIG_fail;
5265 }
5266 resultobj = SWIG_Py_Void();
5267 {
5268 if (arg3) delete [] arg3;
5269 }
5270 return resultobj;
5271fail:
5272 {
5273 if (arg3) delete [] arg3;
5274 }
5275 return NULL;
d6c14a4c
RD
5276}
5277
5278
1bd55598
RD
5279SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5280 PyObject *resultobj = 0;
5281 wxPen *arg1 = (wxPen *) 0 ;
5282 PyObject *result = 0 ;
5283 void *argp1 = 0 ;
5284 int res1 = 0 ;
5285 PyObject *swig_obj[1] ;
5286
5287 if (!args) SWIG_fail;
5288 swig_obj[0] = args;
5289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5290 if (!SWIG_IsOK(res1)) {
5291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5292 }
5293 arg1 = reinterpret_cast< wxPen * >(argp1);
5294 {
5295 PyThreadState* __tstate = wxPyBeginAllowThreads();
5296 result = (PyObject *)wxPen_GetDashes(arg1);
5297 wxPyEndAllowThreads(__tstate);
5298 if (PyErr_Occurred()) SWIG_fail;
5299 }
5300 resultobj = result;
5301 return resultobj;
5302fail:
5303 return NULL;
5304}
5305
5306
5307SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5308 PyObject *resultobj = 0;
5309 wxPen *arg1 = (wxPen *) 0 ;
5310 PyObject *arg2 = (PyObject *) 0 ;
5311 PyObject *arg3 = (PyObject *) 0 ;
5312 void *argp1 = 0 ;
5313 int res1 = 0 ;
5314 PyObject * obj0 = 0 ;
5315 PyObject * obj1 = 0 ;
5316 PyObject * obj2 = 0 ;
5317 char * kwnames[] = {
5318 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5319 };
5320
5321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5323 if (!SWIG_IsOK(res1)) {
5324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5325 }
5326 arg1 = reinterpret_cast< wxPen * >(argp1);
5327 arg2 = obj1;
5328 arg3 = obj2;
5329 {
5330 PyThreadState* __tstate = wxPyBeginAllowThreads();
5331 wxPen__SetDashes(arg1,arg2,arg3);
5332 wxPyEndAllowThreads(__tstate);
5333 if (PyErr_Occurred()) SWIG_fail;
5334 }
5335 resultobj = SWIG_Py_Void();
5336 return resultobj;
5337fail:
5338 return NULL;
5339}
5340
5341
5342SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5343 PyObject *resultobj = 0;
5344 wxPen *arg1 = (wxPen *) 0 ;
5345 wxPen *arg2 = (wxPen *) 0 ;
5346 bool result;
5347 void *argp1 = 0 ;
5348 int res1 = 0 ;
5349 void *argp2 = 0 ;
5350 int res2 = 0 ;
5351 PyObject * obj0 = 0 ;
5352 PyObject * obj1 = 0 ;
5353 char * kwnames[] = {
5354 (char *) "self",(char *) "other", NULL
5355 };
5356
5357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5359 if (!SWIG_IsOK(res1)) {
5360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5361 }
5362 arg1 = reinterpret_cast< wxPen * >(argp1);
5363 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5364 if (!SWIG_IsOK(res2)) {
5365 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5366 }
5367 arg2 = reinterpret_cast< wxPen * >(argp2);
5368 {
5369 PyThreadState* __tstate = wxPyBeginAllowThreads();
5370 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5371 wxPyEndAllowThreads(__tstate);
5372 if (PyErr_Occurred()) SWIG_fail;
5373 }
5374 {
5375 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5376 }
5377 return resultobj;
5378fail:
5379 return NULL;
5380}
5381
5382
5383SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5384 PyObject *resultobj = 0;
5385 wxPen *arg1 = (wxPen *) 0 ;
5386 wxPen *arg2 = (wxPen *) 0 ;
5387 bool result;
5388 void *argp1 = 0 ;
5389 int res1 = 0 ;
5390 void *argp2 = 0 ;
5391 int res2 = 0 ;
5392 PyObject * obj0 = 0 ;
5393 PyObject * obj1 = 0 ;
5394 char * kwnames[] = {
5395 (char *) "self",(char *) "other", NULL
5396 };
5397
5398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5400 if (!SWIG_IsOK(res1)) {
5401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5402 }
5403 arg1 = reinterpret_cast< wxPen * >(argp1);
5404 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5405 if (!SWIG_IsOK(res2)) {
5406 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5407 }
5408 arg2 = reinterpret_cast< wxPen * >(argp2);
5409 {
5410 PyThreadState* __tstate = wxPyBeginAllowThreads();
5411 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5412 wxPyEndAllowThreads(__tstate);
5413 if (PyErr_Occurred()) SWIG_fail;
5414 }
5415 {
5416 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5417 }
5418 return resultobj;
5419fail:
5420 return NULL;
5421}
d55e5bfc
RD
5422
5423
1bd55598
RD
5424SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5425 PyObject *obj;
5426 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5427 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5428 return SWIG_Py_Void();
d55e5bfc
RD
5429}
5430
1bd55598
RD
5431SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5432 return SWIG_Python_InitShadowInstance(args);
5433}
d55e5bfc 5434
1bd55598
RD
5435SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5436 PyObject *resultobj = 0;
5437 wxColour *arg1 = 0 ;
5438 int arg2 = (int) wxSOLID ;
5439 wxBrush *result = 0 ;
5440 wxColour temp1 ;
5441 int val2 ;
5442 int ecode2 = 0 ;
5443 PyObject * obj0 = 0 ;
5444 PyObject * obj1 = 0 ;
5445 char * kwnames[] = {
5446 (char *) "colour",(char *) "style", NULL
5447 };
5448
5449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5450 {
5451 arg1 = &temp1;
5452 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5453 }
5454 if (obj1) {
5455 ecode2 = SWIG_AsVal_int(obj1, &val2);
5456 if (!SWIG_IsOK(ecode2)) {
5457 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5458 }
5459 arg2 = static_cast< int >(val2);
5460 }
5461 {
5462 if (!wxPyCheckForApp()) SWIG_fail;
5463 PyThreadState* __tstate = wxPyBeginAllowThreads();
5464 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5465 wxPyEndAllowThreads(__tstate);
5466 if (PyErr_Occurred()) SWIG_fail;
5467 }
5468 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5469 return resultobj;
5470fail:
5471 return NULL;
5472}
5473
5474
5475SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5476 PyObject *resultobj = 0;
5477 wxBitmap *arg1 = 0 ;
5478 wxBrush *result = 0 ;
5479 void *argp1 = 0 ;
5480 int res1 = 0 ;
5481 PyObject * obj0 = 0 ;
5482 char * kwnames[] = {
5483 (char *) "stippleBitmap", NULL
5484 };
5485
5486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5487 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5488 if (!SWIG_IsOK(res1)) {
5489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5490 }
5491 if (!argp1) {
5492 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5493 }
5494 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5495 {
5496 if (!wxPyCheckForApp()) SWIG_fail;
5497 PyThreadState* __tstate = wxPyBeginAllowThreads();
5498 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5499 wxPyEndAllowThreads(__tstate);
5500 if (PyErr_Occurred()) SWIG_fail;
5501 }
5502 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5503 return resultobj;
5504fail:
5505 return NULL;
d55e5bfc
RD
5506}
5507
5508
1bd55598
RD
5509SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5510 PyObject *resultobj = 0;
5511 wxBrush *arg1 = (wxBrush *) 0 ;
5512 void *argp1 = 0 ;
5513 int res1 = 0 ;
5514 PyObject *swig_obj[1] ;
5515
5516 if (!args) SWIG_fail;
5517 swig_obj[0] = args;
5518 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5519 if (!SWIG_IsOK(res1)) {
5520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5521 }
5522 arg1 = reinterpret_cast< wxBrush * >(argp1);
5523 {
5524 PyThreadState* __tstate = wxPyBeginAllowThreads();
5525 delete arg1;
d55e5bfc 5526
1bd55598
RD
5527 wxPyEndAllowThreads(__tstate);
5528 if (PyErr_Occurred()) SWIG_fail;
5529 }
5530 resultobj = SWIG_Py_Void();
5531 return resultobj;
5532fail:
5533 return NULL;
5534}
5535
5536
5537SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5538 PyObject *resultobj = 0;
5539 wxBrush *arg1 = (wxBrush *) 0 ;
5540 wxColour *arg2 = 0 ;
5541 void *argp1 = 0 ;
5542 int res1 = 0 ;
5543 wxColour temp2 ;
5544 PyObject * obj0 = 0 ;
5545 PyObject * obj1 = 0 ;
5546 char * kwnames[] = {
5547 (char *) "self",(char *) "col", NULL
5548 };
5549
5550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5552 if (!SWIG_IsOK(res1)) {
5553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5554 }
5555 arg1 = reinterpret_cast< wxBrush * >(argp1);
5556 {
5557 arg2 = &temp2;
5558 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5559 }
5560 {
5561 PyThreadState* __tstate = wxPyBeginAllowThreads();
5562 (arg1)->SetColour((wxColour const &)*arg2);
5563 wxPyEndAllowThreads(__tstate);
5564 if (PyErr_Occurred()) SWIG_fail;
5565 }
5566 resultobj = SWIG_Py_Void();
5567 return resultobj;
5568fail:
5569 return NULL;
5570}
5571
5572
5573SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5574 PyObject *resultobj = 0;
5575 wxBrush *arg1 = (wxBrush *) 0 ;
5576 int arg2 ;
5577 void *argp1 = 0 ;
5578 int res1 = 0 ;
5579 int val2 ;
5580 int ecode2 = 0 ;
5581 PyObject * obj0 = 0 ;
5582 PyObject * obj1 = 0 ;
5583 char * kwnames[] = {
5584 (char *) "self",(char *) "style", NULL
5585 };
5586
5587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5589 if (!SWIG_IsOK(res1)) {
5590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5591 }
5592 arg1 = reinterpret_cast< wxBrush * >(argp1);
5593 ecode2 = SWIG_AsVal_int(obj1, &val2);
5594 if (!SWIG_IsOK(ecode2)) {
5595 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5596 }
5597 arg2 = static_cast< int >(val2);
5598 {
5599 PyThreadState* __tstate = wxPyBeginAllowThreads();
5600 (arg1)->SetStyle(arg2);
5601 wxPyEndAllowThreads(__tstate);
5602 if (PyErr_Occurred()) SWIG_fail;
5603 }
5604 resultobj = SWIG_Py_Void();
5605 return resultobj;
5606fail:
5607 return NULL;
5608}
5609
5610
5611SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5612 PyObject *resultobj = 0;
5613 wxBrush *arg1 = (wxBrush *) 0 ;
5614 wxBitmap *arg2 = 0 ;
5615 void *argp1 = 0 ;
5616 int res1 = 0 ;
5617 void *argp2 = 0 ;
5618 int res2 = 0 ;
5619 PyObject * obj0 = 0 ;
5620 PyObject * obj1 = 0 ;
5621 char * kwnames[] = {
5622 (char *) "self",(char *) "stipple", NULL
5623 };
5624
5625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5627 if (!SWIG_IsOK(res1)) {
5628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5629 }
5630 arg1 = reinterpret_cast< wxBrush * >(argp1);
5631 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5632 if (!SWIG_IsOK(res2)) {
5633 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5634 }
5635 if (!argp2) {
5636 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5637 }
5638 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5639 {
5640 PyThreadState* __tstate = wxPyBeginAllowThreads();
5641 (arg1)->SetStipple((wxBitmap const &)*arg2);
5642 wxPyEndAllowThreads(__tstate);
5643 if (PyErr_Occurred()) SWIG_fail;
5644 }
5645 resultobj = SWIG_Py_Void();
5646 return resultobj;
5647fail:
5648 return NULL;
d55e5bfc
RD
5649}
5650
5651
1bd55598
RD
5652SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5653 PyObject *resultobj = 0;
5654 wxBrush *arg1 = (wxBrush *) 0 ;
5655 wxColour result;
5656 void *argp1 = 0 ;
5657 int res1 = 0 ;
5658 PyObject *swig_obj[1] ;
5659
5660 if (!args) SWIG_fail;
5661 swig_obj[0] = args;
5662 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5663 if (!SWIG_IsOK(res1)) {
5664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5665 }
5666 arg1 = reinterpret_cast< wxBrush * >(argp1);
5667 {
5668 PyThreadState* __tstate = wxPyBeginAllowThreads();
5669 result = ((wxBrush const *)arg1)->GetColour();
5670 wxPyEndAllowThreads(__tstate);
5671 if (PyErr_Occurred()) SWIG_fail;
5672 }
5673 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5674 return resultobj;
5675fail:
5676 return NULL;
d55e5bfc
RD
5677}
5678
5679
1bd55598
RD
5680SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5681 PyObject *resultobj = 0;
5682 wxBrush *arg1 = (wxBrush *) 0 ;
5683 int result;
5684 void *argp1 = 0 ;
5685 int res1 = 0 ;
5686 PyObject *swig_obj[1] ;
5687
5688 if (!args) SWIG_fail;
5689 swig_obj[0] = args;
5690 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5691 if (!SWIG_IsOK(res1)) {
5692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5693 }
5694 arg1 = reinterpret_cast< wxBrush * >(argp1);
5695 {
5696 PyThreadState* __tstate = wxPyBeginAllowThreads();
5697 result = (int)((wxBrush const *)arg1)->GetStyle();
5698 wxPyEndAllowThreads(__tstate);
5699 if (PyErr_Occurred()) SWIG_fail;
5700 }
5701 resultobj = SWIG_From_int(static_cast< int >(result));
5702 return resultobj;
5703fail:
5704 return NULL;
d55e5bfc
RD
5705}
5706
5707
1bd55598
RD
5708SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5709 PyObject *resultobj = 0;
5710 wxBrush *arg1 = (wxBrush *) 0 ;
5711 wxBitmap *result = 0 ;
5712 void *argp1 = 0 ;
5713 int res1 = 0 ;
5714 PyObject *swig_obj[1] ;
5715
5716 if (!args) SWIG_fail;
5717 swig_obj[0] = args;
5718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5719 if (!SWIG_IsOK(res1)) {
5720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5721 }
5722 arg1 = reinterpret_cast< wxBrush * >(argp1);
5723 {
5724 PyThreadState* __tstate = wxPyBeginAllowThreads();
5725 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5726 wxPyEndAllowThreads(__tstate);
5727 if (PyErr_Occurred()) SWIG_fail;
5728 }
5729 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5730 return resultobj;
5731fail:
5732 return NULL;
d55e5bfc
RD
5733}
5734
5735
1bd55598
RD
5736SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
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)) {
5748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5749 }
5750 arg1 = reinterpret_cast< wxBrush * >(argp1);
5751 {
5752 PyThreadState* __tstate = wxPyBeginAllowThreads();
5753 result = (bool)((wxBrush const *)arg1)->IsHatch();
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
b39fe951 5766SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
5767 PyObject *resultobj = 0;
5768 wxBrush *arg1 = (wxBrush *) 0 ;
5769 bool 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)) {
b39fe951 5778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
1bd55598
RD
5779 }
5780 arg1 = reinterpret_cast< wxBrush * >(argp1);
5781 {
5782 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5783 result = (bool)(arg1)->IsOk();
1bd55598
RD
5784 wxPyEndAllowThreads(__tstate);
5785 if (PyErr_Occurred()) SWIG_fail;
5786 }
5787 {
5788 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5789 }
5790 return resultobj;
5791fail:
5792 return NULL;
d55e5bfc
RD
5793}
5794
5795
1bd55598
RD
5796SWIGINTERN PyObject *_wrap_Brush_MacGetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5797 PyObject *resultobj = 0;
5798 wxBrush *arg1 = (wxBrush *) 0 ;
5799 short result;
5800 void *argp1 = 0 ;
5801 int res1 = 0 ;
5802 PyObject *swig_obj[1] ;
5803
5804 if (!args) SWIG_fail;
5805 swig_obj[0] = args;
5806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5807 if (!SWIG_IsOK(res1)) {
5808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacGetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
5809 }
5810 arg1 = reinterpret_cast< wxBrush * >(argp1);
5811 {
5812 PyThreadState* __tstate = wxPyBeginAllowThreads();
5813 result = (short)(arg1)->MacGetTheme();
5814 wxPyEndAllowThreads(__tstate);
5815 if (PyErr_Occurred()) SWIG_fail;
5816 }
5817 resultobj = SWIG_From_short(static_cast< short >(result));
5818 return resultobj;
5819fail:
5820 return NULL;
5821}
5822
5823
5824SWIGINTERN PyObject *_wrap_Brush_MacSetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5825 PyObject *resultobj = 0;
5826 wxBrush *arg1 = (wxBrush *) 0 ;
5827 short arg2 ;
5828 void *argp1 = 0 ;
5829 int res1 = 0 ;
5830 short val2 ;
5831 int ecode2 = 0 ;
5832 PyObject * obj0 = 0 ;
5833 PyObject * obj1 = 0 ;
5834 char * kwnames[] = {
5835 (char *) "self",(char *) "macThemeBrush", NULL
5836 };
5837
5838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) SWIG_fail;
5839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5840 if (!SWIG_IsOK(res1)) {
5841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacSetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
5842 }
5843 arg1 = reinterpret_cast< wxBrush * >(argp1);
5844 ecode2 = SWIG_AsVal_short(obj1, &val2);
5845 if (!SWIG_IsOK(ecode2)) {
5846 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_MacSetTheme" "', expected argument " "2"" of type '" "short""'");
5847 }
5848 arg2 = static_cast< short >(val2);
5849 {
5850 PyThreadState* __tstate = wxPyBeginAllowThreads();
5851 (arg1)->MacSetTheme(arg2);
5852 wxPyEndAllowThreads(__tstate);
5853 if (PyErr_Occurred()) SWIG_fail;
5854 }
5855 resultobj = SWIG_Py_Void();
5856 return resultobj;
5857fail:
5858 return NULL;
d55e5bfc
RD
5859}
5860
5861
1bd55598
RD
5862SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5863 PyObject *obj;
5864 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5865 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5866 return SWIG_Py_Void();
d55e5bfc
RD
5867}
5868
1bd55598
RD
5869SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5870 return SWIG_Python_InitShadowInstance(args);
5871}
d55e5bfc 5872
1bd55598
RD
5873SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5874 PyObject *resultobj = 0;
5875 wxString *arg1 = 0 ;
5876 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5877 wxBitmap *result = 0 ;
5878 bool temp1 = false ;
5879 int val2 ;
5880 int ecode2 = 0 ;
5881 PyObject * obj0 = 0 ;
5882 PyObject * obj1 = 0 ;
5883 char * kwnames[] = {
5884 (char *) "name",(char *) "type", NULL
5885 };
5886
5887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5888 {
5889 arg1 = wxString_in_helper(obj0);
5890 if (arg1 == NULL) SWIG_fail;
5891 temp1 = true;
5892 }
5893 if (obj1) {
5894 ecode2 = SWIG_AsVal_int(obj1, &val2);
5895 if (!SWIG_IsOK(ecode2)) {
5896 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5897 }
5898 arg2 = static_cast< wxBitmapType >(val2);
5899 }
5900 {
5901 if (!wxPyCheckForApp()) SWIG_fail;
5902 PyThreadState* __tstate = wxPyBeginAllowThreads();
5903 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5904 wxPyEndAllowThreads(__tstate);
5905 if (PyErr_Occurred()) SWIG_fail;
5906 }
5907 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5908 {
5909 if (temp1)
5910 delete arg1;
5911 }
5912 return resultobj;
5913fail:
5914 {
5915 if (temp1)
5916 delete arg1;
5917 }
5918 return NULL;
d55e5bfc
RD
5919}
5920
5921
1bd55598
RD
5922SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5923 PyObject *resultobj = 0;
5924 wxBitmap *arg1 = (wxBitmap *) 0 ;
5925 void *argp1 = 0 ;
5926 int res1 = 0 ;
5927 PyObject *swig_obj[1] ;
5928
5929 if (!args) SWIG_fail;
5930 swig_obj[0] = args;
5931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5932 if (!SWIG_IsOK(res1)) {
5933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5934 }
5935 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5936 {
1bd55598 5937 delete arg1;
d55e5bfc 5938
1bd55598
RD
5939 if (PyErr_Occurred()) SWIG_fail;
5940 }
5941 resultobj = SWIG_Py_Void();
5942 return resultobj;
5943fail:
5944 return NULL;
5945}
5946
5947
5948SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5949 PyObject *resultobj = 0;
5950 int arg1 ;
5951 int arg2 ;
5952 int arg3 = (int) -1 ;
5953 wxBitmap *result = 0 ;
5954 int val1 ;
5955 int ecode1 = 0 ;
5956 int val2 ;
5957 int ecode2 = 0 ;
5958 int val3 ;
5959 int ecode3 = 0 ;
5960 PyObject * obj0 = 0 ;
5961 PyObject * obj1 = 0 ;
5962 PyObject * obj2 = 0 ;
5963 char * kwnames[] = {
5964 (char *) "width",(char *) "height",(char *) "depth", NULL
5965 };
5966
5967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5968 ecode1 = SWIG_AsVal_int(obj0, &val1);
5969 if (!SWIG_IsOK(ecode1)) {
5970 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5971 }
5972 arg1 = static_cast< int >(val1);
5973 ecode2 = SWIG_AsVal_int(obj1, &val2);
5974 if (!SWIG_IsOK(ecode2)) {
5975 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5976 }
5977 arg2 = static_cast< int >(val2);
5978 if (obj2) {
5979 ecode3 = SWIG_AsVal_int(obj2, &val3);
5980 if (!SWIG_IsOK(ecode3)) {
5981 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5982 }
5983 arg3 = static_cast< int >(val3);
5984 }
5985 {
5986 if (!wxPyCheckForApp()) SWIG_fail;
5987 PyThreadState* __tstate = wxPyBeginAllowThreads();
5988 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5989 wxPyEndAllowThreads(__tstate);
5990 if (PyErr_Occurred()) SWIG_fail;
5991 }
5992 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5993 return resultobj;
5994fail:
5995 return NULL;
5996}
5997
5998
5999SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6000 PyObject *resultobj = 0;
6001 wxIcon *arg1 = 0 ;
6002 wxBitmap *result = 0 ;
6003 void *argp1 = 0 ;
6004 int res1 = 0 ;
6005 PyObject * obj0 = 0 ;
6006 char * kwnames[] = {
6007 (char *) "icon", NULL
6008 };
6009
6010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
6011 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
6012 if (!SWIG_IsOK(res1)) {
6013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6014 }
6015 if (!argp1) {
6016 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6017 }
6018 arg1 = reinterpret_cast< wxIcon * >(argp1);
6019 {
6020 if (!wxPyCheckForApp()) SWIG_fail;
6021 PyThreadState* __tstate = wxPyBeginAllowThreads();
6022 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6023 wxPyEndAllowThreads(__tstate);
6024 if (PyErr_Occurred()) SWIG_fail;
6025 }
6026 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6027 return resultobj;
6028fail:
6029 return NULL;
6030}
6031
6032
6033SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6034 PyObject *resultobj = 0;
6035 wxImage *arg1 = 0 ;
6036 int arg2 = (int) -1 ;
6037 wxBitmap *result = 0 ;
6038 void *argp1 = 0 ;
6039 int res1 = 0 ;
6040 int val2 ;
6041 int ecode2 = 0 ;
6042 PyObject * obj0 = 0 ;
6043 PyObject * obj1 = 0 ;
6044 char * kwnames[] = {
6045 (char *) "image",(char *) "depth", NULL
6046 };
6047
6048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6049 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6050 if (!SWIG_IsOK(res1)) {
6051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6052 }
6053 if (!argp1) {
6054 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6055 }
6056 arg1 = reinterpret_cast< wxImage * >(argp1);
6057 if (obj1) {
6058 ecode2 = SWIG_AsVal_int(obj1, &val2);
6059 if (!SWIG_IsOK(ecode2)) {
6060 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6061 }
6062 arg2 = static_cast< int >(val2);
6063 }
6064 {
6065 if (!wxPyCheckForApp()) SWIG_fail;
6066 PyThreadState* __tstate = wxPyBeginAllowThreads();
6067 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6068 wxPyEndAllowThreads(__tstate);
6069 if (PyErr_Occurred()) SWIG_fail;
6070 }
6071 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6072 return resultobj;
6073fail:
6074 return NULL;
d55e5bfc
RD
6075}
6076
6077
1bd55598
RD
6078SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6079 PyObject *resultobj = 0;
6080 PyObject *arg1 = (PyObject *) 0 ;
6081 wxBitmap *result = 0 ;
6082 PyObject * obj0 = 0 ;
6083 char * kwnames[] = {
6084 (char *) "listOfStrings", NULL
6085 };
6086
6087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6088 arg1 = obj0;
6089 {
6090 if (!wxPyCheckForApp()) SWIG_fail;
6091 PyThreadState* __tstate = wxPyBeginAllowThreads();
6092 result = (wxBitmap *)new_wxBitmap(arg1);
6093 wxPyEndAllowThreads(__tstate);
6094 if (PyErr_Occurred()) SWIG_fail;
6095 }
6096 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6097 return resultobj;
6098fail:
6099 return NULL;
6100}
6101
6102
6103SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6104 PyObject *resultobj = 0;
6105 PyObject *arg1 = (PyObject *) 0 ;
6106 int arg2 ;
6107 int arg3 ;
6108 int arg4 = (int) 1 ;
6109 wxBitmap *result = 0 ;
6110 int val2 ;
6111 int ecode2 = 0 ;
6112 int val3 ;
6113 int ecode3 = 0 ;
6114 int val4 ;
6115 int ecode4 = 0 ;
6116 PyObject * obj0 = 0 ;
6117 PyObject * obj1 = 0 ;
6118 PyObject * obj2 = 0 ;
6119 PyObject * obj3 = 0 ;
6120 char * kwnames[] = {
6121 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6122 };
6123
6124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6125 arg1 = obj0;
6126 ecode2 = SWIG_AsVal_int(obj1, &val2);
6127 if (!SWIG_IsOK(ecode2)) {
6128 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6129 }
6130 arg2 = static_cast< int >(val2);
6131 ecode3 = SWIG_AsVal_int(obj2, &val3);
6132 if (!SWIG_IsOK(ecode3)) {
6133 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6134 }
6135 arg3 = static_cast< int >(val3);
6136 if (obj3) {
6137 ecode4 = SWIG_AsVal_int(obj3, &val4);
6138 if (!SWIG_IsOK(ecode4)) {
6139 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6140 }
6141 arg4 = static_cast< int >(val4);
6142 }
6143 {
6144 if (!wxPyCheckForApp()) SWIG_fail;
6145 PyThreadState* __tstate = wxPyBeginAllowThreads();
6146 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6147 wxPyEndAllowThreads(__tstate);
6148 if (PyErr_Occurred()) SWIG_fail;
6149 }
6150 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6151 return resultobj;
6152fail:
6153 return NULL;
d55e5bfc
RD
6154}
6155
6156
b39fe951 6157SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
6158 PyObject *resultobj = 0;
6159 wxBitmap *arg1 = (wxBitmap *) 0 ;
6160 bool result;
6161 void *argp1 = 0 ;
6162 int res1 = 0 ;
6163 PyObject *swig_obj[1] ;
6164
6165 if (!args) SWIG_fail;
6166 swig_obj[0] = args;
6167 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6168 if (!SWIG_IsOK(res1)) {
b39fe951 6169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
1bd55598
RD
6170 }
6171 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6172 {
b39fe951 6173 result = (bool)(arg1)->IsOk();
1bd55598
RD
6174 if (PyErr_Occurred()) SWIG_fail;
6175 }
6176 {
6177 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6178 }
6179 return resultobj;
6180fail:
6181 return NULL;
d55e5bfc
RD
6182}
6183
6184
1bd55598
RD
6185SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6186 PyObject *resultobj = 0;
6187 wxBitmap *arg1 = (wxBitmap *) 0 ;
6188 int result;
6189 void *argp1 = 0 ;
6190 int res1 = 0 ;
6191 PyObject *swig_obj[1] ;
6192
6193 if (!args) SWIG_fail;
6194 swig_obj[0] = args;
6195 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6196 if (!SWIG_IsOK(res1)) {
6197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6198 }
6199 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6200 {
1bd55598 6201 result = (int)(arg1)->GetWidth();
1bd55598
RD
6202 if (PyErr_Occurred()) SWIG_fail;
6203 }
6204 resultobj = SWIG_From_int(static_cast< int >(result));
6205 return resultobj;
6206fail:
6207 return NULL;
070c48b4
RD
6208}
6209
6210
1bd55598
RD
6211SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6212 PyObject *resultobj = 0;
6213 wxBitmap *arg1 = (wxBitmap *) 0 ;
6214 int result;
6215 void *argp1 = 0 ;
6216 int res1 = 0 ;
6217 PyObject *swig_obj[1] ;
6218
6219 if (!args) SWIG_fail;
6220 swig_obj[0] = args;
6221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6222 if (!SWIG_IsOK(res1)) {
6223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6224 }
6225 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6226 {
1bd55598 6227 result = (int)(arg1)->GetHeight();
1bd55598
RD
6228 if (PyErr_Occurred()) SWIG_fail;
6229 }
6230 resultobj = SWIG_From_int(static_cast< int >(result));
6231 return resultobj;
6232fail:
6233 return NULL;
d55e5bfc
RD
6234}
6235
6236
1bd55598
RD
6237SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6238 PyObject *resultobj = 0;
6239 wxBitmap *arg1 = (wxBitmap *) 0 ;
6240 int result;
6241 void *argp1 = 0 ;
6242 int res1 = 0 ;
6243 PyObject *swig_obj[1] ;
6244
6245 if (!args) SWIG_fail;
6246 swig_obj[0] = args;
6247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6248 if (!SWIG_IsOK(res1)) {
6249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6250 }
6251 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6252 {
1bd55598 6253 result = (int)(arg1)->GetDepth();
1bd55598
RD
6254 if (PyErr_Occurred()) SWIG_fail;
6255 }
6256 resultobj = SWIG_From_int(static_cast< int >(result));
6257 return resultobj;
6258fail:
6259 return NULL;
d55e5bfc
RD
6260}
6261
6262
1bd55598
RD
6263SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6264 PyObject *resultobj = 0;
6265 wxBitmap *arg1 = (wxBitmap *) 0 ;
6266 wxSize result;
6267 void *argp1 = 0 ;
6268 int res1 = 0 ;
6269 PyObject *swig_obj[1] ;
6270
6271 if (!args) SWIG_fail;
6272 swig_obj[0] = args;
6273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6274 if (!SWIG_IsOK(res1)) {
6275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6276 }
6277 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6278 {
1bd55598 6279 result = wxBitmap_GetSize(arg1);
1bd55598
RD
6280 if (PyErr_Occurred()) SWIG_fail;
6281 }
6282 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6283 return resultobj;
6284fail:
6285 return NULL;
d55e5bfc
RD
6286}
6287
6288
1bd55598
RD
6289SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6290 PyObject *resultobj = 0;
6291 wxBitmap *arg1 = (wxBitmap *) 0 ;
6292 SwigValueWrapper<wxImage > result;
6293 void *argp1 = 0 ;
6294 int res1 = 0 ;
6295 PyObject *swig_obj[1] ;
6296
6297 if (!args) SWIG_fail;
6298 swig_obj[0] = args;
6299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6300 if (!SWIG_IsOK(res1)) {
6301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6302 }
6303 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6304 {
1bd55598 6305 result = ((wxBitmap const *)arg1)->ConvertToImage();
1bd55598
RD
6306 if (PyErr_Occurred()) SWIG_fail;
6307 }
6308 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6309 return resultobj;
6310fail:
6311 return NULL;
d55e5bfc
RD
6312}
6313
6314
1bd55598
RD
6315SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6316 PyObject *resultobj = 0;
6317 wxBitmap *arg1 = (wxBitmap *) 0 ;
6318 wxMask *result = 0 ;
6319 void *argp1 = 0 ;
6320 int res1 = 0 ;
6321 PyObject *swig_obj[1] ;
6322
6323 if (!args) SWIG_fail;
6324 swig_obj[0] = args;
6325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6326 if (!SWIG_IsOK(res1)) {
6327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6328 }
6329 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6330 {
1bd55598 6331 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
1bd55598
RD
6332 if (PyErr_Occurred()) SWIG_fail;
6333 }
6334 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6335 return resultobj;
6336fail:
6337 return NULL;
6338}
6339
6340
6341SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6342 PyObject *resultobj = 0;
6343 wxBitmap *arg1 = (wxBitmap *) 0 ;
6344 wxMask *arg2 = (wxMask *) 0 ;
6345 void *argp1 = 0 ;
6346 int res1 = 0 ;
6347 int res2 = 0 ;
6348 PyObject * obj0 = 0 ;
6349 PyObject * obj1 = 0 ;
6350 char * kwnames[] = {
6351 (char *) "self",(char *) "mask", NULL
6352 };
6353
6354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6356 if (!SWIG_IsOK(res1)) {
6357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6358 }
6359 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6360 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6361 if (!SWIG_IsOK(res2)) {
6362 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6363 }
6364 {
1bd55598 6365 (arg1)->SetMask(arg2);
1bd55598
RD
6366 if (PyErr_Occurred()) SWIG_fail;
6367 }
6368 resultobj = SWIG_Py_Void();
6369 return resultobj;
6370fail:
6371 return NULL;
6372}
6373
6374
6375SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6376 PyObject *resultobj = 0;
6377 wxBitmap *arg1 = (wxBitmap *) 0 ;
6378 wxColour *arg2 = 0 ;
6379 void *argp1 = 0 ;
6380 int res1 = 0 ;
6381 wxColour temp2 ;
6382 PyObject * obj0 = 0 ;
6383 PyObject * obj1 = 0 ;
6384 char * kwnames[] = {
6385 (char *) "self",(char *) "colour", NULL
6386 };
6387
6388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6390 if (!SWIG_IsOK(res1)) {
6391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6392 }
6393 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6394 {
6395 arg2 = &temp2;
6396 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6397 }
6398 {
1bd55598 6399 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
1bd55598
RD
6400 if (PyErr_Occurred()) SWIG_fail;
6401 }
6402 resultobj = SWIG_Py_Void();
6403 return resultobj;
6404fail:
6405 return NULL;
6406}
6407
6408
6409SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6410 PyObject *resultobj = 0;
6411 wxBitmap *arg1 = (wxBitmap *) 0 ;
6412 wxRect *arg2 = 0 ;
6413 SwigValueWrapper<wxBitmap > result;
6414 void *argp1 = 0 ;
6415 int res1 = 0 ;
6416 wxRect temp2 ;
6417 PyObject * obj0 = 0 ;
6418 PyObject * obj1 = 0 ;
6419 char * kwnames[] = {
6420 (char *) "self",(char *) "rect", NULL
6421 };
6422
6423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6425 if (!SWIG_IsOK(res1)) {
6426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6427 }
6428 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6429 {
6430 arg2 = &temp2;
6431 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6432 }
6433 {
1bd55598 6434 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
1bd55598
RD
6435 if (PyErr_Occurred()) SWIG_fail;
6436 }
6437 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6438 return resultobj;
6439fail:
6440 return NULL;
6441}
6442
6443
6444SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6445 PyObject *resultobj = 0;
6446 wxBitmap *arg1 = (wxBitmap *) 0 ;
6447 wxString *arg2 = 0 ;
6448 wxBitmapType arg3 ;
6449 wxPalette *arg4 = (wxPalette *) NULL ;
6450 bool result;
6451 void *argp1 = 0 ;
6452 int res1 = 0 ;
6453 bool temp2 = false ;
6454 int val3 ;
6455 int ecode3 = 0 ;
6456 void *argp4 = 0 ;
6457 int res4 = 0 ;
6458 PyObject * obj0 = 0 ;
6459 PyObject * obj1 = 0 ;
6460 PyObject * obj2 = 0 ;
6461 PyObject * obj3 = 0 ;
6462 char * kwnames[] = {
6463 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6464 };
6465
6466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6468 if (!SWIG_IsOK(res1)) {
6469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6470 }
6471 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6472 {
6473 arg2 = wxString_in_helper(obj1);
6474 if (arg2 == NULL) SWIG_fail;
6475 temp2 = true;
6476 }
6477 ecode3 = SWIG_AsVal_int(obj2, &val3);
6478 if (!SWIG_IsOK(ecode3)) {
6479 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6480 }
6481 arg3 = static_cast< wxBitmapType >(val3);
6482 if (obj3) {
6483 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6484 if (!SWIG_IsOK(res4)) {
6485 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
d04418a7 6486 }
1bd55598
RD
6487 arg4 = reinterpret_cast< wxPalette * >(argp4);
6488 }
6489 {
1bd55598 6490 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
1bd55598
RD
6491 if (PyErr_Occurred()) SWIG_fail;
6492 }
6493 {
6494 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6495 }
6496 {
6497 if (temp2)
6498 delete arg2;
6499 }
6500 return resultobj;
6501fail:
6502 {
6503 if (temp2)
6504 delete arg2;
6505 }
6506 return NULL;
6507}
6508
6509
6510SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6511 PyObject *resultobj = 0;
6512 wxBitmap *arg1 = (wxBitmap *) 0 ;
6513 wxString *arg2 = 0 ;
6514 wxBitmapType arg3 ;
6515 bool result;
6516 void *argp1 = 0 ;
6517 int res1 = 0 ;
6518 bool temp2 = false ;
6519 int val3 ;
6520 int ecode3 = 0 ;
6521 PyObject * obj0 = 0 ;
6522 PyObject * obj1 = 0 ;
6523 PyObject * obj2 = 0 ;
6524 char * kwnames[] = {
6525 (char *) "self",(char *) "name",(char *) "type", NULL
6526 };
6527
6528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6530 if (!SWIG_IsOK(res1)) {
6531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6532 }
6533 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6534 {
6535 arg2 = wxString_in_helper(obj1);
6536 if (arg2 == NULL) SWIG_fail;
6537 temp2 = true;
6538 }
6539 ecode3 = SWIG_AsVal_int(obj2, &val3);
6540 if (!SWIG_IsOK(ecode3)) {
6541 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6542 }
6543 arg3 = static_cast< wxBitmapType >(val3);
6544 {
1bd55598 6545 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
1bd55598
RD
6546 if (PyErr_Occurred()) SWIG_fail;
6547 }
6548 {
6549 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6550 }
6551 {
6552 if (temp2)
6553 delete arg2;
6554 }
6555 return resultobj;
6556fail:
6557 {
6558 if (temp2)
6559 delete arg2;
6560 }
6561 return NULL;
d04418a7
RD
6562}
6563
6564
1bd55598
RD
6565SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6566 PyObject *resultobj = 0;
6567 wxBitmap *arg1 = (wxBitmap *) 0 ;
6568 wxPalette *result = 0 ;
6569 void *argp1 = 0 ;
6570 int res1 = 0 ;
6571 PyObject *swig_obj[1] ;
6572
6573 if (!args) SWIG_fail;
6574 swig_obj[0] = args;
6575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6576 if (!SWIG_IsOK(res1)) {
6577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6578 }
6579 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6580 {
1bd55598 6581 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
1bd55598
RD
6582 if (PyErr_Occurred()) SWIG_fail;
6583 }
6584 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6585 return resultobj;
6586fail:
6587 return NULL;
6588}
6589
6590
6591SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6592 PyObject *resultobj = 0;
6593 wxBitmap *arg1 = (wxBitmap *) 0 ;
6594 wxIcon *arg2 = 0 ;
6595 bool result;
6596 void *argp1 = 0 ;
6597 int res1 = 0 ;
6598 void *argp2 = 0 ;
6599 int res2 = 0 ;
6600 PyObject * obj0 = 0 ;
6601 PyObject * obj1 = 0 ;
6602 char * kwnames[] = {
6603 (char *) "self",(char *) "icon", NULL
6604 };
6605
6606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6608 if (!SWIG_IsOK(res1)) {
6609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6610 }
6611 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6612 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6613 if (!SWIG_IsOK(res2)) {
6614 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6615 }
6616 if (!argp2) {
6617 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6618 }
6619 arg2 = reinterpret_cast< wxIcon * >(argp2);
6620 {
1bd55598 6621 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
1bd55598
RD
6622 if (PyErr_Occurred()) SWIG_fail;
6623 }
6624 {
6625 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6626 }
6627 return resultobj;
6628fail:
6629 return NULL;
6630}
6631
6632
6633SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6634 PyObject *resultobj = 0;
6635 wxBitmap *arg1 = (wxBitmap *) 0 ;
6636 int arg2 ;
6637 void *argp1 = 0 ;
6638 int res1 = 0 ;
6639 int val2 ;
6640 int ecode2 = 0 ;
6641 PyObject * obj0 = 0 ;
6642 PyObject * obj1 = 0 ;
6643 char * kwnames[] = {
6644 (char *) "self",(char *) "height", NULL
6645 };
6646
6647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6649 if (!SWIG_IsOK(res1)) {
6650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6651 }
6652 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6653 ecode2 = SWIG_AsVal_int(obj1, &val2);
6654 if (!SWIG_IsOK(ecode2)) {
6655 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6656 }
6657 arg2 = static_cast< int >(val2);
6658 {
1bd55598 6659 (arg1)->SetHeight(arg2);
1bd55598
RD
6660 if (PyErr_Occurred()) SWIG_fail;
6661 }
6662 resultobj = SWIG_Py_Void();
6663 return resultobj;
6664fail:
6665 return NULL;
6666}
6667
6668
6669SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6670 PyObject *resultobj = 0;
6671 wxBitmap *arg1 = (wxBitmap *) 0 ;
6672 int arg2 ;
6673 void *argp1 = 0 ;
6674 int res1 = 0 ;
6675 int val2 ;
6676 int ecode2 = 0 ;
6677 PyObject * obj0 = 0 ;
6678 PyObject * obj1 = 0 ;
6679 char * kwnames[] = {
6680 (char *) "self",(char *) "width", NULL
6681 };
6682
6683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6685 if (!SWIG_IsOK(res1)) {
6686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6687 }
6688 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6689 ecode2 = SWIG_AsVal_int(obj1, &val2);
6690 if (!SWIG_IsOK(ecode2)) {
6691 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6692 }
6693 arg2 = static_cast< int >(val2);
6694 {
1bd55598 6695 (arg1)->SetWidth(arg2);
1bd55598
RD
6696 if (PyErr_Occurred()) SWIG_fail;
6697 }
6698 resultobj = SWIG_Py_Void();
6699 return resultobj;
6700fail:
6701 return NULL;
6702}
6703
6704
6705SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6706 PyObject *resultobj = 0;
6707 wxBitmap *arg1 = (wxBitmap *) 0 ;
6708 int arg2 ;
6709 void *argp1 = 0 ;
6710 int res1 = 0 ;
6711 int val2 ;
6712 int ecode2 = 0 ;
6713 PyObject * obj0 = 0 ;
6714 PyObject * obj1 = 0 ;
6715 char * kwnames[] = {
6716 (char *) "self",(char *) "depth", NULL
6717 };
6718
6719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6721 if (!SWIG_IsOK(res1)) {
6722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6723 }
6724 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6725 ecode2 = SWIG_AsVal_int(obj1, &val2);
6726 if (!SWIG_IsOK(ecode2)) {
6727 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6728 }
6729 arg2 = static_cast< int >(val2);
6730 {
1bd55598 6731 (arg1)->SetDepth(arg2);
1bd55598
RD
6732 if (PyErr_Occurred()) SWIG_fail;
6733 }
6734 resultobj = SWIG_Py_Void();
6735 return resultobj;
6736fail:
6737 return NULL;
6738}
6739
6740
6741SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6742 PyObject *resultobj = 0;
6743 wxBitmap *arg1 = (wxBitmap *) 0 ;
6744 wxSize *arg2 = 0 ;
6745 void *argp1 = 0 ;
6746 int res1 = 0 ;
6747 wxSize temp2 ;
6748 PyObject * obj0 = 0 ;
6749 PyObject * obj1 = 0 ;
6750 char * kwnames[] = {
6751 (char *) "self",(char *) "size", NULL
6752 };
6753
6754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6756 if (!SWIG_IsOK(res1)) {
6757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6758 }
6759 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6760 {
6761 arg2 = &temp2;
6762 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6763 }
6764 {
1bd55598 6765 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
1bd55598
RD
6766 if (PyErr_Occurred()) SWIG_fail;
6767 }
6768 resultobj = SWIG_Py_Void();
6769 return resultobj;
6770fail:
6771 return NULL;
6772}
6773
6774
6775SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6776 PyObject *resultobj = 0;
6777 wxBitmap *arg1 = (wxBitmap *) 0 ;
6778 wxBitmap *arg2 = (wxBitmap *) 0 ;
6779 bool result;
6780 void *argp1 = 0 ;
6781 int res1 = 0 ;
6782 void *argp2 = 0 ;
6783 int res2 = 0 ;
6784 PyObject * obj0 = 0 ;
6785 PyObject * obj1 = 0 ;
6786 char * kwnames[] = {
6787 (char *) "self",(char *) "other", NULL
6788 };
6789
6790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6792 if (!SWIG_IsOK(res1)) {
6793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6794 }
6795 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6796 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6797 if (!SWIG_IsOK(res2)) {
6798 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6799 }
6800 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6801 {
1bd55598 6802 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
1bd55598
RD
6803 if (PyErr_Occurred()) SWIG_fail;
6804 }
6805 {
fc46b7f3
RD
6806 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6807 }
6808 return resultobj;
6809fail:
6810 return NULL;
6811}
6812
6813
6814SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6815 PyObject *resultobj = 0;
6816 wxBitmap *arg1 = (wxBitmap *) 0 ;
6817 wxBitmap *arg2 = (wxBitmap *) 0 ;
6818 bool result;
6819 void *argp1 = 0 ;
6820 int res1 = 0 ;
6821 void *argp2 = 0 ;
6822 int res2 = 0 ;
6823 PyObject * obj0 = 0 ;
6824 PyObject * obj1 = 0 ;
6825 char * kwnames[] = {
6826 (char *) "self",(char *) "other", NULL
6827 };
6828
6829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6831 if (!SWIG_IsOK(res1)) {
6832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6833 }
6834 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6835 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6836 if (!SWIG_IsOK(res2)) {
6837 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6838 }
6839 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6840 {
6841 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6842 if (PyErr_Occurred()) SWIG_fail;
6843 }
6844 {
6845 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6846 }
6847 return resultobj;
6848fail:
6849 return NULL;
6850}
6851
6852
6853SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6854 PyObject *obj;
6855 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6856 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6857 return SWIG_Py_Void();
6858}
6859
6860SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6861 return SWIG_Python_InitShadowInstance(args);
6862}
6863
6864SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6865 PyObject *resultobj = 0;
6866 int arg1 ;
6867 int arg2 ;
6868 buffer arg3 ;
6869 int arg4 ;
6870 buffer arg5 ;
6871 int arg6 ;
6872 wxBitmap *result = 0 ;
6873 int val1 ;
6874 int ecode1 = 0 ;
6875 int val2 ;
6876 int ecode2 = 0 ;
8c9c423b
RD
6877 Py_ssize_t temp3 ;
6878 Py_ssize_t temp5 ;
fc46b7f3
RD
6879 PyObject * obj0 = 0 ;
6880 PyObject * obj1 = 0 ;
6881 PyObject * obj2 = 0 ;
6882 PyObject * obj3 = 0 ;
6883 char * kwnames[] = {
6884 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
6885 };
6886
6887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6888 ecode1 = SWIG_AsVal_int(obj0, &val1);
6889 if (!SWIG_IsOK(ecode1)) {
6890 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
6891 }
6892 arg1 = static_cast< int >(val1);
6893 ecode2 = SWIG_AsVal_int(obj1, &val2);
6894 if (!SWIG_IsOK(ecode2)) {
6895 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
6896 }
6897 arg2 = static_cast< int >(val2);
6898 {
8c9c423b
RD
6899 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6900 arg4 = (int)temp3;
fc46b7f3
RD
6901 }
6902 {
6903 if (obj3 != Py_None) {
8c9c423b
RD
6904 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
6905 arg6 = (int)temp5;
fc46b7f3
RD
6906 }
6907 }
6908 {
6909 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
6910 if (PyErr_Occurred()) SWIG_fail;
6911 }
6912 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6913 return resultobj;
6914fail:
6915 return NULL;
6916}
6917
6918
6919SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6920 PyObject *resultobj = 0;
6921 int arg1 ;
6922 int arg2 ;
6923 buffer arg3 ;
6924 int arg4 ;
6925 wxBitmap *result = 0 ;
6926 int val1 ;
6927 int ecode1 = 0 ;
6928 int val2 ;
6929 int ecode2 = 0 ;
8c9c423b 6930 Py_ssize_t temp3 ;
fc46b7f3
RD
6931 PyObject * obj0 = 0 ;
6932 PyObject * obj1 = 0 ;
6933 PyObject * obj2 = 0 ;
6934 char * kwnames[] = {
6935 (char *) "width",(char *) "height",(char *) "data", NULL
6936 };
6937
6938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6939 ecode1 = SWIG_AsVal_int(obj0, &val1);
6940 if (!SWIG_IsOK(ecode1)) {
6941 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
6942 }
6943 arg1 = static_cast< int >(val1);
6944 ecode2 = SWIG_AsVal_int(obj1, &val2);
6945 if (!SWIG_IsOK(ecode2)) {
6946 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
6947 }
6948 arg2 = static_cast< int >(val2);
6949 {
8c9c423b
RD
6950 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6951 arg4 = (int)temp3;
fc46b7f3
RD
6952 }
6953 {
6954 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
6955 if (PyErr_Occurred()) SWIG_fail;
6956 }
6957 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6958 return resultobj;
6959fail:
6960 return NULL;
6961}
6962
6963
6964SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6965 PyObject *resultobj = 0;
6966 int arg1 ;
6967 int arg2 ;
6968 buffer arg3 ;
6969 int arg4 ;
6970 wxBitmap *result = 0 ;
6971 int val1 ;
6972 int ecode1 = 0 ;
6973 int val2 ;
6974 int ecode2 = 0 ;
8c9c423b 6975 Py_ssize_t temp3 ;
fc46b7f3
RD
6976 PyObject * obj0 = 0 ;
6977 PyObject * obj1 = 0 ;
6978 PyObject * obj2 = 0 ;
6979 char * kwnames[] = {
6980 (char *) "width",(char *) "height",(char *) "data", NULL
6981 };
6982
6983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6984 ecode1 = SWIG_AsVal_int(obj0, &val1);
6985 if (!SWIG_IsOK(ecode1)) {
6986 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
6987 }
6988 arg1 = static_cast< int >(val1);
6989 ecode2 = SWIG_AsVal_int(obj1, &val2);
6990 if (!SWIG_IsOK(ecode2)) {
6991 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
6992 }
6993 arg2 = static_cast< int >(val2);
6994 {
8c9c423b
RD
6995 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6996 arg4 = (int)temp3;
fc46b7f3
RD
6997 }
6998 {
6999 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7000 if (PyErr_Occurred()) SWIG_fail;
7001 }
7002 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7003 return resultobj;
7004fail:
7005 return NULL;
7006}
7007
7008
7009SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7010 PyObject *resultobj = 0;
7011 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7012 wxPoint result;
7013 void *argp1 = 0 ;
7014 int res1 = 0 ;
7015 PyObject *swig_obj[1] ;
7016
7017 if (!args) SWIG_fail;
7018 swig_obj[0] = args;
7019 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7020 if (!SWIG_IsOK(res1)) {
7021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7022 }
7023 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7024 {
7025 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7026 if (PyErr_Occurred()) SWIG_fail;
7027 }
7028 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7029 return resultobj;
7030fail:
7031 return NULL;
7032}
7033
7034
7035SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7036 PyObject *resultobj = 0;
7037 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7038 int result;
7039 void *argp1 = 0 ;
7040 int res1 = 0 ;
7041 PyObject *swig_obj[1] ;
7042
7043 if (!args) SWIG_fail;
7044 swig_obj[0] = args;
7045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7046 if (!SWIG_IsOK(res1)) {
7047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7048 }
7049 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7050 {
7051 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7052 if (PyErr_Occurred()) SWIG_fail;
7053 }
7054 resultobj = SWIG_From_int(static_cast< int >(result));
7055 return resultobj;
7056fail:
7057 return NULL;
7058}
7059
7060
7061SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7062 PyObject *resultobj = 0;
7063 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7064 int result;
7065 void *argp1 = 0 ;
7066 int res1 = 0 ;
7067 PyObject *swig_obj[1] ;
7068
7069 if (!args) SWIG_fail;
7070 swig_obj[0] = args;
7071 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7072 if (!SWIG_IsOK(res1)) {
7073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7074 }
7075 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7076 {
7077 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7078 if (PyErr_Occurred()) SWIG_fail;
7079 }
7080 resultobj = SWIG_From_int(static_cast< int >(result));
7081 return resultobj;
7082fail:
7083 return NULL;
7084}
7085
7086
7087SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7088 PyObject *resultobj = 0;
7089 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7090 wxSize result;
7091 void *argp1 = 0 ;
7092 int res1 = 0 ;
7093 PyObject *swig_obj[1] ;
7094
7095 if (!args) SWIG_fail;
7096 swig_obj[0] = args;
7097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7098 if (!SWIG_IsOK(res1)) {
7099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7100 }
7101 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7102 {
7103 result = ((wxPixelDataBase const *)arg1)->GetSize();
7104 if (PyErr_Occurred()) SWIG_fail;
7105 }
7106 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7107 return resultobj;
7108fail:
7109 return NULL;
7110}
7111
7112
7113SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7114 PyObject *resultobj = 0;
7115 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7116 int result;
7117 void *argp1 = 0 ;
7118 int res1 = 0 ;
7119 PyObject *swig_obj[1] ;
7120
7121 if (!args) SWIG_fail;
7122 swig_obj[0] = args;
7123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7124 if (!SWIG_IsOK(res1)) {
7125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7126 }
7127 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7128 {
7129 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7130 if (PyErr_Occurred()) SWIG_fail;
7131 }
7132 resultobj = SWIG_From_int(static_cast< int >(result));
7133 return resultobj;
7134fail:
7135 return NULL;
7136}
7137
7138
7139SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7140 PyObject *obj;
7141 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7142 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7143 return SWIG_Py_Void();
7144}
7145
7146SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7147 PyObject *resultobj = 0;
7148 wxBitmap *arg1 = 0 ;
7149 wxNativePixelData *result = 0 ;
7150 void *argp1 = 0 ;
7151 int res1 = 0 ;
7152
7153 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7155 if (!SWIG_IsOK(res1)) {
7156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7157 }
7158 if (!argp1) {
7159 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7160 }
7161 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7162 {
7163 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7164 if (PyErr_Occurred()) SWIG_fail;
7165 }
7166 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7167 return resultobj;
7168fail:
7169 return NULL;
7170}
7171
7172
7173SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7174 PyObject *resultobj = 0;
7175 wxBitmap *arg1 = 0 ;
7176 wxRect *arg2 = 0 ;
7177 wxNativePixelData *result = 0 ;
7178 void *argp1 = 0 ;
7179 int res1 = 0 ;
7180 wxRect temp2 ;
7181
7182 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7184 if (!SWIG_IsOK(res1)) {
7185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7186 }
7187 if (!argp1) {
7188 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7189 }
7190 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7191 {
7192 arg2 = &temp2;
7193 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7194 }
7195 {
7196 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7197 if (PyErr_Occurred()) SWIG_fail;
7198 }
7199 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7200 return resultobj;
7201fail:
7202 return NULL;
7203}
7204
7205
7206SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7207 PyObject *resultobj = 0;
7208 wxBitmap *arg1 = 0 ;
7209 wxPoint *arg2 = 0 ;
7210 wxSize *arg3 = 0 ;
7211 wxNativePixelData *result = 0 ;
7212 void *argp1 = 0 ;
7213 int res1 = 0 ;
7214 wxPoint temp2 ;
7215 wxSize temp3 ;
7216
7217 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7218 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7219 if (!SWIG_IsOK(res1)) {
7220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7221 }
7222 if (!argp1) {
7223 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7224 }
7225 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7226 {
7227 arg2 = &temp2;
7228 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7229 }
7230 {
7231 arg3 = &temp3;
7232 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7233 }
7234 {
7235 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7236 if (PyErr_Occurred()) SWIG_fail;
7237 }
7238 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7239 return resultobj;
7240fail:
7241 return NULL;
7242}
7243
7244
7245SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7246 int argc;
7247 PyObject *argv[4];
7248
7249 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7250 --argc;
7251 if (argc == 1) {
7252 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7253 }
7254 if (argc == 2) {
7255 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7256 }
7257 if (argc == 3) {
7258 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7259 }
7260
7261fail:
7262 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7263 return NULL;
7264}
7265
7266
7267SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7268 PyObject *resultobj = 0;
7269 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7270 void *argp1 = 0 ;
7271 int res1 = 0 ;
7272 PyObject *swig_obj[1] ;
7273
7274 if (!args) SWIG_fail;
7275 swig_obj[0] = args;
7276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7277 if (!SWIG_IsOK(res1)) {
7278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7279 }
7280 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7281 {
7282 delete arg1;
7283
7284 if (PyErr_Occurred()) SWIG_fail;
7285 }
7286 resultobj = SWIG_Py_Void();
7287 return resultobj;
7288fail:
7289 return NULL;
7290}
7291
7292
7293SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7294 PyObject *resultobj = 0;
7295 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7296 wxNativePixelData_Accessor result;
7297 void *argp1 = 0 ;
7298 int res1 = 0 ;
7299 PyObject *swig_obj[1] ;
7300
7301 if (!args) SWIG_fail;
7302 swig_obj[0] = args;
7303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7304 if (!SWIG_IsOK(res1)) {
7305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7306 }
7307 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7308 {
7309 result = ((wxNativePixelData const *)arg1)->GetPixels();
7310 if (PyErr_Occurred()) SWIG_fail;
7311 }
7312 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7313 return resultobj;
7314fail:
7315 return NULL;
7316}
7317
7318
7319SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7320 PyObject *resultobj = 0;
7321 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7322 void *argp1 = 0 ;
7323 int res1 = 0 ;
7324 PyObject *swig_obj[1] ;
7325
7326 if (!args) SWIG_fail;
7327 swig_obj[0] = args;
7328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7329 if (!SWIG_IsOK(res1)) {
7330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7331 }
7332 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7333 {
7334 (arg1)->UseAlpha();
7335 if (PyErr_Occurred()) SWIG_fail;
7336 }
7337 resultobj = SWIG_Py_Void();
7338 return resultobj;
7339fail:
7340 return NULL;
7341}
7342
7343
7344SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7345 PyObject *resultobj = 0;
7346 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7347 bool result;
7348 void *argp1 = 0 ;
7349 int res1 = 0 ;
7350 PyObject *swig_obj[1] ;
7351
7352 if (!args) SWIG_fail;
7353 swig_obj[0] = args;
7354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7355 if (!SWIG_IsOK(res1)) {
7356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7357 }
7358 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7359 {
7360 result = (bool)wxNativePixelData___nonzero__(arg1);
7361 if (PyErr_Occurred()) SWIG_fail;
7362 }
7363 {
7364 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7365 }
7366 return resultobj;
7367fail:
7368 return NULL;
7369}
7370
7371
7372SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7373 PyObject *obj;
7374 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7375 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7376 return SWIG_Py_Void();
7377}
7378
7379SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7380 return SWIG_Python_InitShadowInstance(args);
7381}
7382
7383SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7384 PyObject *resultobj = 0;
7385 wxNativePixelData *arg1 = 0 ;
7386 wxNativePixelData_Accessor *result = 0 ;
7387 void *argp1 = 0 ;
7388 int res1 = 0 ;
7389
7390 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7392 if (!SWIG_IsOK(res1)) {
7393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7394 }
7395 if (!argp1) {
7396 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7397 }
7398 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7399 {
7400 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7401 if (PyErr_Occurred()) SWIG_fail;
7402 }
7403 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7404 return resultobj;
7405fail:
7406 return NULL;
7407}
7408
7409
7410SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7411 PyObject *resultobj = 0;
7412 wxBitmap *arg1 = 0 ;
7413 wxNativePixelData *arg2 = 0 ;
7414 wxNativePixelData_Accessor *result = 0 ;
7415 void *argp1 = 0 ;
7416 int res1 = 0 ;
7417 void *argp2 = 0 ;
7418 int res2 = 0 ;
7419
7420 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7422 if (!SWIG_IsOK(res1)) {
7423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7424 }
7425 if (!argp1) {
7426 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7427 }
7428 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7429 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7430 if (!SWIG_IsOK(res2)) {
7431 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7432 }
7433 if (!argp2) {
7434 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7435 }
7436 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7437 {
7438 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7439 if (PyErr_Occurred()) SWIG_fail;
7440 }
7441 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7442 return resultobj;
7443fail:
7444 return NULL;
7445}
7446
7447
7448SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7449 PyObject *resultobj = 0;
7450 wxNativePixelData_Accessor *result = 0 ;
7451
7452 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7453 {
7454 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7455 if (PyErr_Occurred()) SWIG_fail;
7456 }
7457 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7458 return resultobj;
7459fail:
7460 return NULL;
7461}
7462
7463
7464SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7465 int argc;
7466 PyObject *argv[3];
7467
7468 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7469 --argc;
7470 if (argc == 0) {
7471 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7472 }
7473 if (argc == 1) {
7474 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7475 }
7476 if (argc == 2) {
7477 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7478 }
7479
7480fail:
7481 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7482 return NULL;
7483}
7484
7485
7486SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7487 PyObject *resultobj = 0;
7488 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7489 void *argp1 = 0 ;
7490 int res1 = 0 ;
7491 PyObject *swig_obj[1] ;
7492
7493 if (!args) SWIG_fail;
7494 swig_obj[0] = args;
7495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7496 if (!SWIG_IsOK(res1)) {
7497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7498 }
7499 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7500 {
7501 delete arg1;
7502
7503 if (PyErr_Occurred()) SWIG_fail;
7504 }
7505 resultobj = SWIG_Py_Void();
7506 return resultobj;
7507fail:
7508 return NULL;
7509}
7510
7511
7512SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7513 PyObject *resultobj = 0;
7514 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7515 wxNativePixelData *arg2 = 0 ;
7516 void *argp1 = 0 ;
7517 int res1 = 0 ;
7518 void *argp2 = 0 ;
7519 int res2 = 0 ;
7520 PyObject * obj0 = 0 ;
7521 PyObject * obj1 = 0 ;
7522 char * kwnames[] = {
7523 (char *) "self",(char *) "data", NULL
7524 };
7525
7526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7528 if (!SWIG_IsOK(res1)) {
7529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7530 }
7531 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7532 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7533 if (!SWIG_IsOK(res2)) {
7534 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7535 }
7536 if (!argp2) {
7537 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7538 }
7539 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7540 {
7541 (arg1)->Reset((wxNativePixelData const &)*arg2);
7542 if (PyErr_Occurred()) SWIG_fail;
7543 }
7544 resultobj = SWIG_Py_Void();
7545 return resultobj;
7546fail:
7547 return NULL;
7548}
7549
7550
7551SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7552 PyObject *resultobj = 0;
7553 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7554 bool result;
7555 void *argp1 = 0 ;
7556 int res1 = 0 ;
7557 PyObject *swig_obj[1] ;
7558
7559 if (!args) SWIG_fail;
7560 swig_obj[0] = args;
7561 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7562 if (!SWIG_IsOK(res1)) {
7563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7564 }
7565 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7566 {
7567 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7568 if (PyErr_Occurred()) SWIG_fail;
7569 }
7570 {
7571 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7572 }
7573 return resultobj;
7574fail:
7575 return NULL;
7576}
7577
7578
7579SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7580 PyObject *resultobj = 0;
7581 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7582 void *argp1 = 0 ;
7583 int res1 = 0 ;
7584 PyObject *swig_obj[1] ;
7585
7586 if (!args) SWIG_fail;
7587 swig_obj[0] = args;
7588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7589 if (!SWIG_IsOK(res1)) {
7590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7591 }
7592 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7593 {
7594 wxNativePixelData_Accessor_nextPixel(arg1);
7595 if (PyErr_Occurred()) SWIG_fail;
7596 }
7597 resultobj = SWIG_Py_Void();
7598 return resultobj;
7599fail:
7600 return NULL;
7601}
7602
7603
7604SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7605 PyObject *resultobj = 0;
7606 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7607 wxNativePixelData *arg2 = 0 ;
7608 int arg3 ;
7609 int arg4 ;
7610 void *argp1 = 0 ;
7611 int res1 = 0 ;
7612 void *argp2 = 0 ;
7613 int res2 = 0 ;
7614 int val3 ;
7615 int ecode3 = 0 ;
7616 int val4 ;
7617 int ecode4 = 0 ;
7618 PyObject * obj0 = 0 ;
7619 PyObject * obj1 = 0 ;
7620 PyObject * obj2 = 0 ;
7621 PyObject * obj3 = 0 ;
7622 char * kwnames[] = {
7623 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7624 };
7625
7626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7628 if (!SWIG_IsOK(res1)) {
7629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7630 }
7631 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7632 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7633 if (!SWIG_IsOK(res2)) {
7634 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7635 }
7636 if (!argp2) {
7637 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7638 }
7639 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7640 ecode3 = SWIG_AsVal_int(obj2, &val3);
7641 if (!SWIG_IsOK(ecode3)) {
7642 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7643 }
7644 arg3 = static_cast< int >(val3);
7645 ecode4 = SWIG_AsVal_int(obj3, &val4);
7646 if (!SWIG_IsOK(ecode4)) {
7647 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7648 }
7649 arg4 = static_cast< int >(val4);
7650 {
7651 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7652 if (PyErr_Occurred()) SWIG_fail;
7653 }
7654 resultobj = SWIG_Py_Void();
7655 return resultobj;
7656fail:
7657 return NULL;
7658}
7659
7660
7661SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7662 PyObject *resultobj = 0;
7663 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7664 wxNativePixelData *arg2 = 0 ;
7665 int arg3 ;
7666 void *argp1 = 0 ;
7667 int res1 = 0 ;
7668 void *argp2 = 0 ;
7669 int res2 = 0 ;
7670 int val3 ;
7671 int ecode3 = 0 ;
7672 PyObject * obj0 = 0 ;
7673 PyObject * obj1 = 0 ;
7674 PyObject * obj2 = 0 ;
7675 char * kwnames[] = {
7676 (char *) "self",(char *) "data",(char *) "x", NULL
7677 };
7678
7679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7681 if (!SWIG_IsOK(res1)) {
7682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7683 }
7684 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7685 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7686 if (!SWIG_IsOK(res2)) {
7687 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7688 }
7689 if (!argp2) {
7690 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7691 }
7692 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7693 ecode3 = SWIG_AsVal_int(obj2, &val3);
7694 if (!SWIG_IsOK(ecode3)) {
7695 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7696 }
7697 arg3 = static_cast< int >(val3);
7698 {
7699 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7700 if (PyErr_Occurred()) SWIG_fail;
7701 }
7702 resultobj = SWIG_Py_Void();
7703 return resultobj;
7704fail:
7705 return NULL;
7706}
7707
7708
7709SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7710 PyObject *resultobj = 0;
7711 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7712 wxNativePixelData *arg2 = 0 ;
7713 int arg3 ;
7714 void *argp1 = 0 ;
7715 int res1 = 0 ;
7716 void *argp2 = 0 ;
7717 int res2 = 0 ;
7718 int val3 ;
7719 int ecode3 = 0 ;
7720 PyObject * obj0 = 0 ;
7721 PyObject * obj1 = 0 ;
7722 PyObject * obj2 = 0 ;
7723 char * kwnames[] = {
7724 (char *) "self",(char *) "data",(char *) "y", NULL
7725 };
7726
7727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7729 if (!SWIG_IsOK(res1)) {
7730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7731 }
7732 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7733 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7734 if (!SWIG_IsOK(res2)) {
7735 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7736 }
7737 if (!argp2) {
7738 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7739 }
7740 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7741 ecode3 = SWIG_AsVal_int(obj2, &val3);
7742 if (!SWIG_IsOK(ecode3)) {
7743 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
7744 }
7745 arg3 = static_cast< int >(val3);
7746 {
7747 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
7748 if (PyErr_Occurred()) SWIG_fail;
7749 }
7750 resultobj = SWIG_Py_Void();
7751 return resultobj;
7752fail:
7753 return NULL;
7754}
7755
7756
7757SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7758 PyObject *resultobj = 0;
7759 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7760 wxNativePixelData *arg2 = 0 ;
7761 int arg3 ;
7762 int arg4 ;
7763 void *argp1 = 0 ;
7764 int res1 = 0 ;
7765 void *argp2 = 0 ;
7766 int res2 = 0 ;
7767 int val3 ;
7768 int ecode3 = 0 ;
7769 int val4 ;
7770 int ecode4 = 0 ;
7771 PyObject * obj0 = 0 ;
7772 PyObject * obj1 = 0 ;
7773 PyObject * obj2 = 0 ;
7774 PyObject * obj3 = 0 ;
7775 char * kwnames[] = {
7776 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7777 };
7778
7779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7781 if (!SWIG_IsOK(res1)) {
7782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7783 }
7784 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7785 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7786 if (!SWIG_IsOK(res2)) {
7787 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7788 }
7789 if (!argp2) {
7790 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7791 }
7792 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7793 ecode3 = SWIG_AsVal_int(obj2, &val3);
7794 if (!SWIG_IsOK(ecode3)) {
7795 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
7796 }
7797 arg3 = static_cast< int >(val3);
7798 ecode4 = SWIG_AsVal_int(obj3, &val4);
7799 if (!SWIG_IsOK(ecode4)) {
7800 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
7801 }
7802 arg4 = static_cast< int >(val4);
7803 {
7804 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
7805 if (PyErr_Occurred()) SWIG_fail;
7806 }
7807 resultobj = SWIG_Py_Void();
7808 return resultobj;
7809fail:
7810 return NULL;
7811}
7812
7813
7814SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7815 PyObject *resultobj = 0;
7816 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7817 byte arg2 ;
7818 byte arg3 ;
7819 byte arg4 ;
7820 void *argp1 = 0 ;
7821 int res1 = 0 ;
7822 unsigned char val2 ;
7823 int ecode2 = 0 ;
7824 unsigned char val3 ;
7825 int ecode3 = 0 ;
7826 unsigned char val4 ;
7827 int ecode4 = 0 ;
7828 PyObject * obj0 = 0 ;
7829 PyObject * obj1 = 0 ;
7830 PyObject * obj2 = 0 ;
7831 PyObject * obj3 = 0 ;
7832 char * kwnames[] = {
7833 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
7834 };
7835
7836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7838 if (!SWIG_IsOK(res1)) {
7839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7840 }
7841 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7842 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
7843 if (!SWIG_IsOK(ecode2)) {
7844 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
7845 }
7846 arg2 = static_cast< byte >(val2);
7847 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
7848 if (!SWIG_IsOK(ecode3)) {
7849 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
7850 }
7851 arg3 = static_cast< byte >(val3);
7852 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
7853 if (!SWIG_IsOK(ecode4)) {
7854 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
7855 }
7856 arg4 = static_cast< byte >(val4);
7857 {
7858 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
7859 if (PyErr_Occurred()) SWIG_fail;
7860 }
7861 resultobj = SWIG_Py_Void();
7862 return resultobj;
7863fail:
7864 return NULL;
7865}
7866
7867
7868SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7869 PyObject *resultobj = 0;
7870 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7871 PyObject *result = 0 ;
7872 void *argp1 = 0 ;
7873 int res1 = 0 ;
7874 PyObject *swig_obj[1] ;
7875
7876 if (!args) SWIG_fail;
7877 swig_obj[0] = args;
7878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7879 if (!SWIG_IsOK(res1)) {
7880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7881 }
7882 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7883 {
7884 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
7885 if (PyErr_Occurred()) SWIG_fail;
7886 }
7887 resultobj = result;
7888 return resultobj;
7889fail:
7890 return NULL;
7891}
7892
7893
7894SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7895 PyObject *obj;
7896 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7897 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
7898 return SWIG_Py_Void();
7899}
7900
7901SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7902 return SWIG_Python_InitShadowInstance(args);
7903}
7904
7905SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7906 PyObject *resultobj = 0;
7907 wxBitmap *arg1 = 0 ;
7908 wxAlphaPixelData *result = 0 ;
7909 void *argp1 = 0 ;
7910 int res1 = 0 ;
7911
7912 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7913 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7914 if (!SWIG_IsOK(res1)) {
7915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7916 }
7917 if (!argp1) {
7918 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7919 }
7920 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7921 {
7922 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
7923 if (PyErr_Occurred()) SWIG_fail;
7924 }
7925 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7926 return resultobj;
7927fail:
7928 return NULL;
7929}
7930
7931
7932SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7933 PyObject *resultobj = 0;
7934 wxBitmap *arg1 = 0 ;
7935 wxRect *arg2 = 0 ;
7936 wxAlphaPixelData *result = 0 ;
7937 void *argp1 = 0 ;
7938 int res1 = 0 ;
7939 wxRect temp2 ;
7940
7941 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7943 if (!SWIG_IsOK(res1)) {
7944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7945 }
7946 if (!argp1) {
7947 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7948 }
7949 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7950 {
7951 arg2 = &temp2;
7952 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7953 }
7954 {
7955 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
7956 if (PyErr_Occurred()) SWIG_fail;
7957 }
7958 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7959 return resultobj;
7960fail:
7961 return NULL;
7962}
7963
7964
7965SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7966 PyObject *resultobj = 0;
7967 wxBitmap *arg1 = 0 ;
7968 wxPoint *arg2 = 0 ;
7969 wxSize *arg3 = 0 ;
7970 wxAlphaPixelData *result = 0 ;
7971 void *argp1 = 0 ;
7972 int res1 = 0 ;
7973 wxPoint temp2 ;
7974 wxSize temp3 ;
7975
7976 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7978 if (!SWIG_IsOK(res1)) {
7979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7980 }
7981 if (!argp1) {
7982 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7983 }
7984 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7985 {
7986 arg2 = &temp2;
7987 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7988 }
7989 {
7990 arg3 = &temp3;
7991 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7992 }
7993 {
7994 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7995 if (PyErr_Occurred()) SWIG_fail;
7996 }
7997 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7998 return resultobj;
7999fail:
8000 return NULL;
8001}
8002
8003
8004SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8005 int argc;
8006 PyObject *argv[4];
8007
8008 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8009 --argc;
8010 if (argc == 1) {
8011 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8012 }
8013 if (argc == 2) {
8014 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8015 }
8016 if (argc == 3) {
8017 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8018 }
8019
8020fail:
8021 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8022 return NULL;
8023}
8024
8025
8026SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8027 PyObject *resultobj = 0;
8028 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8029 void *argp1 = 0 ;
8030 int res1 = 0 ;
8031 PyObject *swig_obj[1] ;
8032
8033 if (!args) SWIG_fail;
8034 swig_obj[0] = args;
8035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8036 if (!SWIG_IsOK(res1)) {
8037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8038 }
8039 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8040 {
8041 delete arg1;
8042
8043 if (PyErr_Occurred()) SWIG_fail;
8044 }
8045 resultobj = SWIG_Py_Void();
8046 return resultobj;
8047fail:
8048 return NULL;
8049}
8050
8051
8052SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8053 PyObject *resultobj = 0;
8054 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8055 wxAlphaPixelData_Accessor result;
8056 void *argp1 = 0 ;
8057 int res1 = 0 ;
8058 PyObject *swig_obj[1] ;
8059
8060 if (!args) SWIG_fail;
8061 swig_obj[0] = args;
8062 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8063 if (!SWIG_IsOK(res1)) {
8064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8065 }
8066 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8067 {
8068 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8069 if (PyErr_Occurred()) SWIG_fail;
8070 }
8071 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8072 return resultobj;
8073fail:
8074 return NULL;
8075}
8076
8077
8078SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8079 PyObject *resultobj = 0;
8080 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8081 void *argp1 = 0 ;
8082 int res1 = 0 ;
8083 PyObject *swig_obj[1] ;
8084
8085 if (!args) SWIG_fail;
8086 swig_obj[0] = args;
8087 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8088 if (!SWIG_IsOK(res1)) {
8089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8090 }
8091 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8092 {
8093 (arg1)->UseAlpha();
8094 if (PyErr_Occurred()) SWIG_fail;
8095 }
8096 resultobj = SWIG_Py_Void();
8097 return resultobj;
8098fail:
8099 return NULL;
8100}
8101
8102
8103SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8104 PyObject *resultobj = 0;
8105 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8106 bool result;
8107 void *argp1 = 0 ;
8108 int res1 = 0 ;
8109 PyObject *swig_obj[1] ;
8110
8111 if (!args) SWIG_fail;
8112 swig_obj[0] = args;
8113 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8114 if (!SWIG_IsOK(res1)) {
8115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8116 }
8117 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8118 {
8119 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8120 if (PyErr_Occurred()) SWIG_fail;
8121 }
8122 {
8123 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8124 }
8125 return resultobj;
8126fail:
8127 return NULL;
8128}
8129
8130
8131SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8132 PyObject *obj;
8133 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8134 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8135 return SWIG_Py_Void();
8136}
8137
8138SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8139 return SWIG_Python_InitShadowInstance(args);
8140}
8141
8142SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8143 PyObject *resultobj = 0;
8144 wxAlphaPixelData *arg1 = 0 ;
8145 wxAlphaPixelData_Accessor *result = 0 ;
8146 void *argp1 = 0 ;
8147 int res1 = 0 ;
8148
8149 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8150 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8151 if (!SWIG_IsOK(res1)) {
8152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8153 }
8154 if (!argp1) {
8155 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8156 }
8157 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8158 {
8159 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8160 if (PyErr_Occurred()) SWIG_fail;
8161 }
8162 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8163 return resultobj;
8164fail:
8165 return NULL;
8166}
8167
8168
8169SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8170 PyObject *resultobj = 0;
8171 wxBitmap *arg1 = 0 ;
8172 wxAlphaPixelData *arg2 = 0 ;
8173 wxAlphaPixelData_Accessor *result = 0 ;
8174 void *argp1 = 0 ;
8175 int res1 = 0 ;
8176 void *argp2 = 0 ;
8177 int res2 = 0 ;
8178
8179 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8181 if (!SWIG_IsOK(res1)) {
8182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8183 }
8184 if (!argp1) {
8185 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8186 }
8187 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8188 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8189 if (!SWIG_IsOK(res2)) {
8190 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8191 }
8192 if (!argp2) {
8193 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8194 }
8195 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8196 {
8197 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8198 if (PyErr_Occurred()) SWIG_fail;
8199 }
8200 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8201 return resultobj;
8202fail:
8203 return NULL;
8204}
8205
8206
8207SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8208 PyObject *resultobj = 0;
8209 wxAlphaPixelData_Accessor *result = 0 ;
8210
8211 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8212 {
8213 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8214 if (PyErr_Occurred()) SWIG_fail;
8215 }
8216 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8217 return resultobj;
8218fail:
8219 return NULL;
8220}
8221
8222
8223SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8224 int argc;
8225 PyObject *argv[3];
8226
8227 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8228 --argc;
8229 if (argc == 0) {
8230 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8231 }
8232 if (argc == 1) {
8233 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8234 }
8235 if (argc == 2) {
8236 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8237 }
8238
8239fail:
8240 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8241 return NULL;
8242}
8243
8244
8245SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8246 PyObject *resultobj = 0;
8247 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8248 void *argp1 = 0 ;
8249 int res1 = 0 ;
8250 PyObject *swig_obj[1] ;
8251
8252 if (!args) SWIG_fail;
8253 swig_obj[0] = args;
8254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8255 if (!SWIG_IsOK(res1)) {
8256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8257 }
8258 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8259 {
8260 delete arg1;
8261
8262 if (PyErr_Occurred()) SWIG_fail;
8263 }
8264 resultobj = SWIG_Py_Void();
8265 return resultobj;
8266fail:
8267 return NULL;
8268}
8269
8270
8271SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8272 PyObject *resultobj = 0;
8273 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8274 wxAlphaPixelData *arg2 = 0 ;
8275 void *argp1 = 0 ;
8276 int res1 = 0 ;
8277 void *argp2 = 0 ;
8278 int res2 = 0 ;
8279 PyObject * obj0 = 0 ;
8280 PyObject * obj1 = 0 ;
8281 char * kwnames[] = {
8282 (char *) "self",(char *) "data", NULL
8283 };
8284
8285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8287 if (!SWIG_IsOK(res1)) {
8288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8289 }
8290 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8291 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8292 if (!SWIG_IsOK(res2)) {
8293 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8294 }
8295 if (!argp2) {
8296 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8297 }
8298 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8299 {
8300 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8301 if (PyErr_Occurred()) SWIG_fail;
8302 }
8303 resultobj = SWIG_Py_Void();
8304 return resultobj;
8305fail:
8306 return NULL;
8307}
8308
8309
8310SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8311 PyObject *resultobj = 0;
8312 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8313 bool result;
8314 void *argp1 = 0 ;
8315 int res1 = 0 ;
8316 PyObject *swig_obj[1] ;
8317
8318 if (!args) SWIG_fail;
8319 swig_obj[0] = args;
8320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8321 if (!SWIG_IsOK(res1)) {
8322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8323 }
8324 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8325 {
8326 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8327 if (PyErr_Occurred()) SWIG_fail;
8328 }
8329 {
8330 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8331 }
8332 return resultobj;
8333fail:
8334 return NULL;
8335}
8336
8337
8338SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8339 PyObject *resultobj = 0;
8340 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8341 void *argp1 = 0 ;
8342 int res1 = 0 ;
8343 PyObject *swig_obj[1] ;
8344
8345 if (!args) SWIG_fail;
8346 swig_obj[0] = args;
8347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8348 if (!SWIG_IsOK(res1)) {
8349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8350 }
8351 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8352 {
8353 wxAlphaPixelData_Accessor_nextPixel(arg1);
8354 if (PyErr_Occurred()) SWIG_fail;
8355 }
8356 resultobj = SWIG_Py_Void();
8357 return resultobj;
8358fail:
8359 return NULL;
8360}
8361
8362
8363SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8364 PyObject *resultobj = 0;
8365 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8366 wxAlphaPixelData *arg2 = 0 ;
8367 int arg3 ;
8368 int arg4 ;
8369 void *argp1 = 0 ;
8370 int res1 = 0 ;
8371 void *argp2 = 0 ;
8372 int res2 = 0 ;
8373 int val3 ;
8374 int ecode3 = 0 ;
8375 int val4 ;
8376 int ecode4 = 0 ;
8377 PyObject * obj0 = 0 ;
8378 PyObject * obj1 = 0 ;
8379 PyObject * obj2 = 0 ;
8380 PyObject * obj3 = 0 ;
8381 char * kwnames[] = {
8382 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8383 };
8384
8385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8387 if (!SWIG_IsOK(res1)) {
8388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8389 }
8390 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8391 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8392 if (!SWIG_IsOK(res2)) {
8393 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8394 }
8395 if (!argp2) {
8396 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8397 }
8398 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8399 ecode3 = SWIG_AsVal_int(obj2, &val3);
8400 if (!SWIG_IsOK(ecode3)) {
8401 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8402 }
8403 arg3 = static_cast< int >(val3);
8404 ecode4 = SWIG_AsVal_int(obj3, &val4);
8405 if (!SWIG_IsOK(ecode4)) {
8406 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8407 }
8408 arg4 = static_cast< int >(val4);
8409 {
8410 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8411 if (PyErr_Occurred()) SWIG_fail;
8412 }
8413 resultobj = SWIG_Py_Void();
8414 return resultobj;
8415fail:
8416 return NULL;
8417}
8418
8419
8420SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8421 PyObject *resultobj = 0;
8422 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8423 wxAlphaPixelData *arg2 = 0 ;
8424 int arg3 ;
8425 void *argp1 = 0 ;
8426 int res1 = 0 ;
8427 void *argp2 = 0 ;
8428 int res2 = 0 ;
8429 int val3 ;
8430 int ecode3 = 0 ;
8431 PyObject * obj0 = 0 ;
8432 PyObject * obj1 = 0 ;
8433 PyObject * obj2 = 0 ;
8434 char * kwnames[] = {
8435 (char *) "self",(char *) "data",(char *) "x", NULL
8436 };
8437
8438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8440 if (!SWIG_IsOK(res1)) {
8441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8442 }
8443 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8444 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8445 if (!SWIG_IsOK(res2)) {
8446 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8447 }
8448 if (!argp2) {
8449 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8450 }
8451 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8452 ecode3 = SWIG_AsVal_int(obj2, &val3);
8453 if (!SWIG_IsOK(ecode3)) {
8454 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8455 }
8456 arg3 = static_cast< int >(val3);
8457 {
8458 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8459 if (PyErr_Occurred()) SWIG_fail;
8460 }
8461 resultobj = SWIG_Py_Void();
8462 return resultobj;
8463fail:
8464 return NULL;
8465}
8466
8467
8468SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8469 PyObject *resultobj = 0;
8470 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8471 wxAlphaPixelData *arg2 = 0 ;
8472 int arg3 ;
8473 void *argp1 = 0 ;
8474 int res1 = 0 ;
8475 void *argp2 = 0 ;
8476 int res2 = 0 ;
8477 int val3 ;
8478 int ecode3 = 0 ;
8479 PyObject * obj0 = 0 ;
8480 PyObject * obj1 = 0 ;
8481 PyObject * obj2 = 0 ;
8482 char * kwnames[] = {
8483 (char *) "self",(char *) "data",(char *) "y", NULL
8484 };
8485
8486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8488 if (!SWIG_IsOK(res1)) {
8489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8490 }
8491 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8492 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8493 if (!SWIG_IsOK(res2)) {
8494 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8495 }
8496 if (!argp2) {
8497 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8498 }
8499 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8500 ecode3 = SWIG_AsVal_int(obj2, &val3);
8501 if (!SWIG_IsOK(ecode3)) {
8502 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8503 }
8504 arg3 = static_cast< int >(val3);
8505 {
8506 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8507 if (PyErr_Occurred()) SWIG_fail;
8508 }
8509 resultobj = SWIG_Py_Void();
8510 return resultobj;
8511fail:
8512 return NULL;
8513}
8514
8515
8516SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8517 PyObject *resultobj = 0;
8518 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8519 wxAlphaPixelData *arg2 = 0 ;
8520 int arg3 ;
8521 int arg4 ;
8522 void *argp1 = 0 ;
8523 int res1 = 0 ;
8524 void *argp2 = 0 ;
8525 int res2 = 0 ;
8526 int val3 ;
8527 int ecode3 = 0 ;
8528 int val4 ;
8529 int ecode4 = 0 ;
8530 PyObject * obj0 = 0 ;
8531 PyObject * obj1 = 0 ;
8532 PyObject * obj2 = 0 ;
8533 PyObject * obj3 = 0 ;
8534 char * kwnames[] = {
8535 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8536 };
8537
8538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8540 if (!SWIG_IsOK(res1)) {
8541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8542 }
8543 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8544 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8545 if (!SWIG_IsOK(res2)) {
8546 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8547 }
8548 if (!argp2) {
8549 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8550 }
8551 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8552 ecode3 = SWIG_AsVal_int(obj2, &val3);
8553 if (!SWIG_IsOK(ecode3)) {
8554 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8555 }
8556 arg3 = static_cast< int >(val3);
8557 ecode4 = SWIG_AsVal_int(obj3, &val4);
8558 if (!SWIG_IsOK(ecode4)) {
8559 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8560 }
8561 arg4 = static_cast< int >(val4);
8562 {
8563 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8564 if (PyErr_Occurred()) SWIG_fail;
8565 }
8566 resultobj = SWIG_Py_Void();
8567 return resultobj;
8568fail:
8569 return NULL;
8570}
8571
8572
8573SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8574 PyObject *resultobj = 0;
8575 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8576 byte arg2 ;
8577 byte arg3 ;
8578 byte arg4 ;
8579 byte arg5 ;
8580 void *argp1 = 0 ;
8581 int res1 = 0 ;
8582 unsigned char val2 ;
8583 int ecode2 = 0 ;
8584 unsigned char val3 ;
8585 int ecode3 = 0 ;
8586 unsigned char val4 ;
8587 int ecode4 = 0 ;
8588 unsigned char val5 ;
8589 int ecode5 = 0 ;
8590 PyObject * obj0 = 0 ;
8591 PyObject * obj1 = 0 ;
8592 PyObject * obj2 = 0 ;
8593 PyObject * obj3 = 0 ;
8594 PyObject * obj4 = 0 ;
8595 char * kwnames[] = {
8596 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8597 };
8598
8599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8601 if (!SWIG_IsOK(res1)) {
8602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8603 }
8604 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8605 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8606 if (!SWIG_IsOK(ecode2)) {
8607 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8608 }
8609 arg2 = static_cast< byte >(val2);
8610 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8611 if (!SWIG_IsOK(ecode3)) {
8612 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8613 }
8614 arg3 = static_cast< byte >(val3);
8615 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8616 if (!SWIG_IsOK(ecode4)) {
8617 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8618 }
8619 arg4 = static_cast< byte >(val4);
8620 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8621 if (!SWIG_IsOK(ecode5)) {
8622 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8623 }
8624 arg5 = static_cast< byte >(val5);
8625 {
8626 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8627 if (PyErr_Occurred()) SWIG_fail;
1bd55598 8628 }
fc46b7f3 8629 resultobj = SWIG_Py_Void();
1bd55598
RD
8630 return resultobj;
8631fail:
8632 return NULL;
8633}
8634
8635
fc46b7f3 8636SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 8637 PyObject *resultobj = 0;
fc46b7f3
RD
8638 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8639 PyObject *result = 0 ;
1bd55598
RD
8640 void *argp1 = 0 ;
8641 int res1 = 0 ;
fc46b7f3 8642 PyObject *swig_obj[1] ;
1bd55598 8643
fc46b7f3
RD
8644 if (!args) SWIG_fail;
8645 swig_obj[0] = args;
8646 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
1bd55598 8647 if (!SWIG_IsOK(res1)) {
fc46b7f3 8648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
1bd55598 8649 }
fc46b7f3 8650 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
1bd55598 8651 {
fc46b7f3 8652 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
1bd55598
RD
8653 if (PyErr_Occurred()) SWIG_fail;
8654 }
fc46b7f3 8655 resultobj = result;
1bd55598
RD
8656 return resultobj;
8657fail:
8658 return NULL;
d55e5bfc
RD
8659}
8660
8661
fc46b7f3 8662SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
8663 PyObject *obj;
8664 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 8665 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
1bd55598 8666 return SWIG_Py_Void();
d55e5bfc
RD
8667}
8668
fc46b7f3 8669SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 8670 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
8671}
8672
1bd55598
RD
8673SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8674 PyObject *resultobj = 0;
8675 wxBitmap *arg1 = 0 ;
8676 wxColour const &arg2_defvalue = wxNullColour ;
8677 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8678 wxMask *result = 0 ;
8679 void *argp1 = 0 ;
8680 int res1 = 0 ;
8681 wxColour temp2 ;
8682 PyObject * obj0 = 0 ;
8683 PyObject * obj1 = 0 ;
8684 char * kwnames[] = {
8685 (char *) "bitmap",(char *) "colour", NULL
8686 };
8687
8688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8689 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8690 if (!SWIG_IsOK(res1)) {
8691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8692 }
8693 if (!argp1) {
8694 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8695 }
8696 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8697 if (obj1) {
d55e5bfc 8698 {
1bd55598
RD
8699 arg2 = &temp2;
8700 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 8701 }
1bd55598
RD
8702 }
8703 {
8704 if (!wxPyCheckForApp()) SWIG_fail;
8705 PyThreadState* __tstate = wxPyBeginAllowThreads();
8706 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8707 wxPyEndAllowThreads(__tstate);
8708 if (PyErr_Occurred()) SWIG_fail;
8709 }
8710 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
8711 return resultobj;
8712fail:
8713 return NULL;
d55e5bfc
RD
8714}
8715
8716
1bd55598
RD
8717SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8718 PyObject *resultobj = 0;
8719 wxMask *arg1 = (wxMask *) 0 ;
8720 void *argp1 = 0 ;
8721 int res1 = 0 ;
8722 PyObject *swig_obj[1] ;
8723
8724 if (!args) SWIG_fail;
8725 swig_obj[0] = args;
8726 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
8727 if (!SWIG_IsOK(res1)) {
8728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
8729 }
8730 arg1 = reinterpret_cast< wxMask * >(argp1);
8731 {
1bd55598 8732 delete arg1;
d55e5bfc 8733
1bd55598
RD
8734 if (PyErr_Occurred()) SWIG_fail;
8735 }
8736 resultobj = SWIG_Py_Void();
8737 return resultobj;
8738fail:
8739 return NULL;
8740}
8741
8742
8743SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8744 PyObject *obj;
8745 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8746 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
8747 return SWIG_Py_Void();
8748}
8749
8750SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8751 return SWIG_Python_InitShadowInstance(args);
8752}
8753
8754SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8755 PyObject *resultobj = 0;
8756 wxString *arg1 = 0 ;
8757 wxBitmapType arg2 ;
8758 int arg3 = (int) -1 ;
8759 int arg4 = (int) -1 ;
8760 wxIcon *result = 0 ;
8761 bool temp1 = false ;
8762 int val2 ;
8763 int ecode2 = 0 ;
8764 int val3 ;
8765 int ecode3 = 0 ;
8766 int val4 ;
8767 int ecode4 = 0 ;
8768 PyObject * obj0 = 0 ;
8769 PyObject * obj1 = 0 ;
8770 PyObject * obj2 = 0 ;
8771 PyObject * obj3 = 0 ;
8772 char * kwnames[] = {
8773 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
8774 };
8775
8776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8777 {
8778 arg1 = wxString_in_helper(obj0);
8779 if (arg1 == NULL) SWIG_fail;
8780 temp1 = true;
8781 }
8782 ecode2 = SWIG_AsVal_int(obj1, &val2);
8783 if (!SWIG_IsOK(ecode2)) {
8784 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
8785 }
8786 arg2 = static_cast< wxBitmapType >(val2);
8787 if (obj2) {
8788 ecode3 = SWIG_AsVal_int(obj2, &val3);
8789 if (!SWIG_IsOK(ecode3)) {
8790 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
8791 }
8792 arg3 = static_cast< int >(val3);
8793 }
8794 if (obj3) {
8795 ecode4 = SWIG_AsVal_int(obj3, &val4);
8796 if (!SWIG_IsOK(ecode4)) {
8797 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
8798 }
8799 arg4 = static_cast< int >(val4);
8800 }
8801 {
8802 if (!wxPyCheckForApp()) SWIG_fail;
8803 PyThreadState* __tstate = wxPyBeginAllowThreads();
8804 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
8805 wxPyEndAllowThreads(__tstate);
8806 if (PyErr_Occurred()) SWIG_fail;
8807 }
8808 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
8809 {
8810 if (temp1)
8811 delete arg1;
8812 }
8813 return resultobj;
8814fail:
8815 {
8816 if (temp1)
8817 delete arg1;
8818 }
8819 return NULL;
d55e5bfc
RD
8820}
8821
8822
1bd55598
RD
8823SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8824 PyObject *resultobj = 0;
8825 wxIcon *arg1 = (wxIcon *) 0 ;
8826 void *argp1 = 0 ;
8827 int res1 = 0 ;
8828 PyObject *swig_obj[1] ;
8829
8830 if (!args) SWIG_fail;
8831 swig_obj[0] = args;
8832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
8833 if (!SWIG_IsOK(res1)) {
8834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
8835 }
8836 arg1 = reinterpret_cast< wxIcon * >(argp1);
8837 {
8838 PyThreadState* __tstate = wxPyBeginAllowThreads();
8839 delete arg1;
d55e5bfc 8840
1bd55598
RD
8841 wxPyEndAllowThreads(__tstate);
8842 if (PyErr_Occurred()) SWIG_fail;
8843 }
8844 resultobj = SWIG_Py_Void();
8845 return resultobj;
8846fail:
8847 return NULL;
d55e5bfc
RD
8848}
8849
8850
1bd55598
RD
8851SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8852 PyObject *resultobj = 0;
8853 wxIcon *result = 0 ;
8854
8855 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
8856 {
8857 if (!wxPyCheckForApp()) SWIG_fail;
8858 PyThreadState* __tstate = wxPyBeginAllowThreads();
8859 result = (wxIcon *)new wxIcon();
8860 wxPyEndAllowThreads(__tstate);
8861 if (PyErr_Occurred()) SWIG_fail;
8862 }
8863 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8864 return resultobj;
8865fail:
8866 return NULL;
8867}
8868
8869
8870SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8871 PyObject *resultobj = 0;
8872 wxIconLocation *arg1 = 0 ;
8873 wxIcon *result = 0 ;
8874 void *argp1 = 0 ;
8875 int res1 = 0 ;
8876 PyObject * obj0 = 0 ;
8877 char * kwnames[] = {
8878 (char *) "loc", NULL
8879 };
8880
8881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
8882 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
8883 if (!SWIG_IsOK(res1)) {
8884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8885 }
8886 if (!argp1) {
8887 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8888 }
8889 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
8890 {
8891 if (!wxPyCheckForApp()) SWIG_fail;
8892 PyThreadState* __tstate = wxPyBeginAllowThreads();
8893 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
8894 wxPyEndAllowThreads(__tstate);
8895 if (PyErr_Occurred()) SWIG_fail;
8896 }
8897 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8898 return resultobj;
8899fail:
8900 return NULL;
8901}
8902
8903
8904SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8905 PyObject *resultobj = 0;
8906 wxBitmap *arg1 = 0 ;
8907 wxIcon *result = 0 ;
8908 void *argp1 = 0 ;
8909 int res1 = 0 ;
8910 PyObject * obj0 = 0 ;
8911 char * kwnames[] = {
8912 (char *) "bmp", NULL
8913 };
8914
8915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
8916 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8917 if (!SWIG_IsOK(res1)) {
8918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8919 }
8920 if (!argp1) {
8921 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8922 }
8923 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8924 {
8925 if (!wxPyCheckForApp()) SWIG_fail;
8926 PyThreadState* __tstate = wxPyBeginAllowThreads();
8927 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
8928 wxPyEndAllowThreads(__tstate);
8929 if (PyErr_Occurred()) SWIG_fail;
8930 }
8931 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8932 return resultobj;
8933fail:
8934 return NULL;
d55e5bfc
RD
8935}
8936
8937
1bd55598
RD
8938SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8939 PyObject *resultobj = 0;
8940 PyObject *arg1 = (PyObject *) 0 ;
8941 wxIcon *result = 0 ;
8942 PyObject * obj0 = 0 ;
8943 char * kwnames[] = {
8944 (char *) "listOfStrings", NULL
8945 };
8946
8947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
8948 arg1 = obj0;
8949 {
8950 if (!wxPyCheckForApp()) SWIG_fail;
8951 PyThreadState* __tstate = wxPyBeginAllowThreads();
8952 result = (wxIcon *)new_wxIcon(arg1);
8953 wxPyEndAllowThreads(__tstate);
8954 if (PyErr_Occurred()) SWIG_fail;
8955 }
8956 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8957 return resultobj;
8958fail:
8959 return NULL;
d55e5bfc
RD
8960}
8961
8962
b39fe951 8963SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
8964 PyObject *resultobj = 0;
8965 wxIcon *arg1 = (wxIcon *) 0 ;
8966 bool 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)) {
b39fe951 8975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
1bd55598
RD
8976 }
8977 arg1 = reinterpret_cast< wxIcon * >(argp1);
8978 {
8979 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 8980 result = (bool)(arg1)->IsOk();
1bd55598
RD
8981 wxPyEndAllowThreads(__tstate);
8982 if (PyErr_Occurred()) SWIG_fail;
8983 }
8984 {
8985 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8986 }
8987 return resultobj;
8988fail:
8989 return NULL;
d55e5bfc
RD
8990}
8991
8992
1bd55598
RD
8993SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8994 PyObject *resultobj = 0;
8995 wxIcon *arg1 = (wxIcon *) 0 ;
8996 int result;
8997 void *argp1 = 0 ;
8998 int res1 = 0 ;
8999 PyObject *swig_obj[1] ;
9000
9001 if (!args) SWIG_fail;
9002 swig_obj[0] = args;
9003 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9004 if (!SWIG_IsOK(res1)) {
9005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9006 }
9007 arg1 = reinterpret_cast< wxIcon * >(argp1);
9008 {
9009 PyThreadState* __tstate = wxPyBeginAllowThreads();
9010 result = (int)(arg1)->GetWidth();
9011 wxPyEndAllowThreads(__tstate);
9012 if (PyErr_Occurred()) SWIG_fail;
9013 }
9014 resultobj = SWIG_From_int(static_cast< int >(result));
9015 return resultobj;
9016fail:
9017 return NULL;
d55e5bfc
RD
9018}
9019
9020
1bd55598
RD
9021SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9022 PyObject *resultobj = 0;
9023 wxIcon *arg1 = (wxIcon *) 0 ;
9024 int result;
9025 void *argp1 = 0 ;
9026 int res1 = 0 ;
9027 PyObject *swig_obj[1] ;
9028
9029 if (!args) SWIG_fail;
9030 swig_obj[0] = args;
9031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9032 if (!SWIG_IsOK(res1)) {
9033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9034 }
9035 arg1 = reinterpret_cast< wxIcon * >(argp1);
9036 {
9037 PyThreadState* __tstate = wxPyBeginAllowThreads();
9038 result = (int)(arg1)->GetHeight();
9039 wxPyEndAllowThreads(__tstate);
9040 if (PyErr_Occurred()) SWIG_fail;
9041 }
9042 resultobj = SWIG_From_int(static_cast< int >(result));
9043 return resultobj;
9044fail:
9045 return NULL;
d55e5bfc
RD
9046}
9047
9048
1bd55598
RD
9049SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9050 PyObject *resultobj = 0;
9051 wxIcon *arg1 = (wxIcon *) 0 ;
9052 int result;
9053 void *argp1 = 0 ;
9054 int res1 = 0 ;
9055 PyObject *swig_obj[1] ;
9056
9057 if (!args) SWIG_fail;
9058 swig_obj[0] = args;
9059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9060 if (!SWIG_IsOK(res1)) {
9061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9062 }
9063 arg1 = reinterpret_cast< wxIcon * >(argp1);
9064 {
9065 PyThreadState* __tstate = wxPyBeginAllowThreads();
9066 result = (int)(arg1)->GetDepth();
9067 wxPyEndAllowThreads(__tstate);
9068 if (PyErr_Occurred()) SWIG_fail;
9069 }
9070 resultobj = SWIG_From_int(static_cast< int >(result));
9071 return resultobj;
9072fail:
9073 return NULL;
9074}
9075
9076
9077SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9078 PyObject *resultobj = 0;
9079 wxIcon *arg1 = (wxIcon *) 0 ;
9080 int arg2 ;
9081 void *argp1 = 0 ;
9082 int res1 = 0 ;
9083 int val2 ;
9084 int ecode2 = 0 ;
9085 PyObject * obj0 = 0 ;
9086 PyObject * obj1 = 0 ;
9087 char * kwnames[] = {
9088 (char *) "self",(char *) "w", NULL
9089 };
9090
9091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9093 if (!SWIG_IsOK(res1)) {
9094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9095 }
9096 arg1 = reinterpret_cast< wxIcon * >(argp1);
9097 ecode2 = SWIG_AsVal_int(obj1, &val2);
9098 if (!SWIG_IsOK(ecode2)) {
9099 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9100 }
9101 arg2 = static_cast< int >(val2);
9102 {
9103 PyThreadState* __tstate = wxPyBeginAllowThreads();
9104 (arg1)->SetWidth(arg2);
9105 wxPyEndAllowThreads(__tstate);
9106 if (PyErr_Occurred()) SWIG_fail;
9107 }
9108 resultobj = SWIG_Py_Void();
9109 return resultobj;
9110fail:
9111 return NULL;
9112}
9113
9114
9115SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9116 PyObject *resultobj = 0;
9117 wxIcon *arg1 = (wxIcon *) 0 ;
9118 int arg2 ;
9119 void *argp1 = 0 ;
9120 int res1 = 0 ;
9121 int val2 ;
9122 int ecode2 = 0 ;
9123 PyObject * obj0 = 0 ;
9124 PyObject * obj1 = 0 ;
9125 char * kwnames[] = {
9126 (char *) "self",(char *) "h", NULL
9127 };
9128
9129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9131 if (!SWIG_IsOK(res1)) {
9132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9133 }
9134 arg1 = reinterpret_cast< wxIcon * >(argp1);
9135 ecode2 = SWIG_AsVal_int(obj1, &val2);
9136 if (!SWIG_IsOK(ecode2)) {
9137 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9138 }
9139 arg2 = static_cast< int >(val2);
9140 {
9141 PyThreadState* __tstate = wxPyBeginAllowThreads();
9142 (arg1)->SetHeight(arg2);
9143 wxPyEndAllowThreads(__tstate);
9144 if (PyErr_Occurred()) SWIG_fail;
9145 }
9146 resultobj = SWIG_Py_Void();
9147 return resultobj;
9148fail:
9149 return NULL;
9150}
9151
9152
9153SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9154 PyObject *resultobj = 0;
9155 wxIcon *arg1 = (wxIcon *) 0 ;
9156 int arg2 ;
9157 void *argp1 = 0 ;
9158 int res1 = 0 ;
9159 int val2 ;
9160 int ecode2 = 0 ;
9161 PyObject * obj0 = 0 ;
9162 PyObject * obj1 = 0 ;
9163 char * kwnames[] = {
9164 (char *) "self",(char *) "d", NULL
9165 };
9166
9167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9169 if (!SWIG_IsOK(res1)) {
9170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9171 }
9172 arg1 = reinterpret_cast< wxIcon * >(argp1);
9173 ecode2 = SWIG_AsVal_int(obj1, &val2);
9174 if (!SWIG_IsOK(ecode2)) {
9175 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9176 }
9177 arg2 = static_cast< int >(val2);
9178 {
9179 PyThreadState* __tstate = wxPyBeginAllowThreads();
9180 (arg1)->SetDepth(arg2);
9181 wxPyEndAllowThreads(__tstate);
9182 if (PyErr_Occurred()) SWIG_fail;
9183 }
9184 resultobj = SWIG_Py_Void();
9185 return resultobj;
9186fail:
9187 return NULL;
9188}
9189
9190
9191SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9192 PyObject *resultobj = 0;
9193 wxIcon *arg1 = (wxIcon *) 0 ;
9194 wxBitmap *arg2 = 0 ;
9195 void *argp1 = 0 ;
9196 int res1 = 0 ;
9197 void *argp2 = 0 ;
9198 int res2 = 0 ;
9199 PyObject * obj0 = 0 ;
9200 PyObject * obj1 = 0 ;
9201 char * kwnames[] = {
9202 (char *) "self",(char *) "bmp", NULL
9203 };
9204
9205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9207 if (!SWIG_IsOK(res1)) {
9208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9209 }
9210 arg1 = reinterpret_cast< wxIcon * >(argp1);
9211 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9212 if (!SWIG_IsOK(res2)) {
9213 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9214 }
9215 if (!argp2) {
9216 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9217 }
9218 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9219 {
9220 PyThreadState* __tstate = wxPyBeginAllowThreads();
9221 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9222 wxPyEndAllowThreads(__tstate);
9223 if (PyErr_Occurred()) SWIG_fail;
9224 }
9225 resultobj = SWIG_Py_Void();
9226 return resultobj;
9227fail:
9228 return NULL;
d55e5bfc
RD
9229}
9230
9231
1bd55598
RD
9232SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9233 PyObject *obj;
9234 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9235 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9236 return SWIG_Py_Void();
d55e5bfc
RD
9237}
9238
1bd55598
RD
9239SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9240 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
9241}
9242
1bd55598
RD
9243SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9244 PyObject *resultobj = 0;
9245 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9246 int arg2 = (int) 0 ;
9247 wxIconLocation *result = 0 ;
9248 bool temp1 = false ;
9249 int val2 ;
9250 int ecode2 = 0 ;
9251 PyObject * obj0 = 0 ;
9252 PyObject * obj1 = 0 ;
9253 char * kwnames[] = {
9254 (char *) "filename",(char *) "num", NULL
9255 };
9256
9257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9258 if (obj0) {
d55e5bfc 9259 {
1bd55598
RD
9260 arg1 = wxString_in_helper(obj0);
9261 if (arg1 == NULL) SWIG_fail;
9262 temp1 = true;
d55e5bfc 9263 }
1bd55598
RD
9264 }
9265 if (obj1) {
9266 ecode2 = SWIG_AsVal_int(obj1, &val2);
9267 if (!SWIG_IsOK(ecode2)) {
9268 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9269 }
9270 arg2 = static_cast< int >(val2);
9271 }
9272 {
9273 PyThreadState* __tstate = wxPyBeginAllowThreads();
9274 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9275 wxPyEndAllowThreads(__tstate);
9276 if (PyErr_Occurred()) SWIG_fail;
9277 }
9278 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9279 {
9280 if (temp1)
9281 delete arg1;
9282 }
9283 return resultobj;
9284fail:
9285 {
9286 if (temp1)
9287 delete arg1;
9288 }
9289 return NULL;
d55e5bfc
RD
9290}
9291
9292
1bd55598
RD
9293SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9294 PyObject *resultobj = 0;
9295 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9296 void *argp1 = 0 ;
9297 int res1 = 0 ;
9298 PyObject *swig_obj[1] ;
9299
9300 if (!args) SWIG_fail;
9301 swig_obj[0] = args;
9302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9303 if (!SWIG_IsOK(res1)) {
9304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9305 }
9306 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9307 {
9308 PyThreadState* __tstate = wxPyBeginAllowThreads();
9309 delete arg1;
d55e5bfc 9310
1bd55598
RD
9311 wxPyEndAllowThreads(__tstate);
9312 if (PyErr_Occurred()) SWIG_fail;
9313 }
9314 resultobj = SWIG_Py_Void();
9315 return resultobj;
9316fail:
9317 return NULL;
d55e5bfc
RD
9318}
9319
9320
1bd55598
RD
9321SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9322 PyObject *resultobj = 0;
9323 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9324 bool result;
9325 void *argp1 = 0 ;
9326 int res1 = 0 ;
9327 PyObject *swig_obj[1] ;
9328
9329 if (!args) SWIG_fail;
9330 swig_obj[0] = args;
9331 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9332 if (!SWIG_IsOK(res1)) {
9333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9334 }
9335 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9336 {
9337 PyThreadState* __tstate = wxPyBeginAllowThreads();
9338 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9339 wxPyEndAllowThreads(__tstate);
9340 if (PyErr_Occurred()) SWIG_fail;
9341 }
9342 {
9343 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9344 }
9345 return resultobj;
9346fail:
9347 return NULL;
9348}
9349
9350
9351SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9352 PyObject *resultobj = 0;
9353 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9354 wxString *arg2 = 0 ;
9355 void *argp1 = 0 ;
9356 int res1 = 0 ;
9357 bool temp2 = false ;
9358 PyObject * obj0 = 0 ;
9359 PyObject * obj1 = 0 ;
9360 char * kwnames[] = {
9361 (char *) "self",(char *) "filename", NULL
9362 };
9363
9364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9366 if (!SWIG_IsOK(res1)) {
9367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9368 }
9369 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9370 {
9371 arg2 = wxString_in_helper(obj1);
9372 if (arg2 == NULL) SWIG_fail;
9373 temp2 = true;
9374 }
9375 {
9376 PyThreadState* __tstate = wxPyBeginAllowThreads();
9377 (arg1)->SetFileName((wxString const &)*arg2);
9378 wxPyEndAllowThreads(__tstate);
9379 if (PyErr_Occurred()) SWIG_fail;
9380 }
9381 resultobj = SWIG_Py_Void();
9382 {
9383 if (temp2)
9384 delete arg2;
9385 }
9386 return resultobj;
9387fail:
9388 {
9389 if (temp2)
9390 delete arg2;
9391 }
9392 return NULL;
d55e5bfc
RD
9393}
9394
9395
1bd55598
RD
9396SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9397 PyObject *resultobj = 0;
9398 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9399 wxString *result = 0 ;
9400 void *argp1 = 0 ;
9401 int res1 = 0 ;
9402 PyObject *swig_obj[1] ;
9403
9404 if (!args) SWIG_fail;
9405 swig_obj[0] = args;
9406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9407 if (!SWIG_IsOK(res1)) {
9408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9409 }
9410 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9411 {
9412 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 9413 {
1bd55598
RD
9414 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9415 result = (wxString *) &_result_ref;
d55e5bfc 9416 }
1bd55598
RD
9417 wxPyEndAllowThreads(__tstate);
9418 if (PyErr_Occurred()) SWIG_fail;
9419 }
9420 {
9421#if wxUSE_UNICODE
9422 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9423#else
9424 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9425#endif
9426 }
9427 return resultobj;
9428fail:
9429 return NULL;
9430}
9431
9432
9433SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9434 PyObject *resultobj = 0;
9435 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9436 int arg2 ;
9437 void *argp1 = 0 ;
9438 int res1 = 0 ;
9439 int val2 ;
9440 int ecode2 = 0 ;
9441 PyObject * obj0 = 0 ;
9442 PyObject * obj1 = 0 ;
9443 char * kwnames[] = {
9444 (char *) "self",(char *) "num", NULL
9445 };
9446
9447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9449 if (!SWIG_IsOK(res1)) {
9450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9451 }
9452 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9453 ecode2 = SWIG_AsVal_int(obj1, &val2);
9454 if (!SWIG_IsOK(ecode2)) {
9455 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9456 }
9457 arg2 = static_cast< int >(val2);
9458 {
9459 PyThreadState* __tstate = wxPyBeginAllowThreads();
9460 wxIconLocation_SetIndex(arg1,arg2);
9461 wxPyEndAllowThreads(__tstate);
9462 if (PyErr_Occurred()) SWIG_fail;
9463 }
9464 resultobj = SWIG_Py_Void();
9465 return resultobj;
9466fail:
9467 return NULL;
d55e5bfc
RD
9468}
9469
9470
1bd55598
RD
9471SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9472 PyObject *resultobj = 0;
9473 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9474 int result;
9475 void *argp1 = 0 ;
9476 int res1 = 0 ;
9477 PyObject *swig_obj[1] ;
9478
9479 if (!args) SWIG_fail;
9480 swig_obj[0] = args;
9481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9482 if (!SWIG_IsOK(res1)) {
9483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9484 }
9485 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9486 {
9487 PyThreadState* __tstate = wxPyBeginAllowThreads();
9488 result = (int)wxIconLocation_GetIndex(arg1);
9489 wxPyEndAllowThreads(__tstate);
9490 if (PyErr_Occurred()) SWIG_fail;
9491 }
9492 resultobj = SWIG_From_int(static_cast< int >(result));
9493 return resultobj;
9494fail:
9495 return NULL;
d55e5bfc
RD
9496}
9497
9498
1bd55598
RD
9499SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9500 PyObject *obj;
9501 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9502 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9503 return SWIG_Py_Void();
d55e5bfc
RD
9504}
9505
1bd55598
RD
9506SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9507 return SWIG_Python_InitShadowInstance(args);
9508}
d55e5bfc 9509
1bd55598
RD
9510SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9511 PyObject *resultobj = 0;
9512 wxIconBundle *result = 0 ;
9513
9514 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9515 {
9516 PyThreadState* __tstate = wxPyBeginAllowThreads();
9517 result = (wxIconBundle *)new wxIconBundle();
9518 wxPyEndAllowThreads(__tstate);
9519 if (PyErr_Occurred()) SWIG_fail;
9520 }
9521 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9522 return resultobj;
9523fail:
9524 return NULL;
9525}
9526
9527
9528SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9529 PyObject *resultobj = 0;
9530 wxString *arg1 = 0 ;
9531 long arg2 ;
9532 wxIconBundle *result = 0 ;
9533 bool temp1 = false ;
9534 long val2 ;
9535 int ecode2 = 0 ;
9536 PyObject * obj0 = 0 ;
9537 PyObject * obj1 = 0 ;
9538 char * kwnames[] = {
9539 (char *) "file",(char *) "type", NULL
9540 };
9541
9542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9543 {
9544 arg1 = wxString_in_helper(obj0);
9545 if (arg1 == NULL) SWIG_fail;
9546 temp1 = true;
9547 }
9548 ecode2 = SWIG_AsVal_long(obj1, &val2);
9549 if (!SWIG_IsOK(ecode2)) {
9550 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9551 }
9552 arg2 = static_cast< long >(val2);
9553 {
9554 PyThreadState* __tstate = wxPyBeginAllowThreads();
9555 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9556 wxPyEndAllowThreads(__tstate);
9557 if (PyErr_Occurred()) SWIG_fail;
9558 }
9559 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9560 {
9561 if (temp1)
9562 delete arg1;
9563 }
9564 return resultobj;
9565fail:
9566 {
9567 if (temp1)
9568 delete arg1;
9569 }
9570 return NULL;
d55e5bfc
RD
9571}
9572
9573
1bd55598
RD
9574SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9575 PyObject *resultobj = 0;
9576 wxIcon *arg1 = 0 ;
9577 wxIconBundle *result = 0 ;
9578 void *argp1 = 0 ;
9579 int res1 = 0 ;
9580 PyObject * obj0 = 0 ;
9581 char * kwnames[] = {
9582 (char *) "icon", NULL
9583 };
9584
9585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9586 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9587 if (!SWIG_IsOK(res1)) {
9588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9589 }
9590 if (!argp1) {
9591 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9592 }
9593 arg1 = reinterpret_cast< wxIcon * >(argp1);
9594 {
9595 PyThreadState* __tstate = wxPyBeginAllowThreads();
9596 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9597 wxPyEndAllowThreads(__tstate);
9598 if (PyErr_Occurred()) SWIG_fail;
9599 }
9600 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9601 return resultobj;
9602fail:
9603 return NULL;
d55e5bfc
RD
9604}
9605
9606
1bd55598
RD
9607SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9608 PyObject *resultobj = 0;
9609 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9610 void *argp1 = 0 ;
9611 int res1 = 0 ;
9612 PyObject *swig_obj[1] ;
9613
9614 if (!args) SWIG_fail;
9615 swig_obj[0] = args;
9616 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9617 if (!SWIG_IsOK(res1)) {
9618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9619 }
9620 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9621 {
9622 PyThreadState* __tstate = wxPyBeginAllowThreads();
9623 delete arg1;
d55e5bfc 9624
1bd55598
RD
9625 wxPyEndAllowThreads(__tstate);
9626 if (PyErr_Occurred()) SWIG_fail;
9627 }
9628 resultobj = SWIG_Py_Void();
9629 return resultobj;
9630fail:
9631 return NULL;
9632}
9633
9634
9635SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9636 PyObject *resultobj = 0;
9637 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9638 wxIcon *arg2 = 0 ;
9639 void *argp1 = 0 ;
9640 int res1 = 0 ;
9641 void *argp2 = 0 ;
9642 int res2 = 0 ;
9643 PyObject * obj0 = 0 ;
9644 PyObject * obj1 = 0 ;
9645 char * kwnames[] = {
9646 (char *) "self",(char *) "icon", NULL
9647 };
9648
9649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9651 if (!SWIG_IsOK(res1)) {
9652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9653 }
9654 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9655 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9656 if (!SWIG_IsOK(res2)) {
9657 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9658 }
9659 if (!argp2) {
9660 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9661 }
9662 arg2 = reinterpret_cast< wxIcon * >(argp2);
9663 {
9664 PyThreadState* __tstate = wxPyBeginAllowThreads();
9665 (arg1)->AddIcon((wxIcon const &)*arg2);
9666 wxPyEndAllowThreads(__tstate);
9667 if (PyErr_Occurred()) SWIG_fail;
9668 }
9669 resultobj = SWIG_Py_Void();
9670 return resultobj;
9671fail:
9672 return NULL;
9673}
9674
9675
9676SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9677 PyObject *resultobj = 0;
9678 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9679 wxString *arg2 = 0 ;
9680 long arg3 ;
9681 void *argp1 = 0 ;
9682 int res1 = 0 ;
9683 bool temp2 = false ;
9684 long val3 ;
9685 int ecode3 = 0 ;
9686 PyObject * obj0 = 0 ;
9687 PyObject * obj1 = 0 ;
9688 PyObject * obj2 = 0 ;
9689 char * kwnames[] = {
9690 (char *) "self",(char *) "file",(char *) "type", NULL
9691 };
9692
9693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9695 if (!SWIG_IsOK(res1)) {
9696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9697 }
9698 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9699 {
9700 arg2 = wxString_in_helper(obj1);
9701 if (arg2 == NULL) SWIG_fail;
9702 temp2 = true;
9703 }
9704 ecode3 = SWIG_AsVal_long(obj2, &val3);
9705 if (!SWIG_IsOK(ecode3)) {
9706 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
9707 }
9708 arg3 = static_cast< long >(val3);
9709 {
9710 PyThreadState* __tstate = wxPyBeginAllowThreads();
9711 (arg1)->AddIcon((wxString const &)*arg2,arg3);
9712 wxPyEndAllowThreads(__tstate);
9713 if (PyErr_Occurred()) SWIG_fail;
9714 }
9715 resultobj = SWIG_Py_Void();
9716 {
9717 if (temp2)
9718 delete arg2;
9719 }
9720 return resultobj;
9721fail:
9722 {
9723 if (temp2)
9724 delete arg2;
9725 }
9726 return NULL;
9727}
9728
9729
9730SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9731 PyObject *resultobj = 0;
9732 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9733 wxSize *arg2 = 0 ;
9734 wxIcon *result = 0 ;
9735 void *argp1 = 0 ;
9736 int res1 = 0 ;
9737 wxSize temp2 ;
9738 PyObject * obj0 = 0 ;
9739 PyObject * obj1 = 0 ;
9740 char * kwnames[] = {
9741 (char *) "self",(char *) "size", NULL
9742 };
9743
9744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9746 if (!SWIG_IsOK(res1)) {
9747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
9748 }
9749 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9750 {
9751 arg2 = &temp2;
9752 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9753 }
9754 {
9755 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 9756 {
1bd55598
RD
9757 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
9758 result = (wxIcon *) &_result_ref;
d55e5bfc 9759 }
1bd55598
RD
9760 wxPyEndAllowThreads(__tstate);
9761 if (PyErr_Occurred()) SWIG_fail;
9762 }
9763 {
9764 wxIcon* resultptr = new wxIcon(*result);
9765 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
9766 }
9767 return resultobj;
9768fail:
9769 return NULL;
9770}
9771
9772
9773SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9774 PyObject *obj;
9775 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9776 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
9777 return SWIG_Py_Void();
9778}
9779
9780SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9781 return SWIG_Python_InitShadowInstance(args);
9782}
9783
9784SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9785 PyObject *resultobj = 0;
9786 wxString *arg1 = 0 ;
9787 long arg2 ;
9788 int arg3 = (int) 0 ;
9789 int arg4 = (int) 0 ;
9790 wxCursor *result = 0 ;
9791 bool temp1 = false ;
9792 long val2 ;
9793 int ecode2 = 0 ;
9794 int val3 ;
9795 int ecode3 = 0 ;
9796 int val4 ;
9797 int ecode4 = 0 ;
9798 PyObject * obj0 = 0 ;
9799 PyObject * obj1 = 0 ;
9800 PyObject * obj2 = 0 ;
9801 PyObject * obj3 = 0 ;
9802 char * kwnames[] = {
9803 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
9804 };
9805
9806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9807 {
9808 arg1 = wxString_in_helper(obj0);
9809 if (arg1 == NULL) SWIG_fail;
9810 temp1 = true;
9811 }
9812 ecode2 = SWIG_AsVal_long(obj1, &val2);
9813 if (!SWIG_IsOK(ecode2)) {
9814 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
9815 }
9816 arg2 = static_cast< long >(val2);
9817 if (obj2) {
9818 ecode3 = SWIG_AsVal_int(obj2, &val3);
9819 if (!SWIG_IsOK(ecode3)) {
9820 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
9821 }
9822 arg3 = static_cast< int >(val3);
9823 }
9824 if (obj3) {
9825 ecode4 = SWIG_AsVal_int(obj3, &val4);
9826 if (!SWIG_IsOK(ecode4)) {
9827 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
9828 }
9829 arg4 = static_cast< int >(val4);
9830 }
9831 {
9832 if (!wxPyCheckForApp()) SWIG_fail;
9833 PyThreadState* __tstate = wxPyBeginAllowThreads();
9834 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
9835 wxPyEndAllowThreads(__tstate);
9836 if (PyErr_Occurred()) SWIG_fail;
9837 }
9838 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
9839 {
9840 if (temp1)
9841 delete arg1;
9842 }
9843 return resultobj;
9844fail:
9845 {
9846 if (temp1)
9847 delete arg1;
9848 }
9849 return NULL;
d55e5bfc
RD
9850}
9851
9852
1bd55598
RD
9853SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9854 PyObject *resultobj = 0;
9855 wxCursor *arg1 = (wxCursor *) 0 ;
9856 void *argp1 = 0 ;
9857 int res1 = 0 ;
9858 PyObject *swig_obj[1] ;
9859
9860 if (!args) SWIG_fail;
9861 swig_obj[0] = args;
9862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
9863 if (!SWIG_IsOK(res1)) {
9864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
9865 }
9866 arg1 = reinterpret_cast< wxCursor * >(argp1);
9867 {
9868 PyThreadState* __tstate = wxPyBeginAllowThreads();
9869 delete arg1;
d55e5bfc 9870
1bd55598
RD
9871 wxPyEndAllowThreads(__tstate);
9872 if (PyErr_Occurred()) SWIG_fail;
9873 }
9874 resultobj = SWIG_Py_Void();
9875 return resultobj;
9876fail:
9877 return NULL;
9878}
9879
9880
9881SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9882 PyObject *resultobj = 0;
9883 int arg1 ;
9884 wxCursor *result = 0 ;
9885 int val1 ;
9886 int ecode1 = 0 ;
9887 PyObject * obj0 = 0 ;
9888 char * kwnames[] = {
9889 (char *) "id", NULL
9890 };
9891
9892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
9893 ecode1 = SWIG_AsVal_int(obj0, &val1);
9894 if (!SWIG_IsOK(ecode1)) {
9895 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
9896 }
9897 arg1 = static_cast< int >(val1);
9898 {
9899 if (!wxPyCheckForApp()) SWIG_fail;
9900 PyThreadState* __tstate = wxPyBeginAllowThreads();
9901 result = (wxCursor *)new wxCursor(arg1);
9902 wxPyEndAllowThreads(__tstate);
9903 if (PyErr_Occurred()) SWIG_fail;
9904 }
9905 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
9906 return resultobj;
9907fail:
9908 return NULL;
9909}
9910
9911
9912SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9913 PyObject *resultobj = 0;
9914 wxImage *arg1 = 0 ;
9915 wxCursor *result = 0 ;
9916 void *argp1 = 0 ;
9917 int res1 = 0 ;
9918 PyObject * obj0 = 0 ;
9919 char * kwnames[] = {
9920 (char *) "image", NULL
9921 };
9922
9923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
9924 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
9925 if (!SWIG_IsOK(res1)) {
9926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
9927 }
9928 if (!argp1) {
9929 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
9930 }
9931 arg1 = reinterpret_cast< wxImage * >(argp1);
9932 {
9933 if (!wxPyCheckForApp()) SWIG_fail;
9934 PyThreadState* __tstate = wxPyBeginAllowThreads();
9935 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
9936 wxPyEndAllowThreads(__tstate);
9937 if (PyErr_Occurred()) SWIG_fail;
9938 }
9939 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
9940 return resultobj;
9941fail:
9942 return NULL;
d55e5bfc
RD
9943}
9944
9945
b39fe951 9946SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
9947 PyObject *resultobj = 0;
9948 wxCursor *arg1 = (wxCursor *) 0 ;
9949 bool result;
9950 void *argp1 = 0 ;
9951 int res1 = 0 ;
9952 PyObject *swig_obj[1] ;
9953
9954 if (!args) SWIG_fail;
9955 swig_obj[0] = args;
9956 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
9957 if (!SWIG_IsOK(res1)) {
b39fe951 9958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
1bd55598
RD
9959 }
9960 arg1 = reinterpret_cast< wxCursor * >(argp1);
9961 {
9962 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 9963 result = (bool)(arg1)->IsOk();
1bd55598
RD
9964 wxPyEndAllowThreads(__tstate);
9965 if (PyErr_Occurred()) SWIG_fail;
9966 }
9967 {
9968 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9969 }
9970 return resultobj;
9971fail:
9972 return NULL;
9973}
9974
9975
9976SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9977 PyObject *obj;
9978 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9979 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
9980 return SWIG_Py_Void();
9981}
9982
9983SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9984 return SWIG_Python_InitShadowInstance(args);
9985}
9986
9987SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9988 PyObject *resultobj = 0;
9989 int arg1 = (int) 0 ;
9990 int arg2 = (int) 0 ;
9991 int arg3 = (int) 0 ;
9992 int arg4 = (int) 0 ;
9993 wxRegion *result = 0 ;
9994 int val1 ;
9995 int ecode1 = 0 ;
9996 int val2 ;
9997 int ecode2 = 0 ;
9998 int val3 ;
9999 int ecode3 = 0 ;
10000 int val4 ;
10001 int ecode4 = 0 ;
10002 PyObject * obj0 = 0 ;
10003 PyObject * obj1 = 0 ;
10004 PyObject * obj2 = 0 ;
10005 PyObject * obj3 = 0 ;
10006 char * kwnames[] = {
10007 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10008 };
10009
10010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10011 if (obj0) {
10012 ecode1 = SWIG_AsVal_int(obj0, &val1);
10013 if (!SWIG_IsOK(ecode1)) {
10014 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10015 }
10016 arg1 = static_cast< int >(val1);
10017 }
10018 if (obj1) {
10019 ecode2 = SWIG_AsVal_int(obj1, &val2);
10020 if (!SWIG_IsOK(ecode2)) {
10021 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10022 }
10023 arg2 = static_cast< int >(val2);
10024 }
10025 if (obj2) {
10026 ecode3 = SWIG_AsVal_int(obj2, &val3);
10027 if (!SWIG_IsOK(ecode3)) {
10028 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10029 }
10030 arg3 = static_cast< int >(val3);
10031 }
10032 if (obj3) {
10033 ecode4 = SWIG_AsVal_int(obj3, &val4);
10034 if (!SWIG_IsOK(ecode4)) {
10035 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10036 }
10037 arg4 = static_cast< int >(val4);
10038 }
10039 {
10040 if (!wxPyCheckForApp()) SWIG_fail;
10041 PyThreadState* __tstate = wxPyBeginAllowThreads();
10042 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10043 wxPyEndAllowThreads(__tstate);
10044 if (PyErr_Occurred()) SWIG_fail;
10045 }
10046 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10047 return resultobj;
10048fail:
10049 return NULL;
10050}
10051
10052
10053SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10054 PyObject *resultobj = 0;
10055 wxBitmap *arg1 = 0 ;
10056 wxRegion *result = 0 ;
10057 void *argp1 = 0 ;
10058 int res1 = 0 ;
10059 PyObject * obj0 = 0 ;
10060 char * kwnames[] = {
10061 (char *) "bmp", NULL
10062 };
10063
10064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10065 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10066 if (!SWIG_IsOK(res1)) {
10067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10068 }
10069 if (!argp1) {
10070 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10071 }
10072 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10073 {
10074 if (!wxPyCheckForApp()) SWIG_fail;
10075 PyThreadState* __tstate = wxPyBeginAllowThreads();
10076 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10077 wxPyEndAllowThreads(__tstate);
10078 if (PyErr_Occurred()) SWIG_fail;
10079 }
10080 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10081 return resultobj;
10082fail:
10083 return NULL;
10084}
10085
10086
10087SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10088 PyObject *resultobj = 0;
10089 wxBitmap *arg1 = 0 ;
10090 wxColour *arg2 = 0 ;
10091 int arg3 = (int) 0 ;
10092 wxRegion *result = 0 ;
10093 void *argp1 = 0 ;
10094 int res1 = 0 ;
10095 wxColour temp2 ;
10096 int val3 ;
10097 int ecode3 = 0 ;
10098 PyObject * obj0 = 0 ;
10099 PyObject * obj1 = 0 ;
10100 PyObject * obj2 = 0 ;
10101 char * kwnames[] = {
10102 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10103 };
10104
10105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10106 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10107 if (!SWIG_IsOK(res1)) {
10108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10109 }
10110 if (!argp1) {
10111 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10112 }
10113 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10114 {
10115 arg2 = &temp2;
10116 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10117 }
10118 if (obj2) {
10119 ecode3 = SWIG_AsVal_int(obj2, &val3);
10120 if (!SWIG_IsOK(ecode3)) {
10121 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10122 }
10123 arg3 = static_cast< int >(val3);
10124 }
10125 {
10126 if (!wxPyCheckForApp()) SWIG_fail;
10127 PyThreadState* __tstate = wxPyBeginAllowThreads();
10128 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10129 wxPyEndAllowThreads(__tstate);
10130 if (PyErr_Occurred()) SWIG_fail;
10131 }
10132 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10133 return resultobj;
10134fail:
10135 return NULL;
10136}
10137
10138
10139SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10140 PyObject *resultobj = 0;
10141 int arg1 ;
10142 wxPoint *arg2 = (wxPoint *) 0 ;
10143 int arg3 = (int) wxWINDING_RULE ;
10144 wxRegion *result = 0 ;
10145 int val3 ;
10146 int ecode3 = 0 ;
10147 PyObject * obj0 = 0 ;
10148 PyObject * obj1 = 0 ;
10149 char * kwnames[] = {
10150 (char *) "points",(char *) "fillStyle", NULL
10151 };
10152
10153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10154 {
10155 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10156 if (arg2 == NULL) SWIG_fail;
10157 }
10158 if (obj1) {
10159 ecode3 = SWIG_AsVal_int(obj1, &val3);
10160 if (!SWIG_IsOK(ecode3)) {
10161 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10162 }
10163 arg3 = static_cast< int >(val3);
10164 }
10165 {
10166 if (!wxPyCheckForApp()) SWIG_fail;
10167 PyThreadState* __tstate = wxPyBeginAllowThreads();
10168 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10169 wxPyEndAllowThreads(__tstate);
10170 if (PyErr_Occurred()) SWIG_fail;
10171 }
10172 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10173 {
10174 if (arg2) delete [] arg2;
10175 }
10176 return resultobj;
10177fail:
10178 {
10179 if (arg2) delete [] arg2;
10180 }
10181 return NULL;
d55e5bfc
RD
10182}
10183
10184
1bd55598
RD
10185SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10186 PyObject *resultobj = 0;
10187 wxRegion *arg1 = (wxRegion *) 0 ;
10188 void *argp1 = 0 ;
10189 int res1 = 0 ;
10190 PyObject *swig_obj[1] ;
10191
10192 if (!args) SWIG_fail;
10193 swig_obj[0] = args;
10194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10195 if (!SWIG_IsOK(res1)) {
10196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10197 }
10198 arg1 = reinterpret_cast< wxRegion * >(argp1);
10199 {
10200 PyThreadState* __tstate = wxPyBeginAllowThreads();
10201 delete arg1;
d55e5bfc 10202
1bd55598
RD
10203 wxPyEndAllowThreads(__tstate);
10204 if (PyErr_Occurred()) SWIG_fail;
10205 }
10206 resultobj = SWIG_Py_Void();
10207 return resultobj;
10208fail:
10209 return NULL;
d55e5bfc
RD
10210}
10211
10212
1bd55598
RD
10213SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10214 PyObject *resultobj = 0;
10215 wxRegion *arg1 = (wxRegion *) 0 ;
10216 void *argp1 = 0 ;
10217 int res1 = 0 ;
10218 PyObject *swig_obj[1] ;
10219
10220 if (!args) SWIG_fail;
10221 swig_obj[0] = args;
10222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10223 if (!SWIG_IsOK(res1)) {
10224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10225 }
10226 arg1 = reinterpret_cast< wxRegion * >(argp1);
10227 {
10228 PyThreadState* __tstate = wxPyBeginAllowThreads();
10229 (arg1)->Clear();
10230 wxPyEndAllowThreads(__tstate);
10231 if (PyErr_Occurred()) SWIG_fail;
10232 }
10233 resultobj = SWIG_Py_Void();
10234 return resultobj;
10235fail:
10236 return NULL;
10237}
10238
10239
10240SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10241 PyObject *resultobj = 0;
10242 wxRegion *arg1 = (wxRegion *) 0 ;
10243 int arg2 ;
10244 int arg3 ;
10245 bool result;
10246 void *argp1 = 0 ;
10247 int res1 = 0 ;
10248 int val2 ;
10249 int ecode2 = 0 ;
10250 int val3 ;
10251 int ecode3 = 0 ;
10252 PyObject * obj0 = 0 ;
10253 PyObject * obj1 = 0 ;
10254 PyObject * obj2 = 0 ;
10255 char * kwnames[] = {
10256 (char *) "self",(char *) "x",(char *) "y", NULL
10257 };
10258
10259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10261 if (!SWIG_IsOK(res1)) {
10262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10263 }
10264 arg1 = reinterpret_cast< wxRegion * >(argp1);
10265 ecode2 = SWIG_AsVal_int(obj1, &val2);
10266 if (!SWIG_IsOK(ecode2)) {
10267 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10268 }
10269 arg2 = static_cast< int >(val2);
10270 ecode3 = SWIG_AsVal_int(obj2, &val3);
10271 if (!SWIG_IsOK(ecode3)) {
10272 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10273 }
10274 arg3 = static_cast< int >(val3);
10275 {
10276 PyThreadState* __tstate = wxPyBeginAllowThreads();
10277 result = (bool)(arg1)->Offset(arg2,arg3);
10278 wxPyEndAllowThreads(__tstate);
10279 if (PyErr_Occurred()) SWIG_fail;
10280 }
10281 {
10282 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10283 }
10284 return resultobj;
10285fail:
10286 return NULL;
10287}
10288
10289
10290SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10291 PyObject *resultobj = 0;
10292 wxRegion *arg1 = (wxRegion *) 0 ;
10293 int arg2 ;
10294 int arg3 ;
10295 wxRegionContain result;
10296 void *argp1 = 0 ;
10297 int res1 = 0 ;
10298 int val2 ;
10299 int ecode2 = 0 ;
10300 int val3 ;
10301 int ecode3 = 0 ;
10302 PyObject * obj0 = 0 ;
10303 PyObject * obj1 = 0 ;
10304 PyObject * obj2 = 0 ;
10305 char * kwnames[] = {
10306 (char *) "self",(char *) "x",(char *) "y", NULL
10307 };
10308
10309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10311 if (!SWIG_IsOK(res1)) {
10312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10313 }
10314 arg1 = reinterpret_cast< wxRegion * >(argp1);
10315 ecode2 = SWIG_AsVal_int(obj1, &val2);
10316 if (!SWIG_IsOK(ecode2)) {
10317 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10318 }
10319 arg2 = static_cast< int >(val2);
10320 ecode3 = SWIG_AsVal_int(obj2, &val3);
10321 if (!SWIG_IsOK(ecode3)) {
10322 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10323 }
10324 arg3 = static_cast< int >(val3);
10325 {
10326 PyThreadState* __tstate = wxPyBeginAllowThreads();
10327 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10328 wxPyEndAllowThreads(__tstate);
10329 if (PyErr_Occurred()) SWIG_fail;
10330 }
10331 resultobj = SWIG_From_int(static_cast< int >(result));
10332 return resultobj;
10333fail:
10334 return NULL;
10335}
10336
10337
10338SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10339 PyObject *resultobj = 0;
10340 wxRegion *arg1 = (wxRegion *) 0 ;
10341 wxPoint *arg2 = 0 ;
10342 wxRegionContain result;
10343 void *argp1 = 0 ;
10344 int res1 = 0 ;
10345 wxPoint temp2 ;
10346 PyObject * obj0 = 0 ;
10347 PyObject * obj1 = 0 ;
10348 char * kwnames[] = {
10349 (char *) "self",(char *) "pt", NULL
10350 };
10351
10352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10354 if (!SWIG_IsOK(res1)) {
10355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10356 }
10357 arg1 = reinterpret_cast< wxRegion * >(argp1);
10358 {
10359 arg2 = &temp2;
10360 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10361 }
10362 {
10363 PyThreadState* __tstate = wxPyBeginAllowThreads();
10364 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10365 wxPyEndAllowThreads(__tstate);
10366 if (PyErr_Occurred()) SWIG_fail;
10367 }
10368 resultobj = SWIG_From_int(static_cast< int >(result));
10369 return resultobj;
10370fail:
10371 return NULL;
10372}
10373
10374
10375SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10376 PyObject *resultobj = 0;
10377 wxRegion *arg1 = (wxRegion *) 0 ;
10378 wxRect *arg2 = 0 ;
10379 wxRegionContain result;
10380 void *argp1 = 0 ;
10381 int res1 = 0 ;
10382 wxRect temp2 ;
10383 PyObject * obj0 = 0 ;
10384 PyObject * obj1 = 0 ;
10385 char * kwnames[] = {
10386 (char *) "self",(char *) "rect", NULL
10387 };
10388
10389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10391 if (!SWIG_IsOK(res1)) {
10392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10393 }
10394 arg1 = reinterpret_cast< wxRegion * >(argp1);
10395 {
10396 arg2 = &temp2;
10397 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10398 }
10399 {
10400 PyThreadState* __tstate = wxPyBeginAllowThreads();
10401 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10402 wxPyEndAllowThreads(__tstate);
10403 if (PyErr_Occurred()) SWIG_fail;
10404 }
10405 resultobj = SWIG_From_int(static_cast< int >(result));
10406 return resultobj;
10407fail:
10408 return NULL;
10409}
10410
10411
10412SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10413 PyObject *resultobj = 0;
10414 wxRegion *arg1 = (wxRegion *) 0 ;
10415 int arg2 ;
10416 int arg3 ;
10417 int arg4 ;
10418 int arg5 ;
10419 wxRegionContain result;
10420 void *argp1 = 0 ;
10421 int res1 = 0 ;
10422 int val2 ;
10423 int ecode2 = 0 ;
10424 int val3 ;
10425 int ecode3 = 0 ;
10426 int val4 ;
10427 int ecode4 = 0 ;
10428 int val5 ;
10429 int ecode5 = 0 ;
10430 PyObject * obj0 = 0 ;
10431 PyObject * obj1 = 0 ;
10432 PyObject * obj2 = 0 ;
10433 PyObject * obj3 = 0 ;
10434 PyObject * obj4 = 0 ;
10435 char * kwnames[] = {
10436 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10437 };
10438
10439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10441 if (!SWIG_IsOK(res1)) {
10442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10443 }
10444 arg1 = reinterpret_cast< wxRegion * >(argp1);
10445 ecode2 = SWIG_AsVal_int(obj1, &val2);
10446 if (!SWIG_IsOK(ecode2)) {
10447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10448 }
10449 arg2 = static_cast< int >(val2);
10450 ecode3 = SWIG_AsVal_int(obj2, &val3);
10451 if (!SWIG_IsOK(ecode3)) {
10452 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10453 }
10454 arg3 = static_cast< int >(val3);
10455 ecode4 = SWIG_AsVal_int(obj3, &val4);
10456 if (!SWIG_IsOK(ecode4)) {
10457 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10458 }
10459 arg4 = static_cast< int >(val4);
10460 ecode5 = SWIG_AsVal_int(obj4, &val5);
10461 if (!SWIG_IsOK(ecode5)) {
10462 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10463 }
10464 arg5 = static_cast< int >(val5);
10465 {
10466 PyThreadState* __tstate = wxPyBeginAllowThreads();
10467 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10468 wxPyEndAllowThreads(__tstate);
10469 if (PyErr_Occurred()) SWIG_fail;
10470 }
10471 resultobj = SWIG_From_int(static_cast< int >(result));
10472 return resultobj;
10473fail:
10474 return NULL;
d55e5bfc
RD
10475}
10476
10477
1bd55598
RD
10478SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10479 PyObject *resultobj = 0;
10480 wxRegion *arg1 = (wxRegion *) 0 ;
10481 wxRect result;
10482 void *argp1 = 0 ;
10483 int res1 = 0 ;
10484 PyObject *swig_obj[1] ;
10485
10486 if (!args) SWIG_fail;
10487 swig_obj[0] = args;
10488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10489 if (!SWIG_IsOK(res1)) {
10490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10491 }
10492 arg1 = reinterpret_cast< wxRegion * >(argp1);
10493 {
10494 PyThreadState* __tstate = wxPyBeginAllowThreads();
10495 result = (arg1)->GetBox();
10496 wxPyEndAllowThreads(__tstate);
10497 if (PyErr_Occurred()) SWIG_fail;
10498 }
10499 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10500 return resultobj;
10501fail:
10502 return NULL;
10503}
10504
10505
10506SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10507 PyObject *resultobj = 0;
10508 wxRegion *arg1 = (wxRegion *) 0 ;
10509 int arg2 ;
10510 int arg3 ;
10511 int arg4 ;
10512 int arg5 ;
10513 bool result;
10514 void *argp1 = 0 ;
10515 int res1 = 0 ;
10516 int val2 ;
10517 int ecode2 = 0 ;
10518 int val3 ;
10519 int ecode3 = 0 ;
10520 int val4 ;
10521 int ecode4 = 0 ;
10522 int val5 ;
10523 int ecode5 = 0 ;
10524 PyObject * obj0 = 0 ;
10525 PyObject * obj1 = 0 ;
10526 PyObject * obj2 = 0 ;
10527 PyObject * obj3 = 0 ;
10528 PyObject * obj4 = 0 ;
10529 char * kwnames[] = {
10530 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10531 };
10532
10533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10535 if (!SWIG_IsOK(res1)) {
10536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10537 }
10538 arg1 = reinterpret_cast< wxRegion * >(argp1);
10539 ecode2 = SWIG_AsVal_int(obj1, &val2);
10540 if (!SWIG_IsOK(ecode2)) {
10541 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10542 }
10543 arg2 = static_cast< int >(val2);
10544 ecode3 = SWIG_AsVal_int(obj2, &val3);
10545 if (!SWIG_IsOK(ecode3)) {
10546 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10547 }
10548 arg3 = static_cast< int >(val3);
10549 ecode4 = SWIG_AsVal_int(obj3, &val4);
10550 if (!SWIG_IsOK(ecode4)) {
10551 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10552 }
10553 arg4 = static_cast< int >(val4);
10554 ecode5 = SWIG_AsVal_int(obj4, &val5);
10555 if (!SWIG_IsOK(ecode5)) {
10556 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10557 }
10558 arg5 = static_cast< int >(val5);
10559 {
10560 PyThreadState* __tstate = wxPyBeginAllowThreads();
10561 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10562 wxPyEndAllowThreads(__tstate);
10563 if (PyErr_Occurred()) SWIG_fail;
10564 }
10565 {
10566 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10567 }
10568 return resultobj;
10569fail:
10570 return NULL;
10571}
10572
10573
10574SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10575 PyObject *resultobj = 0;
10576 wxRegion *arg1 = (wxRegion *) 0 ;
10577 wxRect *arg2 = 0 ;
10578 bool result;
10579 void *argp1 = 0 ;
10580 int res1 = 0 ;
10581 wxRect temp2 ;
10582 PyObject * obj0 = 0 ;
10583 PyObject * obj1 = 0 ;
10584 char * kwnames[] = {
10585 (char *) "self",(char *) "rect", NULL
10586 };
10587
10588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10590 if (!SWIG_IsOK(res1)) {
10591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10592 }
10593 arg1 = reinterpret_cast< wxRegion * >(argp1);
10594 {
10595 arg2 = &temp2;
10596 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10597 }
10598 {
10599 PyThreadState* __tstate = wxPyBeginAllowThreads();
10600 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10601 wxPyEndAllowThreads(__tstate);
10602 if (PyErr_Occurred()) SWIG_fail;
10603 }
10604 {
10605 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10606 }
10607 return resultobj;
10608fail:
10609 return NULL;
10610}
10611
10612
10613SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10614 PyObject *resultobj = 0;
10615 wxRegion *arg1 = (wxRegion *) 0 ;
10616 wxRegion *arg2 = 0 ;
10617 bool result;
10618 void *argp1 = 0 ;
10619 int res1 = 0 ;
10620 void *argp2 = 0 ;
10621 int res2 = 0 ;
10622 PyObject * obj0 = 0 ;
10623 PyObject * obj1 = 0 ;
10624 char * kwnames[] = {
10625 (char *) "self",(char *) "region", NULL
10626 };
10627
10628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10630 if (!SWIG_IsOK(res1)) {
10631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10632 }
10633 arg1 = reinterpret_cast< wxRegion * >(argp1);
10634 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10635 if (!SWIG_IsOK(res2)) {
10636 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10637 }
10638 if (!argp2) {
10639 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10640 }
10641 arg2 = reinterpret_cast< wxRegion * >(argp2);
10642 {
10643 PyThreadState* __tstate = wxPyBeginAllowThreads();
10644 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
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;
d55e5bfc
RD
10654}
10655
10656
1bd55598
RD
10657SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10658 PyObject *resultobj = 0;
10659 wxRegion *arg1 = (wxRegion *) 0 ;
10660 bool result;
10661 void *argp1 = 0 ;
10662 int res1 = 0 ;
10663 PyObject *swig_obj[1] ;
10664
10665 if (!args) SWIG_fail;
10666 swig_obj[0] = args;
10667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10668 if (!SWIG_IsOK(res1)) {
10669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
10670 }
10671 arg1 = reinterpret_cast< wxRegion * >(argp1);
10672 {
10673 PyThreadState* __tstate = wxPyBeginAllowThreads();
10674 result = (bool)(arg1)->IsEmpty();
10675 wxPyEndAllowThreads(__tstate);
10676 if (PyErr_Occurred()) SWIG_fail;
10677 }
10678 {
10679 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10680 }
10681 return resultobj;
10682fail:
10683 return NULL;
10684}
10685
10686
f5263701
RD
10687SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10688 PyObject *resultobj = 0;
10689 wxRegion *arg1 = (wxRegion *) 0 ;
10690 wxRegion *arg2 = 0 ;
10691 bool result;
10692 void *argp1 = 0 ;
10693 int res1 = 0 ;
10694 void *argp2 = 0 ;
10695 int res2 = 0 ;
10696 PyObject * obj0 = 0 ;
10697 PyObject * obj1 = 0 ;
10698 char * kwnames[] = {
10699 (char *) "self",(char *) "region", NULL
10700 };
10701
10702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
10703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10704 if (!SWIG_IsOK(res1)) {
10705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
10706 }
10707 arg1 = reinterpret_cast< wxRegion * >(argp1);
10708 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10709 if (!SWIG_IsOK(res2)) {
10710 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
10711 }
10712 if (!argp2) {
10713 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
10714 }
10715 arg2 = reinterpret_cast< wxRegion * >(argp2);
10716 {
10717 PyThreadState* __tstate = wxPyBeginAllowThreads();
10718 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
10719 wxPyEndAllowThreads(__tstate);
10720 if (PyErr_Occurred()) SWIG_fail;
10721 }
10722 {
10723 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10724 }
10725 return resultobj;
10726fail:
10727 return NULL;
10728}
10729
10730
1bd55598
RD
10731SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10732 PyObject *resultobj = 0;
10733 wxRegion *arg1 = (wxRegion *) 0 ;
10734 int arg2 ;
10735 int arg3 ;
10736 int arg4 ;
10737 int arg5 ;
10738 bool result;
10739 void *argp1 = 0 ;
10740 int res1 = 0 ;
10741 int val2 ;
10742 int ecode2 = 0 ;
10743 int val3 ;
10744 int ecode3 = 0 ;
10745 int val4 ;
10746 int ecode4 = 0 ;
10747 int val5 ;
10748 int ecode5 = 0 ;
10749 PyObject * obj0 = 0 ;
10750 PyObject * obj1 = 0 ;
10751 PyObject * obj2 = 0 ;
10752 PyObject * obj3 = 0 ;
10753 PyObject * obj4 = 0 ;
10754 char * kwnames[] = {
10755 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10756 };
10757
10758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10760 if (!SWIG_IsOK(res1)) {
10761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
10762 }
10763 arg1 = reinterpret_cast< wxRegion * >(argp1);
10764 ecode2 = SWIG_AsVal_int(obj1, &val2);
10765 if (!SWIG_IsOK(ecode2)) {
10766 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
10767 }
10768 arg2 = static_cast< int >(val2);
10769 ecode3 = SWIG_AsVal_int(obj2, &val3);
10770 if (!SWIG_IsOK(ecode3)) {
10771 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
10772 }
10773 arg3 = static_cast< int >(val3);
10774 ecode4 = SWIG_AsVal_int(obj3, &val4);
10775 if (!SWIG_IsOK(ecode4)) {
10776 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
10777 }
10778 arg4 = static_cast< int >(val4);
10779 ecode5 = SWIG_AsVal_int(obj4, &val5);
10780 if (!SWIG_IsOK(ecode5)) {
10781 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
10782 }
10783 arg5 = static_cast< int >(val5);
10784 {
10785 PyThreadState* __tstate = wxPyBeginAllowThreads();
10786 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
10787 wxPyEndAllowThreads(__tstate);
10788 if (PyErr_Occurred()) SWIG_fail;
10789 }
10790 {
10791 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10792 }
10793 return resultobj;
10794fail:
10795 return NULL;
10796}
10797
10798
10799SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10800 PyObject *resultobj = 0;
10801 wxRegion *arg1 = (wxRegion *) 0 ;
10802 wxRect *arg2 = 0 ;
10803 bool result;
10804 void *argp1 = 0 ;
10805 int res1 = 0 ;
10806 wxRect temp2 ;
10807 PyObject * obj0 = 0 ;
10808 PyObject * obj1 = 0 ;
10809 char * kwnames[] = {
10810 (char *) "self",(char *) "rect", NULL
10811 };
10812
10813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
10814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10815 if (!SWIG_IsOK(res1)) {
10816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10817 }
10818 arg1 = reinterpret_cast< wxRegion * >(argp1);
10819 {
10820 arg2 = &temp2;
10821 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10822 }
10823 {
10824 PyThreadState* __tstate = wxPyBeginAllowThreads();
10825 result = (bool)(arg1)->Union((wxRect const &)*arg2);
10826 wxPyEndAllowThreads(__tstate);
10827 if (PyErr_Occurred()) SWIG_fail;
10828 }
10829 {
10830 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10831 }
10832 return resultobj;
10833fail:
10834 return NULL;
10835}
10836
10837
10838SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10839 PyObject *resultobj = 0;
10840 wxRegion *arg1 = (wxRegion *) 0 ;
10841 wxRegion *arg2 = 0 ;
10842 bool result;
10843 void *argp1 = 0 ;
10844 int res1 = 0 ;
10845 void *argp2 = 0 ;
10846 int res2 = 0 ;
10847 PyObject * obj0 = 0 ;
10848 PyObject * obj1 = 0 ;
10849 char * kwnames[] = {
10850 (char *) "self",(char *) "region", NULL
10851 };
10852
10853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10855 if (!SWIG_IsOK(res1)) {
10856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10857 }
10858 arg1 = reinterpret_cast< wxRegion * >(argp1);
10859 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10860 if (!SWIG_IsOK(res2)) {
10861 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10862 }
10863 if (!argp2) {
10864 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10865 }
10866 arg2 = reinterpret_cast< wxRegion * >(argp2);
10867 {
10868 PyThreadState* __tstate = wxPyBeginAllowThreads();
10869 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
10870 wxPyEndAllowThreads(__tstate);
10871 if (PyErr_Occurred()) SWIG_fail;
10872 }
10873 {
10874 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10875 }
10876 return resultobj;
10877fail:
10878 return NULL;
10879}
10880
10881
10882SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10883 PyObject *resultobj = 0;
10884 wxRegion *arg1 = (wxRegion *) 0 ;
10885 int arg2 ;
10886 int arg3 ;
10887 int arg4 ;
10888 int arg5 ;
10889 bool result;
10890 void *argp1 = 0 ;
10891 int res1 = 0 ;
10892 int val2 ;
10893 int ecode2 = 0 ;
10894 int val3 ;
10895 int ecode3 = 0 ;
10896 int val4 ;
10897 int ecode4 = 0 ;
10898 int val5 ;
10899 int ecode5 = 0 ;
10900 PyObject * obj0 = 0 ;
10901 PyObject * obj1 = 0 ;
10902 PyObject * obj2 = 0 ;
10903 PyObject * obj3 = 0 ;
10904 PyObject * obj4 = 0 ;
10905 char * kwnames[] = {
10906 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10907 };
10908
10909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10911 if (!SWIG_IsOK(res1)) {
10912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
10913 }
10914 arg1 = reinterpret_cast< wxRegion * >(argp1);
10915 ecode2 = SWIG_AsVal_int(obj1, &val2);
10916 if (!SWIG_IsOK(ecode2)) {
10917 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
10918 }
10919 arg2 = static_cast< int >(val2);
10920 ecode3 = SWIG_AsVal_int(obj2, &val3);
10921 if (!SWIG_IsOK(ecode3)) {
10922 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
10923 }
10924 arg3 = static_cast< int >(val3);
10925 ecode4 = SWIG_AsVal_int(obj3, &val4);
10926 if (!SWIG_IsOK(ecode4)) {
10927 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
10928 }
10929 arg4 = static_cast< int >(val4);
10930 ecode5 = SWIG_AsVal_int(obj4, &val5);
10931 if (!SWIG_IsOK(ecode5)) {
10932 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
10933 }
10934 arg5 = static_cast< int >(val5);
10935 {
10936 PyThreadState* __tstate = wxPyBeginAllowThreads();
10937 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
10938 wxPyEndAllowThreads(__tstate);
10939 if (PyErr_Occurred()) SWIG_fail;
10940 }
10941 {
10942 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10943 }
10944 return resultobj;
10945fail:
10946 return NULL;
10947}
10948
10949
10950SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10951 PyObject *resultobj = 0;
10952 wxRegion *arg1 = (wxRegion *) 0 ;
10953 wxRect *arg2 = 0 ;
10954 bool result;
10955 void *argp1 = 0 ;
10956 int res1 = 0 ;
10957 wxRect temp2 ;
10958 PyObject * obj0 = 0 ;
10959 PyObject * obj1 = 0 ;
10960 char * kwnames[] = {
10961 (char *) "self",(char *) "rect", NULL
10962 };
10963
10964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
10965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10966 if (!SWIG_IsOK(res1)) {
10967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10968 }
10969 arg1 = reinterpret_cast< wxRegion * >(argp1);
10970 {
10971 arg2 = &temp2;
10972 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10973 }
10974 {
10975 PyThreadState* __tstate = wxPyBeginAllowThreads();
10976 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
10977 wxPyEndAllowThreads(__tstate);
10978 if (PyErr_Occurred()) SWIG_fail;
10979 }
10980 {
10981 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10982 }
10983 return resultobj;
10984fail:
10985 return NULL;
10986}
10987
10988
10989SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10990 PyObject *resultobj = 0;
10991 wxRegion *arg1 = (wxRegion *) 0 ;
10992 wxRegion *arg2 = 0 ;
10993 bool result;
10994 void *argp1 = 0 ;
10995 int res1 = 0 ;
10996 void *argp2 = 0 ;
10997 int res2 = 0 ;
10998 PyObject * obj0 = 0 ;
10999 PyObject * obj1 = 0 ;
11000 char * kwnames[] = {
11001 (char *) "self",(char *) "region", NULL
11002 };
11003
11004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11006 if (!SWIG_IsOK(res1)) {
11007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11008 }
11009 arg1 = reinterpret_cast< wxRegion * >(argp1);
11010 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11011 if (!SWIG_IsOK(res2)) {
11012 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11013 }
11014 if (!argp2) {
11015 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11016 }
11017 arg2 = reinterpret_cast< wxRegion * >(argp2);
11018 {
11019 PyThreadState* __tstate = wxPyBeginAllowThreads();
11020 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11021 wxPyEndAllowThreads(__tstate);
11022 if (PyErr_Occurred()) SWIG_fail;
11023 }
11024 {
11025 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11026 }
11027 return resultobj;
11028fail:
11029 return NULL;
11030}
11031
11032
11033SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11034 PyObject *resultobj = 0;
11035 wxRegion *arg1 = (wxRegion *) 0 ;
11036 int arg2 ;
11037 int arg3 ;
11038 int arg4 ;
11039 int arg5 ;
11040 bool result;
11041 void *argp1 = 0 ;
11042 int res1 = 0 ;
11043 int val2 ;
11044 int ecode2 = 0 ;
11045 int val3 ;
11046 int ecode3 = 0 ;
11047 int val4 ;
11048 int ecode4 = 0 ;
11049 int val5 ;
11050 int ecode5 = 0 ;
11051 PyObject * obj0 = 0 ;
11052 PyObject * obj1 = 0 ;
11053 PyObject * obj2 = 0 ;
11054 PyObject * obj3 = 0 ;
11055 PyObject * obj4 = 0 ;
11056 char * kwnames[] = {
11057 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11058 };
11059
11060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11062 if (!SWIG_IsOK(res1)) {
11063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11064 }
11065 arg1 = reinterpret_cast< wxRegion * >(argp1);
11066 ecode2 = SWIG_AsVal_int(obj1, &val2);
11067 if (!SWIG_IsOK(ecode2)) {
11068 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11069 }
11070 arg2 = static_cast< int >(val2);
11071 ecode3 = SWIG_AsVal_int(obj2, &val3);
11072 if (!SWIG_IsOK(ecode3)) {
11073 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11074 }
11075 arg3 = static_cast< int >(val3);
11076 ecode4 = SWIG_AsVal_int(obj3, &val4);
11077 if (!SWIG_IsOK(ecode4)) {
11078 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11079 }
11080 arg4 = static_cast< int >(val4);
11081 ecode5 = SWIG_AsVal_int(obj4, &val5);
11082 if (!SWIG_IsOK(ecode5)) {
11083 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11084 }
11085 arg5 = static_cast< int >(val5);
11086 {
11087 PyThreadState* __tstate = wxPyBeginAllowThreads();
11088 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11089 wxPyEndAllowThreads(__tstate);
11090 if (PyErr_Occurred()) SWIG_fail;
11091 }
11092 {
11093 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11094 }
11095 return resultobj;
11096fail:
11097 return NULL;
11098}
11099
11100
11101SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11102 PyObject *resultobj = 0;
11103 wxRegion *arg1 = (wxRegion *) 0 ;
11104 wxRect *arg2 = 0 ;
11105 bool result;
11106 void *argp1 = 0 ;
11107 int res1 = 0 ;
11108 wxRect temp2 ;
11109 PyObject * obj0 = 0 ;
11110 PyObject * obj1 = 0 ;
11111 char * kwnames[] = {
11112 (char *) "self",(char *) "rect", NULL
11113 };
11114
11115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11117 if (!SWIG_IsOK(res1)) {
11118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11119 }
11120 arg1 = reinterpret_cast< wxRegion * >(argp1);
11121 {
11122 arg2 = &temp2;
11123 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11124 }
11125 {
11126 PyThreadState* __tstate = wxPyBeginAllowThreads();
11127 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11128 wxPyEndAllowThreads(__tstate);
11129 if (PyErr_Occurred()) SWIG_fail;
11130 }
11131 {
11132 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11133 }
11134 return resultobj;
11135fail:
11136 return NULL;
11137}
11138
11139
11140SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11141 PyObject *resultobj = 0;
11142 wxRegion *arg1 = (wxRegion *) 0 ;
11143 wxRegion *arg2 = 0 ;
11144 bool result;
11145 void *argp1 = 0 ;
11146 int res1 = 0 ;
11147 void *argp2 = 0 ;
11148 int res2 = 0 ;
11149 PyObject * obj0 = 0 ;
11150 PyObject * obj1 = 0 ;
11151 char * kwnames[] = {
11152 (char *) "self",(char *) "region", NULL
11153 };
11154
11155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11157 if (!SWIG_IsOK(res1)) {
11158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11159 }
11160 arg1 = reinterpret_cast< wxRegion * >(argp1);
11161 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11162 if (!SWIG_IsOK(res2)) {
11163 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11164 }
11165 if (!argp2) {
11166 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11167 }
11168 arg2 = reinterpret_cast< wxRegion * >(argp2);
11169 {
11170 PyThreadState* __tstate = wxPyBeginAllowThreads();
11171 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11172 wxPyEndAllowThreads(__tstate);
11173 if (PyErr_Occurred()) SWIG_fail;
11174 }
11175 {
11176 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11177 }
11178 return resultobj;
11179fail:
11180 return NULL;
d55e5bfc
RD
11181}
11182
11183
1bd55598
RD
11184SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11185 PyObject *resultobj = 0;
11186 wxRegion *arg1 = (wxRegion *) 0 ;
11187 SwigValueWrapper<wxBitmap > result;
11188 void *argp1 = 0 ;
11189 int res1 = 0 ;
11190 PyObject *swig_obj[1] ;
11191
11192 if (!args) SWIG_fail;
11193 swig_obj[0] = args;
11194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11195 if (!SWIG_IsOK(res1)) {
11196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11197 }
11198 arg1 = reinterpret_cast< wxRegion * >(argp1);
11199 {
11200 PyThreadState* __tstate = wxPyBeginAllowThreads();
11201 result = (arg1)->ConvertToBitmap();
11202 wxPyEndAllowThreads(__tstate);
11203 if (PyErr_Occurred()) SWIG_fail;
11204 }
11205 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11206 return resultobj;
11207fail:
11208 return NULL;
11209}
11210
11211
11212SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11213 PyObject *resultobj = 0;
11214 wxRegion *arg1 = (wxRegion *) 0 ;
11215 wxBitmap *arg2 = 0 ;
11216 bool result;
11217 void *argp1 = 0 ;
11218 int res1 = 0 ;
11219 void *argp2 = 0 ;
11220 int res2 = 0 ;
11221 PyObject * obj0 = 0 ;
11222 PyObject * obj1 = 0 ;
11223 char * kwnames[] = {
11224 (char *) "self",(char *) "bmp", NULL
11225 };
11226
11227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11229 if (!SWIG_IsOK(res1)) {
11230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11231 }
11232 arg1 = reinterpret_cast< wxRegion * >(argp1);
11233 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11234 if (!SWIG_IsOK(res2)) {
11235 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11236 }
11237 if (!argp2) {
11238 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11239 }
11240 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11241 {
11242 PyThreadState* __tstate = wxPyBeginAllowThreads();
11243 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11244 wxPyEndAllowThreads(__tstate);
11245 if (PyErr_Occurred()) SWIG_fail;
11246 }
11247 {
11248 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11249 }
11250 return resultobj;
11251fail:
11252 return NULL;
11253}
11254
11255
11256SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11257 PyObject *resultobj = 0;
11258 wxRegion *arg1 = (wxRegion *) 0 ;
11259 wxBitmap *arg2 = 0 ;
11260 wxColour *arg3 = 0 ;
11261 int arg4 = (int) 0 ;
11262 bool result;
11263 void *argp1 = 0 ;
11264 int res1 = 0 ;
11265 void *argp2 = 0 ;
11266 int res2 = 0 ;
11267 wxColour temp3 ;
11268 int val4 ;
11269 int ecode4 = 0 ;
11270 PyObject * obj0 = 0 ;
11271 PyObject * obj1 = 0 ;
11272 PyObject * obj2 = 0 ;
11273 PyObject * obj3 = 0 ;
11274 char * kwnames[] = {
11275 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11276 };
11277
11278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11280 if (!SWIG_IsOK(res1)) {
11281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11282 }
11283 arg1 = reinterpret_cast< wxRegion * >(argp1);
11284 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11285 if (!SWIG_IsOK(res2)) {
11286 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11287 }
11288 if (!argp2) {
11289 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11290 }
11291 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11292 {
11293 arg3 = &temp3;
11294 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11295 }
11296 if (obj3) {
11297 ecode4 = SWIG_AsVal_int(obj3, &val4);
11298 if (!SWIG_IsOK(ecode4)) {
11299 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11300 }
11301 arg4 = static_cast< int >(val4);
11302 }
11303 {
11304 PyThreadState* __tstate = wxPyBeginAllowThreads();
11305 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11306 wxPyEndAllowThreads(__tstate);
11307 if (PyErr_Occurred()) SWIG_fail;
11308 }
11309 {
11310 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11311 }
11312 return resultobj;
11313fail:
11314 return NULL;
d55e5bfc
RD
11315}
11316
11317
1bd55598
RD
11318SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11319 PyObject *obj;
11320 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11321 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11322 return SWIG_Py_Void();
d55e5bfc
RD
11323}
11324
1bd55598
RD
11325SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11326 return SWIG_Python_InitShadowInstance(args);
11327}
d55e5bfc 11328
1bd55598
RD
11329SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11330 PyObject *resultobj = 0;
11331 wxRegion *arg1 = 0 ;
11332 wxRegionIterator *result = 0 ;
11333 void *argp1 = 0 ;
11334 int res1 = 0 ;
11335 PyObject * obj0 = 0 ;
11336 char * kwnames[] = {
11337 (char *) "region", NULL
11338 };
11339
11340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11341 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11342 if (!SWIG_IsOK(res1)) {
11343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11344 }
11345 if (!argp1) {
11346 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11347 }
11348 arg1 = reinterpret_cast< wxRegion * >(argp1);
11349 {
11350 if (!wxPyCheckForApp()) SWIG_fail;
11351 PyThreadState* __tstate = wxPyBeginAllowThreads();
11352 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11353 wxPyEndAllowThreads(__tstate);
11354 if (PyErr_Occurred()) SWIG_fail;
11355 }
11356 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11357 return resultobj;
11358fail:
11359 return NULL;
d55e5bfc
RD
11360}
11361
11362
1bd55598
RD
11363SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11364 PyObject *resultobj = 0;
11365 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11366 void *argp1 = 0 ;
11367 int res1 = 0 ;
11368 PyObject *swig_obj[1] ;
11369
11370 if (!args) SWIG_fail;
11371 swig_obj[0] = args;
11372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11373 if (!SWIG_IsOK(res1)) {
11374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11375 }
11376 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11377 {
11378 PyThreadState* __tstate = wxPyBeginAllowThreads();
11379 delete arg1;
d55e5bfc 11380
1bd55598
RD
11381 wxPyEndAllowThreads(__tstate);
11382 if (PyErr_Occurred()) SWIG_fail;
11383 }
11384 resultobj = SWIG_Py_Void();
11385 return resultobj;
11386fail:
11387 return NULL;
d55e5bfc
RD
11388}
11389
11390
1bd55598
RD
11391SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11392 PyObject *resultobj = 0;
11393 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11394 int result;
11395 void *argp1 = 0 ;
11396 int res1 = 0 ;
11397 PyObject *swig_obj[1] ;
11398
11399 if (!args) SWIG_fail;
11400 swig_obj[0] = args;
11401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11402 if (!SWIG_IsOK(res1)) {
11403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11404 }
11405 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11406 {
11407 PyThreadState* __tstate = wxPyBeginAllowThreads();
11408 result = (int)(arg1)->GetX();
11409 wxPyEndAllowThreads(__tstate);
11410 if (PyErr_Occurred()) SWIG_fail;
11411 }
11412 resultobj = SWIG_From_int(static_cast< int >(result));
11413 return resultobj;
11414fail:
11415 return NULL;
d55e5bfc
RD
11416}
11417
11418
1bd55598
RD
11419SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11420 PyObject *resultobj = 0;
11421 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11422 int result;
11423 void *argp1 = 0 ;
11424 int res1 = 0 ;
11425 PyObject *swig_obj[1] ;
11426
11427 if (!args) SWIG_fail;
11428 swig_obj[0] = args;
11429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11430 if (!SWIG_IsOK(res1)) {
11431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11432 }
11433 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11434 {
11435 PyThreadState* __tstate = wxPyBeginAllowThreads();
11436 result = (int)(arg1)->GetY();
11437 wxPyEndAllowThreads(__tstate);
11438 if (PyErr_Occurred()) SWIG_fail;
11439 }
11440 resultobj = SWIG_From_int(static_cast< int >(result));
11441 return resultobj;
11442fail:
11443 return NULL;
d55e5bfc
RD
11444}
11445
11446
1bd55598
RD
11447SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11448 PyObject *resultobj = 0;
11449 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11450 int result;
11451 void *argp1 = 0 ;
11452 int res1 = 0 ;
11453 PyObject *swig_obj[1] ;
11454
11455 if (!args) SWIG_fail;
11456 swig_obj[0] = args;
11457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11458 if (!SWIG_IsOK(res1)) {
11459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11460 }
11461 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11462 {
11463 PyThreadState* __tstate = wxPyBeginAllowThreads();
11464 result = (int)(arg1)->GetW();
11465 wxPyEndAllowThreads(__tstate);
11466 if (PyErr_Occurred()) SWIG_fail;
11467 }
11468 resultobj = SWIG_From_int(static_cast< int >(result));
11469 return resultobj;
11470fail:
11471 return NULL;
d55e5bfc
RD
11472}
11473
11474
1bd55598
RD
11475SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11476 PyObject *resultobj = 0;
11477 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11478 int result;
11479 void *argp1 = 0 ;
11480 int res1 = 0 ;
11481 PyObject *swig_obj[1] ;
11482
11483 if (!args) SWIG_fail;
11484 swig_obj[0] = args;
11485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11486 if (!SWIG_IsOK(res1)) {
11487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11488 }
11489 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11490 {
11491 PyThreadState* __tstate = wxPyBeginAllowThreads();
11492 result = (int)(arg1)->GetWidth();
11493 wxPyEndAllowThreads(__tstate);
11494 if (PyErr_Occurred()) SWIG_fail;
11495 }
11496 resultobj = SWIG_From_int(static_cast< int >(result));
11497 return resultobj;
11498fail:
11499 return NULL;
d55e5bfc
RD
11500}
11501
11502
1bd55598
RD
11503SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11504 PyObject *resultobj = 0;
11505 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11506 int result;
11507 void *argp1 = 0 ;
11508 int res1 = 0 ;
11509 PyObject *swig_obj[1] ;
11510
11511 if (!args) SWIG_fail;
11512 swig_obj[0] = args;
11513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11514 if (!SWIG_IsOK(res1)) {
11515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11516 }
11517 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11518 {
11519 PyThreadState* __tstate = wxPyBeginAllowThreads();
11520 result = (int)(arg1)->GetH();
11521 wxPyEndAllowThreads(__tstate);
11522 if (PyErr_Occurred()) SWIG_fail;
11523 }
11524 resultobj = SWIG_From_int(static_cast< int >(result));
11525 return resultobj;
11526fail:
11527 return NULL;
d07096ad
RD
11528}
11529
11530
1bd55598
RD
11531SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11532 PyObject *resultobj = 0;
11533 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11534 int result;
11535 void *argp1 = 0 ;
11536 int res1 = 0 ;
11537 PyObject *swig_obj[1] ;
11538
11539 if (!args) SWIG_fail;
11540 swig_obj[0] = args;
11541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11542 if (!SWIG_IsOK(res1)) {
11543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11544 }
11545 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11546 {
11547 PyThreadState* __tstate = wxPyBeginAllowThreads();
11548 result = (int)(arg1)->GetHeight();
11549 wxPyEndAllowThreads(__tstate);
11550 if (PyErr_Occurred()) SWIG_fail;
11551 }
11552 resultobj = SWIG_From_int(static_cast< int >(result));
11553 return resultobj;
11554fail:
11555 return NULL;
d55e5bfc
RD
11556}
11557
11558
1bd55598
RD
11559SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11560 PyObject *resultobj = 0;
11561 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11562 wxRect result;
11563 void *argp1 = 0 ;
11564 int res1 = 0 ;
11565 PyObject *swig_obj[1] ;
11566
11567 if (!args) SWIG_fail;
11568 swig_obj[0] = args;
11569 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11570 if (!SWIG_IsOK(res1)) {
11571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11572 }
11573 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11574 {
11575 PyThreadState* __tstate = wxPyBeginAllowThreads();
11576 result = (arg1)->GetRect();
11577 wxPyEndAllowThreads(__tstate);
11578 if (PyErr_Occurred()) SWIG_fail;
11579 }
11580 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11581 return resultobj;
11582fail:
11583 return NULL;
d55e5bfc
RD
11584}
11585
11586
1bd55598
RD
11587SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11588 PyObject *resultobj = 0;
11589 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11590 bool result;
11591 void *argp1 = 0 ;
11592 int res1 = 0 ;
11593 PyObject *swig_obj[1] ;
11594
11595 if (!args) SWIG_fail;
11596 swig_obj[0] = args;
11597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11598 if (!SWIG_IsOK(res1)) {
11599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11600 }
11601 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11602 {
11603 PyThreadState* __tstate = wxPyBeginAllowThreads();
11604 result = (bool)(arg1)->HaveRects();
11605 wxPyEndAllowThreads(__tstate);
11606 if (PyErr_Occurred()) SWIG_fail;
11607 }
11608 {
11609 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11610 }
11611 return resultobj;
11612fail:
11613 return NULL;
d55e5bfc
RD
11614}
11615
11616
1bd55598
RD
11617SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11618 PyObject *resultobj = 0;
11619 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11620 void *argp1 = 0 ;
11621 int res1 = 0 ;
11622 PyObject *swig_obj[1] ;
11623
11624 if (!args) SWIG_fail;
11625 swig_obj[0] = args;
11626 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11627 if (!SWIG_IsOK(res1)) {
11628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11629 }
11630 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11631 {
11632 PyThreadState* __tstate = wxPyBeginAllowThreads();
11633 (arg1)->Reset();
11634 wxPyEndAllowThreads(__tstate);
11635 if (PyErr_Occurred()) SWIG_fail;
11636 }
11637 resultobj = SWIG_Py_Void();
11638 return resultobj;
11639fail:
11640 return NULL;
d55e5bfc
RD
11641}
11642
11643
1bd55598
RD
11644SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11645 PyObject *resultobj = 0;
11646 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11647 void *argp1 = 0 ;
11648 int res1 = 0 ;
11649 PyObject *swig_obj[1] ;
11650
11651 if (!args) SWIG_fail;
11652 swig_obj[0] = args;
11653 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11654 if (!SWIG_IsOK(res1)) {
11655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11656 }
11657 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11658 {
11659 PyThreadState* __tstate = wxPyBeginAllowThreads();
11660 wxRegionIterator_Next(arg1);
11661 wxPyEndAllowThreads(__tstate);
11662 if (PyErr_Occurred()) SWIG_fail;
11663 }
11664 resultobj = SWIG_Py_Void();
11665 return resultobj;
11666fail:
11667 return NULL;
070c48b4
RD
11668}
11669
11670
1bd55598
RD
11671SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11672 PyObject *resultobj = 0;
11673 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11674 bool result;
11675 void *argp1 = 0 ;
11676 int res1 = 0 ;
11677 PyObject *swig_obj[1] ;
11678
11679 if (!args) SWIG_fail;
11680 swig_obj[0] = args;
11681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11682 if (!SWIG_IsOK(res1)) {
11683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11684 }
11685 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11686 {
11687 PyThreadState* __tstate = wxPyBeginAllowThreads();
11688 result = (bool)wxRegionIterator___nonzero__(arg1);
11689 wxPyEndAllowThreads(__tstate);
11690 if (PyErr_Occurred()) SWIG_fail;
11691 }
11692 {
11693 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11694 }
11695 return resultobj;
11696fail:
11697 return NULL;
d55e5bfc
RD
11698}
11699
11700
1bd55598
RD
11701SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11702 PyObject *obj;
11703 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11704 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
11705 return SWIG_Py_Void();
d55e5bfc
RD
11706}
11707
1bd55598
RD
11708SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11709 return SWIG_Python_InitShadowInstance(args);
11710}
d55e5bfc 11711
1bd55598
RD
11712SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11713 PyObject *resultobj = 0;
11714 wxNativeFontInfo *result = 0 ;
11715
11716 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
11717 {
11718 PyThreadState* __tstate = wxPyBeginAllowThreads();
11719 result = (wxNativeFontInfo *)new wxNativeFontInfo();
11720 wxPyEndAllowThreads(__tstate);
11721 if (PyErr_Occurred()) SWIG_fail;
11722 }
11723 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
11724 return resultobj;
11725fail:
11726 return NULL;
d55e5bfc
RD
11727}
11728
11729
1bd55598
RD
11730SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11731 PyObject *resultobj = 0;
11732 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11733 void *argp1 = 0 ;
11734 int res1 = 0 ;
11735 PyObject *swig_obj[1] ;
11736
11737 if (!args) SWIG_fail;
11738 swig_obj[0] = args;
11739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
11740 if (!SWIG_IsOK(res1)) {
11741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11742 }
11743 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11744 {
11745 PyThreadState* __tstate = wxPyBeginAllowThreads();
11746 delete arg1;
d55e5bfc 11747
1bd55598
RD
11748 wxPyEndAllowThreads(__tstate);
11749 if (PyErr_Occurred()) SWIG_fail;
11750 }
11751 resultobj = SWIG_Py_Void();
11752 return resultobj;
11753fail:
11754 return NULL;
d55e5bfc
RD
11755}
11756
11757
1bd55598
RD
11758SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11759 PyObject *resultobj = 0;
11760 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11761 void *argp1 = 0 ;
11762 int res1 = 0 ;
11763 PyObject *swig_obj[1] ;
11764
11765 if (!args) SWIG_fail;
11766 swig_obj[0] = args;
11767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11768 if (!SWIG_IsOK(res1)) {
11769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11770 }
11771 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11772 {
11773 PyThreadState* __tstate = wxPyBeginAllowThreads();
11774 (arg1)->Init();
11775 wxPyEndAllowThreads(__tstate);
11776 if (PyErr_Occurred()) SWIG_fail;
11777 }
11778 resultobj = SWIG_Py_Void();
11779 return resultobj;
11780fail:
11781 return NULL;
11782}
11783
11784
11785SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11786 PyObject *resultobj = 0;
11787 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11788 wxFont *arg2 = 0 ;
11789 void *argp1 = 0 ;
11790 int res1 = 0 ;
11791 void *argp2 = 0 ;
11792 int res2 = 0 ;
11793 PyObject * obj0 = 0 ;
11794 PyObject * obj1 = 0 ;
11795 char * kwnames[] = {
11796 (char *) "self",(char *) "font", NULL
11797 };
11798
11799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
11800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11801 if (!SWIG_IsOK(res1)) {
11802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11803 }
11804 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11805 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
11806 if (!SWIG_IsOK(res2)) {
11807 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11808 }
11809 if (!argp2) {
11810 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11811 }
11812 arg2 = reinterpret_cast< wxFont * >(argp2);
11813 {
11814 PyThreadState* __tstate = wxPyBeginAllowThreads();
11815 (arg1)->InitFromFont((wxFont const &)*arg2);
11816 wxPyEndAllowThreads(__tstate);
11817 if (PyErr_Occurred()) SWIG_fail;
11818 }
11819 resultobj = SWIG_Py_Void();
11820 return resultobj;
11821fail:
11822 return NULL;
d55e5bfc
RD
11823}
11824
11825
1bd55598
RD
11826SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11827 PyObject *resultobj = 0;
11828 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11829 int result;
11830 void *argp1 = 0 ;
11831 int res1 = 0 ;
11832 PyObject *swig_obj[1] ;
11833
11834 if (!args) SWIG_fail;
11835 swig_obj[0] = args;
11836 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11837 if (!SWIG_IsOK(res1)) {
11838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11839 }
11840 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11841 {
11842 PyThreadState* __tstate = wxPyBeginAllowThreads();
11843 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
11844 wxPyEndAllowThreads(__tstate);
11845 if (PyErr_Occurred()) SWIG_fail;
11846 }
11847 resultobj = SWIG_From_int(static_cast< int >(result));
11848 return resultobj;
11849fail:
11850 return NULL;
d55e5bfc
RD
11851}
11852
11853
1bd55598
RD
11854SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11855 PyObject *resultobj = 0;
11856 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11857 wxFontStyle result;
11858 void *argp1 = 0 ;
11859 int res1 = 0 ;
11860 PyObject *swig_obj[1] ;
11861
11862 if (!args) SWIG_fail;
11863 swig_obj[0] = args;
11864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11865 if (!SWIG_IsOK(res1)) {
11866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11867 }
11868 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11869 {
11870 PyThreadState* __tstate = wxPyBeginAllowThreads();
11871 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
11872 wxPyEndAllowThreads(__tstate);
11873 if (PyErr_Occurred()) SWIG_fail;
11874 }
11875 resultobj = SWIG_From_int(static_cast< int >(result));
11876 return resultobj;
11877fail:
11878 return NULL;
d55e5bfc
RD
11879}
11880
11881
1bd55598
RD
11882SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11883 PyObject *resultobj = 0;
11884 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11885 wxFontWeight result;
11886 void *argp1 = 0 ;
11887 int res1 = 0 ;
11888 PyObject *swig_obj[1] ;
11889
11890 if (!args) SWIG_fail;
11891 swig_obj[0] = args;
11892 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11893 if (!SWIG_IsOK(res1)) {
11894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11895 }
11896 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11897 {
11898 PyThreadState* __tstate = wxPyBeginAllowThreads();
11899 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
11900 wxPyEndAllowThreads(__tstate);
11901 if (PyErr_Occurred()) SWIG_fail;
11902 }
11903 resultobj = SWIG_From_int(static_cast< int >(result));
11904 return resultobj;
11905fail:
11906 return NULL;
d55e5bfc
RD
11907}
11908
11909
1bd55598
RD
11910SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11911 PyObject *resultobj = 0;
11912 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11913 bool 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_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11923 }
11924 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11925 {
11926 PyThreadState* __tstate = wxPyBeginAllowThreads();
11927 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
11928 wxPyEndAllowThreads(__tstate);
11929 if (PyErr_Occurred()) SWIG_fail;
11930 }
11931 {
11932 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11933 }
11934 return resultobj;
11935fail:
11936 return NULL;
d55e5bfc
RD
11937}
11938
11939
1bd55598
RD
11940SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11941 PyObject *resultobj = 0;
11942 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11943 wxString result;
11944 void *argp1 = 0 ;
11945 int res1 = 0 ;
11946 PyObject *swig_obj[1] ;
11947
11948 if (!args) SWIG_fail;
11949 swig_obj[0] = args;
11950 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11951 if (!SWIG_IsOK(res1)) {
11952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11953 }
11954 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11955 {
11956 PyThreadState* __tstate = wxPyBeginAllowThreads();
11957 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
11958 wxPyEndAllowThreads(__tstate);
11959 if (PyErr_Occurred()) SWIG_fail;
11960 }
11961 {
11962#if wxUSE_UNICODE
11963 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11964#else
11965 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11966#endif
11967 }
11968 return resultobj;
11969fail:
11970 return NULL;
d55e5bfc
RD
11971}
11972
11973
1bd55598
RD
11974SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11975 PyObject *resultobj = 0;
11976 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11977 wxFontFamily result;
11978 void *argp1 = 0 ;
11979 int res1 = 0 ;
11980 PyObject *swig_obj[1] ;
11981
11982 if (!args) SWIG_fail;
11983 swig_obj[0] = args;
11984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11985 if (!SWIG_IsOK(res1)) {
11986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11987 }
11988 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11989 {
11990 PyThreadState* __tstate = wxPyBeginAllowThreads();
11991 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
11992 wxPyEndAllowThreads(__tstate);
11993 if (PyErr_Occurred()) SWIG_fail;
11994 }
11995 resultobj = SWIG_From_int(static_cast< int >(result));
11996 return resultobj;
11997fail:
11998 return NULL;
d55e5bfc
RD
11999}
12000
12001
1bd55598
RD
12002SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12003 PyObject *resultobj = 0;
12004 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12005 wxFontEncoding result;
12006 void *argp1 = 0 ;
12007 int res1 = 0 ;
12008 PyObject *swig_obj[1] ;
12009
12010 if (!args) SWIG_fail;
12011 swig_obj[0] = args;
12012 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12013 if (!SWIG_IsOK(res1)) {
12014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12015 }
12016 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12017 {
12018 PyThreadState* __tstate = wxPyBeginAllowThreads();
12019 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12020 wxPyEndAllowThreads(__tstate);
12021 if (PyErr_Occurred()) SWIG_fail;
12022 }
12023 resultobj = SWIG_From_int(static_cast< int >(result));
12024 return resultobj;
12025fail:
12026 return NULL;
12027}
12028
12029
12030SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12031 PyObject *resultobj = 0;
12032 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12033 int arg2 ;
12034 void *argp1 = 0 ;
12035 int res1 = 0 ;
12036 int val2 ;
12037 int ecode2 = 0 ;
12038 PyObject * obj0 = 0 ;
12039 PyObject * obj1 = 0 ;
12040 char * kwnames[] = {
12041 (char *) "self",(char *) "pointsize", NULL
12042 };
12043
12044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12046 if (!SWIG_IsOK(res1)) {
12047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12048 }
12049 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12050 ecode2 = SWIG_AsVal_int(obj1, &val2);
12051 if (!SWIG_IsOK(ecode2)) {
12052 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12053 }
12054 arg2 = static_cast< int >(val2);
12055 {
12056 PyThreadState* __tstate = wxPyBeginAllowThreads();
12057 (arg1)->SetPointSize(arg2);
12058 wxPyEndAllowThreads(__tstate);
12059 if (PyErr_Occurred()) SWIG_fail;
12060 }
12061 resultobj = SWIG_Py_Void();
12062 return resultobj;
12063fail:
12064 return NULL;
12065}
12066
12067
12068SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12069 PyObject *resultobj = 0;
12070 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12071 wxFontStyle arg2 ;
12072 void *argp1 = 0 ;
12073 int res1 = 0 ;
12074 int val2 ;
12075 int ecode2 = 0 ;
12076 PyObject * obj0 = 0 ;
12077 PyObject * obj1 = 0 ;
12078 char * kwnames[] = {
12079 (char *) "self",(char *) "style", NULL
12080 };
12081
12082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12084 if (!SWIG_IsOK(res1)) {
12085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12086 }
12087 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12088 ecode2 = SWIG_AsVal_int(obj1, &val2);
12089 if (!SWIG_IsOK(ecode2)) {
12090 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12091 }
12092 arg2 = static_cast< wxFontStyle >(val2);
12093 {
12094 PyThreadState* __tstate = wxPyBeginAllowThreads();
12095 (arg1)->SetStyle(arg2);
12096 wxPyEndAllowThreads(__tstate);
12097 if (PyErr_Occurred()) SWIG_fail;
12098 }
12099 resultobj = SWIG_Py_Void();
12100 return resultobj;
12101fail:
12102 return NULL;
12103}
12104
12105
12106SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12107 PyObject *resultobj = 0;
12108 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12109 wxFontWeight arg2 ;
12110 void *argp1 = 0 ;
12111 int res1 = 0 ;
12112 int val2 ;
12113 int ecode2 = 0 ;
12114 PyObject * obj0 = 0 ;
12115 PyObject * obj1 = 0 ;
12116 char * kwnames[] = {
12117 (char *) "self",(char *) "weight", NULL
12118 };
12119
12120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12122 if (!SWIG_IsOK(res1)) {
12123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12124 }
12125 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12126 ecode2 = SWIG_AsVal_int(obj1, &val2);
12127 if (!SWIG_IsOK(ecode2)) {
12128 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12129 }
12130 arg2 = static_cast< wxFontWeight >(val2);
12131 {
12132 PyThreadState* __tstate = wxPyBeginAllowThreads();
12133 (arg1)->SetWeight(arg2);
12134 wxPyEndAllowThreads(__tstate);
12135 if (PyErr_Occurred()) SWIG_fail;
12136 }
12137 resultobj = SWIG_Py_Void();
12138 return resultobj;
12139fail:
12140 return NULL;
12141}
12142
12143
12144SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12145 PyObject *resultobj = 0;
12146 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12147 bool arg2 ;
12148 void *argp1 = 0 ;
12149 int res1 = 0 ;
12150 bool val2 ;
12151 int ecode2 = 0 ;
12152 PyObject * obj0 = 0 ;
12153 PyObject * obj1 = 0 ;
12154 char * kwnames[] = {
12155 (char *) "self",(char *) "underlined", NULL
12156 };
12157
12158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12160 if (!SWIG_IsOK(res1)) {
12161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12162 }
12163 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12164 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12165 if (!SWIG_IsOK(ecode2)) {
12166 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12167 }
12168 arg2 = static_cast< bool >(val2);
12169 {
12170 PyThreadState* __tstate = wxPyBeginAllowThreads();
12171 (arg1)->SetUnderlined(arg2);
12172 wxPyEndAllowThreads(__tstate);
12173 if (PyErr_Occurred()) SWIG_fail;
12174 }
12175 resultobj = SWIG_Py_Void();
12176 return resultobj;
12177fail:
12178 return NULL;
12179}
12180
12181
12182SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12183 PyObject *resultobj = 0;
12184 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12185 wxString arg2 ;
704eda0c 12186 bool result;
1bd55598
RD
12187 void *argp1 = 0 ;
12188 int res1 = 0 ;
12189 PyObject * obj0 = 0 ;
12190 PyObject * obj1 = 0 ;
12191 char * kwnames[] = {
12192 (char *) "self",(char *) "facename", NULL
12193 };
12194
12195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12197 if (!SWIG_IsOK(res1)) {
12198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12199 }
12200 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12201 {
12202 wxString* sptr = wxString_in_helper(obj1);
12203 if (sptr == NULL) SWIG_fail;
12204 arg2 = *sptr;
12205 delete sptr;
12206 }
12207 {
12208 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 12209 result = (bool)(arg1)->SetFaceName(arg2);
1bd55598
RD
12210 wxPyEndAllowThreads(__tstate);
12211 if (PyErr_Occurred()) SWIG_fail;
12212 }
704eda0c
RD
12213 {
12214 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12215 }
1bd55598
RD
12216 return resultobj;
12217fail:
12218 return NULL;
12219}
12220
12221
12222SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12223 PyObject *resultobj = 0;
12224 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12225 wxFontFamily arg2 ;
12226 void *argp1 = 0 ;
12227 int res1 = 0 ;
12228 int val2 ;
12229 int ecode2 = 0 ;
12230 PyObject * obj0 = 0 ;
12231 PyObject * obj1 = 0 ;
12232 char * kwnames[] = {
12233 (char *) "self",(char *) "family", NULL
12234 };
12235
12236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12238 if (!SWIG_IsOK(res1)) {
12239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12240 }
12241 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12242 ecode2 = SWIG_AsVal_int(obj1, &val2);
12243 if (!SWIG_IsOK(ecode2)) {
12244 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12245 }
12246 arg2 = static_cast< wxFontFamily >(val2);
12247 {
12248 PyThreadState* __tstate = wxPyBeginAllowThreads();
12249 (arg1)->SetFamily(arg2);
12250 wxPyEndAllowThreads(__tstate);
12251 if (PyErr_Occurred()) SWIG_fail;
12252 }
12253 resultobj = SWIG_Py_Void();
12254 return resultobj;
12255fail:
12256 return NULL;
12257}
12258
12259
12260SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12261 PyObject *resultobj = 0;
12262 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12263 wxFontEncoding arg2 ;
12264 void *argp1 = 0 ;
12265 int res1 = 0 ;
12266 int val2 ;
12267 int ecode2 = 0 ;
12268 PyObject * obj0 = 0 ;
12269 PyObject * obj1 = 0 ;
12270 char * kwnames[] = {
12271 (char *) "self",(char *) "encoding", NULL
12272 };
12273
12274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12276 if (!SWIG_IsOK(res1)) {
12277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12278 }
12279 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12280 ecode2 = SWIG_AsVal_int(obj1, &val2);
12281 if (!SWIG_IsOK(ecode2)) {
12282 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12283 }
12284 arg2 = static_cast< wxFontEncoding >(val2);
12285 {
12286 PyThreadState* __tstate = wxPyBeginAllowThreads();
12287 (arg1)->SetEncoding(arg2);
12288 wxPyEndAllowThreads(__tstate);
12289 if (PyErr_Occurred()) SWIG_fail;
12290 }
12291 resultobj = SWIG_Py_Void();
12292 return resultobj;
12293fail:
12294 return NULL;
12295}
12296
12297
12298SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12299 PyObject *resultobj = 0;
12300 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12301 wxString *arg2 = 0 ;
12302 bool result;
12303 void *argp1 = 0 ;
12304 int res1 = 0 ;
12305 bool temp2 = false ;
12306 PyObject * obj0 = 0 ;
12307 PyObject * obj1 = 0 ;
12308 char * kwnames[] = {
12309 (char *) "self",(char *) "s", NULL
12310 };
12311
12312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12314 if (!SWIG_IsOK(res1)) {
12315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12316 }
12317 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12318 {
12319 arg2 = wxString_in_helper(obj1);
12320 if (arg2 == NULL) SWIG_fail;
12321 temp2 = true;
12322 }
12323 {
12324 PyThreadState* __tstate = wxPyBeginAllowThreads();
12325 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12326 wxPyEndAllowThreads(__tstate);
12327 if (PyErr_Occurred()) SWIG_fail;
12328 }
12329 {
12330 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12331 }
12332 {
12333 if (temp2)
12334 delete arg2;
12335 }
12336 return resultobj;
12337fail:
12338 {
12339 if (temp2)
12340 delete arg2;
12341 }
12342 return NULL;
d55e5bfc
RD
12343}
12344
12345
1bd55598
RD
12346SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12347 PyObject *resultobj = 0;
12348 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12349 wxString result;
12350 void *argp1 = 0 ;
12351 int res1 = 0 ;
12352 PyObject *swig_obj[1] ;
12353
12354 if (!args) SWIG_fail;
12355 swig_obj[0] = args;
12356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12357 if (!SWIG_IsOK(res1)) {
12358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12359 }
12360 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12361 {
12362 PyThreadState* __tstate = wxPyBeginAllowThreads();
12363 result = ((wxNativeFontInfo const *)arg1)->ToString();
12364 wxPyEndAllowThreads(__tstate);
12365 if (PyErr_Occurred()) SWIG_fail;
12366 }
12367 {
12368#if wxUSE_UNICODE
12369 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12370#else
12371 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12372#endif
12373 }
12374 return resultobj;
12375fail:
12376 return NULL;
d55e5bfc
RD
12377}
12378
12379
1bd55598
RD
12380SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12381 PyObject *resultobj = 0;
12382 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12383 wxString result;
12384 void *argp1 = 0 ;
12385 int res1 = 0 ;
12386 PyObject *swig_obj[1] ;
12387
12388 if (!args) SWIG_fail;
12389 swig_obj[0] = args;
12390 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12391 if (!SWIG_IsOK(res1)) {
12392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12393 }
12394 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12395 {
12396 PyThreadState* __tstate = wxPyBeginAllowThreads();
12397 result = wxNativeFontInfo___str__(arg1);
12398 wxPyEndAllowThreads(__tstate);
12399 if (PyErr_Occurred()) SWIG_fail;
12400 }
12401 {
12402#if wxUSE_UNICODE
12403 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12404#else
12405 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12406#endif
12407 }
12408 return resultobj;
12409fail:
12410 return NULL;
12411}
12412
12413
12414SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12415 PyObject *resultobj = 0;
12416 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12417 wxString *arg2 = 0 ;
12418 bool result;
12419 void *argp1 = 0 ;
12420 int res1 = 0 ;
12421 bool temp2 = false ;
12422 PyObject * obj0 = 0 ;
12423 PyObject * obj1 = 0 ;
12424 char * kwnames[] = {
12425 (char *) "self",(char *) "s", NULL
12426 };
12427
12428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12430 if (!SWIG_IsOK(res1)) {
12431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12432 }
12433 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12434 {
12435 arg2 = wxString_in_helper(obj1);
12436 if (arg2 == NULL) SWIG_fail;
12437 temp2 = true;
12438 }
12439 {
12440 PyThreadState* __tstate = wxPyBeginAllowThreads();
12441 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12442 wxPyEndAllowThreads(__tstate);
12443 if (PyErr_Occurred()) SWIG_fail;
12444 }
12445 {
12446 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12447 }
12448 {
12449 if (temp2)
12450 delete arg2;
12451 }
12452 return resultobj;
12453fail:
12454 {
12455 if (temp2)
12456 delete arg2;
12457 }
12458 return NULL;
d55e5bfc
RD
12459}
12460
12461
1bd55598
RD
12462SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12463 PyObject *resultobj = 0;
12464 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12465 wxString result;
12466 void *argp1 = 0 ;
12467 int res1 = 0 ;
12468 PyObject *swig_obj[1] ;
12469
12470 if (!args) SWIG_fail;
12471 swig_obj[0] = args;
12472 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12473 if (!SWIG_IsOK(res1)) {
12474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12475 }
12476 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12477 {
12478 PyThreadState* __tstate = wxPyBeginAllowThreads();
12479 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12480 wxPyEndAllowThreads(__tstate);
12481 if (PyErr_Occurred()) SWIG_fail;
12482 }
12483 {
36ed4f51 12484#if wxUSE_UNICODE
1bd55598 12485 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 12486#else
1bd55598 12487 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 12488#endif
1bd55598
RD
12489 }
12490 return resultobj;
12491fail:
12492 return NULL;
d55e5bfc
RD
12493}
12494
12495
1bd55598
RD
12496SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12497 PyObject *obj;
12498 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12499 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12500 return SWIG_Py_Void();
d55e5bfc
RD
12501}
12502
1bd55598
RD
12503SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12504 return SWIG_Python_InitShadowInstance(args);
12505}
d55e5bfc 12506
1bd55598
RD
12507SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12508 PyObject *resultobj = 0;
12509 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12510 wxString *arg2 = (wxString *) 0 ;
12511 void *argp1 = 0 ;
12512 int res1 = 0 ;
12513 bool temp2 = false ;
12514 PyObject *swig_obj[2] ;
12515
12516 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12518 if (!SWIG_IsOK(res1)) {
12519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12520 }
12521 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12522 {
12523 arg2 = wxString_in_helper(swig_obj[1]);
12524 if (arg2 == NULL) SWIG_fail;
12525 temp2 = true;
12526 }
12527 if (arg1) (arg1)->facename = *arg2;
12528
12529 resultobj = SWIG_Py_Void();
12530 {
12531 if (temp2)
12532 delete arg2;
12533 }
12534 return resultobj;
12535fail:
12536 {
12537 if (temp2)
12538 delete arg2;
12539 }
12540 return NULL;
d55e5bfc
RD
12541}
12542
12543
1bd55598
RD
12544SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12545 PyObject *resultobj = 0;
12546 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12547 wxString *result = 0 ;
12548 void *argp1 = 0 ;
12549 int res1 = 0 ;
12550 PyObject *swig_obj[1] ;
12551
12552 if (!args) SWIG_fail;
12553 swig_obj[0] = args;
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_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12557 }
12558 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12559 result = (wxString *)& ((arg1)->facename);
12560 {
12561#if wxUSE_UNICODE
12562 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12563#else
12564 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12565#endif
12566 }
12567 return resultobj;
12568fail:
12569 return NULL;
d55e5bfc
RD
12570}
12571
12572
1bd55598
RD
12573SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12574 PyObject *resultobj = 0;
12575 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12576 wxFontEncoding arg2 ;
12577 void *argp1 = 0 ;
12578 int res1 = 0 ;
12579 int val2 ;
12580 int ecode2 = 0 ;
12581 PyObject *swig_obj[2] ;
12582
12583 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
12584 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12585 if (!SWIG_IsOK(res1)) {
12586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12587 }
12588 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12589 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12590 if (!SWIG_IsOK(ecode2)) {
12591 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12592 }
12593 arg2 = static_cast< wxFontEncoding >(val2);
12594 if (arg1) (arg1)->encoding = arg2;
12595
12596 resultobj = SWIG_Py_Void();
12597 return resultobj;
12598fail:
12599 return NULL;
d55e5bfc
RD
12600}
12601
12602
1bd55598
RD
12603SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12604 PyObject *resultobj = 0;
12605 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12606 wxFontEncoding result;
12607 void *argp1 = 0 ;
12608 int res1 = 0 ;
12609 PyObject *swig_obj[1] ;
12610
12611 if (!args) SWIG_fail;
12612 swig_obj[0] = args;
12613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12614 if (!SWIG_IsOK(res1)) {
12615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12616 }
12617 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12618 result = (wxFontEncoding) ((arg1)->encoding);
12619 resultobj = SWIG_From_int(static_cast< int >(result));
12620 return resultobj;
12621fail:
12622 return NULL;
d07096ad
RD
12623}
12624
12625
1bd55598
RD
12626SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12627 PyObject *resultobj = 0;
12628 wxNativeEncodingInfo *result = 0 ;
12629
12630 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12631 {
12632 PyThreadState* __tstate = wxPyBeginAllowThreads();
12633 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12634 wxPyEndAllowThreads(__tstate);
12635 if (PyErr_Occurred()) SWIG_fail;
12636 }
12637 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12638 return resultobj;
12639fail:
12640 return NULL;
d55e5bfc
RD
12641}
12642
12643
1bd55598
RD
12644SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12645 PyObject *resultobj = 0;
12646 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12647 void *argp1 = 0 ;
12648 int res1 = 0 ;
12649 PyObject *swig_obj[1] ;
12650
12651 if (!args) SWIG_fail;
12652 swig_obj[0] = args;
12653 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
12654 if (!SWIG_IsOK(res1)) {
12655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12656 }
12657 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12658 {
12659 PyThreadState* __tstate = wxPyBeginAllowThreads();
12660 delete arg1;
d55e5bfc 12661
1bd55598
RD
12662 wxPyEndAllowThreads(__tstate);
12663 if (PyErr_Occurred()) SWIG_fail;
12664 }
12665 resultobj = SWIG_Py_Void();
12666 return resultobj;
12667fail:
12668 return NULL;
12669}
12670
12671
12672SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12673 PyObject *resultobj = 0;
12674 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12675 wxString *arg2 = 0 ;
12676 bool result;
12677 void *argp1 = 0 ;
12678 int res1 = 0 ;
12679 bool temp2 = false ;
12680 PyObject * obj0 = 0 ;
12681 PyObject * obj1 = 0 ;
12682 char * kwnames[] = {
12683 (char *) "self",(char *) "s", NULL
12684 };
12685
12686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12688 if (!SWIG_IsOK(res1)) {
12689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12690 }
12691 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12692 {
12693 arg2 = wxString_in_helper(obj1);
12694 if (arg2 == NULL) SWIG_fail;
12695 temp2 = true;
12696 }
12697 {
12698 PyThreadState* __tstate = wxPyBeginAllowThreads();
12699 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12700 wxPyEndAllowThreads(__tstate);
12701 if (PyErr_Occurred()) SWIG_fail;
12702 }
12703 {
12704 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12705 }
12706 {
12707 if (temp2)
12708 delete arg2;
12709 }
12710 return resultobj;
12711fail:
12712 {
12713 if (temp2)
12714 delete arg2;
12715 }
12716 return NULL;
d55e5bfc
RD
12717}
12718
12719
1bd55598
RD
12720SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12721 PyObject *resultobj = 0;
12722 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12723 wxString result;
12724 void *argp1 = 0 ;
12725 int res1 = 0 ;
12726 PyObject *swig_obj[1] ;
12727
12728 if (!args) SWIG_fail;
12729 swig_obj[0] = args;
12730 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12731 if (!SWIG_IsOK(res1)) {
12732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
12733 }
12734 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12735 {
12736 PyThreadState* __tstate = wxPyBeginAllowThreads();
12737 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
12738 wxPyEndAllowThreads(__tstate);
12739 if (PyErr_Occurred()) SWIG_fail;
12740 }
12741 {
12742#if wxUSE_UNICODE
12743 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12744#else
12745 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12746#endif
12747 }
12748 return resultobj;
12749fail:
12750 return NULL;
d55e5bfc
RD
12751}
12752
12753
1bd55598
RD
12754SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12755 PyObject *obj;
12756 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12757 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
12758 return SWIG_Py_Void();
d55e5bfc
RD
12759}
12760
1bd55598
RD
12761SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12762 return SWIG_Python_InitShadowInstance(args);
12763}
d55e5bfc 12764
1bd55598
RD
12765SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12766 PyObject *resultobj = 0;
12767 wxFontEncoding arg1 ;
12768 wxNativeEncodingInfo *result = 0 ;
12769 int val1 ;
12770 int ecode1 = 0 ;
12771 PyObject * obj0 = 0 ;
12772 char * kwnames[] = {
12773 (char *) "encoding", NULL
12774 };
12775
12776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
12777 ecode1 = SWIG_AsVal_int(obj0, &val1);
12778 if (!SWIG_IsOK(ecode1)) {
12779 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12780 }
12781 arg1 = static_cast< wxFontEncoding >(val1);
12782 {
12783 PyThreadState* __tstate = wxPyBeginAllowThreads();
12784 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
12785 wxPyEndAllowThreads(__tstate);
12786 if (PyErr_Occurred()) SWIG_fail;
12787 }
12788 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12789 return resultobj;
12790fail:
12791 return NULL;
12792}
12793
12794
12795SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12796 PyObject *resultobj = 0;
12797 wxNativeEncodingInfo *arg1 = 0 ;
12798 bool result;
12799 void *argp1 = 0 ;
12800 int res1 = 0 ;
12801 PyObject * obj0 = 0 ;
12802 char * kwnames[] = {
12803 (char *) "info", NULL
12804 };
12805
12806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
12807 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
12808 if (!SWIG_IsOK(res1)) {
12809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12810 }
12811 if (!argp1) {
12812 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12813 }
12814 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12815 {
12816 PyThreadState* __tstate = wxPyBeginAllowThreads();
12817 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
12818 wxPyEndAllowThreads(__tstate);
12819 if (PyErr_Occurred()) SWIG_fail;
12820 }
12821 {
12822 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12823 }
12824 return resultobj;
12825fail:
12826 return NULL;
d55e5bfc
RD
12827}
12828
12829
1bd55598
RD
12830SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12831 PyObject *resultobj = 0;
12832 wxFontMapper *result = 0 ;
12833
12834 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
12835 {
12836 PyThreadState* __tstate = wxPyBeginAllowThreads();
12837 result = (wxFontMapper *)new wxFontMapper();
12838 wxPyEndAllowThreads(__tstate);
12839 if (PyErr_Occurred()) SWIG_fail;
12840 }
12841 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
12842 return resultobj;
12843fail:
12844 return NULL;
d55e5bfc
RD
12845}
12846
12847
1bd55598
RD
12848SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12849 PyObject *resultobj = 0;
12850 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12851 void *argp1 = 0 ;
12852 int res1 = 0 ;
12853 PyObject *swig_obj[1] ;
12854
12855 if (!args) SWIG_fail;
12856 swig_obj[0] = args;
12857 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
12858 if (!SWIG_IsOK(res1)) {
12859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12860 }
12861 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12862 {
12863 PyThreadState* __tstate = wxPyBeginAllowThreads();
12864 delete arg1;
d55e5bfc 12865
1bd55598
RD
12866 wxPyEndAllowThreads(__tstate);
12867 if (PyErr_Occurred()) SWIG_fail;
12868 }
12869 resultobj = SWIG_Py_Void();
12870 return resultobj;
12871fail:
12872 return NULL;
d55e5bfc
RD
12873}
12874
12875
1bd55598
RD
12876SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12877 PyObject *resultobj = 0;
12878 wxFontMapper *result = 0 ;
12879
12880 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
12881 {
12882 PyThreadState* __tstate = wxPyBeginAllowThreads();
12883 result = (wxFontMapper *)wxFontMapper::Get();
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_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12895 PyObject *resultobj = 0;
12896 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12897 wxFontMapper *result = 0 ;
12898 void *argp1 = 0 ;
12899 int res1 = 0 ;
12900 PyObject * obj0 = 0 ;
12901 char * kwnames[] = {
12902 (char *) "mapper", NULL
12903 };
12904
12905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
12906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12907 if (!SWIG_IsOK(res1)) {
12908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12909 }
12910 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12911 {
12912 PyThreadState* __tstate = wxPyBeginAllowThreads();
12913 result = (wxFontMapper *)wxFontMapper::Set(arg1);
12914 wxPyEndAllowThreads(__tstate);
12915 if (PyErr_Occurred()) SWIG_fail;
12916 }
12917 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
12918 return resultobj;
12919fail:
12920 return NULL;
12921}
12922
12923
12924SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12925 PyObject *resultobj = 0;
12926 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12927 wxString *arg2 = 0 ;
12928 bool arg3 = (bool) true ;
12929 wxFontEncoding result;
12930 void *argp1 = 0 ;
12931 int res1 = 0 ;
12932 bool temp2 = false ;
12933 bool val3 ;
12934 int ecode3 = 0 ;
12935 PyObject * obj0 = 0 ;
12936 PyObject * obj1 = 0 ;
12937 PyObject * obj2 = 0 ;
12938 char * kwnames[] = {
12939 (char *) "self",(char *) "charset",(char *) "interactive", NULL
12940 };
12941
12942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12944 if (!SWIG_IsOK(res1)) {
12945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12946 }
12947 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12948 {
12949 arg2 = wxString_in_helper(obj1);
12950 if (arg2 == NULL) SWIG_fail;
12951 temp2 = true;
12952 }
12953 if (obj2) {
12954 ecode3 = SWIG_AsVal_bool(obj2, &val3);
12955 if (!SWIG_IsOK(ecode3)) {
12956 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
12957 }
12958 arg3 = static_cast< bool >(val3);
12959 }
12960 {
12961 PyThreadState* __tstate = wxPyBeginAllowThreads();
12962 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
12963 wxPyEndAllowThreads(__tstate);
12964 if (PyErr_Occurred()) SWIG_fail;
12965 }
12966 resultobj = SWIG_From_int(static_cast< int >(result));
12967 {
12968 if (temp2)
12969 delete arg2;
12970 }
12971 return resultobj;
12972fail:
12973 {
12974 if (temp2)
12975 delete arg2;
12976 }
12977 return NULL;
d55e5bfc
RD
12978}
12979
12980
1bd55598
RD
12981SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12982 PyObject *resultobj = 0;
12983 size_t result;
12984
12985 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
12986 {
12987 PyThreadState* __tstate = wxPyBeginAllowThreads();
12988 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
12989 wxPyEndAllowThreads(__tstate);
12990 if (PyErr_Occurred()) SWIG_fail;
12991 }
12992 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
12993 return resultobj;
12994fail:
12995 return NULL;
12996}
12997
12998
12999SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13000 PyObject *resultobj = 0;
13001 size_t arg1 ;
13002 wxFontEncoding result;
13003 size_t val1 ;
13004 int ecode1 = 0 ;
13005 PyObject * obj0 = 0 ;
13006 char * kwnames[] = {
13007 (char *) "n", NULL
13008 };
13009
13010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13011 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13012 if (!SWIG_IsOK(ecode1)) {
13013 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13014 }
13015 arg1 = static_cast< size_t >(val1);
13016 {
13017 PyThreadState* __tstate = wxPyBeginAllowThreads();
13018 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13019 wxPyEndAllowThreads(__tstate);
13020 if (PyErr_Occurred()) SWIG_fail;
13021 }
13022 resultobj = SWIG_From_int(static_cast< int >(result));
13023 return resultobj;
13024fail:
13025 return NULL;
13026}
13027
13028
13029SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13030 PyObject *resultobj = 0;
13031 wxFontEncoding arg1 ;
13032 wxString result;
13033 int val1 ;
13034 int ecode1 = 0 ;
13035 PyObject * obj0 = 0 ;
13036 char * kwnames[] = {
13037 (char *) "encoding", NULL
13038 };
13039
13040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13041 ecode1 = SWIG_AsVal_int(obj0, &val1);
13042 if (!SWIG_IsOK(ecode1)) {
13043 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13044 }
13045 arg1 = static_cast< wxFontEncoding >(val1);
13046 {
13047 PyThreadState* __tstate = wxPyBeginAllowThreads();
13048 result = wxFontMapper::GetEncodingName(arg1);
13049 wxPyEndAllowThreads(__tstate);
13050 if (PyErr_Occurred()) SWIG_fail;
13051 }
13052 {
13053#if wxUSE_UNICODE
13054 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13055#else
13056 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13057#endif
13058 }
13059 return resultobj;
13060fail:
13061 return NULL;
d55e5bfc
RD
13062}
13063
13064
1bd55598
RD
13065SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13066 PyObject *resultobj = 0;
13067 wxFontEncoding arg1 ;
13068 wxString result;
13069 int val1 ;
13070 int ecode1 = 0 ;
13071 PyObject * obj0 = 0 ;
13072 char * kwnames[] = {
13073 (char *) "encoding", NULL
13074 };
13075
13076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13077 ecode1 = SWIG_AsVal_int(obj0, &val1);
13078 if (!SWIG_IsOK(ecode1)) {
13079 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13080 }
13081 arg1 = static_cast< wxFontEncoding >(val1);
13082 {
13083 PyThreadState* __tstate = wxPyBeginAllowThreads();
13084 result = wxFontMapper::GetEncodingDescription(arg1);
13085 wxPyEndAllowThreads(__tstate);
13086 if (PyErr_Occurred()) SWIG_fail;
13087 }
13088 {
13089#if wxUSE_UNICODE
13090 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13091#else
13092 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13093#endif
13094 }
13095 return resultobj;
13096fail:
13097 return NULL;
d55e5bfc
RD
13098}
13099
13100
1bd55598
RD
13101SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13102 PyObject *resultobj = 0;
13103 wxString *arg1 = 0 ;
13104 wxFontEncoding result;
13105 bool temp1 = false ;
13106 PyObject * obj0 = 0 ;
13107 char * kwnames[] = {
13108 (char *) "name", NULL
13109 };
13110
13111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13112 {
13113 arg1 = wxString_in_helper(obj0);
13114 if (arg1 == NULL) SWIG_fail;
13115 temp1 = true;
13116 }
13117 {
13118 PyThreadState* __tstate = wxPyBeginAllowThreads();
13119 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13120 wxPyEndAllowThreads(__tstate);
13121 if (PyErr_Occurred()) SWIG_fail;
13122 }
13123 resultobj = SWIG_From_int(static_cast< int >(result));
13124 {
13125 if (temp1)
13126 delete arg1;
13127 }
13128 return resultobj;
13129fail:
13130 {
13131 if (temp1)
13132 delete arg1;
13133 }
13134 return NULL;
d55e5bfc
RD
13135}
13136
13137
1bd55598
RD
13138SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13139 PyObject *resultobj = 0;
13140 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13141 wxString *arg2 = 0 ;
13142 void *argp1 = 0 ;
13143 int res1 = 0 ;
13144 bool temp2 = false ;
13145 PyObject * obj0 = 0 ;
13146 PyObject * obj1 = 0 ;
13147 char * kwnames[] = {
13148 (char *) "self",(char *) "prefix", NULL
13149 };
13150
13151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13153 if (!SWIG_IsOK(res1)) {
13154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13155 }
13156 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13157 {
13158 arg2 = wxString_in_helper(obj1);
13159 if (arg2 == NULL) SWIG_fail;
13160 temp2 = true;
13161 }
13162 {
13163 PyThreadState* __tstate = wxPyBeginAllowThreads();
13164 (arg1)->SetConfigPath((wxString const &)*arg2);
13165 wxPyEndAllowThreads(__tstate);
13166 if (PyErr_Occurred()) SWIG_fail;
13167 }
13168 resultobj = SWIG_Py_Void();
13169 {
13170 if (temp2)
13171 delete arg2;
13172 }
13173 return resultobj;
13174fail:
13175 {
13176 if (temp2)
13177 delete arg2;
13178 }
13179 return NULL;
13180}
13181
13182
13183SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13184 PyObject *resultobj = 0;
13185 wxString result;
13186
13187 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13188 {
13189 PyThreadState* __tstate = wxPyBeginAllowThreads();
13190 result = wxFontMapper::GetDefaultConfigPath();
13191 wxPyEndAllowThreads(__tstate);
13192 if (PyErr_Occurred()) SWIG_fail;
13193 }
13194 {
13195#if wxUSE_UNICODE
13196 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13197#else
13198 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13199#endif
13200 }
13201 return resultobj;
13202fail:
13203 return NULL;
13204}
13205
13206
13207SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13208 PyObject *resultobj = 0;
13209 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13210 wxFontEncoding arg2 ;
13211 wxString const &arg3_defvalue = wxPyEmptyString ;
13212 wxString *arg3 = (wxString *) &arg3_defvalue ;
13213 bool arg4 = (bool) true ;
13214 PyObject *result = 0 ;
13215 void *argp1 = 0 ;
13216 int res1 = 0 ;
13217 int val2 ;
13218 int ecode2 = 0 ;
13219 bool temp3 = false ;
13220 bool val4 ;
13221 int ecode4 = 0 ;
13222 PyObject * obj0 = 0 ;
13223 PyObject * obj1 = 0 ;
13224 PyObject * obj2 = 0 ;
13225 PyObject * obj3 = 0 ;
13226 char * kwnames[] = {
13227 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13228 };
13229
13230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13232 if (!SWIG_IsOK(res1)) {
13233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13234 }
13235 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13236 ecode2 = SWIG_AsVal_int(obj1, &val2);
13237 if (!SWIG_IsOK(ecode2)) {
13238 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13239 }
13240 arg2 = static_cast< wxFontEncoding >(val2);
13241 if (obj2) {
36ed4f51 13242 {
1bd55598
RD
13243 arg3 = wxString_in_helper(obj2);
13244 if (arg3 == NULL) SWIG_fail;
13245 temp3 = true;
36ed4f51 13246 }
1bd55598
RD
13247 }
13248 if (obj3) {
13249 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13250 if (!SWIG_IsOK(ecode4)) {
13251 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13252 }
13253 arg4 = static_cast< bool >(val4);
13254 }
13255 {
13256 PyThreadState* __tstate = wxPyBeginAllowThreads();
13257 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13258 wxPyEndAllowThreads(__tstate);
13259 if (PyErr_Occurred()) SWIG_fail;
13260 }
13261 resultobj = result;
13262 {
13263 if (temp3)
13264 delete arg3;
13265 }
13266 return resultobj;
13267fail:
13268 {
13269 if (temp3)
13270 delete arg3;
13271 }
13272 return NULL;
13273}
13274
13275
13276SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13277 PyObject *resultobj = 0;
13278 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13279 wxFontEncoding arg2 ;
13280 wxString const &arg3_defvalue = wxPyEmptyString ;
13281 wxString *arg3 = (wxString *) &arg3_defvalue ;
13282 bool result;
13283 void *argp1 = 0 ;
13284 int res1 = 0 ;
13285 int val2 ;
13286 int ecode2 = 0 ;
13287 bool temp3 = false ;
13288 PyObject * obj0 = 0 ;
13289 PyObject * obj1 = 0 ;
13290 PyObject * obj2 = 0 ;
13291 char * kwnames[] = {
13292 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13293 };
13294
13295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13297 if (!SWIG_IsOK(res1)) {
13298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13299 }
13300 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13301 ecode2 = SWIG_AsVal_int(obj1, &val2);
13302 if (!SWIG_IsOK(ecode2)) {
13303 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13304 }
13305 arg2 = static_cast< wxFontEncoding >(val2);
13306 if (obj2) {
36ed4f51 13307 {
1bd55598
RD
13308 arg3 = wxString_in_helper(obj2);
13309 if (arg3 == NULL) SWIG_fail;
13310 temp3 = true;
36ed4f51 13311 }
1bd55598
RD
13312 }
13313 {
13314 PyThreadState* __tstate = wxPyBeginAllowThreads();
13315 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13316 wxPyEndAllowThreads(__tstate);
13317 if (PyErr_Occurred()) SWIG_fail;
13318 }
13319 {
13320 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13321 }
13322 {
13323 if (temp3)
13324 delete arg3;
13325 }
13326 return resultobj;
13327fail:
13328 {
13329 if (temp3)
13330 delete arg3;
13331 }
13332 return NULL;
13333}
13334
13335
13336SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13337 PyObject *resultobj = 0;
13338 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13339 wxWindow *arg2 = (wxWindow *) 0 ;
13340 void *argp1 = 0 ;
13341 int res1 = 0 ;
13342 void *argp2 = 0 ;
13343 int res2 = 0 ;
13344 PyObject * obj0 = 0 ;
13345 PyObject * obj1 = 0 ;
13346 char * kwnames[] = {
13347 (char *) "self",(char *) "parent", NULL
13348 };
13349
13350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13352 if (!SWIG_IsOK(res1)) {
13353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13354 }
13355 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13356 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13357 if (!SWIG_IsOK(res2)) {
13358 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13359 }
13360 arg2 = reinterpret_cast< wxWindow * >(argp2);
13361 {
13362 PyThreadState* __tstate = wxPyBeginAllowThreads();
13363 (arg1)->SetDialogParent(arg2);
13364 wxPyEndAllowThreads(__tstate);
13365 if (PyErr_Occurred()) SWIG_fail;
13366 }
13367 resultobj = SWIG_Py_Void();
13368 return resultobj;
13369fail:
13370 return NULL;
13371}
13372
13373
13374SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13375 PyObject *resultobj = 0;
13376 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13377 wxString *arg2 = 0 ;
13378 void *argp1 = 0 ;
13379 int res1 = 0 ;
13380 bool temp2 = false ;
13381 PyObject * obj0 = 0 ;
13382 PyObject * obj1 = 0 ;
13383 char * kwnames[] = {
13384 (char *) "self",(char *) "title", NULL
13385 };
13386
13387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13389 if (!SWIG_IsOK(res1)) {
13390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13391 }
13392 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13393 {
13394 arg2 = wxString_in_helper(obj1);
13395 if (arg2 == NULL) SWIG_fail;
13396 temp2 = true;
13397 }
13398 {
13399 PyThreadState* __tstate = wxPyBeginAllowThreads();
13400 (arg1)->SetDialogTitle((wxString const &)*arg2);
13401 wxPyEndAllowThreads(__tstate);
13402 if (PyErr_Occurred()) SWIG_fail;
13403 }
13404 resultobj = SWIG_Py_Void();
13405 {
13406 if (temp2)
13407 delete arg2;
13408 }
13409 return resultobj;
13410fail:
13411 {
13412 if (temp2)
13413 delete arg2;
13414 }
13415 return NULL;
13416}
13417
13418
13419SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13420 PyObject *obj;
13421 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13422 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13423 return SWIG_Py_Void();
13424}
13425
13426SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13427 return SWIG_Python_InitShadowInstance(args);
13428}
13429
13430SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13431 PyObject *resultobj = 0;
13432 int arg1 ;
13433 int arg2 ;
13434 int arg3 ;
13435 int arg4 ;
13436 bool arg5 = (bool) false ;
13437 wxString const &arg6_defvalue = wxPyEmptyString ;
13438 wxString *arg6 = (wxString *) &arg6_defvalue ;
13439 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13440 wxFont *result = 0 ;
13441 int val1 ;
13442 int ecode1 = 0 ;
13443 int val2 ;
13444 int ecode2 = 0 ;
13445 int val3 ;
13446 int ecode3 = 0 ;
13447 int val4 ;
13448 int ecode4 = 0 ;
13449 bool val5 ;
13450 int ecode5 = 0 ;
13451 bool temp6 = false ;
13452 int val7 ;
13453 int ecode7 = 0 ;
13454 PyObject * obj0 = 0 ;
13455 PyObject * obj1 = 0 ;
13456 PyObject * obj2 = 0 ;
13457 PyObject * obj3 = 0 ;
13458 PyObject * obj4 = 0 ;
13459 PyObject * obj5 = 0 ;
13460 PyObject * obj6 = 0 ;
13461 char * kwnames[] = {
13462 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13463 };
13464
13465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13466 ecode1 = SWIG_AsVal_int(obj0, &val1);
13467 if (!SWIG_IsOK(ecode1)) {
13468 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13469 }
13470 arg1 = static_cast< int >(val1);
13471 ecode2 = SWIG_AsVal_int(obj1, &val2);
13472 if (!SWIG_IsOK(ecode2)) {
13473 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13474 }
13475 arg2 = static_cast< int >(val2);
13476 ecode3 = SWIG_AsVal_int(obj2, &val3);
13477 if (!SWIG_IsOK(ecode3)) {
13478 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13479 }
13480 arg3 = static_cast< int >(val3);
13481 ecode4 = SWIG_AsVal_int(obj3, &val4);
13482 if (!SWIG_IsOK(ecode4)) {
13483 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13484 }
13485 arg4 = static_cast< int >(val4);
13486 if (obj4) {
13487 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13488 if (!SWIG_IsOK(ecode5)) {
13489 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13490 }
13491 arg5 = static_cast< bool >(val5);
13492 }
13493 if (obj5) {
d55e5bfc 13494 {
1bd55598
RD
13495 arg6 = wxString_in_helper(obj5);
13496 if (arg6 == NULL) SWIG_fail;
13497 temp6 = true;
d55e5bfc 13498 }
1bd55598
RD
13499 }
13500 if (obj6) {
13501 ecode7 = SWIG_AsVal_int(obj6, &val7);
13502 if (!SWIG_IsOK(ecode7)) {
13503 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13504 }
13505 arg7 = static_cast< wxFontEncoding >(val7);
13506 }
13507 {
13508 if (!wxPyCheckForApp()) SWIG_fail;
13509 PyThreadState* __tstate = wxPyBeginAllowThreads();
13510 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13511 wxPyEndAllowThreads(__tstate);
13512 if (PyErr_Occurred()) SWIG_fail;
13513 }
13514 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13515 {
13516 if (temp6)
13517 delete arg6;
13518 }
13519 return resultobj;
13520fail:
13521 {
13522 if (temp6)
13523 delete arg6;
13524 }
13525 return NULL;
d55e5bfc
RD
13526}
13527
13528
1bd55598
RD
13529SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13530 PyObject *resultobj = 0;
13531 wxFont *arg1 = (wxFont *) 0 ;
13532 void *argp1 = 0 ;
13533 int res1 = 0 ;
13534 PyObject *swig_obj[1] ;
13535
13536 if (!args) SWIG_fail;
13537 swig_obj[0] = args;
13538 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13539 if (!SWIG_IsOK(res1)) {
13540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13541 }
13542 arg1 = reinterpret_cast< wxFont * >(argp1);
13543 {
13544 PyThreadState* __tstate = wxPyBeginAllowThreads();
13545 delete arg1;
d55e5bfc 13546
1bd55598
RD
13547 wxPyEndAllowThreads(__tstate);
13548 if (PyErr_Occurred()) SWIG_fail;
13549 }
13550 resultobj = SWIG_Py_Void();
13551 return resultobj;
13552fail:
13553 return NULL;
13554}
13555
13556
13557SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13558 PyObject *resultobj = 0;
13559 wxNativeFontInfo *arg1 = 0 ;
13560 wxFont *result = 0 ;
13561 void *argp1 = 0 ;
13562 int res1 = 0 ;
13563 PyObject * obj0 = 0 ;
13564 char * kwnames[] = {
13565 (char *) "info", NULL
13566 };
13567
13568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13569 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13570 if (!SWIG_IsOK(res1)) {
13571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13572 }
13573 if (!argp1) {
13574 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13575 }
13576 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13577 {
13578 if (!wxPyCheckForApp()) SWIG_fail;
13579 PyThreadState* __tstate = wxPyBeginAllowThreads();
13580 result = (wxFont *)new wxFont((wxNativeFontInfo 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 return resultobj;
13586fail:
13587 return NULL;
d55e5bfc
RD
13588}
13589
13590
1bd55598
RD
13591SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13592 PyObject *resultobj = 0;
13593 wxString *arg1 = 0 ;
13594 wxFont *result = 0 ;
13595 bool temp1 = false ;
13596 PyObject * obj0 = 0 ;
13597 char * kwnames[] = {
13598 (char *) "info", NULL
13599 };
13600
13601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13602 {
13603 arg1 = wxString_in_helper(obj0);
13604 if (arg1 == NULL) SWIG_fail;
13605 temp1 = true;
13606 }
13607 {
13608 if (!wxPyCheckForApp()) SWIG_fail;
13609 PyThreadState* __tstate = wxPyBeginAllowThreads();
13610 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13611 wxPyEndAllowThreads(__tstate);
13612 if (PyErr_Occurred()) SWIG_fail;
13613 }
13614 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13615 {
13616 if (temp1)
13617 delete arg1;
13618 }
13619 return resultobj;
13620fail:
13621 {
13622 if (temp1)
13623 delete arg1;
13624 }
13625 return NULL;
13626}
13627
13628
13629SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13630 PyObject *resultobj = 0;
13631 int arg1 ;
13632 wxFontFamily arg2 ;
13633 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13634 wxString const &arg4_defvalue = wxPyEmptyString ;
13635 wxString *arg4 = (wxString *) &arg4_defvalue ;
13636 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13637 wxFont *result = 0 ;
13638 int val1 ;
13639 int ecode1 = 0 ;
13640 int val2 ;
13641 int ecode2 = 0 ;
13642 int val3 ;
13643 int ecode3 = 0 ;
13644 bool temp4 = false ;
13645 int val5 ;
13646 int ecode5 = 0 ;
13647 PyObject * obj0 = 0 ;
13648 PyObject * obj1 = 0 ;
13649 PyObject * obj2 = 0 ;
13650 PyObject * obj3 = 0 ;
13651 PyObject * obj4 = 0 ;
13652 char * kwnames[] = {
13653 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13654 };
13655
13656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13657 ecode1 = SWIG_AsVal_int(obj0, &val1);
13658 if (!SWIG_IsOK(ecode1)) {
13659 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
13660 }
13661 arg1 = static_cast< int >(val1);
13662 ecode2 = SWIG_AsVal_int(obj1, &val2);
13663 if (!SWIG_IsOK(ecode2)) {
13664 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
13665 }
13666 arg2 = static_cast< wxFontFamily >(val2);
13667 if (obj2) {
13668 ecode3 = SWIG_AsVal_int(obj2, &val3);
13669 if (!SWIG_IsOK(ecode3)) {
13670 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
13671 }
13672 arg3 = static_cast< int >(val3);
13673 }
13674 if (obj3) {
36ed4f51 13675 {
1bd55598
RD
13676 arg4 = wxString_in_helper(obj3);
13677 if (arg4 == NULL) SWIG_fail;
13678 temp4 = true;
36ed4f51 13679 }
1bd55598
RD
13680 }
13681 if (obj4) {
13682 ecode5 = SWIG_AsVal_int(obj4, &val5);
13683 if (!SWIG_IsOK(ecode5)) {
13684 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13685 }
13686 arg5 = static_cast< wxFontEncoding >(val5);
13687 }
13688 {
13689 if (!wxPyCheckForApp()) SWIG_fail;
13690 PyThreadState* __tstate = wxPyBeginAllowThreads();
13691 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13692 wxPyEndAllowThreads(__tstate);
13693 if (PyErr_Occurred()) SWIG_fail;
13694 }
13695 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13696 {
13697 if (temp4)
13698 delete arg4;
13699 }
13700 return resultobj;
13701fail:
13702 {
13703 if (temp4)
13704 delete arg4;
13705 }
13706 return NULL;
13707}
13708
13709
13710SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13711 PyObject *resultobj = 0;
13712 wxSize *arg1 = 0 ;
13713 int arg2 ;
13714 int arg3 ;
13715 int arg4 ;
13716 bool arg5 = (bool) false ;
13717 wxString const &arg6_defvalue = wxEmptyString ;
13718 wxString *arg6 = (wxString *) &arg6_defvalue ;
13719 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13720 wxFont *result = 0 ;
13721 wxSize temp1 ;
13722 int val2 ;
13723 int ecode2 = 0 ;
13724 int val3 ;
13725 int ecode3 = 0 ;
13726 int val4 ;
13727 int ecode4 = 0 ;
13728 bool val5 ;
13729 int ecode5 = 0 ;
13730 bool temp6 = false ;
13731 int val7 ;
13732 int ecode7 = 0 ;
13733 PyObject * obj0 = 0 ;
13734 PyObject * obj1 = 0 ;
13735 PyObject * obj2 = 0 ;
13736 PyObject * obj3 = 0 ;
13737 PyObject * obj4 = 0 ;
13738 PyObject * obj5 = 0 ;
13739 PyObject * obj6 = 0 ;
13740 char * kwnames[] = {
13741 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
13742 };
13743
13744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13745 {
13746 arg1 = &temp1;
13747 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13748 }
13749 ecode2 = SWIG_AsVal_int(obj1, &val2);
13750 if (!SWIG_IsOK(ecode2)) {
13751 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
13752 }
13753 arg2 = static_cast< int >(val2);
13754 ecode3 = SWIG_AsVal_int(obj2, &val3);
13755 if (!SWIG_IsOK(ecode3)) {
13756 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13757 }
13758 arg3 = static_cast< int >(val3);
13759 ecode4 = SWIG_AsVal_int(obj3, &val4);
13760 if (!SWIG_IsOK(ecode4)) {
13761 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
13762 }
13763 arg4 = static_cast< int >(val4);
13764 if (obj4) {
13765 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13766 if (!SWIG_IsOK(ecode5)) {
13767 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
13768 }
13769 arg5 = static_cast< bool >(val5);
13770 }
13771 if (obj5) {
d55e5bfc 13772 {
1bd55598
RD
13773 arg6 = wxString_in_helper(obj5);
13774 if (arg6 == NULL) SWIG_fail;
13775 temp6 = true;
d55e5bfc 13776 }
1bd55598
RD
13777 }
13778 if (obj6) {
13779 ecode7 = SWIG_AsVal_int(obj6, &val7);
13780 if (!SWIG_IsOK(ecode7)) {
13781 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13782 }
13783 arg7 = static_cast< wxFontEncoding >(val7);
13784 }
13785 {
13786 if (!wxPyCheckForApp()) SWIG_fail;
13787 PyThreadState* __tstate = wxPyBeginAllowThreads();
13788 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13789 wxPyEndAllowThreads(__tstate);
13790 if (PyErr_Occurred()) SWIG_fail;
13791 }
13792 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13793 {
13794 if (temp6)
13795 delete arg6;
13796 }
13797 return resultobj;
13798fail:
13799 {
13800 if (temp6)
13801 delete arg6;
13802 }
13803 return NULL;
13804}
13805
13806
13807SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13808 PyObject *resultobj = 0;
13809 wxSize *arg1 = 0 ;
13810 wxFontFamily arg2 ;
13811 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13812 wxString const &arg4_defvalue = wxEmptyString ;
13813 wxString *arg4 = (wxString *) &arg4_defvalue ;
13814 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13815 wxFont *result = 0 ;
13816 wxSize temp1 ;
13817 int val2 ;
13818 int ecode2 = 0 ;
13819 int val3 ;
13820 int ecode3 = 0 ;
13821 bool temp4 = false ;
13822 int val5 ;
13823 int ecode5 = 0 ;
13824 PyObject * obj0 = 0 ;
13825 PyObject * obj1 = 0 ;
13826 PyObject * obj2 = 0 ;
13827 PyObject * obj3 = 0 ;
13828 PyObject * obj4 = 0 ;
13829 char * kwnames[] = {
13830 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13831 };
13832
13833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13834 {
13835 arg1 = &temp1;
13836 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13837 }
13838 ecode2 = SWIG_AsVal_int(obj1, &val2);
13839 if (!SWIG_IsOK(ecode2)) {
13840 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
13841 }
13842 arg2 = static_cast< wxFontFamily >(val2);
13843 if (obj2) {
13844 ecode3 = SWIG_AsVal_int(obj2, &val3);
13845 if (!SWIG_IsOK(ecode3)) {
13846 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13847 }
13848 arg3 = static_cast< int >(val3);
13849 }
13850 if (obj3) {
36ed4f51 13851 {
1bd55598
RD
13852 arg4 = wxString_in_helper(obj3);
13853 if (arg4 == NULL) SWIG_fail;
13854 temp4 = true;
36ed4f51 13855 }
1bd55598
RD
13856 }
13857 if (obj4) {
13858 ecode5 = SWIG_AsVal_int(obj4, &val5);
13859 if (!SWIG_IsOK(ecode5)) {
13860 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13861 }
13862 arg5 = static_cast< wxFontEncoding >(val5);
13863 }
13864 {
13865 if (!wxPyCheckForApp()) SWIG_fail;
13866 PyThreadState* __tstate = wxPyBeginAllowThreads();
13867 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13868 wxPyEndAllowThreads(__tstate);
13869 if (PyErr_Occurred()) SWIG_fail;
13870 }
13871 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13872 {
13873 if (temp4)
13874 delete arg4;
13875 }
13876 return resultobj;
13877fail:
13878 {
13879 if (temp4)
13880 delete arg4;
13881 }
13882 return NULL;
d55e5bfc
RD
13883}
13884
13885
b39fe951 13886SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
13887 PyObject *resultobj = 0;
13888 wxFont *arg1 = (wxFont *) 0 ;
13889 bool result;
13890 void *argp1 = 0 ;
13891 int res1 = 0 ;
13892 PyObject *swig_obj[1] ;
13893
13894 if (!args) SWIG_fail;
13895 swig_obj[0] = args;
13896 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13897 if (!SWIG_IsOK(res1)) {
b39fe951 13898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
1bd55598
RD
13899 }
13900 arg1 = reinterpret_cast< wxFont * >(argp1);
13901 {
13902 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 13903 result = (bool)((wxFont const *)arg1)->IsOk();
1bd55598
RD
13904 wxPyEndAllowThreads(__tstate);
13905 if (PyErr_Occurred()) SWIG_fail;
13906 }
13907 {
13908 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13909 }
13910 return resultobj;
13911fail:
13912 return NULL;
13913}
13914
13915
13916SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13917 PyObject *resultobj = 0;
13918 wxFont *arg1 = (wxFont *) 0 ;
13919 wxFont *arg2 = (wxFont *) 0 ;
13920 bool result;
13921 void *argp1 = 0 ;
13922 int res1 = 0 ;
13923 void *argp2 = 0 ;
13924 int res2 = 0 ;
13925 PyObject * obj0 = 0 ;
13926 PyObject * obj1 = 0 ;
13927 char * kwnames[] = {
13928 (char *) "self",(char *) "other", NULL
13929 };
13930
13931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
13932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13933 if (!SWIG_IsOK(res1)) {
13934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
13935 }
13936 arg1 = reinterpret_cast< wxFont * >(argp1);
13937 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
13938 if (!SWIG_IsOK(res2)) {
13939 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
13940 }
13941 arg2 = reinterpret_cast< wxFont * >(argp2);
13942 {
13943 PyThreadState* __tstate = wxPyBeginAllowThreads();
13944 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
13945 wxPyEndAllowThreads(__tstate);
13946 if (PyErr_Occurred()) SWIG_fail;
13947 }
13948 {
13949 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13950 }
13951 return resultobj;
13952fail:
13953 return NULL;
13954}
13955
13956
13957SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13958 PyObject *resultobj = 0;
13959 wxFont *arg1 = (wxFont *) 0 ;
13960 wxFont *arg2 = (wxFont *) 0 ;
13961 bool result;
13962 void *argp1 = 0 ;
13963 int res1 = 0 ;
13964 void *argp2 = 0 ;
13965 int res2 = 0 ;
13966 PyObject * obj0 = 0 ;
13967 PyObject * obj1 = 0 ;
13968 char * kwnames[] = {
13969 (char *) "self",(char *) "other", NULL
13970 };
13971
13972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
13973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13974 if (!SWIG_IsOK(res1)) {
13975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
13976 }
13977 arg1 = reinterpret_cast< wxFont * >(argp1);
13978 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
13979 if (!SWIG_IsOK(res2)) {
13980 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
13981 }
13982 arg2 = reinterpret_cast< wxFont * >(argp2);
13983 {
13984 PyThreadState* __tstate = wxPyBeginAllowThreads();
13985 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
13986 wxPyEndAllowThreads(__tstate);
13987 if (PyErr_Occurred()) SWIG_fail;
13988 }
13989 {
13990 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13991 }
13992 return resultobj;
13993fail:
13994 return NULL;
d55e5bfc
RD
13995}
13996
13997
1bd55598
RD
13998SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13999 PyObject *resultobj = 0;
14000 wxFont *arg1 = (wxFont *) 0 ;
14001 int result;
14002 void *argp1 = 0 ;
14003 int res1 = 0 ;
14004 PyObject *swig_obj[1] ;
14005
14006 if (!args) SWIG_fail;
14007 swig_obj[0] = args;
14008 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14009 if (!SWIG_IsOK(res1)) {
14010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14011 }
14012 arg1 = reinterpret_cast< wxFont * >(argp1);
14013 {
14014 PyThreadState* __tstate = wxPyBeginAllowThreads();
14015 result = (int)((wxFont const *)arg1)->GetPointSize();
14016 wxPyEndAllowThreads(__tstate);
14017 if (PyErr_Occurred()) SWIG_fail;
14018 }
14019 resultobj = SWIG_From_int(static_cast< int >(result));
14020 return resultobj;
14021fail:
14022 return NULL;
d55e5bfc
RD
14023}
14024
14025
1bd55598
RD
14026SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14027 PyObject *resultobj = 0;
14028 wxFont *arg1 = (wxFont *) 0 ;
14029 wxSize result;
14030 void *argp1 = 0 ;
14031 int res1 = 0 ;
14032 PyObject *swig_obj[1] ;
14033
14034 if (!args) SWIG_fail;
14035 swig_obj[0] = args;
14036 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14037 if (!SWIG_IsOK(res1)) {
14038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14039 }
14040 arg1 = reinterpret_cast< wxFont * >(argp1);
14041 {
14042 PyThreadState* __tstate = wxPyBeginAllowThreads();
14043 result = ((wxFont const *)arg1)->GetPixelSize();
14044 wxPyEndAllowThreads(__tstate);
14045 if (PyErr_Occurred()) SWIG_fail;
14046 }
14047 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14048 return resultobj;
14049fail:
14050 return NULL;
d55e5bfc
RD
14051}
14052
14053
1bd55598
RD
14054SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14055 PyObject *resultobj = 0;
14056 wxFont *arg1 = (wxFont *) 0 ;
14057 bool 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_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14067 }
14068 arg1 = reinterpret_cast< wxFont * >(argp1);
14069 {
14070 PyThreadState* __tstate = wxPyBeginAllowThreads();
14071 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14072 wxPyEndAllowThreads(__tstate);
14073 if (PyErr_Occurred()) SWIG_fail;
14074 }
14075 {
14076 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14077 }
14078 return resultobj;
14079fail:
14080 return NULL;
d55e5bfc
RD
14081}
14082
14083
1bd55598
RD
14084SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14085 PyObject *resultobj = 0;
14086 wxFont *arg1 = (wxFont *) 0 ;
14087 int result;
14088 void *argp1 = 0 ;
14089 int res1 = 0 ;
14090 PyObject *swig_obj[1] ;
14091
14092 if (!args) SWIG_fail;
14093 swig_obj[0] = args;
14094 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14095 if (!SWIG_IsOK(res1)) {
14096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14097 }
14098 arg1 = reinterpret_cast< wxFont * >(argp1);
14099 {
14100 PyThreadState* __tstate = wxPyBeginAllowThreads();
14101 result = (int)((wxFont const *)arg1)->GetFamily();
14102 wxPyEndAllowThreads(__tstate);
14103 if (PyErr_Occurred()) SWIG_fail;
14104 }
14105 resultobj = SWIG_From_int(static_cast< int >(result));
14106 return resultobj;
14107fail:
14108 return NULL;
d55e5bfc
RD
14109}
14110
14111
1bd55598
RD
14112SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14113 PyObject *resultobj = 0;
14114 wxFont *arg1 = (wxFont *) 0 ;
14115 int result;
14116 void *argp1 = 0 ;
14117 int res1 = 0 ;
14118 PyObject *swig_obj[1] ;
14119
14120 if (!args) SWIG_fail;
14121 swig_obj[0] = args;
14122 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14123 if (!SWIG_IsOK(res1)) {
14124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14125 }
14126 arg1 = reinterpret_cast< wxFont * >(argp1);
14127 {
14128 PyThreadState* __tstate = wxPyBeginAllowThreads();
14129 result = (int)((wxFont const *)arg1)->GetStyle();
14130 wxPyEndAllowThreads(__tstate);
14131 if (PyErr_Occurred()) SWIG_fail;
14132 }
14133 resultobj = SWIG_From_int(static_cast< int >(result));
14134 return resultobj;
14135fail:
14136 return NULL;
d55e5bfc
RD
14137}
14138
14139
1bd55598
RD
14140SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14141 PyObject *resultobj = 0;
14142 wxFont *arg1 = (wxFont *) 0 ;
14143 int result;
14144 void *argp1 = 0 ;
14145 int res1 = 0 ;
14146 PyObject *swig_obj[1] ;
14147
14148 if (!args) SWIG_fail;
14149 swig_obj[0] = args;
14150 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14151 if (!SWIG_IsOK(res1)) {
14152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14153 }
14154 arg1 = reinterpret_cast< wxFont * >(argp1);
14155 {
14156 PyThreadState* __tstate = wxPyBeginAllowThreads();
14157 result = (int)((wxFont const *)arg1)->GetWeight();
14158 wxPyEndAllowThreads(__tstate);
14159 if (PyErr_Occurred()) SWIG_fail;
14160 }
14161 resultobj = SWIG_From_int(static_cast< int >(result));
14162 return resultobj;
14163fail:
14164 return NULL;
d55e5bfc
RD
14165}
14166
14167
1bd55598
RD
14168SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14169 PyObject *resultobj = 0;
14170 wxFont *arg1 = (wxFont *) 0 ;
14171 bool 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_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14181 }
14182 arg1 = reinterpret_cast< wxFont * >(argp1);
14183 {
14184 PyThreadState* __tstate = wxPyBeginAllowThreads();
14185 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14186 wxPyEndAllowThreads(__tstate);
14187 if (PyErr_Occurred()) SWIG_fail;
14188 }
14189 {
14190 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14191 }
14192 return resultobj;
14193fail:
14194 return NULL;
d55e5bfc
RD
14195}
14196
14197
1bd55598
RD
14198SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14199 PyObject *resultobj = 0;
14200 wxFont *arg1 = (wxFont *) 0 ;
14201 wxString result;
14202 void *argp1 = 0 ;
14203 int res1 = 0 ;
14204 PyObject *swig_obj[1] ;
14205
14206 if (!args) SWIG_fail;
14207 swig_obj[0] = args;
14208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14209 if (!SWIG_IsOK(res1)) {
14210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14211 }
14212 arg1 = reinterpret_cast< wxFont * >(argp1);
14213 {
14214 PyThreadState* __tstate = wxPyBeginAllowThreads();
14215 result = ((wxFont const *)arg1)->GetFaceName();
14216 wxPyEndAllowThreads(__tstate);
14217 if (PyErr_Occurred()) SWIG_fail;
14218 }
14219 {
14220#if wxUSE_UNICODE
14221 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14222#else
14223 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14224#endif
14225 }
14226 return resultobj;
14227fail:
14228 return NULL;
d55e5bfc
RD
14229}
14230
14231
1bd55598
RD
14232SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14233 PyObject *resultobj = 0;
14234 wxFont *arg1 = (wxFont *) 0 ;
14235 wxFontEncoding result;
14236 void *argp1 = 0 ;
14237 int res1 = 0 ;
14238 PyObject *swig_obj[1] ;
14239
14240 if (!args) SWIG_fail;
14241 swig_obj[0] = args;
14242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14243 if (!SWIG_IsOK(res1)) {
14244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14245 }
14246 arg1 = reinterpret_cast< wxFont * >(argp1);
14247 {
14248 PyThreadState* __tstate = wxPyBeginAllowThreads();
14249 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14250 wxPyEndAllowThreads(__tstate);
14251 if (PyErr_Occurred()) SWIG_fail;
14252 }
14253 resultobj = SWIG_From_int(static_cast< int >(result));
14254 return resultobj;
14255fail:
14256 return NULL;
d55e5bfc
RD
14257}
14258
14259
1bd55598
RD
14260SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14261 PyObject *resultobj = 0;
14262 wxFont *arg1 = (wxFont *) 0 ;
14263 wxNativeFontInfo *result = 0 ;
14264 void *argp1 = 0 ;
14265 int res1 = 0 ;
14266 PyObject *swig_obj[1] ;
14267
14268 if (!args) SWIG_fail;
14269 swig_obj[0] = args;
14270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14271 if (!SWIG_IsOK(res1)) {
14272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14273 }
14274 arg1 = reinterpret_cast< wxFont * >(argp1);
14275 {
14276 PyThreadState* __tstate = wxPyBeginAllowThreads();
14277 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14278 wxPyEndAllowThreads(__tstate);
14279 if (PyErr_Occurred()) SWIG_fail;
14280 }
14281 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14282 return resultobj;
14283fail:
14284 return NULL;
d55e5bfc
RD
14285}
14286
14287
1bd55598
RD
14288SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14289 PyObject *resultobj = 0;
14290 wxFont *arg1 = (wxFont *) 0 ;
14291 bool 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_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14301 }
14302 arg1 = reinterpret_cast< wxFont * >(argp1);
14303 {
14304 PyThreadState* __tstate = wxPyBeginAllowThreads();
14305 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14306 wxPyEndAllowThreads(__tstate);
14307 if (PyErr_Occurred()) SWIG_fail;
14308 }
14309 {
14310 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14311 }
14312 return resultobj;
14313fail:
14314 return NULL;
d55e5bfc
RD
14315}
14316
14317
1bd55598
RD
14318SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14319 PyObject *resultobj = 0;
14320 wxFont *arg1 = (wxFont *) 0 ;
14321 wxString result;
14322 void *argp1 = 0 ;
14323 int res1 = 0 ;
14324 PyObject *swig_obj[1] ;
14325
14326 if (!args) SWIG_fail;
14327 swig_obj[0] = args;
14328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14329 if (!SWIG_IsOK(res1)) {
14330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14331 }
14332 arg1 = reinterpret_cast< wxFont * >(argp1);
14333 {
14334 PyThreadState* __tstate = wxPyBeginAllowThreads();
14335 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14336 wxPyEndAllowThreads(__tstate);
14337 if (PyErr_Occurred()) SWIG_fail;
14338 }
14339 {
14340#if wxUSE_UNICODE
14341 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14342#else
14343 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14344#endif
14345 }
14346 return resultobj;
14347fail:
14348 return NULL;
d55e5bfc
RD
14349}
14350
14351
1bd55598
RD
14352SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14353 PyObject *resultobj = 0;
14354 wxFont *arg1 = (wxFont *) 0 ;
14355 wxString result;
14356 void *argp1 = 0 ;
14357 int res1 = 0 ;
14358 PyObject *swig_obj[1] ;
14359
14360 if (!args) SWIG_fail;
14361 swig_obj[0] = args;
14362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14363 if (!SWIG_IsOK(res1)) {
14364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14365 }
14366 arg1 = reinterpret_cast< wxFont * >(argp1);
14367 {
14368 PyThreadState* __tstate = wxPyBeginAllowThreads();
14369 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14370 wxPyEndAllowThreads(__tstate);
14371 if (PyErr_Occurred()) SWIG_fail;
14372 }
14373 {
14374#if wxUSE_UNICODE
14375 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14376#else
14377 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14378#endif
14379 }
14380 return resultobj;
14381fail:
14382 return NULL;
14383}
14384
14385
14386SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14387 PyObject *resultobj = 0;
14388 wxFont *arg1 = (wxFont *) 0 ;
14389 int arg2 ;
14390 void *argp1 = 0 ;
14391 int res1 = 0 ;
14392 int val2 ;
14393 int ecode2 = 0 ;
14394 PyObject * obj0 = 0 ;
14395 PyObject * obj1 = 0 ;
14396 char * kwnames[] = {
14397 (char *) "self",(char *) "pointSize", NULL
14398 };
14399
14400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14402 if (!SWIG_IsOK(res1)) {
14403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14404 }
14405 arg1 = reinterpret_cast< wxFont * >(argp1);
14406 ecode2 = SWIG_AsVal_int(obj1, &val2);
14407 if (!SWIG_IsOK(ecode2)) {
14408 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14409 }
14410 arg2 = static_cast< int >(val2);
14411 {
14412 PyThreadState* __tstate = wxPyBeginAllowThreads();
14413 (arg1)->SetPointSize(arg2);
14414 wxPyEndAllowThreads(__tstate);
14415 if (PyErr_Occurred()) SWIG_fail;
14416 }
14417 resultobj = SWIG_Py_Void();
14418 return resultobj;
14419fail:
14420 return NULL;
14421}
14422
14423
14424SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14425 PyObject *resultobj = 0;
14426 wxFont *arg1 = (wxFont *) 0 ;
14427 wxSize *arg2 = 0 ;
14428 void *argp1 = 0 ;
14429 int res1 = 0 ;
14430 wxSize temp2 ;
14431 PyObject * obj0 = 0 ;
14432 PyObject * obj1 = 0 ;
14433 char * kwnames[] = {
14434 (char *) "self",(char *) "pixelSize", NULL
14435 };
14436
14437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14439 if (!SWIG_IsOK(res1)) {
14440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14441 }
14442 arg1 = reinterpret_cast< wxFont * >(argp1);
14443 {
14444 arg2 = &temp2;
14445 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14446 }
14447 {
14448 PyThreadState* __tstate = wxPyBeginAllowThreads();
14449 (arg1)->SetPixelSize((wxSize const &)*arg2);
14450 wxPyEndAllowThreads(__tstate);
14451 if (PyErr_Occurred()) SWIG_fail;
14452 }
14453 resultobj = SWIG_Py_Void();
14454 return resultobj;
14455fail:
14456 return NULL;
14457}
14458
14459
14460SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14461 PyObject *resultobj = 0;
14462 wxFont *arg1 = (wxFont *) 0 ;
14463 int arg2 ;
14464 void *argp1 = 0 ;
14465 int res1 = 0 ;
14466 int val2 ;
14467 int ecode2 = 0 ;
14468 PyObject * obj0 = 0 ;
14469 PyObject * obj1 = 0 ;
14470 char * kwnames[] = {
14471 (char *) "self",(char *) "family", NULL
14472 };
14473
14474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14476 if (!SWIG_IsOK(res1)) {
14477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14478 }
14479 arg1 = reinterpret_cast< wxFont * >(argp1);
14480 ecode2 = SWIG_AsVal_int(obj1, &val2);
14481 if (!SWIG_IsOK(ecode2)) {
14482 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14483 }
14484 arg2 = static_cast< int >(val2);
14485 {
14486 PyThreadState* __tstate = wxPyBeginAllowThreads();
14487 (arg1)->SetFamily(arg2);
14488 wxPyEndAllowThreads(__tstate);
14489 if (PyErr_Occurred()) SWIG_fail;
14490 }
14491 resultobj = SWIG_Py_Void();
14492 return resultobj;
14493fail:
14494 return NULL;
14495}
14496
14497
14498SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14499 PyObject *resultobj = 0;
14500 wxFont *arg1 = (wxFont *) 0 ;
14501 int arg2 ;
14502 void *argp1 = 0 ;
14503 int res1 = 0 ;
14504 int val2 ;
14505 int ecode2 = 0 ;
14506 PyObject * obj0 = 0 ;
14507 PyObject * obj1 = 0 ;
14508 char * kwnames[] = {
14509 (char *) "self",(char *) "style", NULL
14510 };
14511
14512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14514 if (!SWIG_IsOK(res1)) {
14515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14516 }
14517 arg1 = reinterpret_cast< wxFont * >(argp1);
14518 ecode2 = SWIG_AsVal_int(obj1, &val2);
14519 if (!SWIG_IsOK(ecode2)) {
14520 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14521 }
14522 arg2 = static_cast< int >(val2);
14523 {
14524 PyThreadState* __tstate = wxPyBeginAllowThreads();
14525 (arg1)->SetStyle(arg2);
14526 wxPyEndAllowThreads(__tstate);
14527 if (PyErr_Occurred()) SWIG_fail;
14528 }
14529 resultobj = SWIG_Py_Void();
14530 return resultobj;
14531fail:
14532 return NULL;
14533}
14534
14535
14536SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14537 PyObject *resultobj = 0;
14538 wxFont *arg1 = (wxFont *) 0 ;
14539 int arg2 ;
14540 void *argp1 = 0 ;
14541 int res1 = 0 ;
14542 int val2 ;
14543 int ecode2 = 0 ;
14544 PyObject * obj0 = 0 ;
14545 PyObject * obj1 = 0 ;
14546 char * kwnames[] = {
14547 (char *) "self",(char *) "weight", NULL
14548 };
14549
14550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14552 if (!SWIG_IsOK(res1)) {
14553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14554 }
14555 arg1 = reinterpret_cast< wxFont * >(argp1);
14556 ecode2 = SWIG_AsVal_int(obj1, &val2);
14557 if (!SWIG_IsOK(ecode2)) {
14558 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14559 }
14560 arg2 = static_cast< int >(val2);
14561 {
14562 PyThreadState* __tstate = wxPyBeginAllowThreads();
14563 (arg1)->SetWeight(arg2);
14564 wxPyEndAllowThreads(__tstate);
14565 if (PyErr_Occurred()) SWIG_fail;
14566 }
14567 resultobj = SWIG_Py_Void();
14568 return resultobj;
14569fail:
14570 return NULL;
14571}
14572
14573
14574SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14575 PyObject *resultobj = 0;
14576 wxFont *arg1 = (wxFont *) 0 ;
14577 wxString *arg2 = 0 ;
704eda0c 14578 bool result;
1bd55598
RD
14579 void *argp1 = 0 ;
14580 int res1 = 0 ;
14581 bool temp2 = false ;
14582 PyObject * obj0 = 0 ;
14583 PyObject * obj1 = 0 ;
14584 char * kwnames[] = {
14585 (char *) "self",(char *) "faceName", NULL
14586 };
14587
14588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14590 if (!SWIG_IsOK(res1)) {
14591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14592 }
14593 arg1 = reinterpret_cast< wxFont * >(argp1);
14594 {
14595 arg2 = wxString_in_helper(obj1);
14596 if (arg2 == NULL) SWIG_fail;
14597 temp2 = true;
14598 }
14599 {
14600 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 14601 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
1bd55598
RD
14602 wxPyEndAllowThreads(__tstate);
14603 if (PyErr_Occurred()) SWIG_fail;
14604 }
704eda0c
RD
14605 {
14606 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14607 }
1bd55598
RD
14608 {
14609 if (temp2)
14610 delete arg2;
14611 }
14612 return resultobj;
14613fail:
14614 {
14615 if (temp2)
14616 delete arg2;
14617 }
14618 return NULL;
14619}
14620
14621
14622SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14623 PyObject *resultobj = 0;
14624 wxFont *arg1 = (wxFont *) 0 ;
14625 bool arg2 ;
14626 void *argp1 = 0 ;
14627 int res1 = 0 ;
14628 bool val2 ;
14629 int ecode2 = 0 ;
14630 PyObject * obj0 = 0 ;
14631 PyObject * obj1 = 0 ;
14632 char * kwnames[] = {
14633 (char *) "self",(char *) "underlined", NULL
14634 };
14635
14636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14638 if (!SWIG_IsOK(res1)) {
14639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14640 }
14641 arg1 = reinterpret_cast< wxFont * >(argp1);
14642 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14643 if (!SWIG_IsOK(ecode2)) {
14644 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14645 }
14646 arg2 = static_cast< bool >(val2);
14647 {
14648 PyThreadState* __tstate = wxPyBeginAllowThreads();
14649 (arg1)->SetUnderlined(arg2);
14650 wxPyEndAllowThreads(__tstate);
14651 if (PyErr_Occurred()) SWIG_fail;
14652 }
14653 resultobj = SWIG_Py_Void();
14654 return resultobj;
14655fail:
14656 return NULL;
14657}
14658
14659
14660SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14661 PyObject *resultobj = 0;
14662 wxFont *arg1 = (wxFont *) 0 ;
14663 wxFontEncoding arg2 ;
14664 void *argp1 = 0 ;
14665 int res1 = 0 ;
14666 int val2 ;
14667 int ecode2 = 0 ;
14668 PyObject * obj0 = 0 ;
14669 PyObject * obj1 = 0 ;
14670 char * kwnames[] = {
14671 (char *) "self",(char *) "encoding", NULL
14672 };
14673
14674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
14675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14676 if (!SWIG_IsOK(res1)) {
14677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
14678 }
14679 arg1 = reinterpret_cast< wxFont * >(argp1);
14680 ecode2 = SWIG_AsVal_int(obj1, &val2);
14681 if (!SWIG_IsOK(ecode2)) {
14682 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14683 }
14684 arg2 = static_cast< wxFontEncoding >(val2);
14685 {
14686 PyThreadState* __tstate = wxPyBeginAllowThreads();
14687 (arg1)->SetEncoding(arg2);
14688 wxPyEndAllowThreads(__tstate);
14689 if (PyErr_Occurred()) SWIG_fail;
14690 }
14691 resultobj = SWIG_Py_Void();
14692 return resultobj;
14693fail:
14694 return NULL;
14695}
14696
14697
14698SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14699 PyObject *resultobj = 0;
14700 wxFont *arg1 = (wxFont *) 0 ;
14701 wxNativeFontInfo *arg2 = 0 ;
14702 void *argp1 = 0 ;
14703 int res1 = 0 ;
14704 void *argp2 = 0 ;
14705 int res2 = 0 ;
14706 PyObject * obj0 = 0 ;
14707 PyObject * obj1 = 0 ;
14708 char * kwnames[] = {
14709 (char *) "self",(char *) "info", NULL
14710 };
14711
14712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
14713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14714 if (!SWIG_IsOK(res1)) {
14715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
14716 }
14717 arg1 = reinterpret_cast< wxFont * >(argp1);
14718 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14719 if (!SWIG_IsOK(res2)) {
14720 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14721 }
14722 if (!argp2) {
14723 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14724 }
14725 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
14726 {
14727 PyThreadState* __tstate = wxPyBeginAllowThreads();
14728 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
14729 wxPyEndAllowThreads(__tstate);
14730 if (PyErr_Occurred()) SWIG_fail;
14731 }
14732 resultobj = SWIG_Py_Void();
14733 return resultobj;
14734fail:
14735 return NULL;
14736}
14737
14738
14739SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14740 PyObject *resultobj = 0;
14741 wxFont *arg1 = (wxFont *) 0 ;
14742 wxString *arg2 = 0 ;
704eda0c 14743 bool result;
1bd55598
RD
14744 void *argp1 = 0 ;
14745 int res1 = 0 ;
14746 bool temp2 = false ;
14747 PyObject * obj0 = 0 ;
14748 PyObject * obj1 = 0 ;
14749 char * kwnames[] = {
14750 (char *) "self",(char *) "info", NULL
14751 };
14752
14753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
14754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14755 if (!SWIG_IsOK(res1)) {
14756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
14757 }
14758 arg1 = reinterpret_cast< wxFont * >(argp1);
14759 {
14760 arg2 = wxString_in_helper(obj1);
14761 if (arg2 == NULL) SWIG_fail;
14762 temp2 = true;
14763 }
14764 {
14765 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 14766 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
1bd55598
RD
14767 wxPyEndAllowThreads(__tstate);
14768 if (PyErr_Occurred()) SWIG_fail;
14769 }
704eda0c
RD
14770 {
14771 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14772 }
1bd55598
RD
14773 {
14774 if (temp2)
14775 delete arg2;
14776 }
14777 return resultobj;
14778fail:
14779 {
14780 if (temp2)
14781 delete arg2;
14782 }
14783 return NULL;
d55e5bfc
RD
14784}
14785
14786
1bd55598
RD
14787SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14788 PyObject *resultobj = 0;
14789 wxFont *arg1 = (wxFont *) 0 ;
14790 wxString *arg2 = 0 ;
704eda0c 14791 bool result;
1bd55598
RD
14792 void *argp1 = 0 ;
14793 int res1 = 0 ;
14794 bool temp2 = false ;
14795 PyObject * obj0 = 0 ;
14796 PyObject * obj1 = 0 ;
14797 char * kwnames[] = {
14798 (char *) "self",(char *) "info", NULL
14799 };
14800
14801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
14802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14803 if (!SWIG_IsOK(res1)) {
14804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
14805 }
14806 arg1 = reinterpret_cast< wxFont * >(argp1);
14807 {
14808 arg2 = wxString_in_helper(obj1);
14809 if (arg2 == NULL) SWIG_fail;
14810 temp2 = true;
14811 }
14812 {
14813 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 14814 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
1bd55598
RD
14815 wxPyEndAllowThreads(__tstate);
14816 if (PyErr_Occurred()) SWIG_fail;
14817 }
704eda0c
RD
14818 {
14819 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14820 }
1bd55598
RD
14821 {
14822 if (temp2)
14823 delete arg2;
14824 }
14825 return resultobj;
14826fail:
14827 {
14828 if (temp2)
14829 delete arg2;
14830 }
14831 return NULL;
d55e5bfc
RD
14832}
14833
14834
1bd55598
RD
14835SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14836 PyObject *resultobj = 0;
14837 wxFont *arg1 = (wxFont *) 0 ;
14838 wxString result;
14839 void *argp1 = 0 ;
14840 int res1 = 0 ;
14841 PyObject *swig_obj[1] ;
14842
14843 if (!args) SWIG_fail;
14844 swig_obj[0] = args;
14845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14846 if (!SWIG_IsOK(res1)) {
14847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
14848 }
14849 arg1 = reinterpret_cast< wxFont * >(argp1);
14850 {
14851 PyThreadState* __tstate = wxPyBeginAllowThreads();
14852 result = ((wxFont const *)arg1)->GetFamilyString();
14853 wxPyEndAllowThreads(__tstate);
14854 if (PyErr_Occurred()) SWIG_fail;
14855 }
14856 {
14857#if wxUSE_UNICODE
14858 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14859#else
14860 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14861#endif
14862 }
14863 return resultobj;
14864fail:
14865 return NULL;
d55e5bfc
RD
14866}
14867
14868
1bd55598
RD
14869SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14870 PyObject *resultobj = 0;
14871 wxFont *arg1 = (wxFont *) 0 ;
14872 wxString result;
14873 void *argp1 = 0 ;
14874 int res1 = 0 ;
14875 PyObject *swig_obj[1] ;
14876
14877 if (!args) SWIG_fail;
14878 swig_obj[0] = args;
14879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14880 if (!SWIG_IsOK(res1)) {
14881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
14882 }
14883 arg1 = reinterpret_cast< wxFont * >(argp1);
14884 {
14885 PyThreadState* __tstate = wxPyBeginAllowThreads();
14886 result = ((wxFont const *)arg1)->GetStyleString();
14887 wxPyEndAllowThreads(__tstate);
14888 if (PyErr_Occurred()) SWIG_fail;
14889 }
14890 {
14891#if wxUSE_UNICODE
14892 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14893#else
14894 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14895#endif
14896 }
14897 return resultobj;
14898fail:
14899 return NULL;
d55e5bfc
RD
14900}
14901
14902
1bd55598
RD
14903SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14904 PyObject *resultobj = 0;
14905 wxFont *arg1 = (wxFont *) 0 ;
14906 wxString result;
14907 void *argp1 = 0 ;
14908 int res1 = 0 ;
14909 PyObject *swig_obj[1] ;
14910
14911 if (!args) SWIG_fail;
14912 swig_obj[0] = args;
14913 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14914 if (!SWIG_IsOK(res1)) {
14915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
14916 }
14917 arg1 = reinterpret_cast< wxFont * >(argp1);
14918 {
14919 PyThreadState* __tstate = wxPyBeginAllowThreads();
14920 result = ((wxFont const *)arg1)->GetWeightString();
14921 wxPyEndAllowThreads(__tstate);
14922 if (PyErr_Occurred()) SWIG_fail;
14923 }
14924 {
14925#if wxUSE_UNICODE
14926 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14927#else
14928 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14929#endif
14930 }
14931 return resultobj;
14932fail:
14933 return NULL;
14934}
14935
14936
14937SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14938 PyObject *resultobj = 0;
14939 wxFont *arg1 = (wxFont *) 0 ;
14940 bool arg2 = (bool) true ;
14941 void *argp1 = 0 ;
14942 int res1 = 0 ;
14943 bool val2 ;
14944 int ecode2 = 0 ;
14945 PyObject * obj0 = 0 ;
14946 PyObject * obj1 = 0 ;
14947 char * kwnames[] = {
14948 (char *) "self",(char *) "no", NULL
14949 };
14950
14951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
14952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14953 if (!SWIG_IsOK(res1)) {
14954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
14955 }
14956 arg1 = reinterpret_cast< wxFont * >(argp1);
14957 if (obj1) {
14958 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14959 if (!SWIG_IsOK(ecode2)) {
14960 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
14961 }
14962 arg2 = static_cast< bool >(val2);
14963 }
14964 {
14965 PyThreadState* __tstate = wxPyBeginAllowThreads();
14966 (arg1)->SetNoAntiAliasing(arg2);
14967 wxPyEndAllowThreads(__tstate);
14968 if (PyErr_Occurred()) SWIG_fail;
14969 }
14970 resultobj = SWIG_Py_Void();
14971 return resultobj;
14972fail:
14973 return NULL;
d55e5bfc
RD
14974}
14975
14976
1bd55598
RD
14977SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14978 PyObject *resultobj = 0;
14979 wxFont *arg1 = (wxFont *) 0 ;
14980 bool result;
14981 void *argp1 = 0 ;
14982 int res1 = 0 ;
14983 PyObject *swig_obj[1] ;
14984
14985 if (!args) SWIG_fail;
14986 swig_obj[0] = args;
14987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14988 if (!SWIG_IsOK(res1)) {
14989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
14990 }
14991 arg1 = reinterpret_cast< wxFont * >(argp1);
14992 {
14993 PyThreadState* __tstate = wxPyBeginAllowThreads();
14994 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
14995 wxPyEndAllowThreads(__tstate);
14996 if (PyErr_Occurred()) SWIG_fail;
14997 }
14998 {
14999 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15000 }
15001 return resultobj;
15002fail:
15003 return NULL;
d55e5bfc
RD
15004}
15005
15006
1bd55598
RD
15007SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15008 PyObject *resultobj = 0;
15009 wxFontEncoding result;
15010
15011 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15012 {
15013 if (!wxPyCheckForApp()) SWIG_fail;
15014 PyThreadState* __tstate = wxPyBeginAllowThreads();
15015 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15016 wxPyEndAllowThreads(__tstate);
15017 if (PyErr_Occurred()) SWIG_fail;
15018 }
15019 resultobj = SWIG_From_int(static_cast< int >(result));
15020 return resultobj;
15021fail:
15022 return NULL;
d55e5bfc
RD
15023}
15024
15025
1bd55598
RD
15026SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15027 PyObject *resultobj = 0;
15028 wxFontEncoding arg1 ;
15029 int val1 ;
15030 int ecode1 = 0 ;
15031 PyObject * obj0 = 0 ;
15032 char * kwnames[] = {
15033 (char *) "encoding", NULL
15034 };
15035
15036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15037 ecode1 = SWIG_AsVal_int(obj0, &val1);
15038 if (!SWIG_IsOK(ecode1)) {
15039 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15040 }
15041 arg1 = static_cast< wxFontEncoding >(val1);
15042 {
15043 if (!wxPyCheckForApp()) SWIG_fail;
15044 PyThreadState* __tstate = wxPyBeginAllowThreads();
15045 wxFont::SetDefaultEncoding(arg1);
15046 wxPyEndAllowThreads(__tstate);
15047 if (PyErr_Occurred()) SWIG_fail;
15048 }
15049 resultobj = SWIG_Py_Void();
15050 return resultobj;
15051fail:
15052 return NULL;
d55e5bfc
RD
15053}
15054
15055
1bd55598
RD
15056SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15057 PyObject *obj;
15058 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15059 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15060 return SWIG_Py_Void();
d55e5bfc 15061}
d55e5bfc 15062
1bd55598
RD
15063SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15064 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
15065}
15066
1bd55598
RD
15067SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15068 PyObject *resultobj = 0;
15069 wxPyFontEnumerator *result = 0 ;
15070
15071 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15072 {
15073 if (!wxPyCheckForApp()) SWIG_fail;
15074 PyThreadState* __tstate = wxPyBeginAllowThreads();
15075 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15076 wxPyEndAllowThreads(__tstate);
15077 if (PyErr_Occurred()) SWIG_fail;
15078 }
15079 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15080 return resultobj;
15081fail:
15082 return NULL;
d55e5bfc
RD
15083}
15084
15085
1bd55598
RD
15086SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15087 PyObject *resultobj = 0;
15088 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15089 void *argp1 = 0 ;
15090 int res1 = 0 ;
15091 PyObject *swig_obj[1] ;
15092
15093 if (!args) SWIG_fail;
15094 swig_obj[0] = args;
15095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15096 if (!SWIG_IsOK(res1)) {
15097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15098 }
15099 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15100 {
15101 PyThreadState* __tstate = wxPyBeginAllowThreads();
15102 delete arg1;
d55e5bfc 15103
1bd55598
RD
15104 wxPyEndAllowThreads(__tstate);
15105 if (PyErr_Occurred()) SWIG_fail;
15106 }
15107 resultobj = SWIG_Py_Void();
15108 return resultobj;
15109fail:
15110 return NULL;
15111}
15112
15113
15114SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15115 PyObject *resultobj = 0;
15116 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15117 PyObject *arg2 = (PyObject *) 0 ;
15118 PyObject *arg3 = (PyObject *) 0 ;
15119 bool arg4 ;
15120 void *argp1 = 0 ;
15121 int res1 = 0 ;
15122 bool val4 ;
15123 int ecode4 = 0 ;
15124 PyObject * obj0 = 0 ;
15125 PyObject * obj1 = 0 ;
15126 PyObject * obj2 = 0 ;
15127 PyObject * obj3 = 0 ;
15128 char * kwnames[] = {
15129 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15130 };
15131
15132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15134 if (!SWIG_IsOK(res1)) {
15135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15136 }
15137 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15138 arg2 = obj1;
15139 arg3 = obj2;
15140 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15141 if (!SWIG_IsOK(ecode4)) {
15142 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
15143 }
15144 arg4 = static_cast< bool >(val4);
15145 {
15146 PyThreadState* __tstate = wxPyBeginAllowThreads();
15147 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15148 wxPyEndAllowThreads(__tstate);
15149 if (PyErr_Occurred()) SWIG_fail;
15150 }
15151 resultobj = SWIG_Py_Void();
15152 return resultobj;
15153fail:
15154 return NULL;
15155}
15156
15157
15158SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15159 PyObject *resultobj = 0;
15160 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15161 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15162 bool arg3 = (bool) false ;
15163 bool result;
15164 void *argp1 = 0 ;
15165 int res1 = 0 ;
15166 int val2 ;
15167 int ecode2 = 0 ;
15168 bool val3 ;
15169 int ecode3 = 0 ;
15170 PyObject * obj0 = 0 ;
15171 PyObject * obj1 = 0 ;
15172 PyObject * obj2 = 0 ;
15173 char * kwnames[] = {
15174 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15175 };
15176
15177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15179 if (!SWIG_IsOK(res1)) {
15180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15181 }
15182 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15183 if (obj1) {
15184 ecode2 = SWIG_AsVal_int(obj1, &val2);
15185 if (!SWIG_IsOK(ecode2)) {
15186 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15187 }
15188 arg2 = static_cast< wxFontEncoding >(val2);
15189 }
15190 if (obj2) {
15191 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15192 if (!SWIG_IsOK(ecode3)) {
15193 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15194 }
15195 arg3 = static_cast< bool >(val3);
15196 }
15197 {
15198 PyThreadState* __tstate = wxPyBeginAllowThreads();
15199 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15200 wxPyEndAllowThreads(__tstate);
15201 if (PyErr_Occurred()) SWIG_fail;
15202 }
15203 {
15204 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15205 }
15206 return resultobj;
15207fail:
15208 return NULL;
15209}
15210
15211
15212SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15213 PyObject *resultobj = 0;
15214 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15215 wxString const &arg2_defvalue = wxPyEmptyString ;
15216 wxString *arg2 = (wxString *) &arg2_defvalue ;
15217 bool result;
15218 void *argp1 = 0 ;
15219 int res1 = 0 ;
15220 bool temp2 = false ;
15221 PyObject * obj0 = 0 ;
15222 PyObject * obj1 = 0 ;
15223 char * kwnames[] = {
15224 (char *) "self",(char *) "facename", NULL
15225 };
15226
15227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15229 if (!SWIG_IsOK(res1)) {
15230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15231 }
15232 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15233 if (obj1) {
36ed4f51 15234 {
1bd55598
RD
15235 arg2 = wxString_in_helper(obj1);
15236 if (arg2 == NULL) SWIG_fail;
15237 temp2 = true;
36ed4f51 15238 }
1bd55598
RD
15239 }
15240 {
15241 PyThreadState* __tstate = wxPyBeginAllowThreads();
15242 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15243 wxPyEndAllowThreads(__tstate);
15244 if (PyErr_Occurred()) SWIG_fail;
15245 }
15246 {
15247 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15248 }
15249 {
15250 if (temp2)
15251 delete arg2;
15252 }
15253 return resultobj;
15254fail:
15255 {
15256 if (temp2)
15257 delete arg2;
15258 }
15259 return NULL;
d55e5bfc
RD
15260}
15261
15262
1bd55598
RD
15263SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15264 PyObject *resultobj = 0;
1bd55598 15265 PyObject *result = 0 ;
1bd55598 15266
704eda0c 15267 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
1bd55598
RD
15268 {
15269 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15270 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
1bd55598
RD
15271 wxPyEndAllowThreads(__tstate);
15272 if (PyErr_Occurred()) SWIG_fail;
15273 }
15274 resultobj = result;
15275 return resultobj;
15276fail:
15277 return NULL;
d55e5bfc
RD
15278}
15279
15280
1bd55598
RD
15281SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15282 PyObject *resultobj = 0;
1bd55598 15283 PyObject *result = 0 ;
1bd55598 15284
704eda0c 15285 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
1bd55598
RD
15286 {
15287 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15288 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
1bd55598
RD
15289 wxPyEndAllowThreads(__tstate);
15290 if (PyErr_Occurred()) SWIG_fail;
15291 }
15292 resultobj = result;
15293 return resultobj;
15294fail:
15295 return NULL;
d55e5bfc
RD
15296}
15297
15298
704eda0c
RD
15299SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15300 PyObject *resultobj = 0;
15301 wxString *arg1 = 0 ;
15302 bool result;
15303 bool temp1 = false ;
15304 PyObject * obj0 = 0 ;
15305 char * kwnames[] = {
15306 (char *) "str", NULL
15307 };
15308
15309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15310 {
15311 arg1 = wxString_in_helper(obj0);
15312 if (arg1 == NULL) SWIG_fail;
15313 temp1 = true;
15314 }
15315 {
15316 PyThreadState* __tstate = wxPyBeginAllowThreads();
15317 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15318 wxPyEndAllowThreads(__tstate);
15319 if (PyErr_Occurred()) SWIG_fail;
15320 }
15321 {
15322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15323 }
15324 {
15325 if (temp1)
15326 delete arg1;
15327 }
15328 return resultobj;
15329fail:
15330 {
15331 if (temp1)
15332 delete arg1;
15333 }
15334 return NULL;
15335}
15336
15337
1bd55598
RD
15338SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15339 PyObject *obj;
15340 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15341 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15342 return SWIG_Py_Void();
d55e5bfc
RD
15343}
15344
1bd55598
RD
15345SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15346 return SWIG_Python_InitShadowInstance(args);
15347}
d55e5bfc 15348
1bd55598
RD
15349SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15350 PyObject *resultobj = 0;
15351 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15352 int arg2 ;
15353 void *argp1 = 0 ;
15354 int res1 = 0 ;
15355 int val2 ;
15356 int ecode2 = 0 ;
15357 PyObject *swig_obj[2] ;
15358
15359 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15361 if (!SWIG_IsOK(res1)) {
15362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15363 }
15364 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15365 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15366 if (!SWIG_IsOK(ecode2)) {
15367 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15368 }
15369 arg2 = static_cast< int >(val2);
15370 if (arg1) (arg1)->Language = arg2;
15371
15372 resultobj = SWIG_Py_Void();
15373 return resultobj;
15374fail:
15375 return NULL;
d55e5bfc
RD
15376}
15377
15378
1bd55598
RD
15379SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15380 PyObject *resultobj = 0;
15381 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15382 int result;
15383 void *argp1 = 0 ;
15384 int res1 = 0 ;
15385 PyObject *swig_obj[1] ;
15386
15387 if (!args) SWIG_fail;
15388 swig_obj[0] = args;
15389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15390 if (!SWIG_IsOK(res1)) {
15391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15392 }
15393 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15394 result = (int) ((arg1)->Language);
15395 resultobj = SWIG_From_int(static_cast< int >(result));
15396 return resultobj;
15397fail:
15398 return NULL;
15399}
15400
15401
15402SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15403 PyObject *resultobj = 0;
15404 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15405 wxString *arg2 = (wxString *) 0 ;
15406 void *argp1 = 0 ;
15407 int res1 = 0 ;
15408 bool temp2 = false ;
15409 PyObject *swig_obj[2] ;
15410
15411 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15413 if (!SWIG_IsOK(res1)) {
15414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15415 }
15416 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15417 {
15418 arg2 = wxString_in_helper(swig_obj[1]);
15419 if (arg2 == NULL) SWIG_fail;
15420 temp2 = true;
15421 }
15422 if (arg1) (arg1)->CanonicalName = *arg2;
15423
15424 resultobj = SWIG_Py_Void();
15425 {
15426 if (temp2)
15427 delete arg2;
15428 }
15429 return resultobj;
15430fail:
15431 {
15432 if (temp2)
15433 delete arg2;
15434 }
15435 return NULL;
d55e5bfc
RD
15436}
15437
15438
1bd55598
RD
15439SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15440 PyObject *resultobj = 0;
15441 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15442 wxString *result = 0 ;
15443 void *argp1 = 0 ;
15444 int res1 = 0 ;
15445 PyObject *swig_obj[1] ;
15446
15447 if (!args) SWIG_fail;
15448 swig_obj[0] = args;
15449 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15450 if (!SWIG_IsOK(res1)) {
15451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15452 }
15453 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15454 result = (wxString *)& ((arg1)->CanonicalName);
15455 {
15456#if wxUSE_UNICODE
15457 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15458#else
15459 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15460#endif
15461 }
15462 return resultobj;
15463fail:
15464 return NULL;
d55e5bfc
RD
15465}
15466
15467
1bd55598
RD
15468SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15469 PyObject *resultobj = 0;
15470 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15471 wxString *arg2 = (wxString *) 0 ;
15472 void *argp1 = 0 ;
15473 int res1 = 0 ;
15474 bool temp2 = false ;
15475 PyObject *swig_obj[2] ;
15476
15477 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15478 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15479 if (!SWIG_IsOK(res1)) {
15480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15481 }
15482 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15483 {
15484 arg2 = wxString_in_helper(swig_obj[1]);
15485 if (arg2 == NULL) SWIG_fail;
15486 temp2 = true;
15487 }
15488 if (arg1) (arg1)->Description = *arg2;
15489
15490 resultobj = SWIG_Py_Void();
15491 {
15492 if (temp2)
15493 delete arg2;
15494 }
15495 return resultobj;
15496fail:
15497 {
15498 if (temp2)
15499 delete arg2;
15500 }
15501 return NULL;
d55e5bfc
RD
15502}
15503
15504
1bd55598
RD
15505SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15506 PyObject *resultobj = 0;
15507 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15508 wxString *result = 0 ;
15509 void *argp1 = 0 ;
15510 int res1 = 0 ;
15511 PyObject *swig_obj[1] ;
15512
15513 if (!args) SWIG_fail;
15514 swig_obj[0] = args;
15515 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15516 if (!SWIG_IsOK(res1)) {
15517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15518 }
15519 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15520 result = (wxString *)& ((arg1)->Description);
15521 {
15522#if wxUSE_UNICODE
15523 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15524#else
15525 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15526#endif
15527 }
15528 return resultobj;
15529fail:
15530 return NULL;
15531}
15532
15533
15534SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15535 PyObject *obj;
15536 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15537 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15538 return SWIG_Py_Void();
15539}
15540
15541SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15542 PyObject *resultobj = 0;
15543 int arg1 = (int) -1 ;
15544 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15545 wxLocale *result = 0 ;
15546 int val1 ;
15547 int ecode1 = 0 ;
15548 int val2 ;
15549 int ecode2 = 0 ;
15550 PyObject * obj0 = 0 ;
15551 PyObject * obj1 = 0 ;
15552 char * kwnames[] = {
15553 (char *) "language",(char *) "flags", NULL
15554 };
15555
15556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15557 if (obj0) {
15558 ecode1 = SWIG_AsVal_int(obj0, &val1);
15559 if (!SWIG_IsOK(ecode1)) {
15560 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15561 }
15562 arg1 = static_cast< int >(val1);
15563 }
15564 if (obj1) {
15565 ecode2 = SWIG_AsVal_int(obj1, &val2);
15566 if (!SWIG_IsOK(ecode2)) {
15567 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15568 }
15569 arg2 = static_cast< int >(val2);
15570 }
15571 {
15572 PyThreadState* __tstate = wxPyBeginAllowThreads();
15573 result = (wxLocale *)new_wxLocale(arg1,arg2);
15574 wxPyEndAllowThreads(__tstate);
15575 if (PyErr_Occurred()) SWIG_fail;
15576 }
15577 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15578 return resultobj;
15579fail:
15580 return NULL;
d55e5bfc
RD
15581}
15582
15583
1bd55598
RD
15584SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15585 PyObject *resultobj = 0;
15586 wxLocale *arg1 = (wxLocale *) 0 ;
15587 void *argp1 = 0 ;
15588 int res1 = 0 ;
15589 PyObject *swig_obj[1] ;
15590
15591 if (!args) SWIG_fail;
15592 swig_obj[0] = args;
15593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15594 if (!SWIG_IsOK(res1)) {
15595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15596 }
15597 arg1 = reinterpret_cast< wxLocale * >(argp1);
15598 {
15599 PyThreadState* __tstate = wxPyBeginAllowThreads();
15600 delete arg1;
d55e5bfc 15601
1bd55598
RD
15602 wxPyEndAllowThreads(__tstate);
15603 if (PyErr_Occurred()) SWIG_fail;
15604 }
15605 resultobj = SWIG_Py_Void();
15606 return resultobj;
15607fail:
15608 return NULL;
15609}
15610
15611
15612SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15613 PyObject *resultobj = 0;
15614 wxLocale *arg1 = (wxLocale *) 0 ;
15615 wxString *arg2 = 0 ;
15616 wxString const &arg3_defvalue = wxPyEmptyString ;
15617 wxString *arg3 = (wxString *) &arg3_defvalue ;
15618 wxString const &arg4_defvalue = wxPyEmptyString ;
15619 wxString *arg4 = (wxString *) &arg4_defvalue ;
15620 bool arg5 = (bool) true ;
15621 bool arg6 = (bool) false ;
15622 bool result;
15623 void *argp1 = 0 ;
15624 int res1 = 0 ;
15625 bool temp2 = false ;
15626 bool temp3 = false ;
15627 bool temp4 = false ;
15628 bool val5 ;
15629 int ecode5 = 0 ;
15630 bool val6 ;
15631 int ecode6 = 0 ;
15632 PyObject * obj0 = 0 ;
15633 PyObject * obj1 = 0 ;
15634 PyObject * obj2 = 0 ;
15635 PyObject * obj3 = 0 ;
15636 PyObject * obj4 = 0 ;
15637 PyObject * obj5 = 0 ;
15638 char * kwnames[] = {
15639 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15640 };
15641
15642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15644 if (!SWIG_IsOK(res1)) {
15645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15646 }
15647 arg1 = reinterpret_cast< wxLocale * >(argp1);
15648 {
15649 arg2 = wxString_in_helper(obj1);
15650 if (arg2 == NULL) SWIG_fail;
15651 temp2 = true;
15652 }
15653 if (obj2) {
d55e5bfc 15654 {
1bd55598
RD
15655 arg3 = wxString_in_helper(obj2);
15656 if (arg3 == NULL) SWIG_fail;
15657 temp3 = true;
d55e5bfc 15658 }
1bd55598
RD
15659 }
15660 if (obj3) {
36ed4f51 15661 {
1bd55598
RD
15662 arg4 = wxString_in_helper(obj3);
15663 if (arg4 == NULL) SWIG_fail;
15664 temp4 = true;
36ed4f51 15665 }
1bd55598
RD
15666 }
15667 if (obj4) {
15668 ecode5 = SWIG_AsVal_bool(obj4, &val5);
15669 if (!SWIG_IsOK(ecode5)) {
15670 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
15671 }
15672 arg5 = static_cast< bool >(val5);
15673 }
15674 if (obj5) {
15675 ecode6 = SWIG_AsVal_bool(obj5, &val6);
15676 if (!SWIG_IsOK(ecode6)) {
15677 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
15678 }
15679 arg6 = static_cast< bool >(val6);
15680 }
15681 {
15682 PyThreadState* __tstate = wxPyBeginAllowThreads();
15683 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
15684 wxPyEndAllowThreads(__tstate);
15685 if (PyErr_Occurred()) SWIG_fail;
15686 }
15687 {
15688 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15689 }
15690 {
15691 if (temp2)
15692 delete arg2;
15693 }
15694 {
15695 if (temp3)
15696 delete arg3;
15697 }
15698 {
15699 if (temp4)
15700 delete arg4;
15701 }
15702 return resultobj;
15703fail:
15704 {
15705 if (temp2)
15706 delete arg2;
15707 }
15708 {
15709 if (temp3)
15710 delete arg3;
15711 }
15712 {
15713 if (temp4)
15714 delete arg4;
15715 }
15716 return NULL;
15717}
15718
15719
15720SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15721 PyObject *resultobj = 0;
15722 wxLocale *arg1 = (wxLocale *) 0 ;
15723 int arg2 = (int) wxLANGUAGE_DEFAULT ;
15724 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15725 bool result;
15726 void *argp1 = 0 ;
15727 int res1 = 0 ;
15728 int val2 ;
15729 int ecode2 = 0 ;
15730 int val3 ;
15731 int ecode3 = 0 ;
15732 PyObject * obj0 = 0 ;
15733 PyObject * obj1 = 0 ;
15734 PyObject * obj2 = 0 ;
15735 char * kwnames[] = {
15736 (char *) "self",(char *) "language",(char *) "flags", NULL
15737 };
15738
15739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15741 if (!SWIG_IsOK(res1)) {
15742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
15743 }
15744 arg1 = reinterpret_cast< wxLocale * >(argp1);
15745 if (obj1) {
15746 ecode2 = SWIG_AsVal_int(obj1, &val2);
15747 if (!SWIG_IsOK(ecode2)) {
15748 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
15749 }
15750 arg2 = static_cast< int >(val2);
15751 }
15752 if (obj2) {
15753 ecode3 = SWIG_AsVal_int(obj2, &val3);
15754 if (!SWIG_IsOK(ecode3)) {
15755 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
15756 }
15757 arg3 = static_cast< int >(val3);
15758 }
15759 {
15760 PyThreadState* __tstate = wxPyBeginAllowThreads();
15761 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
15762 wxPyEndAllowThreads(__tstate);
15763 if (PyErr_Occurred()) SWIG_fail;
15764 }
15765 {
15766 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15767 }
15768 return resultobj;
15769fail:
15770 return NULL;
d55e5bfc
RD
15771}
15772
15773
1bd55598
RD
15774SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15775 PyObject *resultobj = 0;
15776 int result;
15777
15778 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
15779 {
15780 PyThreadState* __tstate = wxPyBeginAllowThreads();
15781 result = (int)wxLocale::GetSystemLanguage();
15782 wxPyEndAllowThreads(__tstate);
15783 if (PyErr_Occurred()) SWIG_fail;
15784 }
15785 resultobj = SWIG_From_int(static_cast< int >(result));
15786 return resultobj;
15787fail:
15788 return NULL;
d55e5bfc
RD
15789}
15790
15791
1bd55598
RD
15792SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15793 PyObject *resultobj = 0;
15794 wxFontEncoding result;
15795
15796 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
15797 {
15798 PyThreadState* __tstate = wxPyBeginAllowThreads();
15799 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
15800 wxPyEndAllowThreads(__tstate);
15801 if (PyErr_Occurred()) SWIG_fail;
15802 }
15803 resultobj = SWIG_From_int(static_cast< int >(result));
15804 return resultobj;
15805fail:
15806 return NULL;
d55e5bfc
RD
15807}
15808
15809
1bd55598
RD
15810SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15811 PyObject *resultobj = 0;
15812 wxString result;
15813
15814 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
15815 {
15816 PyThreadState* __tstate = wxPyBeginAllowThreads();
15817 result = wxLocale::GetSystemEncodingName();
15818 wxPyEndAllowThreads(__tstate);
15819 if (PyErr_Occurred()) SWIG_fail;
15820 }
15821 {
15822#if wxUSE_UNICODE
15823 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15824#else
15825 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15826#endif
15827 }
15828 return resultobj;
15829fail:
15830 return NULL;
d55e5bfc
RD
15831}
15832
15833
1bd55598
RD
15834SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15835 PyObject *resultobj = 0;
15836 wxLocale *arg1 = (wxLocale *) 0 ;
15837 bool 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_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
15847 }
15848 arg1 = reinterpret_cast< wxLocale * >(argp1);
15849 {
15850 PyThreadState* __tstate = wxPyBeginAllowThreads();
15851 result = (bool)((wxLocale const *)arg1)->IsOk();
15852 wxPyEndAllowThreads(__tstate);
15853 if (PyErr_Occurred()) SWIG_fail;
15854 }
15855 {
15856 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15857 }
15858 return resultobj;
15859fail:
15860 return NULL;
d55e5bfc
RD
15861}
15862
15863
1bd55598
RD
15864SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15865 PyObject *resultobj = 0;
15866 wxLocale *arg1 = (wxLocale *) 0 ;
15867 wxString result;
15868 void *argp1 = 0 ;
15869 int res1 = 0 ;
15870 PyObject *swig_obj[1] ;
15871
15872 if (!args) SWIG_fail;
15873 swig_obj[0] = args;
15874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15875 if (!SWIG_IsOK(res1)) {
15876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
15877 }
15878 arg1 = reinterpret_cast< wxLocale * >(argp1);
15879 {
15880 PyThreadState* __tstate = wxPyBeginAllowThreads();
15881 result = ((wxLocale const *)arg1)->GetLocale();
15882 wxPyEndAllowThreads(__tstate);
15883 if (PyErr_Occurred()) SWIG_fail;
15884 }
15885 {
15886#if wxUSE_UNICODE
15887 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15888#else
15889 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15890#endif
15891 }
15892 return resultobj;
15893fail:
15894 return NULL;
d55e5bfc
RD
15895}
15896
15897
1bd55598
RD
15898SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15899 PyObject *resultobj = 0;
15900 wxLocale *arg1 = (wxLocale *) 0 ;
15901 int result;
15902 void *argp1 = 0 ;
15903 int res1 = 0 ;
15904 PyObject *swig_obj[1] ;
15905
15906 if (!args) SWIG_fail;
15907 swig_obj[0] = args;
15908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15909 if (!SWIG_IsOK(res1)) {
15910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
15911 }
15912 arg1 = reinterpret_cast< wxLocale * >(argp1);
15913 {
15914 PyThreadState* __tstate = wxPyBeginAllowThreads();
15915 result = (int)((wxLocale const *)arg1)->GetLanguage();
15916 wxPyEndAllowThreads(__tstate);
15917 if (PyErr_Occurred()) SWIG_fail;
15918 }
15919 resultobj = SWIG_From_int(static_cast< int >(result));
15920 return resultobj;
15921fail:
15922 return NULL;
d55e5bfc
RD
15923}
15924
15925
1bd55598
RD
15926SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15927 PyObject *resultobj = 0;
15928 wxLocale *arg1 = (wxLocale *) 0 ;
15929 wxString result;
15930 void *argp1 = 0 ;
15931 int res1 = 0 ;
15932 PyObject *swig_obj[1] ;
15933
15934 if (!args) SWIG_fail;
15935 swig_obj[0] = args;
15936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15937 if (!SWIG_IsOK(res1)) {
15938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
15939 }
15940 arg1 = reinterpret_cast< wxLocale * >(argp1);
15941 {
15942 PyThreadState* __tstate = wxPyBeginAllowThreads();
15943 result = ((wxLocale const *)arg1)->GetSysName();
15944 wxPyEndAllowThreads(__tstate);
15945 if (PyErr_Occurred()) SWIG_fail;
15946 }
15947 {
36ed4f51 15948#if wxUSE_UNICODE
1bd55598 15949 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 15950#else
1bd55598 15951 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 15952#endif
1bd55598
RD
15953 }
15954 return resultobj;
15955fail:
15956 return NULL;
d55e5bfc
RD
15957}
15958
15959
1bd55598
RD
15960SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15961 PyObject *resultobj = 0;
15962 wxLocale *arg1 = (wxLocale *) 0 ;
15963 wxString result;
15964 void *argp1 = 0 ;
15965 int res1 = 0 ;
15966 PyObject *swig_obj[1] ;
15967
15968 if (!args) SWIG_fail;
15969 swig_obj[0] = args;
15970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15971 if (!SWIG_IsOK(res1)) {
15972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
15973 }
15974 arg1 = reinterpret_cast< wxLocale * >(argp1);
15975 {
15976 PyThreadState* __tstate = wxPyBeginAllowThreads();
15977 result = ((wxLocale const *)arg1)->GetCanonicalName();
15978 wxPyEndAllowThreads(__tstate);
15979 if (PyErr_Occurred()) SWIG_fail;
15980 }
15981 {
15982#if wxUSE_UNICODE
15983 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15984#else
15985 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15986#endif
15987 }
15988 return resultobj;
15989fail:
15990 return NULL;
d55e5bfc
RD
15991}
15992
15993
1bd55598
RD
15994SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15995 PyObject *resultobj = 0;
15996 wxString *arg1 = 0 ;
15997 bool temp1 = false ;
15998 PyObject * obj0 = 0 ;
15999 char * kwnames[] = {
16000 (char *) "prefix", NULL
16001 };
16002
16003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16004 {
16005 arg1 = wxString_in_helper(obj0);
16006 if (arg1 == NULL) SWIG_fail;
16007 temp1 = true;
16008 }
16009 {
16010 PyThreadState* __tstate = wxPyBeginAllowThreads();
16011 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16012 wxPyEndAllowThreads(__tstate);
16013 if (PyErr_Occurred()) SWIG_fail;
16014 }
16015 resultobj = SWIG_Py_Void();
16016 {
16017 if (temp1)
16018 delete arg1;
16019 }
16020 return resultobj;
16021fail:
16022 {
16023 if (temp1)
16024 delete arg1;
16025 }
16026 return NULL;
16027}
16028
16029
16030SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16031 PyObject *resultobj = 0;
16032 wxLocale *arg1 = (wxLocale *) 0 ;
16033 wxString *arg2 = 0 ;
16034 bool result;
16035 void *argp1 = 0 ;
16036 int res1 = 0 ;
16037 bool temp2 = false ;
16038 PyObject * obj0 = 0 ;
16039 PyObject * obj1 = 0 ;
16040 char * kwnames[] = {
16041 (char *) "self",(char *) "szDomain", NULL
16042 };
16043
16044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16046 if (!SWIG_IsOK(res1)) {
16047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16048 }
16049 arg1 = reinterpret_cast< wxLocale * >(argp1);
16050 {
16051 arg2 = wxString_in_helper(obj1);
16052 if (arg2 == NULL) SWIG_fail;
16053 temp2 = true;
16054 }
16055 {
16056 PyThreadState* __tstate = wxPyBeginAllowThreads();
16057 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16058 wxPyEndAllowThreads(__tstate);
16059 if (PyErr_Occurred()) SWIG_fail;
16060 }
16061 {
16062 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16063 }
16064 {
16065 if (temp2)
16066 delete arg2;
16067 }
16068 return resultobj;
16069fail:
16070 {
16071 if (temp2)
16072 delete arg2;
16073 }
16074 return NULL;
16075}
16076
16077
33d6fd3b
RD
16078SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16079 PyObject *resultobj = 0;
16080 int arg1 ;
16081 bool result;
16082 int val1 ;
16083 int ecode1 = 0 ;
16084 PyObject * obj0 = 0 ;
16085 char * kwnames[] = {
16086 (char *) "lang", NULL
16087 };
16088
16089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16090 ecode1 = SWIG_AsVal_int(obj0, &val1);
16091 if (!SWIG_IsOK(ecode1)) {
16092 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16093 }
16094 arg1 = static_cast< int >(val1);
16095 {
16096 PyThreadState* __tstate = wxPyBeginAllowThreads();
16097 result = (bool)wxLocale::IsAvailable(arg1);
16098 wxPyEndAllowThreads(__tstate);
16099 if (PyErr_Occurred()) SWIG_fail;
16100 }
16101 {
16102 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16103 }
16104 return resultobj;
16105fail:
16106 return NULL;
16107}
16108
16109
1bd55598
RD
16110SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16111 PyObject *resultobj = 0;
16112 wxLocale *arg1 = (wxLocale *) 0 ;
16113 wxString *arg2 = 0 ;
16114 bool result;
16115 void *argp1 = 0 ;
16116 int res1 = 0 ;
16117 bool temp2 = false ;
16118 PyObject * obj0 = 0 ;
16119 PyObject * obj1 = 0 ;
16120 char * kwnames[] = {
16121 (char *) "self",(char *) "szDomain", NULL
16122 };
16123
16124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16126 if (!SWIG_IsOK(res1)) {
16127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16128 }
16129 arg1 = reinterpret_cast< wxLocale * >(argp1);
16130 {
16131 arg2 = wxString_in_helper(obj1);
16132 if (arg2 == NULL) SWIG_fail;
16133 temp2 = true;
16134 }
16135 {
16136 PyThreadState* __tstate = wxPyBeginAllowThreads();
16137 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16138 wxPyEndAllowThreads(__tstate);
16139 if (PyErr_Occurred()) SWIG_fail;
16140 }
16141 {
16142 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16143 }
16144 {
16145 if (temp2)
16146 delete arg2;
16147 }
16148 return resultobj;
16149fail:
16150 {
16151 if (temp2)
16152 delete arg2;
16153 }
16154 return NULL;
d55e5bfc
RD
16155}
16156
16157
1bd55598
RD
16158SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16159 PyObject *resultobj = 0;
16160 int arg1 ;
16161 wxLanguageInfo *result = 0 ;
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_GetLanguageInfo",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_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16173 }
16174 arg1 = static_cast< int >(val1);
16175 {
16176 PyThreadState* __tstate = wxPyBeginAllowThreads();
16177 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16178 wxPyEndAllowThreads(__tstate);
16179 if (PyErr_Occurred()) SWIG_fail;
16180 }
16181 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16182 return resultobj;
16183fail:
16184 return NULL;
16185}
16186
16187
16188SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16189 PyObject *resultobj = 0;
16190 int arg1 ;
16191 wxString result;
16192 int val1 ;
16193 int ecode1 = 0 ;
16194 PyObject * obj0 = 0 ;
16195 char * kwnames[] = {
16196 (char *) "lang", NULL
16197 };
16198
16199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16200 ecode1 = SWIG_AsVal_int(obj0, &val1);
16201 if (!SWIG_IsOK(ecode1)) {
16202 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16203 }
16204 arg1 = static_cast< int >(val1);
16205 {
16206 PyThreadState* __tstate = wxPyBeginAllowThreads();
16207 result = wxLocale::GetLanguageName(arg1);
16208 wxPyEndAllowThreads(__tstate);
16209 if (PyErr_Occurred()) SWIG_fail;
16210 }
16211 {
16212#if wxUSE_UNICODE
16213 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16214#else
16215 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16216#endif
16217 }
16218 return resultobj;
16219fail:
16220 return NULL;
d55e5bfc
RD
16221}
16222
16223
1bd55598
RD
16224SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16225 PyObject *resultobj = 0;
16226 wxString *arg1 = 0 ;
16227 wxLanguageInfo *result = 0 ;
16228 bool temp1 = false ;
16229 PyObject * obj0 = 0 ;
16230 char * kwnames[] = {
16231 (char *) "locale", NULL
16232 };
16233
16234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16235 {
16236 arg1 = wxString_in_helper(obj0);
16237 if (arg1 == NULL) SWIG_fail;
16238 temp1 = true;
16239 }
16240 {
16241 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3
RD
16242 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16243 wxPyEndAllowThreads(__tstate);
16244 if (PyErr_Occurred()) SWIG_fail;
16245 }
16246 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16247 {
16248 if (temp1)
16249 delete arg1;
16250 }
16251 return resultobj;
16252fail:
16253 {
16254 if (temp1)
16255 delete arg1;
16256 }
16257 return NULL;
16258}
16259
16260
16261SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16262 PyObject *resultobj = 0;
16263 wxLanguageInfo *arg1 = 0 ;
16264 void *argp1 = 0 ;
16265 int res1 = 0 ;
16266 PyObject * obj0 = 0 ;
16267 char * kwnames[] = {
16268 (char *) "info", NULL
16269 };
16270
16271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16272 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16273 if (!SWIG_IsOK(res1)) {
16274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16275 }
16276 if (!argp1) {
16277 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16278 }
16279 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16280 {
16281 PyThreadState* __tstate = wxPyBeginAllowThreads();
16282 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16283 wxPyEndAllowThreads(__tstate);
16284 if (PyErr_Occurred()) SWIG_fail;
16285 }
16286 resultobj = SWIG_Py_Void();
16287 return resultobj;
16288fail:
16289 return NULL;
16290}
16291
16292
16293SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16294 PyObject *resultobj = 0;
16295 wxLocale *arg1 = (wxLocale *) 0 ;
16296 wxString *arg2 = 0 ;
16297 wxString const &arg3_defvalue = wxPyEmptyString ;
16298 wxString *arg3 = (wxString *) &arg3_defvalue ;
16299 wxString result;
16300 void *argp1 = 0 ;
16301 int res1 = 0 ;
16302 bool temp2 = false ;
16303 bool temp3 = false ;
16304 PyObject * obj0 = 0 ;
16305 PyObject * obj1 = 0 ;
16306 PyObject * obj2 = 0 ;
16307 char * kwnames[] = {
16308 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16309 };
16310
16311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16313 if (!SWIG_IsOK(res1)) {
16314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16315 }
16316 arg1 = reinterpret_cast< wxLocale * >(argp1);
16317 {
16318 arg2 = wxString_in_helper(obj1);
16319 if (arg2 == NULL) SWIG_fail;
16320 temp2 = true;
16321 }
16322 if (obj2) {
16323 {
16324 arg3 = wxString_in_helper(obj2);
16325 if (arg3 == NULL) SWIG_fail;
16326 temp3 = true;
16327 }
16328 }
16329 {
16330 PyThreadState* __tstate = wxPyBeginAllowThreads();
16331 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16332 wxPyEndAllowThreads(__tstate);
16333 if (PyErr_Occurred()) SWIG_fail;
16334 }
16335 {
16336#if wxUSE_UNICODE
16337 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16338#else
16339 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16340#endif
16341 }
16342 {
16343 if (temp2)
16344 delete arg2;
16345 }
16346 {
16347 if (temp3)
16348 delete arg3;
16349 }
16350 return resultobj;
16351fail:
16352 {
16353 if (temp2)
16354 delete arg2;
16355 }
16356 {
16357 if (temp3)
16358 delete arg3;
16359 }
16360 return NULL;
16361}
16362
16363
16364SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16365 PyObject *resultobj = 0;
16366 wxLocale *arg1 = (wxLocale *) 0 ;
16367 wxString *result = 0 ;
16368 void *argp1 = 0 ;
16369 int res1 = 0 ;
16370 PyObject *swig_obj[1] ;
16371
16372 if (!args) SWIG_fail;
16373 swig_obj[0] = args;
16374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16375 if (!SWIG_IsOK(res1)) {
16376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16377 }
16378 arg1 = reinterpret_cast< wxLocale * >(argp1);
16379 {
16380 PyThreadState* __tstate = wxPyBeginAllowThreads();
16381 {
16382 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16383 result = (wxString *) &_result_ref;
16384 }
16385 wxPyEndAllowThreads(__tstate);
16386 if (PyErr_Occurred()) SWIG_fail;
16387 }
16388 {
16389#if wxUSE_UNICODE
16390 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16391#else
16392 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16393#endif
16394 }
16395 return resultobj;
16396fail:
16397 return NULL;
16398}
16399
16400
16401SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16402 PyObject *obj;
16403 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16404 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16405 return SWIG_Py_Void();
16406}
16407
16408SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16409 return SWIG_Python_InitShadowInstance(args);
16410}
16411
16412SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16413 PyObject *resultobj = 0;
16414 int arg1 = (int) -1 ;
16415 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16416 wxPyLocale *result = 0 ;
16417 int val1 ;
16418 int ecode1 = 0 ;
16419 int val2 ;
16420 int ecode2 = 0 ;
16421 PyObject * obj0 = 0 ;
16422 PyObject * obj1 = 0 ;
16423 char * kwnames[] = {
16424 (char *) "language",(char *) "flags", NULL
16425 };
16426
16427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16428 if (obj0) {
16429 ecode1 = SWIG_AsVal_int(obj0, &val1);
16430 if (!SWIG_IsOK(ecode1)) {
16431 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16432 }
16433 arg1 = static_cast< int >(val1);
16434 }
16435 if (obj1) {
16436 ecode2 = SWIG_AsVal_int(obj1, &val2);
16437 if (!SWIG_IsOK(ecode2)) {
16438 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16439 }
16440 arg2 = static_cast< int >(val2);
16441 }
16442 {
16443 PyThreadState* __tstate = wxPyBeginAllowThreads();
16444 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16445 wxPyEndAllowThreads(__tstate);
16446 if (PyErr_Occurred()) SWIG_fail;
16447 }
16448 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16449 return resultobj;
16450fail:
16451 return NULL;
16452}
16453
16454
16455SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16456 PyObject *resultobj = 0;
16457 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16458 void *argp1 = 0 ;
16459 int res1 = 0 ;
16460 PyObject *swig_obj[1] ;
16461
16462 if (!args) SWIG_fail;
16463 swig_obj[0] = args;
16464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16465 if (!SWIG_IsOK(res1)) {
16466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16467 }
16468 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16469 {
16470 PyThreadState* __tstate = wxPyBeginAllowThreads();
16471 delete arg1;
16472
1bd55598
RD
16473 wxPyEndAllowThreads(__tstate);
16474 if (PyErr_Occurred()) SWIG_fail;
16475 }
fc46b7f3 16476 resultobj = SWIG_Py_Void();
1bd55598
RD
16477 return resultobj;
16478fail:
1bd55598 16479 return NULL;
d55e5bfc
RD
16480}
16481
16482
fc46b7f3 16483SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16484 PyObject *resultobj = 0;
fc46b7f3
RD
16485 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16486 PyObject *arg2 = (PyObject *) 0 ;
16487 PyObject *arg3 = (PyObject *) 0 ;
1bd55598
RD
16488 void *argp1 = 0 ;
16489 int res1 = 0 ;
16490 PyObject * obj0 = 0 ;
fc46b7f3
RD
16491 PyObject * obj1 = 0 ;
16492 PyObject * obj2 = 0 ;
1bd55598 16493 char * kwnames[] = {
fc46b7f3 16494 (char *) "self",(char *) "self",(char *) "_class", NULL
1bd55598
RD
16495 };
16496
fc46b7f3
RD
16497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16499 if (!SWIG_IsOK(res1)) {
fc46b7f3 16500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
1bd55598 16501 }
fc46b7f3
RD
16502 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16503 arg2 = obj1;
16504 arg3 = obj2;
1bd55598
RD
16505 {
16506 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16507 (arg1)->_setCallbackInfo(arg2,arg3);
1bd55598
RD
16508 wxPyEndAllowThreads(__tstate);
16509 if (PyErr_Occurred()) SWIG_fail;
16510 }
16511 resultobj = SWIG_Py_Void();
16512 return resultobj;
16513fail:
16514 return NULL;
16515}
16516
16517
fc46b7f3 16518SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16519 PyObject *resultobj = 0;
fc46b7f3
RD
16520 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16521 wxChar *arg2 = (wxChar *) 0 ;
16522 wxChar *arg3 = (wxChar *) NULL ;
16523 wxChar *result = 0 ;
1bd55598
RD
16524 void *argp1 = 0 ;
16525 int res1 = 0 ;
fc46b7f3
RD
16526 void *argp2 = 0 ;
16527 int res2 = 0 ;
16528 void *argp3 = 0 ;
16529 int res3 = 0 ;
1bd55598
RD
16530 PyObject * obj0 = 0 ;
16531 PyObject * obj1 = 0 ;
16532 PyObject * obj2 = 0 ;
16533 char * kwnames[] = {
16534 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16535 };
16536
fc46b7f3
RD
16537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16539 if (!SWIG_IsOK(res1)) {
fc46b7f3 16540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
1bd55598 16541 }
fc46b7f3
RD
16542 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16543 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16544 if (!SWIG_IsOK(res2)) {
16545 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
1bd55598 16546 }
fc46b7f3 16547 arg2 = reinterpret_cast< wxChar * >(argp2);
1bd55598 16548 if (obj2) {
fc46b7f3
RD
16549 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16550 if (!SWIG_IsOK(res3)) {
16551 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
d55e5bfc 16552 }
fc46b7f3 16553 arg3 = reinterpret_cast< wxChar * >(argp3);
1bd55598
RD
16554 }
16555 {
16556 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16557 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
1bd55598
RD
16558 wxPyEndAllowThreads(__tstate);
16559 if (PyErr_Occurred()) SWIG_fail;
16560 }
fc46b7f3 16561 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
1bd55598
RD
16562 return resultobj;
16563fail:
1bd55598 16564 return NULL;
d55e5bfc
RD
16565}
16566
16567
fc46b7f3 16568SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16569 PyObject *resultobj = 0;
fc46b7f3
RD
16570 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16571 wxChar *arg2 = (wxChar *) 0 ;
16572 wxChar *arg3 = (wxChar *) 0 ;
16573 size_t arg4 ;
16574 wxChar *arg5 = (wxChar *) NULL ;
16575 wxChar *result = 0 ;
1bd55598
RD
16576 void *argp1 = 0 ;
16577 int res1 = 0 ;
fc46b7f3
RD
16578 void *argp2 = 0 ;
16579 int res2 = 0 ;
16580 void *argp3 = 0 ;
16581 int res3 = 0 ;
16582 size_t val4 ;
16583 int ecode4 = 0 ;
16584 void *argp5 = 0 ;
16585 int res5 = 0 ;
16586 PyObject * obj0 = 0 ;
16587 PyObject * obj1 = 0 ;
16588 PyObject * obj2 = 0 ;
16589 PyObject * obj3 = 0 ;
16590 PyObject * obj4 = 0 ;
16591 char * kwnames[] = {
16592 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
16593 };
1bd55598 16594
fc46b7f3
RD
16595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16597 if (!SWIG_IsOK(res1)) {
fc46b7f3
RD
16598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16599 }
16600 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16601 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16602 if (!SWIG_IsOK(res2)) {
16603 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
16604 }
16605 arg2 = reinterpret_cast< wxChar * >(argp2);
16606 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16607 if (!SWIG_IsOK(res3)) {
16608 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
16609 }
16610 arg3 = reinterpret_cast< wxChar * >(argp3);
16611 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16612 if (!SWIG_IsOK(ecode4)) {
16613 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16614 }
16615 arg4 = static_cast< size_t >(val4);
16616 if (obj4) {
16617 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
16618 if (!SWIG_IsOK(res5)) {
16619 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
16620 }
16621 arg5 = reinterpret_cast< wxChar * >(argp5);
1bd55598 16622 }
1bd55598
RD
16623 {
16624 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16625 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
1bd55598
RD
16626 wxPyEndAllowThreads(__tstate);
16627 if (PyErr_Occurred()) SWIG_fail;
16628 }
fc46b7f3 16629 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
1bd55598
RD
16630 return resultobj;
16631fail:
16632 return NULL;
d55e5bfc
RD
16633}
16634
16635
fc46b7f3 16636SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
16637 PyObject *obj;
16638 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 16639 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
1bd55598 16640 return SWIG_Py_Void();
d55e5bfc
RD
16641}
16642
fc46b7f3 16643SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 16644 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
16645}
16646
1bd55598
RD
16647SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16648 PyObject *resultobj = 0;
16649 wxLocale *result = 0 ;
16650
16651 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
16652 {
16653 PyThreadState* __tstate = wxPyBeginAllowThreads();
16654 result = (wxLocale *)wxGetLocale();
16655 wxPyEndAllowThreads(__tstate);
16656 if (PyErr_Occurred()) SWIG_fail;
16657 }
16658 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
16659 return resultobj;
16660fail:
16661 return NULL;
d55e5bfc
RD
16662}
16663
16664
1bd55598
RD
16665SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16666 PyObject *resultobj = 0;
16667 wxString *arg1 = 0 ;
16668 wxString result;
16669 bool temp1 = false ;
16670
16671 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
16672 {
16673 arg1 = wxString_in_helper(swig_obj[0]);
16674 if (arg1 == NULL) SWIG_fail;
16675 temp1 = true;
16676 }
16677 {
16678 PyThreadState* __tstate = wxPyBeginAllowThreads();
16679 result = wxGetTranslation((wxString const &)*arg1);
16680 wxPyEndAllowThreads(__tstate);
16681 if (PyErr_Occurred()) SWIG_fail;
16682 }
16683 {
36ed4f51 16684#if wxUSE_UNICODE
1bd55598 16685 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 16686#else
1bd55598 16687 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 16688#endif
1bd55598
RD
16689 }
16690 {
16691 if (temp1)
16692 delete arg1;
16693 }
16694 return resultobj;
16695fail:
16696 {
16697 if (temp1)
16698 delete arg1;
16699 }
16700 return NULL;
5e483524
RD
16701}
16702
16703
1bd55598 16704SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
fc46b7f3
RD
16705 PyObject *resultobj = 0;
16706 wxString *arg1 = 0 ;
16707 wxString *arg2 = 0 ;
16708 wxString result;
16709 bool temp1 = false ;
16710 bool temp2 = false ;
16711
16712 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
16713 {
16714 arg1 = wxString_in_helper(swig_obj[0]);
16715 if (arg1 == NULL) SWIG_fail;
16716 temp1 = true;
16717 }
16718 {
16719 arg2 = wxString_in_helper(swig_obj[1]);
16720 if (arg2 == NULL) SWIG_fail;
16721 temp2 = true;
16722 }
16723 {
16724 PyThreadState* __tstate = wxPyBeginAllowThreads();
16725 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
16726 wxPyEndAllowThreads(__tstate);
16727 if (PyErr_Occurred()) SWIG_fail;
16728 }
16729 {
16730#if wxUSE_UNICODE
16731 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16732#else
16733 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16734#endif
16735 }
16736 {
16737 if (temp1)
16738 delete arg1;
16739 }
16740 {
16741 if (temp2)
16742 delete arg2;
16743 }
16744 return resultobj;
16745fail:
16746 {
16747 if (temp1)
16748 delete arg1;
16749 }
16750 {
16751 if (temp2)
16752 delete arg2;
16753 }
16754 return NULL;
16755}
16756
16757
16758SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
1bd55598
RD
16759 PyObject *resultobj = 0;
16760 wxString *arg1 = 0 ;
16761 wxString *arg2 = 0 ;
16762 size_t arg3 ;
16763 wxString result;
16764 bool temp1 = false ;
16765 bool temp2 = false ;
16766 size_t val3 ;
16767 int ecode3 = 0 ;
16768
16769 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
16770 {
16771 arg1 = wxString_in_helper(swig_obj[0]);
16772 if (arg1 == NULL) SWIG_fail;
16773 temp1 = true;
16774 }
16775 {
16776 arg2 = wxString_in_helper(swig_obj[1]);
16777 if (arg2 == NULL) SWIG_fail;
16778 temp2 = true;
16779 }
16780 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16781 if (!SWIG_IsOK(ecode3)) {
16782 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16783 }
16784 arg3 = static_cast< size_t >(val3);
16785 {
16786 PyThreadState* __tstate = wxPyBeginAllowThreads();
16787 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
16788 wxPyEndAllowThreads(__tstate);
16789 if (PyErr_Occurred()) SWIG_fail;
16790 }
16791 {
36ed4f51 16792#if wxUSE_UNICODE
1bd55598 16793 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 16794#else
1bd55598 16795 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 16796#endif
1bd55598
RD
16797 }
16798 {
16799 if (temp1)
16800 delete arg1;
16801 }
16802 {
16803 if (temp2)
16804 delete arg2;
16805 }
16806 return resultobj;
16807fail:
16808 {
16809 if (temp1)
16810 delete arg1;
16811 }
16812 {
16813 if (temp2)
16814 delete arg2;
16815 }
16816 return NULL;
d55e5bfc
RD
16817}
16818
16819
fc46b7f3
RD
16820SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16821 PyObject *resultobj = 0;
16822 wxString *arg1 = 0 ;
16823 wxString *arg2 = 0 ;
16824 size_t arg3 ;
16825 wxString *arg4 = 0 ;
16826 wxString result;
16827 bool temp1 = false ;
16828 bool temp2 = false ;
16829 size_t val3 ;
16830 int ecode3 = 0 ;
16831 bool temp4 = false ;
16832
16833 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
16834 {
16835 arg1 = wxString_in_helper(swig_obj[0]);
16836 if (arg1 == NULL) SWIG_fail;
16837 temp1 = true;
16838 }
16839 {
16840 arg2 = wxString_in_helper(swig_obj[1]);
16841 if (arg2 == NULL) SWIG_fail;
16842 temp2 = true;
16843 }
16844 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16845 if (!SWIG_IsOK(ecode3)) {
16846 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16847 }
16848 arg3 = static_cast< size_t >(val3);
16849 {
16850 arg4 = wxString_in_helper(swig_obj[3]);
16851 if (arg4 == NULL) SWIG_fail;
16852 temp4 = true;
16853 }
16854 {
16855 PyThreadState* __tstate = wxPyBeginAllowThreads();
16856 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
16857 wxPyEndAllowThreads(__tstate);
16858 if (PyErr_Occurred()) SWIG_fail;
16859 }
16860 {
16861#if wxUSE_UNICODE
16862 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16863#else
16864 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16865#endif
16866 }
16867 {
16868 if (temp1)
16869 delete arg1;
16870 }
16871 {
16872 if (temp2)
16873 delete arg2;
16874 }
16875 {
16876 if (temp4)
16877 delete arg4;
16878 }
16879 return resultobj;
16880fail:
16881 {
16882 if (temp1)
16883 delete arg1;
16884 }
16885 {
16886 if (temp2)
16887 delete arg2;
16888 }
16889 {
16890 if (temp4)
16891 delete arg4;
16892 }
16893 return NULL;
16894}
16895
16896
1bd55598
RD
16897SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
16898 int argc;
fc46b7f3 16899 PyObject *argv[5];
1bd55598 16900
fc46b7f3 16901 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
1bd55598
RD
16902 --argc;
16903 if (argc == 1) {
16904 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
16905 }
fc46b7f3 16906 if (argc == 2) {
1bd55598
RD
16907 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
16908 }
fc46b7f3
RD
16909 if (argc == 3) {
16910 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
16911 }
16912 if (argc == 4) {
16913 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
16914 }
1bd55598
RD
16915
16916fail:
16917 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
16918 return NULL;
d55e5bfc
RD
16919}
16920
16921
1bd55598
RD
16922SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16923 PyObject *resultobj = 0;
16924 wxEncodingConverter *result = 0 ;
16925
16926 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
16927 {
16928 PyThreadState* __tstate = wxPyBeginAllowThreads();
16929 result = (wxEncodingConverter *)new wxEncodingConverter();
16930 wxPyEndAllowThreads(__tstate);
16931 if (PyErr_Occurred()) SWIG_fail;
16932 }
16933 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
16934 return resultobj;
16935fail:
16936 return NULL;
d55e5bfc
RD
16937}
16938
16939
1bd55598
RD
16940SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16941 PyObject *resultobj = 0;
16942 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16943 void *argp1 = 0 ;
16944 int res1 = 0 ;
16945 PyObject *swig_obj[1] ;
16946
16947 if (!args) SWIG_fail;
16948 swig_obj[0] = args;
16949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
16950 if (!SWIG_IsOK(res1)) {
16951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16952 }
16953 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16954 {
16955 PyThreadState* __tstate = wxPyBeginAllowThreads();
16956 delete arg1;
d55e5bfc 16957
1bd55598
RD
16958 wxPyEndAllowThreads(__tstate);
16959 if (PyErr_Occurred()) SWIG_fail;
16960 }
16961 resultobj = SWIG_Py_Void();
16962 return resultobj;
16963fail:
16964 return NULL;
16965}
16966
16967
16968SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16969 PyObject *resultobj = 0;
16970 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16971 wxFontEncoding arg2 ;
16972 wxFontEncoding arg3 ;
16973 int arg4 = (int) wxCONVERT_STRICT ;
16974 bool result;
16975 void *argp1 = 0 ;
16976 int res1 = 0 ;
16977 int val2 ;
16978 int ecode2 = 0 ;
16979 int val3 ;
16980 int ecode3 = 0 ;
16981 int val4 ;
16982 int ecode4 = 0 ;
16983 PyObject * obj0 = 0 ;
16984 PyObject * obj1 = 0 ;
16985 PyObject * obj2 = 0 ;
16986 PyObject * obj3 = 0 ;
16987 char * kwnames[] = {
16988 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
16989 };
16990
16991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
16993 if (!SWIG_IsOK(res1)) {
16994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16995 }
16996 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16997 ecode2 = SWIG_AsVal_int(obj1, &val2);
16998 if (!SWIG_IsOK(ecode2)) {
16999 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17000 }
17001 arg2 = static_cast< wxFontEncoding >(val2);
17002 ecode3 = SWIG_AsVal_int(obj2, &val3);
17003 if (!SWIG_IsOK(ecode3)) {
17004 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17005 }
17006 arg3 = static_cast< wxFontEncoding >(val3);
17007 if (obj3) {
17008 ecode4 = SWIG_AsVal_int(obj3, &val4);
17009 if (!SWIG_IsOK(ecode4)) {
17010 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17011 }
17012 arg4 = static_cast< int >(val4);
17013 }
17014 {
17015 PyThreadState* __tstate = wxPyBeginAllowThreads();
17016 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17017 wxPyEndAllowThreads(__tstate);
17018 if (PyErr_Occurred()) SWIG_fail;
17019 }
17020 {
17021 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17022 }
17023 return resultobj;
17024fail:
17025 return NULL;
17026}
17027
17028
17029SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17030 PyObject *resultobj = 0;
17031 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17032 wxString *arg2 = 0 ;
17033 wxString result;
17034 void *argp1 = 0 ;
17035 int res1 = 0 ;
17036 bool temp2 = false ;
17037 PyObject * obj0 = 0 ;
17038 PyObject * obj1 = 0 ;
17039 char * kwnames[] = {
17040 (char *) "self",(char *) "input", NULL
17041 };
17042
17043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17045 if (!SWIG_IsOK(res1)) {
17046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17047 }
17048 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17049 {
17050 arg2 = wxString_in_helper(obj1);
17051 if (arg2 == NULL) SWIG_fail;
17052 temp2 = true;
17053 }
17054 {
17055 PyThreadState* __tstate = wxPyBeginAllowThreads();
17056 result = (arg1)->Convert((wxString const &)*arg2);
17057 wxPyEndAllowThreads(__tstate);
17058 if (PyErr_Occurred()) SWIG_fail;
17059 }
17060 {
d55e5bfc 17061#if wxUSE_UNICODE
1bd55598 17062 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 17063#else
1bd55598 17064 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 17065#endif
1bd55598
RD
17066 }
17067 {
17068 if (temp2)
17069 delete arg2;
17070 }
17071 return resultobj;
17072fail:
17073 {
17074 if (temp2)
17075 delete arg2;
17076 }
17077 return NULL;
17078}
17079
17080
17081SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17082 PyObject *resultobj = 0;
17083 wxFontEncoding arg1 ;
17084 int arg2 = (int) wxPLATFORM_CURRENT ;
17085 wxFontEncodingArray result;
17086 int val1 ;
17087 int ecode1 = 0 ;
17088 int val2 ;
17089 int ecode2 = 0 ;
17090 PyObject * obj0 = 0 ;
17091 PyObject * obj1 = 0 ;
17092 char * kwnames[] = {
17093 (char *) "enc",(char *) "platform", NULL
17094 };
17095
17096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17097 ecode1 = SWIG_AsVal_int(obj0, &val1);
17098 if (!SWIG_IsOK(ecode1)) {
17099 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17100 }
17101 arg1 = static_cast< wxFontEncoding >(val1);
17102 if (obj1) {
17103 ecode2 = SWIG_AsVal_int(obj1, &val2);
17104 if (!SWIG_IsOK(ecode2)) {
17105 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17106 }
17107 arg2 = static_cast< int >(val2);
17108 }
17109 {
17110 PyThreadState* __tstate = wxPyBeginAllowThreads();
17111 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17112 wxPyEndAllowThreads(__tstate);
17113 if (PyErr_Occurred()) SWIG_fail;
17114 }
17115 {
17116 resultobj = PyList_New(0);
17117 for (size_t i=0; i < (&result)->GetCount(); i++) {
17118 PyObject* number = PyInt_FromLong((&result)->Item(i));
17119 PyList_Append(resultobj, number);
17120 Py_DECREF(number);
d55e5bfc 17121 }
1bd55598
RD
17122 }
17123 return resultobj;
17124fail:
17125 return NULL;
d55e5bfc
RD
17126}
17127
17128
1bd55598
RD
17129SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17130 PyObject *resultobj = 0;
17131 wxFontEncoding arg1 ;
17132 wxFontEncodingArray result;
17133 int val1 ;
17134 int ecode1 = 0 ;
17135 PyObject * obj0 = 0 ;
17136 char * kwnames[] = {
17137 (char *) "enc", NULL
17138 };
17139
17140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17141 ecode1 = SWIG_AsVal_int(obj0, &val1);
17142 if (!SWIG_IsOK(ecode1)) {
17143 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17144 }
17145 arg1 = static_cast< wxFontEncoding >(val1);
17146 {
17147 PyThreadState* __tstate = wxPyBeginAllowThreads();
17148 result = wxEncodingConverter::GetAllEquivalents(arg1);
17149 wxPyEndAllowThreads(__tstate);
17150 if (PyErr_Occurred()) SWIG_fail;
17151 }
17152 {
17153 resultobj = PyList_New(0);
17154 for (size_t i=0; i < (&result)->GetCount(); i++) {
17155 PyObject* number = PyInt_FromLong((&result)->Item(i));
17156 PyList_Append(resultobj, number);
17157 Py_DECREF(number);
d55e5bfc 17158 }
1bd55598
RD
17159 }
17160 return resultobj;
17161fail:
17162 return NULL;
17163}
17164
17165
17166SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17167 PyObject *resultobj = 0;
17168 wxFontEncoding arg1 ;
17169 wxFontEncoding arg2 ;
17170 bool result;
17171 int val1 ;
17172 int ecode1 = 0 ;
17173 int val2 ;
17174 int ecode2 = 0 ;
17175 PyObject * obj0 = 0 ;
17176 PyObject * obj1 = 0 ;
17177 char * kwnames[] = {
17178 (char *) "encIn",(char *) "encOut", NULL
17179 };
17180
17181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17182 ecode1 = SWIG_AsVal_int(obj0, &val1);
17183 if (!SWIG_IsOK(ecode1)) {
17184 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17185 }
17186 arg1 = static_cast< wxFontEncoding >(val1);
17187 ecode2 = SWIG_AsVal_int(obj1, &val2);
17188 if (!SWIG_IsOK(ecode2)) {
17189 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17190 }
17191 arg2 = static_cast< wxFontEncoding >(val2);
17192 {
17193 PyThreadState* __tstate = wxPyBeginAllowThreads();
17194 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17195 wxPyEndAllowThreads(__tstate);
17196 if (PyErr_Occurred()) SWIG_fail;
17197 }
17198 {
17199 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17200 }
17201 return resultobj;
17202fail:
17203 return NULL;
d55e5bfc
RD
17204}
17205
17206
1bd55598
RD
17207SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17208 PyObject *obj;
17209 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17210 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17211 return SWIG_Py_Void();
d55e5bfc
RD
17212}
17213
1bd55598
RD
17214SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17215 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
17216}
17217
1bd55598
RD
17218SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17219 PyObject *resultobj = 0;
17220 wxDC *arg1 = (wxDC *) 0 ;
17221 void *argp1 = 0 ;
17222 int res1 = 0 ;
17223 PyObject *swig_obj[1] ;
17224
17225 if (!args) SWIG_fail;
17226 swig_obj[0] = args;
17227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17228 if (!SWIG_IsOK(res1)) {
17229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17230 }
17231 arg1 = reinterpret_cast< wxDC * >(argp1);
17232 {
17233 PyThreadState* __tstate = wxPyBeginAllowThreads();
17234 delete arg1;
d55e5bfc 17235
1bd55598
RD
17236 wxPyEndAllowThreads(__tstate);
17237 if (PyErr_Occurred()) SWIG_fail;
17238 }
17239 resultobj = SWIG_Py_Void();
17240 return resultobj;
17241fail:
17242 return NULL;
17243}
17244
17245
17246SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17247 PyObject *resultobj = 0;
17248 wxDC *arg1 = (wxDC *) 0 ;
17249 int arg2 ;
17250 int arg3 ;
17251 wxColour *arg4 = 0 ;
17252 int arg5 = (int) wxFLOOD_SURFACE ;
17253 bool result;
17254 void *argp1 = 0 ;
17255 int res1 = 0 ;
17256 int val2 ;
17257 int ecode2 = 0 ;
17258 int val3 ;
17259 int ecode3 = 0 ;
17260 wxColour temp4 ;
17261 int val5 ;
17262 int ecode5 = 0 ;
17263 PyObject * obj0 = 0 ;
17264 PyObject * obj1 = 0 ;
17265 PyObject * obj2 = 0 ;
17266 PyObject * obj3 = 0 ;
17267 PyObject * obj4 = 0 ;
17268 char * kwnames[] = {
17269 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17270 };
17271
17272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17274 if (!SWIG_IsOK(res1)) {
17275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17276 }
17277 arg1 = reinterpret_cast< wxDC * >(argp1);
17278 ecode2 = SWIG_AsVal_int(obj1, &val2);
17279 if (!SWIG_IsOK(ecode2)) {
17280 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17281 }
17282 arg2 = static_cast< int >(val2);
17283 ecode3 = SWIG_AsVal_int(obj2, &val3);
17284 if (!SWIG_IsOK(ecode3)) {
17285 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17286 }
17287 arg3 = static_cast< int >(val3);
17288 {
17289 arg4 = &temp4;
17290 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17291 }
17292 if (obj4) {
17293 ecode5 = SWIG_AsVal_int(obj4, &val5);
17294 if (!SWIG_IsOK(ecode5)) {
17295 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17296 }
17297 arg5 = static_cast< int >(val5);
17298 }
17299 {
17300 PyThreadState* __tstate = wxPyBeginAllowThreads();
17301 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17302 wxPyEndAllowThreads(__tstate);
17303 if (PyErr_Occurred()) SWIG_fail;
17304 }
17305 {
17306 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17307 }
17308 return resultobj;
17309fail:
17310 return NULL;
17311}
17312
17313
17314SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17315 PyObject *resultobj = 0;
17316 wxDC *arg1 = (wxDC *) 0 ;
17317 wxPoint *arg2 = 0 ;
17318 wxColour *arg3 = 0 ;
17319 int arg4 = (int) wxFLOOD_SURFACE ;
17320 bool result;
17321 void *argp1 = 0 ;
17322 int res1 = 0 ;
17323 wxPoint temp2 ;
17324 wxColour temp3 ;
17325 int val4 ;
17326 int ecode4 = 0 ;
17327 PyObject * obj0 = 0 ;
17328 PyObject * obj1 = 0 ;
17329 PyObject * obj2 = 0 ;
17330 PyObject * obj3 = 0 ;
17331 char * kwnames[] = {
17332 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17333 };
17334
17335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17337 if (!SWIG_IsOK(res1)) {
17338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17339 }
17340 arg1 = reinterpret_cast< wxDC * >(argp1);
17341 {
17342 arg2 = &temp2;
17343 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17344 }
17345 {
17346 arg3 = &temp3;
17347 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17348 }
17349 if (obj3) {
17350 ecode4 = SWIG_AsVal_int(obj3, &val4);
17351 if (!SWIG_IsOK(ecode4)) {
17352 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17353 }
17354 arg4 = static_cast< int >(val4);
17355 }
17356 {
17357 PyThreadState* __tstate = wxPyBeginAllowThreads();
17358 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17359 wxPyEndAllowThreads(__tstate);
17360 if (PyErr_Occurred()) SWIG_fail;
17361 }
17362 {
17363 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17364 }
17365 return resultobj;
17366fail:
17367 return NULL;
17368}
17369
17370
17371SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17372 PyObject *resultobj = 0;
17373 wxDC *arg1 = (wxDC *) 0 ;
17374 wxRect *arg2 = 0 ;
17375 wxColour *arg3 = 0 ;
17376 wxColour *arg4 = 0 ;
17377 wxPoint *arg5 = 0 ;
17378 void *argp1 = 0 ;
17379 int res1 = 0 ;
17380 wxRect temp2 ;
17381 wxColour temp3 ;
17382 wxColour temp4 ;
17383 wxPoint temp5 ;
17384 PyObject * obj0 = 0 ;
17385 PyObject * obj1 = 0 ;
17386 PyObject * obj2 = 0 ;
17387 PyObject * obj3 = 0 ;
17388 PyObject * obj4 = 0 ;
17389 char * kwnames[] = {
17390 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17391 };
17392
17393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17395 if (!SWIG_IsOK(res1)) {
17396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17397 }
17398 arg1 = reinterpret_cast< wxDC * >(argp1);
17399 {
17400 arg2 = &temp2;
17401 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17402 }
17403 {
17404 arg3 = &temp3;
17405 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17406 }
17407 {
17408 arg4 = &temp4;
17409 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17410 }
17411 {
17412 arg5 = &temp5;
17413 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17414 }
17415 {
17416 PyThreadState* __tstate = wxPyBeginAllowThreads();
17417 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17418 wxPyEndAllowThreads(__tstate);
17419 if (PyErr_Occurred()) SWIG_fail;
17420 }
17421 resultobj = SWIG_Py_Void();
17422 return resultobj;
17423fail:
17424 return NULL;
17425}
17426
17427
17428SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17429 PyObject *resultobj = 0;
17430 wxDC *arg1 = (wxDC *) 0 ;
17431 wxRect *arg2 = 0 ;
17432 wxColour *arg3 = 0 ;
17433 wxColour *arg4 = 0 ;
17434 wxDirection arg5 = (wxDirection) wxEAST ;
17435 void *argp1 = 0 ;
17436 int res1 = 0 ;
17437 wxRect temp2 ;
17438 wxColour temp3 ;
17439 wxColour temp4 ;
17440 int val5 ;
17441 int ecode5 = 0 ;
17442 PyObject * obj0 = 0 ;
17443 PyObject * obj1 = 0 ;
17444 PyObject * obj2 = 0 ;
17445 PyObject * obj3 = 0 ;
17446 PyObject * obj4 = 0 ;
17447 char * kwnames[] = {
17448 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17449 };
17450
17451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17453 if (!SWIG_IsOK(res1)) {
17454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17455 }
17456 arg1 = reinterpret_cast< wxDC * >(argp1);
17457 {
17458 arg2 = &temp2;
17459 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17460 }
17461 {
17462 arg3 = &temp3;
17463 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17464 }
17465 {
17466 arg4 = &temp4;
17467 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17468 }
17469 if (obj4) {
17470 ecode5 = SWIG_AsVal_int(obj4, &val5);
17471 if (!SWIG_IsOK(ecode5)) {
17472 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17473 }
17474 arg5 = static_cast< wxDirection >(val5);
17475 }
17476 {
17477 PyThreadState* __tstate = wxPyBeginAllowThreads();
17478 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17479 wxPyEndAllowThreads(__tstate);
17480 if (PyErr_Occurred()) SWIG_fail;
17481 }
17482 resultobj = SWIG_Py_Void();
17483 return resultobj;
17484fail:
17485 return NULL;
17486}
17487
17488
17489SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17490 PyObject *resultobj = 0;
17491 wxDC *arg1 = (wxDC *) 0 ;
17492 int arg2 ;
17493 int arg3 ;
17494 wxColour result;
17495 void *argp1 = 0 ;
17496 int res1 = 0 ;
17497 int val2 ;
17498 int ecode2 = 0 ;
17499 int val3 ;
17500 int ecode3 = 0 ;
17501 PyObject * obj0 = 0 ;
17502 PyObject * obj1 = 0 ;
17503 PyObject * obj2 = 0 ;
17504 char * kwnames[] = {
17505 (char *) "self",(char *) "x",(char *) "y", NULL
17506 };
17507
17508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17510 if (!SWIG_IsOK(res1)) {
17511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17512 }
17513 arg1 = reinterpret_cast< wxDC * >(argp1);
17514 ecode2 = SWIG_AsVal_int(obj1, &val2);
17515 if (!SWIG_IsOK(ecode2)) {
17516 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17517 }
17518 arg2 = static_cast< int >(val2);
17519 ecode3 = SWIG_AsVal_int(obj2, &val3);
17520 if (!SWIG_IsOK(ecode3)) {
17521 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17522 }
17523 arg3 = static_cast< int >(val3);
17524 {
17525 PyThreadState* __tstate = wxPyBeginAllowThreads();
17526 result = wxDC_GetPixel(arg1,arg2,arg3);
17527 wxPyEndAllowThreads(__tstate);
17528 if (PyErr_Occurred()) SWIG_fail;
17529 }
17530 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17531 return resultobj;
17532fail:
17533 return NULL;
17534}
17535
17536
17537SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17538 PyObject *resultobj = 0;
17539 wxDC *arg1 = (wxDC *) 0 ;
17540 wxPoint *arg2 = 0 ;
17541 wxColour result;
17542 void *argp1 = 0 ;
17543 int res1 = 0 ;
17544 wxPoint temp2 ;
17545 PyObject * obj0 = 0 ;
17546 PyObject * obj1 = 0 ;
17547 char * kwnames[] = {
17548 (char *) "self",(char *) "pt", NULL
17549 };
17550
17551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17553 if (!SWIG_IsOK(res1)) {
17554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17555 }
17556 arg1 = reinterpret_cast< wxDC * >(argp1);
17557 {
17558 arg2 = &temp2;
17559 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17560 }
17561 {
17562 PyThreadState* __tstate = wxPyBeginAllowThreads();
17563 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17564 wxPyEndAllowThreads(__tstate);
17565 if (PyErr_Occurred()) SWIG_fail;
17566 }
17567 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17568 return resultobj;
17569fail:
17570 return NULL;
17571}
17572
17573
17574SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17575 PyObject *resultobj = 0;
17576 wxDC *arg1 = (wxDC *) 0 ;
17577 int arg2 ;
17578 int arg3 ;
17579 int arg4 ;
17580 int arg5 ;
17581 void *argp1 = 0 ;
17582 int res1 = 0 ;
17583 int val2 ;
17584 int ecode2 = 0 ;
17585 int val3 ;
17586 int ecode3 = 0 ;
17587 int val4 ;
17588 int ecode4 = 0 ;
17589 int val5 ;
17590 int ecode5 = 0 ;
17591 PyObject * obj0 = 0 ;
17592 PyObject * obj1 = 0 ;
17593 PyObject * obj2 = 0 ;
17594 PyObject * obj3 = 0 ;
17595 PyObject * obj4 = 0 ;
17596 char * kwnames[] = {
17597 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17598 };
17599
17600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17602 if (!SWIG_IsOK(res1)) {
17603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17604 }
17605 arg1 = reinterpret_cast< wxDC * >(argp1);
17606 ecode2 = SWIG_AsVal_int(obj1, &val2);
17607 if (!SWIG_IsOK(ecode2)) {
17608 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17609 }
17610 arg2 = static_cast< int >(val2);
17611 ecode3 = SWIG_AsVal_int(obj2, &val3);
17612 if (!SWIG_IsOK(ecode3)) {
17613 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
17614 }
17615 arg3 = static_cast< int >(val3);
17616 ecode4 = SWIG_AsVal_int(obj3, &val4);
17617 if (!SWIG_IsOK(ecode4)) {
17618 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
17619 }
17620 arg4 = static_cast< int >(val4);
17621 ecode5 = SWIG_AsVal_int(obj4, &val5);
17622 if (!SWIG_IsOK(ecode5)) {
17623 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
17624 }
17625 arg5 = static_cast< int >(val5);
17626 {
17627 PyThreadState* __tstate = wxPyBeginAllowThreads();
17628 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
17629 wxPyEndAllowThreads(__tstate);
17630 if (PyErr_Occurred()) SWIG_fail;
17631 }
17632 resultobj = SWIG_Py_Void();
17633 return resultobj;
17634fail:
17635 return NULL;
17636}
17637
17638
17639SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17640 PyObject *resultobj = 0;
17641 wxDC *arg1 = (wxDC *) 0 ;
17642 wxPoint *arg2 = 0 ;
17643 wxPoint *arg3 = 0 ;
17644 void *argp1 = 0 ;
17645 int res1 = 0 ;
17646 wxPoint temp2 ;
17647 wxPoint temp3 ;
17648 PyObject * obj0 = 0 ;
17649 PyObject * obj1 = 0 ;
17650 PyObject * obj2 = 0 ;
17651 char * kwnames[] = {
17652 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
17653 };
17654
17655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17657 if (!SWIG_IsOK(res1)) {
17658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
17659 }
17660 arg1 = reinterpret_cast< wxDC * >(argp1);
17661 {
17662 arg2 = &temp2;
17663 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17664 }
17665 {
17666 arg3 = &temp3;
17667 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17668 }
17669 {
17670 PyThreadState* __tstate = wxPyBeginAllowThreads();
17671 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
17672 wxPyEndAllowThreads(__tstate);
17673 if (PyErr_Occurred()) SWIG_fail;
17674 }
17675 resultobj = SWIG_Py_Void();
17676 return resultobj;
17677fail:
17678 return NULL;
17679}
17680
17681
17682SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17683 PyObject *resultobj = 0;
17684 wxDC *arg1 = (wxDC *) 0 ;
17685 int arg2 ;
17686 int arg3 ;
17687 void *argp1 = 0 ;
17688 int res1 = 0 ;
17689 int val2 ;
17690 int ecode2 = 0 ;
17691 int val3 ;
17692 int ecode3 = 0 ;
17693 PyObject * obj0 = 0 ;
17694 PyObject * obj1 = 0 ;
17695 PyObject * obj2 = 0 ;
17696 char * kwnames[] = {
17697 (char *) "self",(char *) "x",(char *) "y", NULL
17698 };
17699
17700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17702 if (!SWIG_IsOK(res1)) {
17703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
17704 }
17705 arg1 = reinterpret_cast< wxDC * >(argp1);
17706 ecode2 = SWIG_AsVal_int(obj1, &val2);
17707 if (!SWIG_IsOK(ecode2)) {
17708 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
17709 }
17710 arg2 = static_cast< int >(val2);
17711 ecode3 = SWIG_AsVal_int(obj2, &val3);
17712 if (!SWIG_IsOK(ecode3)) {
17713 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
17714 }
17715 arg3 = static_cast< int >(val3);
17716 {
17717 PyThreadState* __tstate = wxPyBeginAllowThreads();
17718 (arg1)->CrossHair(arg2,arg3);
17719 wxPyEndAllowThreads(__tstate);
17720 if (PyErr_Occurred()) SWIG_fail;
17721 }
17722 resultobj = SWIG_Py_Void();
17723 return resultobj;
17724fail:
17725 return NULL;
17726}
17727
17728
17729SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17730 PyObject *resultobj = 0;
17731 wxDC *arg1 = (wxDC *) 0 ;
17732 wxPoint *arg2 = 0 ;
17733 void *argp1 = 0 ;
17734 int res1 = 0 ;
17735 wxPoint temp2 ;
17736 PyObject * obj0 = 0 ;
17737 PyObject * obj1 = 0 ;
17738 char * kwnames[] = {
17739 (char *) "self",(char *) "pt", NULL
17740 };
17741
17742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17744 if (!SWIG_IsOK(res1)) {
17745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17746 }
17747 arg1 = reinterpret_cast< wxDC * >(argp1);
17748 {
17749 arg2 = &temp2;
17750 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17751 }
17752 {
17753 PyThreadState* __tstate = wxPyBeginAllowThreads();
17754 (arg1)->CrossHair((wxPoint const &)*arg2);
17755 wxPyEndAllowThreads(__tstate);
17756 if (PyErr_Occurred()) SWIG_fail;
17757 }
17758 resultobj = SWIG_Py_Void();
17759 return resultobj;
17760fail:
17761 return NULL;
17762}
17763
17764
17765SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17766 PyObject *resultobj = 0;
17767 wxDC *arg1 = (wxDC *) 0 ;
17768 int arg2 ;
17769 int arg3 ;
17770 int arg4 ;
17771 int arg5 ;
17772 int arg6 ;
17773 int arg7 ;
17774 void *argp1 = 0 ;
17775 int res1 = 0 ;
17776 int val2 ;
17777 int ecode2 = 0 ;
17778 int val3 ;
17779 int ecode3 = 0 ;
17780 int val4 ;
17781 int ecode4 = 0 ;
17782 int val5 ;
17783 int ecode5 = 0 ;
17784 int val6 ;
17785 int ecode6 = 0 ;
17786 int val7 ;
17787 int ecode7 = 0 ;
17788 PyObject * obj0 = 0 ;
17789 PyObject * obj1 = 0 ;
17790 PyObject * obj2 = 0 ;
17791 PyObject * obj3 = 0 ;
17792 PyObject * obj4 = 0 ;
17793 PyObject * obj5 = 0 ;
17794 PyObject * obj6 = 0 ;
17795 char * kwnames[] = {
17796 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
17797 };
17798
17799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
17800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17801 if (!SWIG_IsOK(res1)) {
17802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
17803 }
17804 arg1 = reinterpret_cast< wxDC * >(argp1);
17805 ecode2 = SWIG_AsVal_int(obj1, &val2);
17806 if (!SWIG_IsOK(ecode2)) {
17807 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
17808 }
17809 arg2 = static_cast< int >(val2);
17810 ecode3 = SWIG_AsVal_int(obj2, &val3);
17811 if (!SWIG_IsOK(ecode3)) {
17812 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
17813 }
17814 arg3 = static_cast< int >(val3);
17815 ecode4 = SWIG_AsVal_int(obj3, &val4);
17816 if (!SWIG_IsOK(ecode4)) {
17817 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
17818 }
17819 arg4 = static_cast< int >(val4);
17820 ecode5 = SWIG_AsVal_int(obj4, &val5);
17821 if (!SWIG_IsOK(ecode5)) {
17822 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
17823 }
17824 arg5 = static_cast< int >(val5);
17825 ecode6 = SWIG_AsVal_int(obj5, &val6);
17826 if (!SWIG_IsOK(ecode6)) {
17827 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
17828 }
17829 arg6 = static_cast< int >(val6);
17830 ecode7 = SWIG_AsVal_int(obj6, &val7);
17831 if (!SWIG_IsOK(ecode7)) {
17832 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
17833 }
17834 arg7 = static_cast< int >(val7);
17835 {
17836 PyThreadState* __tstate = wxPyBeginAllowThreads();
17837 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
17838 wxPyEndAllowThreads(__tstate);
17839 if (PyErr_Occurred()) SWIG_fail;
17840 }
17841 resultobj = SWIG_Py_Void();
17842 return resultobj;
17843fail:
17844 return NULL;
17845}
17846
17847
17848SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17849 PyObject *resultobj = 0;
17850 wxDC *arg1 = (wxDC *) 0 ;
17851 wxPoint *arg2 = 0 ;
17852 wxPoint *arg3 = 0 ;
17853 wxPoint *arg4 = 0 ;
17854 void *argp1 = 0 ;
17855 int res1 = 0 ;
17856 wxPoint temp2 ;
17857 wxPoint temp3 ;
17858 wxPoint temp4 ;
17859 PyObject * obj0 = 0 ;
17860 PyObject * obj1 = 0 ;
17861 PyObject * obj2 = 0 ;
17862 PyObject * obj3 = 0 ;
17863 char * kwnames[] = {
17864 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
17865 };
17866
17867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17869 if (!SWIG_IsOK(res1)) {
17870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17871 }
17872 arg1 = reinterpret_cast< wxDC * >(argp1);
17873 {
17874 arg2 = &temp2;
17875 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17876 }
17877 {
17878 arg3 = &temp3;
17879 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17880 }
17881 {
17882 arg4 = &temp4;
17883 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17884 }
17885 {
17886 PyThreadState* __tstate = wxPyBeginAllowThreads();
17887 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
17888 wxPyEndAllowThreads(__tstate);
17889 if (PyErr_Occurred()) SWIG_fail;
17890 }
17891 resultobj = SWIG_Py_Void();
17892 return resultobj;
17893fail:
17894 return NULL;
17895}
17896
17897
17898SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17899 PyObject *resultobj = 0;
17900 wxDC *arg1 = (wxDC *) 0 ;
17901 int arg2 ;
17902 int arg3 ;
17903 int arg4 ;
17904 int arg5 ;
17905 void *argp1 = 0 ;
17906 int res1 = 0 ;
17907 int val2 ;
17908 int ecode2 = 0 ;
17909 int val3 ;
17910 int ecode3 = 0 ;
17911 int val4 ;
17912 int ecode4 = 0 ;
17913 int val5 ;
17914 int ecode5 = 0 ;
17915 PyObject * obj0 = 0 ;
17916 PyObject * obj1 = 0 ;
17917 PyObject * obj2 = 0 ;
17918 PyObject * obj3 = 0 ;
17919 PyObject * obj4 = 0 ;
17920 char * kwnames[] = {
17921 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
17922 };
17923
17924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17926 if (!SWIG_IsOK(res1)) {
17927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
17928 }
17929 arg1 = reinterpret_cast< wxDC * >(argp1);
17930 ecode2 = SWIG_AsVal_int(obj1, &val2);
17931 if (!SWIG_IsOK(ecode2)) {
17932 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
17933 }
17934 arg2 = static_cast< int >(val2);
17935 ecode3 = SWIG_AsVal_int(obj2, &val3);
17936 if (!SWIG_IsOK(ecode3)) {
17937 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
17938 }
17939 arg3 = static_cast< int >(val3);
17940 ecode4 = SWIG_AsVal_int(obj3, &val4);
17941 if (!SWIG_IsOK(ecode4)) {
17942 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
17943 }
17944 arg4 = static_cast< int >(val4);
17945 ecode5 = SWIG_AsVal_int(obj4, &val5);
17946 if (!SWIG_IsOK(ecode5)) {
17947 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
17948 }
17949 arg5 = static_cast< int >(val5);
17950 {
17951 PyThreadState* __tstate = wxPyBeginAllowThreads();
17952 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
17953 wxPyEndAllowThreads(__tstate);
17954 if (PyErr_Occurred()) SWIG_fail;
17955 }
17956 resultobj = SWIG_Py_Void();
17957 return resultobj;
17958fail:
17959 return NULL;
17960}
17961
17962
17963SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17964 PyObject *resultobj = 0;
17965 wxDC *arg1 = (wxDC *) 0 ;
17966 wxRect *arg2 = 0 ;
17967 void *argp1 = 0 ;
17968 int res1 = 0 ;
17969 wxRect temp2 ;
17970 PyObject * obj0 = 0 ;
17971 PyObject * obj1 = 0 ;
17972 char * kwnames[] = {
17973 (char *) "self",(char *) "rect", NULL
17974 };
17975
17976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
17977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17978 if (!SWIG_IsOK(res1)) {
17979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
17980 }
17981 arg1 = reinterpret_cast< wxDC * >(argp1);
17982 {
17983 arg2 = &temp2;
17984 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17985 }
17986 {
17987 PyThreadState* __tstate = wxPyBeginAllowThreads();
17988 (arg1)->DrawCheckMark((wxRect const &)*arg2);
17989 wxPyEndAllowThreads(__tstate);
17990 if (PyErr_Occurred()) SWIG_fail;
17991 }
17992 resultobj = SWIG_Py_Void();
17993 return resultobj;
17994fail:
17995 return NULL;
17996}
17997
17998
17999SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18000 PyObject *resultobj = 0;
18001 wxDC *arg1 = (wxDC *) 0 ;
18002 int arg2 ;
18003 int arg3 ;
18004 int arg4 ;
18005 int arg5 ;
18006 double arg6 ;
18007 double arg7 ;
18008 void *argp1 = 0 ;
18009 int res1 = 0 ;
18010 int val2 ;
18011 int ecode2 = 0 ;
18012 int val3 ;
18013 int ecode3 = 0 ;
18014 int val4 ;
18015 int ecode4 = 0 ;
18016 int val5 ;
18017 int ecode5 = 0 ;
18018 double val6 ;
18019 int ecode6 = 0 ;
18020 double val7 ;
18021 int ecode7 = 0 ;
18022 PyObject * obj0 = 0 ;
18023 PyObject * obj1 = 0 ;
18024 PyObject * obj2 = 0 ;
18025 PyObject * obj3 = 0 ;
18026 PyObject * obj4 = 0 ;
18027 PyObject * obj5 = 0 ;
18028 PyObject * obj6 = 0 ;
18029 char * kwnames[] = {
18030 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18031 };
18032
18033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18035 if (!SWIG_IsOK(res1)) {
18036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18037 }
18038 arg1 = reinterpret_cast< wxDC * >(argp1);
18039 ecode2 = SWIG_AsVal_int(obj1, &val2);
18040 if (!SWIG_IsOK(ecode2)) {
18041 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18042 }
18043 arg2 = static_cast< int >(val2);
18044 ecode3 = SWIG_AsVal_int(obj2, &val3);
18045 if (!SWIG_IsOK(ecode3)) {
18046 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18047 }
18048 arg3 = static_cast< int >(val3);
18049 ecode4 = SWIG_AsVal_int(obj3, &val4);
18050 if (!SWIG_IsOK(ecode4)) {
18051 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18052 }
18053 arg4 = static_cast< int >(val4);
18054 ecode5 = SWIG_AsVal_int(obj4, &val5);
18055 if (!SWIG_IsOK(ecode5)) {
18056 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18057 }
18058 arg5 = static_cast< int >(val5);
18059 ecode6 = SWIG_AsVal_double(obj5, &val6);
18060 if (!SWIG_IsOK(ecode6)) {
18061 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18062 }
18063 arg6 = static_cast< double >(val6);
18064 ecode7 = SWIG_AsVal_double(obj6, &val7);
18065 if (!SWIG_IsOK(ecode7)) {
18066 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18067 }
18068 arg7 = static_cast< double >(val7);
18069 {
18070 PyThreadState* __tstate = wxPyBeginAllowThreads();
18071 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18072 wxPyEndAllowThreads(__tstate);
18073 if (PyErr_Occurred()) SWIG_fail;
18074 }
18075 resultobj = SWIG_Py_Void();
18076 return resultobj;
18077fail:
18078 return NULL;
18079}
18080
18081
18082SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18083 PyObject *resultobj = 0;
18084 wxDC *arg1 = (wxDC *) 0 ;
18085 wxPoint *arg2 = 0 ;
18086 wxSize *arg3 = 0 ;
18087 double arg4 ;
18088 double arg5 ;
18089 void *argp1 = 0 ;
18090 int res1 = 0 ;
18091 wxPoint temp2 ;
18092 wxSize temp3 ;
18093 double val4 ;
18094 int ecode4 = 0 ;
18095 double val5 ;
18096 int ecode5 = 0 ;
18097 PyObject * obj0 = 0 ;
18098 PyObject * obj1 = 0 ;
18099 PyObject * obj2 = 0 ;
18100 PyObject * obj3 = 0 ;
18101 PyObject * obj4 = 0 ;
18102 char * kwnames[] = {
18103 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18104 };
18105
18106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18108 if (!SWIG_IsOK(res1)) {
18109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18110 }
18111 arg1 = reinterpret_cast< wxDC * >(argp1);
18112 {
18113 arg2 = &temp2;
18114 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18115 }
18116 {
18117 arg3 = &temp3;
18118 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18119 }
18120 ecode4 = SWIG_AsVal_double(obj3, &val4);
18121 if (!SWIG_IsOK(ecode4)) {
18122 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18123 }
18124 arg4 = static_cast< double >(val4);
18125 ecode5 = SWIG_AsVal_double(obj4, &val5);
18126 if (!SWIG_IsOK(ecode5)) {
18127 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18128 }
18129 arg5 = static_cast< double >(val5);
18130 {
18131 PyThreadState* __tstate = wxPyBeginAllowThreads();
18132 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18133 wxPyEndAllowThreads(__tstate);
18134 if (PyErr_Occurred()) SWIG_fail;
18135 }
18136 resultobj = SWIG_Py_Void();
18137 return resultobj;
18138fail:
18139 return NULL;
18140}
18141
18142
18143SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18144 PyObject *resultobj = 0;
18145 wxDC *arg1 = (wxDC *) 0 ;
18146 int arg2 ;
18147 int arg3 ;
18148 void *argp1 = 0 ;
18149 int res1 = 0 ;
18150 int val2 ;
18151 int ecode2 = 0 ;
18152 int val3 ;
18153 int ecode3 = 0 ;
18154 PyObject * obj0 = 0 ;
18155 PyObject * obj1 = 0 ;
18156 PyObject * obj2 = 0 ;
18157 char * kwnames[] = {
18158 (char *) "self",(char *) "x",(char *) "y", NULL
18159 };
18160
18161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18163 if (!SWIG_IsOK(res1)) {
18164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18165 }
18166 arg1 = reinterpret_cast< wxDC * >(argp1);
18167 ecode2 = SWIG_AsVal_int(obj1, &val2);
18168 if (!SWIG_IsOK(ecode2)) {
18169 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18170 }
18171 arg2 = static_cast< int >(val2);
18172 ecode3 = SWIG_AsVal_int(obj2, &val3);
18173 if (!SWIG_IsOK(ecode3)) {
18174 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18175 }
18176 arg3 = static_cast< int >(val3);
18177 {
18178 PyThreadState* __tstate = wxPyBeginAllowThreads();
18179 (arg1)->DrawPoint(arg2,arg3);
18180 wxPyEndAllowThreads(__tstate);
18181 if (PyErr_Occurred()) SWIG_fail;
18182 }
18183 resultobj = SWIG_Py_Void();
18184 return resultobj;
18185fail:
18186 return NULL;
18187}
18188
18189
18190SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18191 PyObject *resultobj = 0;
18192 wxDC *arg1 = (wxDC *) 0 ;
18193 wxPoint *arg2 = 0 ;
18194 void *argp1 = 0 ;
18195 int res1 = 0 ;
18196 wxPoint temp2 ;
18197 PyObject * obj0 = 0 ;
18198 PyObject * obj1 = 0 ;
18199 char * kwnames[] = {
18200 (char *) "self",(char *) "pt", NULL
18201 };
18202
18203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18205 if (!SWIG_IsOK(res1)) {
18206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18207 }
18208 arg1 = reinterpret_cast< wxDC * >(argp1);
18209 {
18210 arg2 = &temp2;
18211 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18212 }
18213 {
18214 PyThreadState* __tstate = wxPyBeginAllowThreads();
18215 (arg1)->DrawPoint((wxPoint const &)*arg2);
18216 wxPyEndAllowThreads(__tstate);
18217 if (PyErr_Occurred()) SWIG_fail;
18218 }
18219 resultobj = SWIG_Py_Void();
18220 return resultobj;
18221fail:
18222 return NULL;
18223}
18224
18225
18226SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18227 PyObject *resultobj = 0;
18228 wxDC *arg1 = (wxDC *) 0 ;
18229 int arg2 ;
18230 int arg3 ;
18231 int arg4 ;
18232 int arg5 ;
18233 void *argp1 = 0 ;
18234 int res1 = 0 ;
18235 int val2 ;
18236 int ecode2 = 0 ;
18237 int val3 ;
18238 int ecode3 = 0 ;
18239 int val4 ;
18240 int ecode4 = 0 ;
18241 int val5 ;
18242 int ecode5 = 0 ;
18243 PyObject * obj0 = 0 ;
18244 PyObject * obj1 = 0 ;
18245 PyObject * obj2 = 0 ;
18246 PyObject * obj3 = 0 ;
18247 PyObject * obj4 = 0 ;
18248 char * kwnames[] = {
18249 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18250 };
18251
18252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18254 if (!SWIG_IsOK(res1)) {
18255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18256 }
18257 arg1 = reinterpret_cast< wxDC * >(argp1);
18258 ecode2 = SWIG_AsVal_int(obj1, &val2);
18259 if (!SWIG_IsOK(ecode2)) {
18260 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18261 }
18262 arg2 = static_cast< int >(val2);
18263 ecode3 = SWIG_AsVal_int(obj2, &val3);
18264 if (!SWIG_IsOK(ecode3)) {
18265 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18266 }
18267 arg3 = static_cast< int >(val3);
18268 ecode4 = SWIG_AsVal_int(obj3, &val4);
18269 if (!SWIG_IsOK(ecode4)) {
18270 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18271 }
18272 arg4 = static_cast< int >(val4);
18273 ecode5 = SWIG_AsVal_int(obj4, &val5);
18274 if (!SWIG_IsOK(ecode5)) {
18275 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18276 }
18277 arg5 = static_cast< int >(val5);
18278 {
18279 PyThreadState* __tstate = wxPyBeginAllowThreads();
18280 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18281 wxPyEndAllowThreads(__tstate);
18282 if (PyErr_Occurred()) SWIG_fail;
18283 }
18284 resultobj = SWIG_Py_Void();
18285 return resultobj;
18286fail:
18287 return NULL;
18288}
18289
18290
18291SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18292 PyObject *resultobj = 0;
18293 wxDC *arg1 = (wxDC *) 0 ;
18294 wxRect *arg2 = 0 ;
18295 void *argp1 = 0 ;
18296 int res1 = 0 ;
18297 wxRect temp2 ;
18298 PyObject * obj0 = 0 ;
18299 PyObject * obj1 = 0 ;
18300 char * kwnames[] = {
18301 (char *) "self",(char *) "rect", NULL
18302 };
18303
18304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18306 if (!SWIG_IsOK(res1)) {
18307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18308 }
18309 arg1 = reinterpret_cast< wxDC * >(argp1);
18310 {
18311 arg2 = &temp2;
18312 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18313 }
18314 {
18315 PyThreadState* __tstate = wxPyBeginAllowThreads();
18316 (arg1)->DrawRectangle((wxRect const &)*arg2);
18317 wxPyEndAllowThreads(__tstate);
18318 if (PyErr_Occurred()) SWIG_fail;
18319 }
18320 resultobj = SWIG_Py_Void();
18321 return resultobj;
18322fail:
18323 return NULL;
18324}
18325
18326
18327SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18328 PyObject *resultobj = 0;
18329 wxDC *arg1 = (wxDC *) 0 ;
18330 wxPoint *arg2 = 0 ;
18331 wxSize *arg3 = 0 ;
18332 void *argp1 = 0 ;
18333 int res1 = 0 ;
18334 wxPoint temp2 ;
18335 wxSize temp3 ;
18336 PyObject * obj0 = 0 ;
18337 PyObject * obj1 = 0 ;
18338 PyObject * obj2 = 0 ;
18339 char * kwnames[] = {
18340 (char *) "self",(char *) "pt",(char *) "sz", NULL
18341 };
18342
18343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18345 if (!SWIG_IsOK(res1)) {
18346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18347 }
18348 arg1 = reinterpret_cast< wxDC * >(argp1);
18349 {
18350 arg2 = &temp2;
18351 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18352 }
18353 {
18354 arg3 = &temp3;
18355 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18356 }
18357 {
18358 PyThreadState* __tstate = wxPyBeginAllowThreads();
18359 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18360 wxPyEndAllowThreads(__tstate);
18361 if (PyErr_Occurred()) SWIG_fail;
18362 }
18363 resultobj = SWIG_Py_Void();
18364 return resultobj;
18365fail:
18366 return NULL;
18367}
18368
18369
18370SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18371 PyObject *resultobj = 0;
18372 wxDC *arg1 = (wxDC *) 0 ;
18373 int arg2 ;
18374 int arg3 ;
18375 int arg4 ;
18376 int arg5 ;
18377 double arg6 ;
18378 void *argp1 = 0 ;
18379 int res1 = 0 ;
18380 int val2 ;
18381 int ecode2 = 0 ;
18382 int val3 ;
18383 int ecode3 = 0 ;
18384 int val4 ;
18385 int ecode4 = 0 ;
18386 int val5 ;
18387 int ecode5 = 0 ;
18388 double val6 ;
18389 int ecode6 = 0 ;
18390 PyObject * obj0 = 0 ;
18391 PyObject * obj1 = 0 ;
18392 PyObject * obj2 = 0 ;
18393 PyObject * obj3 = 0 ;
18394 PyObject * obj4 = 0 ;
18395 PyObject * obj5 = 0 ;
18396 char * kwnames[] = {
18397 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18398 };
18399
18400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18402 if (!SWIG_IsOK(res1)) {
18403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18404 }
18405 arg1 = reinterpret_cast< wxDC * >(argp1);
18406 ecode2 = SWIG_AsVal_int(obj1, &val2);
18407 if (!SWIG_IsOK(ecode2)) {
18408 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18409 }
18410 arg2 = static_cast< int >(val2);
18411 ecode3 = SWIG_AsVal_int(obj2, &val3);
18412 if (!SWIG_IsOK(ecode3)) {
18413 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18414 }
18415 arg3 = static_cast< int >(val3);
18416 ecode4 = SWIG_AsVal_int(obj3, &val4);
18417 if (!SWIG_IsOK(ecode4)) {
18418 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18419 }
18420 arg4 = static_cast< int >(val4);
18421 ecode5 = SWIG_AsVal_int(obj4, &val5);
18422 if (!SWIG_IsOK(ecode5)) {
18423 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18424 }
18425 arg5 = static_cast< int >(val5);
18426 ecode6 = SWIG_AsVal_double(obj5, &val6);
18427 if (!SWIG_IsOK(ecode6)) {
18428 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18429 }
18430 arg6 = static_cast< double >(val6);
18431 {
18432 PyThreadState* __tstate = wxPyBeginAllowThreads();
18433 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18434 wxPyEndAllowThreads(__tstate);
18435 if (PyErr_Occurred()) SWIG_fail;
18436 }
18437 resultobj = SWIG_Py_Void();
18438 return resultobj;
18439fail:
18440 return NULL;
18441}
18442
18443
18444SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18445 PyObject *resultobj = 0;
18446 wxDC *arg1 = (wxDC *) 0 ;
18447 wxRect *arg2 = 0 ;
18448 double arg3 ;
18449 void *argp1 = 0 ;
18450 int res1 = 0 ;
18451 wxRect temp2 ;
18452 double val3 ;
18453 int ecode3 = 0 ;
18454 PyObject * obj0 = 0 ;
18455 PyObject * obj1 = 0 ;
18456 PyObject * obj2 = 0 ;
18457 char * kwnames[] = {
18458 (char *) "self",(char *) "r",(char *) "radius", NULL
18459 };
18460
18461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18463 if (!SWIG_IsOK(res1)) {
18464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18465 }
18466 arg1 = reinterpret_cast< wxDC * >(argp1);
18467 {
18468 arg2 = &temp2;
18469 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18470 }
18471 ecode3 = SWIG_AsVal_double(obj2, &val3);
18472 if (!SWIG_IsOK(ecode3)) {
18473 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18474 }
18475 arg3 = static_cast< double >(val3);
18476 {
18477 PyThreadState* __tstate = wxPyBeginAllowThreads();
18478 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18479 wxPyEndAllowThreads(__tstate);
18480 if (PyErr_Occurred()) SWIG_fail;
18481 }
18482 resultobj = SWIG_Py_Void();
18483 return resultobj;
18484fail:
18485 return NULL;
18486}
18487
18488
18489SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18490 PyObject *resultobj = 0;
18491 wxDC *arg1 = (wxDC *) 0 ;
18492 wxPoint *arg2 = 0 ;
18493 wxSize *arg3 = 0 ;
18494 double arg4 ;
18495 void *argp1 = 0 ;
18496 int res1 = 0 ;
18497 wxPoint temp2 ;
18498 wxSize temp3 ;
18499 double val4 ;
18500 int ecode4 = 0 ;
18501 PyObject * obj0 = 0 ;
18502 PyObject * obj1 = 0 ;
18503 PyObject * obj2 = 0 ;
18504 PyObject * obj3 = 0 ;
18505 char * kwnames[] = {
18506 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18507 };
18508
18509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18511 if (!SWIG_IsOK(res1)) {
18512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18513 }
18514 arg1 = reinterpret_cast< wxDC * >(argp1);
18515 {
18516 arg2 = &temp2;
18517 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18518 }
18519 {
18520 arg3 = &temp3;
18521 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18522 }
18523 ecode4 = SWIG_AsVal_double(obj3, &val4);
18524 if (!SWIG_IsOK(ecode4)) {
18525 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18526 }
18527 arg4 = static_cast< double >(val4);
18528 {
18529 PyThreadState* __tstate = wxPyBeginAllowThreads();
18530 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18531 wxPyEndAllowThreads(__tstate);
18532 if (PyErr_Occurred()) SWIG_fail;
18533 }
18534 resultobj = SWIG_Py_Void();
18535 return resultobj;
18536fail:
18537 return NULL;
18538}
18539
18540
18541SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18542 PyObject *resultobj = 0;
18543 wxDC *arg1 = (wxDC *) 0 ;
18544 int arg2 ;
18545 int arg3 ;
18546 int arg4 ;
18547 void *argp1 = 0 ;
18548 int res1 = 0 ;
18549 int val2 ;
18550 int ecode2 = 0 ;
18551 int val3 ;
18552 int ecode3 = 0 ;
18553 int val4 ;
18554 int ecode4 = 0 ;
18555 PyObject * obj0 = 0 ;
18556 PyObject * obj1 = 0 ;
18557 PyObject * obj2 = 0 ;
18558 PyObject * obj3 = 0 ;
18559 char * kwnames[] = {
18560 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18561 };
18562
18563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18565 if (!SWIG_IsOK(res1)) {
18566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18567 }
18568 arg1 = reinterpret_cast< wxDC * >(argp1);
18569 ecode2 = SWIG_AsVal_int(obj1, &val2);
18570 if (!SWIG_IsOK(ecode2)) {
18571 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18572 }
18573 arg2 = static_cast< int >(val2);
18574 ecode3 = SWIG_AsVal_int(obj2, &val3);
18575 if (!SWIG_IsOK(ecode3)) {
18576 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18577 }
18578 arg3 = static_cast< int >(val3);
18579 ecode4 = SWIG_AsVal_int(obj3, &val4);
18580 if (!SWIG_IsOK(ecode4)) {
18581 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18582 }
18583 arg4 = static_cast< int >(val4);
18584 {
18585 PyThreadState* __tstate = wxPyBeginAllowThreads();
18586 (arg1)->DrawCircle(arg2,arg3,arg4);
18587 wxPyEndAllowThreads(__tstate);
18588 if (PyErr_Occurred()) SWIG_fail;
18589 }
18590 resultobj = SWIG_Py_Void();
18591 return resultobj;
18592fail:
18593 return NULL;
18594}
18595
18596
18597SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18598 PyObject *resultobj = 0;
18599 wxDC *arg1 = (wxDC *) 0 ;
18600 wxPoint *arg2 = 0 ;
18601 int arg3 ;
18602 void *argp1 = 0 ;
18603 int res1 = 0 ;
18604 wxPoint temp2 ;
18605 int val3 ;
18606 int ecode3 = 0 ;
18607 PyObject * obj0 = 0 ;
18608 PyObject * obj1 = 0 ;
18609 PyObject * obj2 = 0 ;
18610 char * kwnames[] = {
18611 (char *) "self",(char *) "pt",(char *) "radius", NULL
18612 };
18613
18614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18616 if (!SWIG_IsOK(res1)) {
18617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18618 }
18619 arg1 = reinterpret_cast< wxDC * >(argp1);
18620 {
18621 arg2 = &temp2;
18622 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18623 }
18624 ecode3 = SWIG_AsVal_int(obj2, &val3);
18625 if (!SWIG_IsOK(ecode3)) {
18626 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
18627 }
18628 arg3 = static_cast< int >(val3);
18629 {
18630 PyThreadState* __tstate = wxPyBeginAllowThreads();
18631 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
18632 wxPyEndAllowThreads(__tstate);
18633 if (PyErr_Occurred()) SWIG_fail;
18634 }
18635 resultobj = SWIG_Py_Void();
18636 return resultobj;
18637fail:
18638 return NULL;
18639}
18640
18641
18642SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18643 PyObject *resultobj = 0;
18644 wxDC *arg1 = (wxDC *) 0 ;
18645 int arg2 ;
18646 int arg3 ;
18647 int arg4 ;
18648 int arg5 ;
18649 void *argp1 = 0 ;
18650 int res1 = 0 ;
18651 int val2 ;
18652 int ecode2 = 0 ;
18653 int val3 ;
18654 int ecode3 = 0 ;
18655 int val4 ;
18656 int ecode4 = 0 ;
18657 int val5 ;
18658 int ecode5 = 0 ;
18659 PyObject * obj0 = 0 ;
18660 PyObject * obj1 = 0 ;
18661 PyObject * obj2 = 0 ;
18662 PyObject * obj3 = 0 ;
18663 PyObject * obj4 = 0 ;
18664 char * kwnames[] = {
18665 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18666 };
18667
18668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18670 if (!SWIG_IsOK(res1)) {
18671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
18672 }
18673 arg1 = reinterpret_cast< wxDC * >(argp1);
18674 ecode2 = SWIG_AsVal_int(obj1, &val2);
18675 if (!SWIG_IsOK(ecode2)) {
18676 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
18677 }
18678 arg2 = static_cast< int >(val2);
18679 ecode3 = SWIG_AsVal_int(obj2, &val3);
18680 if (!SWIG_IsOK(ecode3)) {
18681 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
18682 }
18683 arg3 = static_cast< int >(val3);
18684 ecode4 = SWIG_AsVal_int(obj3, &val4);
18685 if (!SWIG_IsOK(ecode4)) {
18686 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
18687 }
18688 arg4 = static_cast< int >(val4);
18689 ecode5 = SWIG_AsVal_int(obj4, &val5);
18690 if (!SWIG_IsOK(ecode5)) {
18691 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
18692 }
18693 arg5 = static_cast< int >(val5);
18694 {
18695 PyThreadState* __tstate = wxPyBeginAllowThreads();
18696 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
18697 wxPyEndAllowThreads(__tstate);
18698 if (PyErr_Occurred()) SWIG_fail;
18699 }
18700 resultobj = SWIG_Py_Void();
18701 return resultobj;
18702fail:
18703 return NULL;
18704}
18705
18706
18707SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18708 PyObject *resultobj = 0;
18709 wxDC *arg1 = (wxDC *) 0 ;
18710 wxRect *arg2 = 0 ;
18711 void *argp1 = 0 ;
18712 int res1 = 0 ;
18713 wxRect temp2 ;
18714 PyObject * obj0 = 0 ;
18715 PyObject * obj1 = 0 ;
18716 char * kwnames[] = {
18717 (char *) "self",(char *) "rect", NULL
18718 };
18719
18720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
18721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18722 if (!SWIG_IsOK(res1)) {
18723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
18724 }
18725 arg1 = reinterpret_cast< wxDC * >(argp1);
18726 {
18727 arg2 = &temp2;
18728 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18729 }
18730 {
18731 PyThreadState* __tstate = wxPyBeginAllowThreads();
18732 (arg1)->DrawEllipse((wxRect const &)*arg2);
18733 wxPyEndAllowThreads(__tstate);
18734 if (PyErr_Occurred()) SWIG_fail;
18735 }
18736 resultobj = SWIG_Py_Void();
18737 return resultobj;
18738fail:
18739 return NULL;
18740}
18741
18742
18743SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18744 PyObject *resultobj = 0;
18745 wxDC *arg1 = (wxDC *) 0 ;
18746 wxPoint *arg2 = 0 ;
18747 wxSize *arg3 = 0 ;
18748 void *argp1 = 0 ;
18749 int res1 = 0 ;
18750 wxPoint temp2 ;
18751 wxSize temp3 ;
18752 PyObject * obj0 = 0 ;
18753 PyObject * obj1 = 0 ;
18754 PyObject * obj2 = 0 ;
18755 char * kwnames[] = {
18756 (char *) "self",(char *) "pt",(char *) "sz", NULL
18757 };
18758
18759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18761 if (!SWIG_IsOK(res1)) {
18762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18763 }
18764 arg1 = reinterpret_cast< wxDC * >(argp1);
18765 {
18766 arg2 = &temp2;
18767 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18768 }
18769 {
18770 arg3 = &temp3;
18771 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18772 }
18773 {
18774 PyThreadState* __tstate = wxPyBeginAllowThreads();
18775 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
18776 wxPyEndAllowThreads(__tstate);
18777 if (PyErr_Occurred()) SWIG_fail;
18778 }
18779 resultobj = SWIG_Py_Void();
18780 return resultobj;
18781fail:
18782 return NULL;
18783}
18784
18785
18786SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18787 PyObject *resultobj = 0;
18788 wxDC *arg1 = (wxDC *) 0 ;
18789 wxIcon *arg2 = 0 ;
18790 int arg3 ;
18791 int arg4 ;
18792 void *argp1 = 0 ;
18793 int res1 = 0 ;
18794 void *argp2 = 0 ;
18795 int res2 = 0 ;
18796 int val3 ;
18797 int ecode3 = 0 ;
18798 int val4 ;
18799 int ecode4 = 0 ;
18800 PyObject * obj0 = 0 ;
18801 PyObject * obj1 = 0 ;
18802 PyObject * obj2 = 0 ;
18803 PyObject * obj3 = 0 ;
18804 char * kwnames[] = {
18805 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
18806 };
18807
18808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18810 if (!SWIG_IsOK(res1)) {
18811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
18812 }
18813 arg1 = reinterpret_cast< wxDC * >(argp1);
18814 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18815 if (!SWIG_IsOK(res2)) {
18816 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18817 }
18818 if (!argp2) {
18819 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18820 }
18821 arg2 = reinterpret_cast< wxIcon * >(argp2);
18822 ecode3 = SWIG_AsVal_int(obj2, &val3);
18823 if (!SWIG_IsOK(ecode3)) {
18824 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
18825 }
18826 arg3 = static_cast< int >(val3);
18827 ecode4 = SWIG_AsVal_int(obj3, &val4);
18828 if (!SWIG_IsOK(ecode4)) {
18829 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
18830 }
18831 arg4 = static_cast< int >(val4);
18832 {
18833 PyThreadState* __tstate = wxPyBeginAllowThreads();
18834 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
18835 wxPyEndAllowThreads(__tstate);
18836 if (PyErr_Occurred()) SWIG_fail;
18837 }
18838 resultobj = SWIG_Py_Void();
18839 return resultobj;
18840fail:
18841 return NULL;
18842}
18843
18844
18845SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18846 PyObject *resultobj = 0;
18847 wxDC *arg1 = (wxDC *) 0 ;
18848 wxIcon *arg2 = 0 ;
18849 wxPoint *arg3 = 0 ;
18850 void *argp1 = 0 ;
18851 int res1 = 0 ;
18852 void *argp2 = 0 ;
18853 int res2 = 0 ;
18854 wxPoint temp3 ;
18855 PyObject * obj0 = 0 ;
18856 PyObject * obj1 = 0 ;
18857 PyObject * obj2 = 0 ;
18858 char * kwnames[] = {
18859 (char *) "self",(char *) "icon",(char *) "pt", NULL
18860 };
18861
18862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18864 if (!SWIG_IsOK(res1)) {
18865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18866 }
18867 arg1 = reinterpret_cast< wxDC * >(argp1);
18868 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18869 if (!SWIG_IsOK(res2)) {
18870 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
18871 }
18872 if (!argp2) {
18873 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
18874 }
18875 arg2 = reinterpret_cast< wxIcon * >(argp2);
18876 {
18877 arg3 = &temp3;
18878 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18879 }
18880 {
18881 PyThreadState* __tstate = wxPyBeginAllowThreads();
18882 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
18883 wxPyEndAllowThreads(__tstate);
18884 if (PyErr_Occurred()) SWIG_fail;
18885 }
18886 resultobj = SWIG_Py_Void();
18887 return resultobj;
18888fail:
18889 return NULL;
18890}
18891
18892
18893SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18894 PyObject *resultobj = 0;
18895 wxDC *arg1 = (wxDC *) 0 ;
18896 wxBitmap *arg2 = 0 ;
18897 int arg3 ;
18898 int arg4 ;
18899 bool arg5 = (bool) false ;
18900 void *argp1 = 0 ;
18901 int res1 = 0 ;
18902 void *argp2 = 0 ;
18903 int res2 = 0 ;
18904 int val3 ;
18905 int ecode3 = 0 ;
18906 int val4 ;
18907 int ecode4 = 0 ;
18908 bool val5 ;
18909 int ecode5 = 0 ;
18910 PyObject * obj0 = 0 ;
18911 PyObject * obj1 = 0 ;
18912 PyObject * obj2 = 0 ;
18913 PyObject * obj3 = 0 ;
18914 PyObject * obj4 = 0 ;
18915 char * kwnames[] = {
18916 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
18917 };
18918
18919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18921 if (!SWIG_IsOK(res1)) {
18922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
18923 }
18924 arg1 = reinterpret_cast< wxDC * >(argp1);
18925 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
18926 if (!SWIG_IsOK(res2)) {
18927 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18928 }
18929 if (!argp2) {
18930 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18931 }
18932 arg2 = reinterpret_cast< wxBitmap * >(argp2);
18933 ecode3 = SWIG_AsVal_int(obj2, &val3);
18934 if (!SWIG_IsOK(ecode3)) {
18935 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
18936 }
18937 arg3 = static_cast< int >(val3);
18938 ecode4 = SWIG_AsVal_int(obj3, &val4);
18939 if (!SWIG_IsOK(ecode4)) {
18940 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
18941 }
18942 arg4 = static_cast< int >(val4);
18943 if (obj4) {
18944 ecode5 = SWIG_AsVal_bool(obj4, &val5);
18945 if (!SWIG_IsOK(ecode5)) {
18946 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
18947 }
18948 arg5 = static_cast< bool >(val5);
18949 }
18950 {
18951 PyThreadState* __tstate = wxPyBeginAllowThreads();
18952 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
18953 wxPyEndAllowThreads(__tstate);
18954 if (PyErr_Occurred()) SWIG_fail;
18955 }
18956 resultobj = SWIG_Py_Void();
18957 return resultobj;
18958fail:
18959 return NULL;
18960}
18961
18962
18963SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18964 PyObject *resultobj = 0;
18965 wxDC *arg1 = (wxDC *) 0 ;
18966 wxBitmap *arg2 = 0 ;
18967 wxPoint *arg3 = 0 ;
18968 bool arg4 = (bool) false ;
18969 void *argp1 = 0 ;
18970 int res1 = 0 ;
18971 void *argp2 = 0 ;
18972 int res2 = 0 ;
18973 wxPoint temp3 ;
18974 bool val4 ;
18975 int ecode4 = 0 ;
18976 PyObject * obj0 = 0 ;
18977 PyObject * obj1 = 0 ;
18978 PyObject * obj2 = 0 ;
18979 PyObject * obj3 = 0 ;
18980 char * kwnames[] = {
18981 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
18982 };
18983
18984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18986 if (!SWIG_IsOK(res1)) {
18987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18988 }
18989 arg1 = reinterpret_cast< wxDC * >(argp1);
18990 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
18991 if (!SWIG_IsOK(res2)) {
18992 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18993 }
18994 if (!argp2) {
18995 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18996 }
18997 arg2 = reinterpret_cast< wxBitmap * >(argp2);
18998 {
18999 arg3 = &temp3;
19000 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19001 }
19002 if (obj3) {
19003 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19004 if (!SWIG_IsOK(ecode4)) {
19005 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19006 }
19007 arg4 = static_cast< bool >(val4);
19008 }
19009 {
19010 PyThreadState* __tstate = wxPyBeginAllowThreads();
19011 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19012 wxPyEndAllowThreads(__tstate);
19013 if (PyErr_Occurred()) SWIG_fail;
19014 }
19015 resultobj = SWIG_Py_Void();
19016 return resultobj;
19017fail:
19018 return NULL;
19019}
19020
19021
19022SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19023 PyObject *resultobj = 0;
19024 wxDC *arg1 = (wxDC *) 0 ;
19025 wxString *arg2 = 0 ;
19026 int arg3 ;
19027 int arg4 ;
19028 void *argp1 = 0 ;
19029 int res1 = 0 ;
19030 bool temp2 = false ;
19031 int val3 ;
19032 int ecode3 = 0 ;
19033 int val4 ;
19034 int ecode4 = 0 ;
19035 PyObject * obj0 = 0 ;
19036 PyObject * obj1 = 0 ;
19037 PyObject * obj2 = 0 ;
19038 PyObject * obj3 = 0 ;
19039 char * kwnames[] = {
19040 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19041 };
19042
19043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19045 if (!SWIG_IsOK(res1)) {
19046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19047 }
19048 arg1 = reinterpret_cast< wxDC * >(argp1);
19049 {
19050 arg2 = wxString_in_helper(obj1);
19051 if (arg2 == NULL) SWIG_fail;
19052 temp2 = true;
19053 }
19054 ecode3 = SWIG_AsVal_int(obj2, &val3);
19055 if (!SWIG_IsOK(ecode3)) {
19056 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19057 }
19058 arg3 = static_cast< int >(val3);
19059 ecode4 = SWIG_AsVal_int(obj3, &val4);
19060 if (!SWIG_IsOK(ecode4)) {
19061 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19062 }
19063 arg4 = static_cast< int >(val4);
19064 {
19065 PyThreadState* __tstate = wxPyBeginAllowThreads();
19066 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19067 wxPyEndAllowThreads(__tstate);
19068 if (PyErr_Occurred()) SWIG_fail;
19069 }
19070 resultobj = SWIG_Py_Void();
19071 {
19072 if (temp2)
19073 delete arg2;
19074 }
19075 return resultobj;
19076fail:
19077 {
19078 if (temp2)
19079 delete arg2;
19080 }
19081 return NULL;
19082}
19083
19084
19085SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19086 PyObject *resultobj = 0;
19087 wxDC *arg1 = (wxDC *) 0 ;
19088 wxString *arg2 = 0 ;
19089 wxPoint *arg3 = 0 ;
19090 void *argp1 = 0 ;
19091 int res1 = 0 ;
19092 bool temp2 = false ;
19093 wxPoint temp3 ;
19094 PyObject * obj0 = 0 ;
19095 PyObject * obj1 = 0 ;
19096 PyObject * obj2 = 0 ;
19097 char * kwnames[] = {
19098 (char *) "self",(char *) "text",(char *) "pt", NULL
19099 };
19100
19101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19103 if (!SWIG_IsOK(res1)) {
19104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19105 }
19106 arg1 = reinterpret_cast< wxDC * >(argp1);
19107 {
19108 arg2 = wxString_in_helper(obj1);
19109 if (arg2 == NULL) SWIG_fail;
19110 temp2 = true;
19111 }
19112 {
19113 arg3 = &temp3;
19114 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19115 }
19116 {
19117 PyThreadState* __tstate = wxPyBeginAllowThreads();
19118 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19119 wxPyEndAllowThreads(__tstate);
19120 if (PyErr_Occurred()) SWIG_fail;
19121 }
19122 resultobj = SWIG_Py_Void();
19123 {
19124 if (temp2)
19125 delete arg2;
19126 }
19127 return resultobj;
19128fail:
19129 {
19130 if (temp2)
19131 delete arg2;
19132 }
19133 return NULL;
19134}
19135
19136
19137SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19138 PyObject *resultobj = 0;
19139 wxDC *arg1 = (wxDC *) 0 ;
19140 wxString *arg2 = 0 ;
19141 int arg3 ;
19142 int arg4 ;
19143 double arg5 ;
19144 void *argp1 = 0 ;
19145 int res1 = 0 ;
19146 bool temp2 = false ;
19147 int val3 ;
19148 int ecode3 = 0 ;
19149 int val4 ;
19150 int ecode4 = 0 ;
19151 double val5 ;
19152 int ecode5 = 0 ;
19153 PyObject * obj0 = 0 ;
19154 PyObject * obj1 = 0 ;
19155 PyObject * obj2 = 0 ;
19156 PyObject * obj3 = 0 ;
19157 PyObject * obj4 = 0 ;
19158 char * kwnames[] = {
19159 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19160 };
19161
19162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19164 if (!SWIG_IsOK(res1)) {
19165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19166 }
19167 arg1 = reinterpret_cast< wxDC * >(argp1);
19168 {
19169 arg2 = wxString_in_helper(obj1);
19170 if (arg2 == NULL) SWIG_fail;
19171 temp2 = true;
19172 }
19173 ecode3 = SWIG_AsVal_int(obj2, &val3);
19174 if (!SWIG_IsOK(ecode3)) {
19175 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19176 }
19177 arg3 = static_cast< int >(val3);
19178 ecode4 = SWIG_AsVal_int(obj3, &val4);
19179 if (!SWIG_IsOK(ecode4)) {
19180 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19181 }
19182 arg4 = static_cast< int >(val4);
19183 ecode5 = SWIG_AsVal_double(obj4, &val5);
19184 if (!SWIG_IsOK(ecode5)) {
19185 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19186 }
19187 arg5 = static_cast< double >(val5);
19188 {
19189 PyThreadState* __tstate = wxPyBeginAllowThreads();
19190 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19191 wxPyEndAllowThreads(__tstate);
19192 if (PyErr_Occurred()) SWIG_fail;
19193 }
19194 resultobj = SWIG_Py_Void();
19195 {
19196 if (temp2)
19197 delete arg2;
19198 }
19199 return resultobj;
19200fail:
19201 {
19202 if (temp2)
19203 delete arg2;
19204 }
19205 return NULL;
19206}
19207
19208
19209SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19210 PyObject *resultobj = 0;
19211 wxDC *arg1 = (wxDC *) 0 ;
19212 wxString *arg2 = 0 ;
19213 wxPoint *arg3 = 0 ;
19214 double arg4 ;
19215 void *argp1 = 0 ;
19216 int res1 = 0 ;
19217 bool temp2 = false ;
19218 wxPoint temp3 ;
19219 double val4 ;
19220 int ecode4 = 0 ;
19221 PyObject * obj0 = 0 ;
19222 PyObject * obj1 = 0 ;
19223 PyObject * obj2 = 0 ;
19224 PyObject * obj3 = 0 ;
19225 char * kwnames[] = {
19226 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19227 };
19228
19229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19231 if (!SWIG_IsOK(res1)) {
19232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19233 }
19234 arg1 = reinterpret_cast< wxDC * >(argp1);
19235 {
19236 arg2 = wxString_in_helper(obj1);
19237 if (arg2 == NULL) SWIG_fail;
19238 temp2 = true;
19239 }
19240 {
19241 arg3 = &temp3;
19242 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19243 }
19244 ecode4 = SWIG_AsVal_double(obj3, &val4);
19245 if (!SWIG_IsOK(ecode4)) {
19246 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19247 }
19248 arg4 = static_cast< double >(val4);
19249 {
19250 PyThreadState* __tstate = wxPyBeginAllowThreads();
19251 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19252 wxPyEndAllowThreads(__tstate);
19253 if (PyErr_Occurred()) SWIG_fail;
19254 }
19255 resultobj = SWIG_Py_Void();
19256 {
19257 if (temp2)
19258 delete arg2;
19259 }
19260 return resultobj;
19261fail:
19262 {
19263 if (temp2)
19264 delete arg2;
19265 }
19266 return NULL;
19267}
19268
19269
19270SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19271 PyObject *resultobj = 0;
19272 wxDC *arg1 = (wxDC *) 0 ;
19273 int arg2 ;
19274 int arg3 ;
19275 int arg4 ;
19276 int arg5 ;
19277 wxDC *arg6 = (wxDC *) 0 ;
19278 int arg7 ;
19279 int arg8 ;
19280 int arg9 = (int) wxCOPY ;
19281 bool arg10 = (bool) false ;
19282 int arg11 = (int) -1 ;
19283 int arg12 = (int) -1 ;
19284 bool result;
19285 void *argp1 = 0 ;
19286 int res1 = 0 ;
19287 int val2 ;
19288 int ecode2 = 0 ;
19289 int val3 ;
19290 int ecode3 = 0 ;
19291 int val4 ;
19292 int ecode4 = 0 ;
19293 int val5 ;
19294 int ecode5 = 0 ;
19295 void *argp6 = 0 ;
19296 int res6 = 0 ;
19297 int val7 ;
19298 int ecode7 = 0 ;
19299 int val8 ;
19300 int ecode8 = 0 ;
19301 int val9 ;
19302 int ecode9 = 0 ;
19303 bool val10 ;
19304 int ecode10 = 0 ;
19305 int val11 ;
19306 int ecode11 = 0 ;
19307 int val12 ;
19308 int ecode12 = 0 ;
19309 PyObject * obj0 = 0 ;
19310 PyObject * obj1 = 0 ;
19311 PyObject * obj2 = 0 ;
19312 PyObject * obj3 = 0 ;
19313 PyObject * obj4 = 0 ;
19314 PyObject * obj5 = 0 ;
19315 PyObject * obj6 = 0 ;
19316 PyObject * obj7 = 0 ;
19317 PyObject * obj8 = 0 ;
19318 PyObject * obj9 = 0 ;
19319 PyObject * obj10 = 0 ;
19320 PyObject * obj11 = 0 ;
19321 char * kwnames[] = {
19322 (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
19323 };
19324
19325 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;
19326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19327 if (!SWIG_IsOK(res1)) {
19328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19329 }
19330 arg1 = reinterpret_cast< wxDC * >(argp1);
19331 ecode2 = SWIG_AsVal_int(obj1, &val2);
19332 if (!SWIG_IsOK(ecode2)) {
19333 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19334 }
19335 arg2 = static_cast< int >(val2);
19336 ecode3 = SWIG_AsVal_int(obj2, &val3);
19337 if (!SWIG_IsOK(ecode3)) {
19338 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19339 }
19340 arg3 = static_cast< int >(val3);
19341 ecode4 = SWIG_AsVal_int(obj3, &val4);
19342 if (!SWIG_IsOK(ecode4)) {
19343 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19344 }
19345 arg4 = static_cast< int >(val4);
19346 ecode5 = SWIG_AsVal_int(obj4, &val5);
19347 if (!SWIG_IsOK(ecode5)) {
19348 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19349 }
19350 arg5 = static_cast< int >(val5);
19351 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19352 if (!SWIG_IsOK(res6)) {
19353 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19354 }
19355 arg6 = reinterpret_cast< wxDC * >(argp6);
19356 ecode7 = SWIG_AsVal_int(obj6, &val7);
19357 if (!SWIG_IsOK(ecode7)) {
19358 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19359 }
19360 arg7 = static_cast< int >(val7);
19361 ecode8 = SWIG_AsVal_int(obj7, &val8);
19362 if (!SWIG_IsOK(ecode8)) {
19363 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19364 }
19365 arg8 = static_cast< int >(val8);
19366 if (obj8) {
19367 ecode9 = SWIG_AsVal_int(obj8, &val9);
19368 if (!SWIG_IsOK(ecode9)) {
19369 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19370 }
19371 arg9 = static_cast< int >(val9);
19372 }
19373 if (obj9) {
19374 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19375 if (!SWIG_IsOK(ecode10)) {
19376 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19377 }
19378 arg10 = static_cast< bool >(val10);
19379 }
19380 if (obj10) {
19381 ecode11 = SWIG_AsVal_int(obj10, &val11);
19382 if (!SWIG_IsOK(ecode11)) {
19383 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19384 }
19385 arg11 = static_cast< int >(val11);
19386 }
19387 if (obj11) {
19388 ecode12 = SWIG_AsVal_int(obj11, &val12);
19389 if (!SWIG_IsOK(ecode12)) {
19390 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19391 }
19392 arg12 = static_cast< int >(val12);
19393 }
19394 {
19395 PyThreadState* __tstate = wxPyBeginAllowThreads();
19396 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19397 wxPyEndAllowThreads(__tstate);
19398 if (PyErr_Occurred()) SWIG_fail;
19399 }
19400 {
19401 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19402 }
19403 return resultobj;
19404fail:
19405 return NULL;
19406}
19407
19408
19409SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19410 PyObject *resultobj = 0;
19411 wxDC *arg1 = (wxDC *) 0 ;
19412 wxPoint *arg2 = 0 ;
19413 wxSize *arg3 = 0 ;
19414 wxDC *arg4 = (wxDC *) 0 ;
19415 wxPoint *arg5 = 0 ;
19416 int arg6 = (int) wxCOPY ;
19417 bool arg7 = (bool) false ;
19418 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19419 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19420 bool result;
19421 void *argp1 = 0 ;
19422 int res1 = 0 ;
19423 wxPoint temp2 ;
19424 wxSize temp3 ;
19425 void *argp4 = 0 ;
19426 int res4 = 0 ;
19427 wxPoint temp5 ;
19428 int val6 ;
19429 int ecode6 = 0 ;
19430 bool val7 ;
19431 int ecode7 = 0 ;
19432 wxPoint temp8 ;
19433 PyObject * obj0 = 0 ;
19434 PyObject * obj1 = 0 ;
19435 PyObject * obj2 = 0 ;
19436 PyObject * obj3 = 0 ;
19437 PyObject * obj4 = 0 ;
19438 PyObject * obj5 = 0 ;
19439 PyObject * obj6 = 0 ;
19440 PyObject * obj7 = 0 ;
19441 char * kwnames[] = {
19442 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19443 };
19444
19445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19447 if (!SWIG_IsOK(res1)) {
19448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19449 }
19450 arg1 = reinterpret_cast< wxDC * >(argp1);
19451 {
19452 arg2 = &temp2;
19453 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19454 }
19455 {
19456 arg3 = &temp3;
19457 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19458 }
19459 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19460 if (!SWIG_IsOK(res4)) {
19461 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19462 }
19463 arg4 = reinterpret_cast< wxDC * >(argp4);
19464 {
19465 arg5 = &temp5;
19466 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19467 }
19468 if (obj5) {
19469 ecode6 = SWIG_AsVal_int(obj5, &val6);
19470 if (!SWIG_IsOK(ecode6)) {
19471 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19472 }
19473 arg6 = static_cast< int >(val6);
19474 }
19475 if (obj6) {
19476 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19477 if (!SWIG_IsOK(ecode7)) {
19478 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19479 }
19480 arg7 = static_cast< bool >(val7);
19481 }
19482 if (obj7) {
36ed4f51 19483 {
1bd55598
RD
19484 arg8 = &temp8;
19485 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
36ed4f51 19486 }
1bd55598
RD
19487 }
19488 {
19489 PyThreadState* __tstate = wxPyBeginAllowThreads();
19490 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19491 wxPyEndAllowThreads(__tstate);
19492 if (PyErr_Occurred()) SWIG_fail;
19493 }
19494 {
19495 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19496 }
19497 return resultobj;
19498fail:
19499 return NULL;
19500}
19501
19502
19503SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19504 PyObject *resultobj = 0;
19505 wxDC *arg1 = (wxDC *) 0 ;
19506 int arg2 ;
19507 int arg3 ;
19508 int arg4 ;
19509 int arg5 ;
19510 void *argp1 = 0 ;
19511 int res1 = 0 ;
19512 int val2 ;
19513 int ecode2 = 0 ;
19514 int val3 ;
19515 int ecode3 = 0 ;
19516 int val4 ;
19517 int ecode4 = 0 ;
19518 int val5 ;
19519 int ecode5 = 0 ;
19520 PyObject * obj0 = 0 ;
19521 PyObject * obj1 = 0 ;
19522 PyObject * obj2 = 0 ;
19523 PyObject * obj3 = 0 ;
19524 PyObject * obj4 = 0 ;
19525 char * kwnames[] = {
19526 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19527 };
19528
19529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19531 if (!SWIG_IsOK(res1)) {
19532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19533 }
19534 arg1 = reinterpret_cast< wxDC * >(argp1);
19535 ecode2 = SWIG_AsVal_int(obj1, &val2);
19536 if (!SWIG_IsOK(ecode2)) {
19537 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19538 }
19539 arg2 = static_cast< int >(val2);
19540 ecode3 = SWIG_AsVal_int(obj2, &val3);
19541 if (!SWIG_IsOK(ecode3)) {
19542 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19543 }
19544 arg3 = static_cast< int >(val3);
19545 ecode4 = SWIG_AsVal_int(obj3, &val4);
19546 if (!SWIG_IsOK(ecode4)) {
19547 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19548 }
19549 arg4 = static_cast< int >(val4);
19550 ecode5 = SWIG_AsVal_int(obj4, &val5);
19551 if (!SWIG_IsOK(ecode5)) {
19552 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19553 }
19554 arg5 = static_cast< int >(val5);
19555 {
19556 PyThreadState* __tstate = wxPyBeginAllowThreads();
19557 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
19558 wxPyEndAllowThreads(__tstate);
19559 if (PyErr_Occurred()) SWIG_fail;
19560 }
19561 resultobj = SWIG_Py_Void();
19562 return resultobj;
19563fail:
19564 return NULL;
19565}
19566
19567
19568SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19569 PyObject *resultobj = 0;
19570 wxDC *arg1 = (wxDC *) 0 ;
19571 wxPoint *arg2 = 0 ;
19572 wxSize *arg3 = 0 ;
19573 void *argp1 = 0 ;
19574 int res1 = 0 ;
19575 wxPoint temp2 ;
19576 wxSize temp3 ;
19577 PyObject * obj0 = 0 ;
19578 PyObject * obj1 = 0 ;
19579 PyObject * obj2 = 0 ;
19580 char * kwnames[] = {
19581 (char *) "self",(char *) "pt",(char *) "sz", NULL
19582 };
19583
19584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19586 if (!SWIG_IsOK(res1)) {
19587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19588 }
19589 arg1 = reinterpret_cast< wxDC * >(argp1);
19590 {
19591 arg2 = &temp2;
19592 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19593 }
19594 {
19595 arg3 = &temp3;
19596 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19597 }
19598 {
19599 PyThreadState* __tstate = wxPyBeginAllowThreads();
19600 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
19601 wxPyEndAllowThreads(__tstate);
19602 if (PyErr_Occurred()) SWIG_fail;
19603 }
19604 resultobj = SWIG_Py_Void();
19605 return resultobj;
19606fail:
19607 return NULL;
19608}
19609
19610
19611SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19612 PyObject *resultobj = 0;
19613 wxDC *arg1 = (wxDC *) 0 ;
19614 wxRegion *arg2 = 0 ;
19615 void *argp1 = 0 ;
19616 int res1 = 0 ;
19617 void *argp2 = 0 ;
19618 int res2 = 0 ;
19619 PyObject * obj0 = 0 ;
19620 PyObject * obj1 = 0 ;
19621 char * kwnames[] = {
19622 (char *) "self",(char *) "region", NULL
19623 };
19624
19625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
19626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19627 if (!SWIG_IsOK(res1)) {
19628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19629 }
19630 arg1 = reinterpret_cast< wxDC * >(argp1);
19631 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
19632 if (!SWIG_IsOK(res2)) {
19633 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19634 }
19635 if (!argp2) {
19636 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19637 }
19638 arg2 = reinterpret_cast< wxRegion * >(argp2);
19639 {
19640 PyThreadState* __tstate = wxPyBeginAllowThreads();
19641 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
19642 wxPyEndAllowThreads(__tstate);
19643 if (PyErr_Occurred()) SWIG_fail;
19644 }
19645 resultobj = SWIG_Py_Void();
19646 return resultobj;
19647fail:
19648 return NULL;
19649}
19650
19651
19652SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19653 PyObject *resultobj = 0;
19654 wxDC *arg1 = (wxDC *) 0 ;
19655 wxRect *arg2 = 0 ;
19656 void *argp1 = 0 ;
19657 int res1 = 0 ;
19658 wxRect temp2 ;
19659 PyObject * obj0 = 0 ;
19660 PyObject * obj1 = 0 ;
19661 char * kwnames[] = {
19662 (char *) "self",(char *) "rect", NULL
19663 };
19664
19665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
19666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19667 if (!SWIG_IsOK(res1)) {
19668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
19669 }
19670 arg1 = reinterpret_cast< wxDC * >(argp1);
19671 {
19672 arg2 = &temp2;
19673 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19674 }
19675 {
19676 PyThreadState* __tstate = wxPyBeginAllowThreads();
19677 (arg1)->SetClippingRegion((wxRect const &)*arg2);
19678 wxPyEndAllowThreads(__tstate);
19679 if (PyErr_Occurred()) SWIG_fail;
19680 }
19681 resultobj = SWIG_Py_Void();
19682 return resultobj;
19683fail:
19684 return NULL;
19685}
19686
19687
19688SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19689 PyObject *resultobj = 0;
19690 wxDC *arg1 = (wxDC *) 0 ;
19691 int arg2 ;
19692 wxPoint *arg3 = (wxPoint *) 0 ;
19693 int arg4 = (int) 0 ;
19694 int arg5 = (int) 0 ;
19695 void *argp1 = 0 ;
19696 int res1 = 0 ;
19697 int val4 ;
19698 int ecode4 = 0 ;
19699 int val5 ;
19700 int ecode5 = 0 ;
19701 PyObject * obj0 = 0 ;
19702 PyObject * obj1 = 0 ;
19703 PyObject * obj2 = 0 ;
19704 PyObject * obj3 = 0 ;
19705 char * kwnames[] = {
19706 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
19707 };
19708
19709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19711 if (!SWIG_IsOK(res1)) {
19712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
19713 }
19714 arg1 = reinterpret_cast< wxDC * >(argp1);
19715 {
19716 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19717 if (arg3 == NULL) SWIG_fail;
19718 }
19719 if (obj2) {
19720 ecode4 = SWIG_AsVal_int(obj2, &val4);
19721 if (!SWIG_IsOK(ecode4)) {
19722 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
19723 }
19724 arg4 = static_cast< int >(val4);
19725 }
19726 if (obj3) {
19727 ecode5 = SWIG_AsVal_int(obj3, &val5);
19728 if (!SWIG_IsOK(ecode5)) {
19729 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
19730 }
19731 arg5 = static_cast< int >(val5);
19732 }
19733 {
19734 PyThreadState* __tstate = wxPyBeginAllowThreads();
19735 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
19736 wxPyEndAllowThreads(__tstate);
19737 if (PyErr_Occurred()) SWIG_fail;
19738 }
19739 resultobj = SWIG_Py_Void();
19740 {
19741 if (arg3) delete [] arg3;
19742 }
19743 return resultobj;
19744fail:
19745 {
19746 if (arg3) delete [] arg3;
19747 }
19748 return NULL;
19749}
19750
19751
19752SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19753 PyObject *resultobj = 0;
19754 wxDC *arg1 = (wxDC *) 0 ;
19755 int arg2 ;
19756 wxPoint *arg3 = (wxPoint *) 0 ;
19757 int arg4 = (int) 0 ;
19758 int arg5 = (int) 0 ;
19759 int arg6 = (int) wxODDEVEN_RULE ;
19760 void *argp1 = 0 ;
19761 int res1 = 0 ;
19762 int val4 ;
19763 int ecode4 = 0 ;
19764 int val5 ;
19765 int ecode5 = 0 ;
19766 int val6 ;
19767 int ecode6 = 0 ;
19768 PyObject * obj0 = 0 ;
19769 PyObject * obj1 = 0 ;
19770 PyObject * obj2 = 0 ;
19771 PyObject * obj3 = 0 ;
19772 PyObject * obj4 = 0 ;
19773 char * kwnames[] = {
19774 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
19775 };
19776
19777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19779 if (!SWIG_IsOK(res1)) {
19780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
19781 }
19782 arg1 = reinterpret_cast< wxDC * >(argp1);
19783 {
19784 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19785 if (arg3 == NULL) SWIG_fail;
19786 }
19787 if (obj2) {
19788 ecode4 = SWIG_AsVal_int(obj2, &val4);
19789 if (!SWIG_IsOK(ecode4)) {
19790 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
19791 }
19792 arg4 = static_cast< int >(val4);
19793 }
19794 if (obj3) {
19795 ecode5 = SWIG_AsVal_int(obj3, &val5);
19796 if (!SWIG_IsOK(ecode5)) {
19797 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
19798 }
19799 arg5 = static_cast< int >(val5);
19800 }
19801 if (obj4) {
19802 ecode6 = SWIG_AsVal_int(obj4, &val6);
19803 if (!SWIG_IsOK(ecode6)) {
19804 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
19805 }
19806 arg6 = static_cast< int >(val6);
19807 }
19808 {
19809 PyThreadState* __tstate = wxPyBeginAllowThreads();
19810 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
19811 wxPyEndAllowThreads(__tstate);
19812 if (PyErr_Occurred()) SWIG_fail;
19813 }
19814 resultobj = SWIG_Py_Void();
19815 {
19816 if (arg3) delete [] arg3;
19817 }
19818 return resultobj;
19819fail:
19820 {
19821 if (arg3) delete [] arg3;
19822 }
19823 return NULL;
19824}
19825
19826
19827SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19828 PyObject *resultobj = 0;
19829 wxDC *arg1 = (wxDC *) 0 ;
19830 wxString *arg2 = 0 ;
19831 wxRect *arg3 = 0 ;
19832 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
19833 int arg5 = (int) -1 ;
19834 void *argp1 = 0 ;
19835 int res1 = 0 ;
19836 bool temp2 = false ;
19837 wxRect temp3 ;
19838 int val4 ;
19839 int ecode4 = 0 ;
19840 int val5 ;
19841 int ecode5 = 0 ;
19842 PyObject * obj0 = 0 ;
19843 PyObject * obj1 = 0 ;
19844 PyObject * obj2 = 0 ;
19845 PyObject * obj3 = 0 ;
19846 PyObject * obj4 = 0 ;
19847 char * kwnames[] = {
19848 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
19849 };
19850
19851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19853 if (!SWIG_IsOK(res1)) {
19854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
19855 }
19856 arg1 = reinterpret_cast< wxDC * >(argp1);
19857 {
19858 arg2 = wxString_in_helper(obj1);
19859 if (arg2 == NULL) SWIG_fail;
19860 temp2 = true;
19861 }
19862 {
19863 arg3 = &temp3;
19864 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
19865 }
19866 if (obj3) {
19867 ecode4 = SWIG_AsVal_int(obj3, &val4);
19868 if (!SWIG_IsOK(ecode4)) {
19869 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
19870 }
19871 arg4 = static_cast< int >(val4);
19872 }
19873 if (obj4) {
19874 ecode5 = SWIG_AsVal_int(obj4, &val5);
19875 if (!SWIG_IsOK(ecode5)) {
19876 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
19877 }
19878 arg5 = static_cast< int >(val5);
19879 }
19880 {
19881 PyThreadState* __tstate = wxPyBeginAllowThreads();
19882 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
19883 wxPyEndAllowThreads(__tstate);
19884 if (PyErr_Occurred()) SWIG_fail;
19885 }
19886 resultobj = SWIG_Py_Void();
19887 {
19888 if (temp2)
19889 delete arg2;
19890 }
19891 return resultobj;
19892fail:
19893 {
19894 if (temp2)
19895 delete arg2;
19896 }
19897 return NULL;
19898}
19899
19900
19901SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19902 PyObject *resultobj = 0;
19903 wxDC *arg1 = (wxDC *) 0 ;
19904 wxString *arg2 = 0 ;
19905 wxBitmap *arg3 = 0 ;
19906 wxRect *arg4 = 0 ;
19907 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
19908 int arg6 = (int) -1 ;
19909 wxRect result;
19910 void *argp1 = 0 ;
19911 int res1 = 0 ;
19912 bool temp2 = false ;
19913 void *argp3 = 0 ;
19914 int res3 = 0 ;
19915 wxRect temp4 ;
19916 int val5 ;
19917 int ecode5 = 0 ;
19918 int val6 ;
19919 int ecode6 = 0 ;
19920 PyObject * obj0 = 0 ;
19921 PyObject * obj1 = 0 ;
19922 PyObject * obj2 = 0 ;
19923 PyObject * obj3 = 0 ;
19924 PyObject * obj4 = 0 ;
19925 PyObject * obj5 = 0 ;
19926 char * kwnames[] = {
19927 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
19928 };
19929
19930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19932 if (!SWIG_IsOK(res1)) {
19933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
19934 }
19935 arg1 = reinterpret_cast< wxDC * >(argp1);
19936 {
19937 arg2 = wxString_in_helper(obj1);
19938 if (arg2 == NULL) SWIG_fail;
19939 temp2 = true;
19940 }
19941 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
19942 if (!SWIG_IsOK(res3)) {
19943 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
19944 }
19945 if (!argp3) {
19946 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
19947 }
19948 arg3 = reinterpret_cast< wxBitmap * >(argp3);
19949 {
19950 arg4 = &temp4;
19951 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
19952 }
19953 if (obj4) {
19954 ecode5 = SWIG_AsVal_int(obj4, &val5);
19955 if (!SWIG_IsOK(ecode5)) {
19956 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
19957 }
19958 arg5 = static_cast< int >(val5);
19959 }
19960 if (obj5) {
19961 ecode6 = SWIG_AsVal_int(obj5, &val6);
19962 if (!SWIG_IsOK(ecode6)) {
19963 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
19964 }
19965 arg6 = static_cast< int >(val6);
19966 }
19967 {
19968 PyThreadState* __tstate = wxPyBeginAllowThreads();
19969 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
19970 wxPyEndAllowThreads(__tstate);
19971 if (PyErr_Occurred()) SWIG_fail;
19972 }
19973 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
19974 {
19975 if (temp2)
19976 delete arg2;
19977 }
19978 return resultobj;
19979fail:
19980 {
19981 if (temp2)
19982 delete arg2;
19983 }
19984 return NULL;
19985}
19986
19987
19988SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19989 PyObject *resultobj = 0;
19990 wxDC *arg1 = (wxDC *) 0 ;
19991 int arg2 ;
19992 wxPoint *arg3 = (wxPoint *) 0 ;
19993 void *argp1 = 0 ;
19994 int res1 = 0 ;
19995 PyObject * obj0 = 0 ;
19996 PyObject * obj1 = 0 ;
19997 char * kwnames[] = {
19998 (char *) "self",(char *) "points", NULL
19999 };
20000
20001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20003 if (!SWIG_IsOK(res1)) {
20004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20005 }
20006 arg1 = reinterpret_cast< wxDC * >(argp1);
20007 {
20008 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20009 if (arg3 == NULL) SWIG_fail;
20010 }
20011 {
20012 PyThreadState* __tstate = wxPyBeginAllowThreads();
20013 (arg1)->DrawSpline(arg2,arg3);
20014 wxPyEndAllowThreads(__tstate);
20015 if (PyErr_Occurred()) SWIG_fail;
20016 }
20017 resultobj = SWIG_Py_Void();
20018 {
20019 if (arg3) delete [] arg3;
20020 }
20021 return resultobj;
20022fail:
20023 {
20024 if (arg3) delete [] arg3;
20025 }
20026 return NULL;
20027}
20028
20029
20030SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20031 PyObject *resultobj = 0;
20032 wxDC *arg1 = (wxDC *) 0 ;
20033 void *argp1 = 0 ;
20034 int res1 = 0 ;
20035 PyObject *swig_obj[1] ;
20036
20037 if (!args) SWIG_fail;
20038 swig_obj[0] = args;
20039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20040 if (!SWIG_IsOK(res1)) {
20041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20042 }
20043 arg1 = reinterpret_cast< wxDC * >(argp1);
20044 {
20045 PyThreadState* __tstate = wxPyBeginAllowThreads();
20046 (arg1)->Clear();
20047 wxPyEndAllowThreads(__tstate);
20048 if (PyErr_Occurred()) SWIG_fail;
20049 }
20050 resultobj = SWIG_Py_Void();
20051 return resultobj;
20052fail:
20053 return NULL;
20054}
20055
20056
20057SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20058 PyObject *resultobj = 0;
20059 wxDC *arg1 = (wxDC *) 0 ;
20060 wxString *arg2 = 0 ;
20061 bool result;
20062 void *argp1 = 0 ;
20063 int res1 = 0 ;
20064 bool temp2 = false ;
20065 PyObject * obj0 = 0 ;
20066 PyObject * obj1 = 0 ;
20067 char * kwnames[] = {
20068 (char *) "self",(char *) "message", NULL
20069 };
20070
20071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20073 if (!SWIG_IsOK(res1)) {
20074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20075 }
20076 arg1 = reinterpret_cast< wxDC * >(argp1);
20077 {
20078 arg2 = wxString_in_helper(obj1);
20079 if (arg2 == NULL) SWIG_fail;
20080 temp2 = true;
20081 }
20082 {
20083 PyThreadState* __tstate = wxPyBeginAllowThreads();
20084 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20085 wxPyEndAllowThreads(__tstate);
20086 if (PyErr_Occurred()) SWIG_fail;
20087 }
20088 {
20089 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20090 }
20091 {
20092 if (temp2)
20093 delete arg2;
20094 }
20095 return resultobj;
20096fail:
20097 {
20098 if (temp2)
20099 delete arg2;
20100 }
20101 return NULL;
20102}
20103
20104
20105SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20106 PyObject *resultobj = 0;
20107 wxDC *arg1 = (wxDC *) 0 ;
20108 void *argp1 = 0 ;
20109 int res1 = 0 ;
20110 PyObject *swig_obj[1] ;
20111
20112 if (!args) SWIG_fail;
20113 swig_obj[0] = args;
20114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20115 if (!SWIG_IsOK(res1)) {
20116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20117 }
20118 arg1 = reinterpret_cast< wxDC * >(argp1);
20119 {
20120 PyThreadState* __tstate = wxPyBeginAllowThreads();
20121 (arg1)->EndDoc();
20122 wxPyEndAllowThreads(__tstate);
20123 if (PyErr_Occurred()) SWIG_fail;
20124 }
20125 resultobj = SWIG_Py_Void();
20126 return resultobj;
20127fail:
20128 return NULL;
20129}
20130
20131
20132SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20133 PyObject *resultobj = 0;
20134 wxDC *arg1 = (wxDC *) 0 ;
20135 void *argp1 = 0 ;
20136 int res1 = 0 ;
20137 PyObject *swig_obj[1] ;
20138
20139 if (!args) SWIG_fail;
20140 swig_obj[0] = args;
20141 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20142 if (!SWIG_IsOK(res1)) {
20143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20144 }
20145 arg1 = reinterpret_cast< wxDC * >(argp1);
20146 {
20147 PyThreadState* __tstate = wxPyBeginAllowThreads();
20148 (arg1)->StartPage();
20149 wxPyEndAllowThreads(__tstate);
20150 if (PyErr_Occurred()) SWIG_fail;
20151 }
20152 resultobj = SWIG_Py_Void();
20153 return resultobj;
20154fail:
20155 return NULL;
20156}
20157
20158
20159SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20160 PyObject *resultobj = 0;
20161 wxDC *arg1 = (wxDC *) 0 ;
20162 void *argp1 = 0 ;
20163 int res1 = 0 ;
20164 PyObject *swig_obj[1] ;
20165
20166 if (!args) SWIG_fail;
20167 swig_obj[0] = args;
20168 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20169 if (!SWIG_IsOK(res1)) {
20170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20171 }
20172 arg1 = reinterpret_cast< wxDC * >(argp1);
20173 {
20174 PyThreadState* __tstate = wxPyBeginAllowThreads();
20175 (arg1)->EndPage();
20176 wxPyEndAllowThreads(__tstate);
20177 if (PyErr_Occurred()) SWIG_fail;
20178 }
20179 resultobj = SWIG_Py_Void();
20180 return resultobj;
20181fail:
20182 return NULL;
20183}
20184
20185
20186SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20187 PyObject *resultobj = 0;
20188 wxDC *arg1 = (wxDC *) 0 ;
20189 wxFont *arg2 = 0 ;
20190 void *argp1 = 0 ;
20191 int res1 = 0 ;
20192 void *argp2 = 0 ;
20193 int res2 = 0 ;
20194 PyObject * obj0 = 0 ;
20195 PyObject * obj1 = 0 ;
20196 char * kwnames[] = {
20197 (char *) "self",(char *) "font", NULL
20198 };
20199
20200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20202 if (!SWIG_IsOK(res1)) {
20203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20204 }
20205 arg1 = reinterpret_cast< wxDC * >(argp1);
20206 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20207 if (!SWIG_IsOK(res2)) {
20208 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20209 }
20210 if (!argp2) {
20211 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20212 }
20213 arg2 = reinterpret_cast< wxFont * >(argp2);
20214 {
20215 PyThreadState* __tstate = wxPyBeginAllowThreads();
20216 (arg1)->SetFont((wxFont const &)*arg2);
20217 wxPyEndAllowThreads(__tstate);
20218 if (PyErr_Occurred()) SWIG_fail;
20219 }
20220 resultobj = SWIG_Py_Void();
20221 return resultobj;
20222fail:
20223 return NULL;
20224}
20225
20226
20227SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20228 PyObject *resultobj = 0;
20229 wxDC *arg1 = (wxDC *) 0 ;
20230 wxPen *arg2 = 0 ;
20231 void *argp1 = 0 ;
20232 int res1 = 0 ;
20233 void *argp2 = 0 ;
20234 int res2 = 0 ;
20235 PyObject * obj0 = 0 ;
20236 PyObject * obj1 = 0 ;
20237 char * kwnames[] = {
20238 (char *) "self",(char *) "pen", NULL
20239 };
20240
20241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20243 if (!SWIG_IsOK(res1)) {
20244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20245 }
20246 arg1 = reinterpret_cast< wxDC * >(argp1);
20247 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20248 if (!SWIG_IsOK(res2)) {
20249 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20250 }
20251 if (!argp2) {
20252 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20253 }
20254 arg2 = reinterpret_cast< wxPen * >(argp2);
20255 {
20256 PyThreadState* __tstate = wxPyBeginAllowThreads();
20257 (arg1)->SetPen((wxPen const &)*arg2);
20258 wxPyEndAllowThreads(__tstate);
20259 if (PyErr_Occurred()) SWIG_fail;
20260 }
20261 resultobj = SWIG_Py_Void();
20262 return resultobj;
20263fail:
20264 return NULL;
20265}
20266
20267
20268SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20269 PyObject *resultobj = 0;
20270 wxDC *arg1 = (wxDC *) 0 ;
20271 wxBrush *arg2 = 0 ;
20272 void *argp1 = 0 ;
20273 int res1 = 0 ;
20274 void *argp2 = 0 ;
20275 int res2 = 0 ;
20276 PyObject * obj0 = 0 ;
20277 PyObject * obj1 = 0 ;
20278 char * kwnames[] = {
20279 (char *) "self",(char *) "brush", NULL
20280 };
20281
20282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20284 if (!SWIG_IsOK(res1)) {
20285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20286 }
20287 arg1 = reinterpret_cast< wxDC * >(argp1);
20288 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20289 if (!SWIG_IsOK(res2)) {
20290 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20291 }
20292 if (!argp2) {
20293 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20294 }
20295 arg2 = reinterpret_cast< wxBrush * >(argp2);
20296 {
20297 PyThreadState* __tstate = wxPyBeginAllowThreads();
20298 (arg1)->SetBrush((wxBrush const &)*arg2);
20299 wxPyEndAllowThreads(__tstate);
20300 if (PyErr_Occurred()) SWIG_fail;
20301 }
20302 resultobj = SWIG_Py_Void();
20303 return resultobj;
20304fail:
20305 return NULL;
20306}
20307
20308
20309SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20310 PyObject *resultobj = 0;
20311 wxDC *arg1 = (wxDC *) 0 ;
20312 wxBrush *arg2 = 0 ;
20313 void *argp1 = 0 ;
20314 int res1 = 0 ;
20315 void *argp2 = 0 ;
20316 int res2 = 0 ;
20317 PyObject * obj0 = 0 ;
20318 PyObject * obj1 = 0 ;
20319 char * kwnames[] = {
20320 (char *) "self",(char *) "brush", NULL
20321 };
20322
20323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20325 if (!SWIG_IsOK(res1)) {
20326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20327 }
20328 arg1 = reinterpret_cast< wxDC * >(argp1);
20329 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20330 if (!SWIG_IsOK(res2)) {
20331 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20332 }
20333 if (!argp2) {
20334 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20335 }
20336 arg2 = reinterpret_cast< wxBrush * >(argp2);
20337 {
20338 PyThreadState* __tstate = wxPyBeginAllowThreads();
20339 (arg1)->SetBackground((wxBrush const &)*arg2);
20340 wxPyEndAllowThreads(__tstate);
20341 if (PyErr_Occurred()) SWIG_fail;
20342 }
20343 resultobj = SWIG_Py_Void();
20344 return resultobj;
20345fail:
20346 return NULL;
20347}
20348
20349
20350SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20351 PyObject *resultobj = 0;
20352 wxDC *arg1 = (wxDC *) 0 ;
20353 int arg2 ;
20354 void *argp1 = 0 ;
20355 int res1 = 0 ;
20356 int val2 ;
20357 int ecode2 = 0 ;
20358 PyObject * obj0 = 0 ;
20359 PyObject * obj1 = 0 ;
20360 char * kwnames[] = {
20361 (char *) "self",(char *) "mode", NULL
20362 };
20363
20364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20366 if (!SWIG_IsOK(res1)) {
20367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20368 }
20369 arg1 = reinterpret_cast< wxDC * >(argp1);
20370 ecode2 = SWIG_AsVal_int(obj1, &val2);
20371 if (!SWIG_IsOK(ecode2)) {
20372 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20373 }
20374 arg2 = static_cast< int >(val2);
20375 {
20376 PyThreadState* __tstate = wxPyBeginAllowThreads();
20377 (arg1)->SetBackgroundMode(arg2);
20378 wxPyEndAllowThreads(__tstate);
20379 if (PyErr_Occurred()) SWIG_fail;
20380 }
20381 resultobj = SWIG_Py_Void();
20382 return resultobj;
20383fail:
20384 return NULL;
20385}
20386
20387
20388SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20389 PyObject *resultobj = 0;
20390 wxDC *arg1 = (wxDC *) 0 ;
20391 wxPalette *arg2 = 0 ;
20392 void *argp1 = 0 ;
20393 int res1 = 0 ;
20394 void *argp2 = 0 ;
20395 int res2 = 0 ;
20396 PyObject * obj0 = 0 ;
20397 PyObject * obj1 = 0 ;
20398 char * kwnames[] = {
20399 (char *) "self",(char *) "palette", NULL
20400 };
20401
20402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20404 if (!SWIG_IsOK(res1)) {
20405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20406 }
20407 arg1 = reinterpret_cast< wxDC * >(argp1);
20408 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20409 if (!SWIG_IsOK(res2)) {
20410 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20411 }
20412 if (!argp2) {
20413 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20414 }
20415 arg2 = reinterpret_cast< wxPalette * >(argp2);
20416 {
20417 PyThreadState* __tstate = wxPyBeginAllowThreads();
20418 (arg1)->SetPalette((wxPalette const &)*arg2);
20419 wxPyEndAllowThreads(__tstate);
20420 if (PyErr_Occurred()) SWIG_fail;
20421 }
20422 resultobj = SWIG_Py_Void();
20423 return resultobj;
20424fail:
20425 return NULL;
20426}
20427
20428
20429SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20430 PyObject *resultobj = 0;
20431 wxDC *arg1 = (wxDC *) 0 ;
20432 void *argp1 = 0 ;
20433 int res1 = 0 ;
20434 PyObject *swig_obj[1] ;
20435
20436 if (!args) SWIG_fail;
20437 swig_obj[0] = args;
20438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20439 if (!SWIG_IsOK(res1)) {
20440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20441 }
20442 arg1 = reinterpret_cast< wxDC * >(argp1);
20443 {
20444 PyThreadState* __tstate = wxPyBeginAllowThreads();
20445 (arg1)->DestroyClippingRegion();
20446 wxPyEndAllowThreads(__tstate);
20447 if (PyErr_Occurred()) SWIG_fail;
20448 }
20449 resultobj = SWIG_Py_Void();
20450 return resultobj;
20451fail:
20452 return NULL;
20453}
20454
20455
20456SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20457 PyObject *resultobj = 0;
20458 wxDC *arg1 = (wxDC *) 0 ;
20459 int *arg2 = (int *) 0 ;
20460 int *arg3 = (int *) 0 ;
20461 int *arg4 = (int *) 0 ;
20462 int *arg5 = (int *) 0 ;
20463 void *argp1 = 0 ;
20464 int res1 = 0 ;
20465 int temp2 ;
20466 int res2 = SWIG_TMPOBJ ;
20467 int temp3 ;
20468 int res3 = SWIG_TMPOBJ ;
20469 int temp4 ;
20470 int res4 = SWIG_TMPOBJ ;
20471 int temp5 ;
20472 int res5 = SWIG_TMPOBJ ;
20473 PyObject *swig_obj[1] ;
20474
20475 arg2 = &temp2;
20476 arg3 = &temp3;
20477 arg4 = &temp4;
20478 arg5 = &temp5;
20479 if (!args) SWIG_fail;
20480 swig_obj[0] = args;
20481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20482 if (!SWIG_IsOK(res1)) {
20483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20484 }
20485 arg1 = reinterpret_cast< wxDC * >(argp1);
20486 {
20487 PyThreadState* __tstate = wxPyBeginAllowThreads();
20488 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20489 wxPyEndAllowThreads(__tstate);
20490 if (PyErr_Occurred()) SWIG_fail;
20491 }
20492 resultobj = SWIG_Py_Void();
20493 if (SWIG_IsTmpObj(res2)) {
20494 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20495 } else {
20496 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20497 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20498 }
20499 if (SWIG_IsTmpObj(res3)) {
20500 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20501 } else {
20502 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20503 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20504 }
20505 if (SWIG_IsTmpObj(res4)) {
20506 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20507 } else {
20508 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20509 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20510 }
20511 if (SWIG_IsTmpObj(res5)) {
20512 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20513 } else {
20514 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20515 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20516 }
20517 return resultobj;
20518fail:
20519 return NULL;
20520}
20521
20522
20523SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20524 PyObject *resultobj = 0;
20525 wxDC *arg1 = (wxDC *) 0 ;
20526 wxRect result;
20527 void *argp1 = 0 ;
20528 int res1 = 0 ;
20529 PyObject *swig_obj[1] ;
20530
20531 if (!args) SWIG_fail;
20532 swig_obj[0] = args;
20533 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20534 if (!SWIG_IsOK(res1)) {
20535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20536 }
20537 arg1 = reinterpret_cast< wxDC * >(argp1);
20538 {
20539 PyThreadState* __tstate = wxPyBeginAllowThreads();
20540 result = wxDC_GetClippingRect(arg1);
20541 wxPyEndAllowThreads(__tstate);
20542 if (PyErr_Occurred()) SWIG_fail;
20543 }
20544 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20545 return resultobj;
20546fail:
20547 return NULL;
20548}
20549
20550
20551SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20552 PyObject *resultobj = 0;
20553 wxDC *arg1 = (wxDC *) 0 ;
20554 int result;
20555 void *argp1 = 0 ;
20556 int res1 = 0 ;
20557 PyObject *swig_obj[1] ;
20558
20559 if (!args) SWIG_fail;
20560 swig_obj[0] = args;
20561 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20562 if (!SWIG_IsOK(res1)) {
20563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20564 }
20565 arg1 = reinterpret_cast< wxDC * >(argp1);
20566 {
20567 PyThreadState* __tstate = wxPyBeginAllowThreads();
20568 result = (int)((wxDC const *)arg1)->GetCharHeight();
20569 wxPyEndAllowThreads(__tstate);
20570 if (PyErr_Occurred()) SWIG_fail;
20571 }
20572 resultobj = SWIG_From_int(static_cast< int >(result));
20573 return resultobj;
20574fail:
20575 return NULL;
20576}
20577
20578
20579SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20580 PyObject *resultobj = 0;
20581 wxDC *arg1 = (wxDC *) 0 ;
20582 int result;
20583 void *argp1 = 0 ;
20584 int res1 = 0 ;
20585 PyObject *swig_obj[1] ;
20586
20587 if (!args) SWIG_fail;
20588 swig_obj[0] = args;
20589 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20590 if (!SWIG_IsOK(res1)) {
20591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
20592 }
20593 arg1 = reinterpret_cast< wxDC * >(argp1);
20594 {
20595 PyThreadState* __tstate = wxPyBeginAllowThreads();
20596 result = (int)((wxDC const *)arg1)->GetCharWidth();
20597 wxPyEndAllowThreads(__tstate);
20598 if (PyErr_Occurred()) SWIG_fail;
20599 }
20600 resultobj = SWIG_From_int(static_cast< int >(result));
20601 return resultobj;
20602fail:
20603 return NULL;
20604}
20605
20606
20607SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20608 PyObject *resultobj = 0;
20609 wxDC *arg1 = (wxDC *) 0 ;
20610 wxString *arg2 = 0 ;
20611 int *arg3 = (int *) 0 ;
20612 int *arg4 = (int *) 0 ;
20613 void *argp1 = 0 ;
20614 int res1 = 0 ;
20615 bool temp2 = false ;
20616 int temp3 ;
20617 int res3 = SWIG_TMPOBJ ;
20618 int temp4 ;
20619 int res4 = SWIG_TMPOBJ ;
20620 PyObject * obj0 = 0 ;
20621 PyObject * obj1 = 0 ;
20622 char * kwnames[] = {
20623 (char *) "self",(char *) "string", NULL
20624 };
20625
20626 arg3 = &temp3;
20627 arg4 = &temp4;
20628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
20629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20630 if (!SWIG_IsOK(res1)) {
20631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20632 }
20633 arg1 = reinterpret_cast< wxDC * >(argp1);
20634 {
20635 arg2 = wxString_in_helper(obj1);
20636 if (arg2 == NULL) SWIG_fail;
20637 temp2 = true;
20638 }
20639 {
20640 PyThreadState* __tstate = wxPyBeginAllowThreads();
20641 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
20642 wxPyEndAllowThreads(__tstate);
20643 if (PyErr_Occurred()) SWIG_fail;
20644 }
20645 resultobj = SWIG_Py_Void();
20646 if (SWIG_IsTmpObj(res3)) {
20647 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20648 } else {
20649 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20650 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20651 }
20652 if (SWIG_IsTmpObj(res4)) {
20653 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20654 } else {
20655 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20656 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20657 }
20658 {
20659 if (temp2)
20660 delete arg2;
20661 }
20662 return resultobj;
20663fail:
20664 {
20665 if (temp2)
20666 delete arg2;
20667 }
20668 return NULL;
20669}
20670
20671
20672SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20673 PyObject *resultobj = 0;
20674 wxDC *arg1 = (wxDC *) 0 ;
20675 wxString *arg2 = 0 ;
20676 int *arg3 = (int *) 0 ;
20677 int *arg4 = (int *) 0 ;
20678 int *arg5 = (int *) 0 ;
20679 int *arg6 = (int *) 0 ;
20680 wxFont *arg7 = (wxFont *) NULL ;
20681 void *argp1 = 0 ;
20682 int res1 = 0 ;
20683 bool temp2 = false ;
20684 int temp3 ;
20685 int res3 = SWIG_TMPOBJ ;
20686 int temp4 ;
20687 int res4 = SWIG_TMPOBJ ;
20688 int temp5 ;
20689 int res5 = SWIG_TMPOBJ ;
20690 int temp6 ;
20691 int res6 = SWIG_TMPOBJ ;
20692 void *argp7 = 0 ;
20693 int res7 = 0 ;
20694 PyObject * obj0 = 0 ;
20695 PyObject * obj1 = 0 ;
20696 PyObject * obj2 = 0 ;
20697 char * kwnames[] = {
20698 (char *) "self",(char *) "string",(char *) "font", NULL
20699 };
20700
20701 arg3 = &temp3;
20702 arg4 = &temp4;
20703 arg5 = &temp5;
20704 arg6 = &temp6;
20705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20707 if (!SWIG_IsOK(res1)) {
20708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20709 }
20710 arg1 = reinterpret_cast< wxDC * >(argp1);
20711 {
20712 arg2 = wxString_in_helper(obj1);
20713 if (arg2 == NULL) SWIG_fail;
20714 temp2 = true;
20715 }
20716 if (obj2) {
20717 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
20718 if (!SWIG_IsOK(res7)) {
20719 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
36ed4f51 20720 }
1bd55598
RD
20721 arg7 = reinterpret_cast< wxFont * >(argp7);
20722 }
20723 {
20724 PyThreadState* __tstate = wxPyBeginAllowThreads();
20725 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
20726 wxPyEndAllowThreads(__tstate);
20727 if (PyErr_Occurred()) SWIG_fail;
20728 }
20729 resultobj = SWIG_Py_Void();
20730 if (SWIG_IsTmpObj(res3)) {
20731 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20732 } else {
20733 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20734 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20735 }
20736 if (SWIG_IsTmpObj(res4)) {
20737 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20738 } else {
20739 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20740 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20741 }
20742 if (SWIG_IsTmpObj(res5)) {
20743 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20744 } else {
20745 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20746 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20747 }
20748 if (SWIG_IsTmpObj(res6)) {
20749 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
20750 } else {
20751 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20752 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
20753 }
20754 {
20755 if (temp2)
20756 delete arg2;
20757 }
20758 return resultobj;
20759fail:
20760 {
20761 if (temp2)
20762 delete arg2;
20763 }
20764 return NULL;
20765}
20766
20767
20768SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20769 PyObject *resultobj = 0;
20770 wxDC *arg1 = (wxDC *) 0 ;
20771 wxString *arg2 = 0 ;
20772 int *arg3 = (int *) 0 ;
20773 int *arg4 = (int *) 0 ;
20774 int *arg5 = (int *) 0 ;
20775 wxFont *arg6 = (wxFont *) NULL ;
20776 void *argp1 = 0 ;
20777 int res1 = 0 ;
20778 bool temp2 = false ;
20779 int temp3 ;
20780 int res3 = SWIG_TMPOBJ ;
20781 int temp4 ;
20782 int res4 = SWIG_TMPOBJ ;
20783 int temp5 ;
20784 int res5 = SWIG_TMPOBJ ;
20785 void *argp6 = 0 ;
20786 int res6 = 0 ;
20787 PyObject * obj0 = 0 ;
20788 PyObject * obj1 = 0 ;
20789 PyObject * obj2 = 0 ;
20790 char * kwnames[] = {
20791 (char *) "self",(char *) "text",(char *) "font", NULL
20792 };
20793
20794 arg3 = &temp3;
20795 arg4 = &temp4;
20796 arg5 = &temp5;
20797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20799 if (!SWIG_IsOK(res1)) {
20800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20801 }
20802 arg1 = reinterpret_cast< wxDC * >(argp1);
20803 {
20804 arg2 = wxString_in_helper(obj1);
20805 if (arg2 == NULL) SWIG_fail;
20806 temp2 = true;
20807 }
20808 if (obj2) {
20809 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
20810 if (!SWIG_IsOK(res6)) {
20811 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
36ed4f51 20812 }
1bd55598
RD
20813 arg6 = reinterpret_cast< wxFont * >(argp6);
20814 }
20815 {
20816 PyThreadState* __tstate = wxPyBeginAllowThreads();
20817 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
20818 wxPyEndAllowThreads(__tstate);
20819 if (PyErr_Occurred()) SWIG_fail;
20820 }
20821 resultobj = SWIG_Py_Void();
20822 if (SWIG_IsTmpObj(res3)) {
20823 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20824 } else {
20825 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20826 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20827 }
20828 if (SWIG_IsTmpObj(res4)) {
20829 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20830 } else {
20831 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20832 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20833 }
20834 if (SWIG_IsTmpObj(res5)) {
20835 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20836 } else {
20837 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20838 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20839 }
20840 {
20841 if (temp2)
20842 delete arg2;
20843 }
20844 return resultobj;
20845fail:
20846 {
20847 if (temp2)
20848 delete arg2;
20849 }
20850 return NULL;
20851}
20852
20853
20854SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20855 PyObject *resultobj = 0;
20856 wxDC *arg1 = (wxDC *) 0 ;
20857 wxString *arg2 = 0 ;
20858 wxArrayInt result;
20859 void *argp1 = 0 ;
20860 int res1 = 0 ;
20861 bool temp2 = false ;
20862 PyObject * obj0 = 0 ;
20863 PyObject * obj1 = 0 ;
20864 char * kwnames[] = {
20865 (char *) "self",(char *) "text", NULL
20866 };
20867
20868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
20869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20870 if (!SWIG_IsOK(res1)) {
20871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
20872 }
20873 arg1 = reinterpret_cast< wxDC * >(argp1);
20874 {
20875 arg2 = wxString_in_helper(obj1);
20876 if (arg2 == NULL) SWIG_fail;
20877 temp2 = true;
20878 }
20879 {
20880 PyThreadState* __tstate = wxPyBeginAllowThreads();
20881 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
20882 wxPyEndAllowThreads(__tstate);
20883 if (PyErr_Occurred()) SWIG_fail;
20884 }
20885 {
b39fe951 20886 resultobj = wxArrayInt2PyList_helper(result);
1bd55598
RD
20887 }
20888 {
20889 if (temp2)
20890 delete arg2;
20891 }
20892 return resultobj;
20893fail:
20894 {
20895 if (temp2)
20896 delete arg2;
20897 }
20898 return NULL;
20899}
20900
20901
20902SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20903 PyObject *resultobj = 0;
20904 wxDC *arg1 = (wxDC *) 0 ;
20905 wxSize result;
20906 void *argp1 = 0 ;
20907 int res1 = 0 ;
20908 PyObject *swig_obj[1] ;
20909
20910 if (!args) SWIG_fail;
20911 swig_obj[0] = args;
20912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20913 if (!SWIG_IsOK(res1)) {
20914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
20915 }
20916 arg1 = reinterpret_cast< wxDC * >(argp1);
20917 {
20918 PyThreadState* __tstate = wxPyBeginAllowThreads();
20919 result = (arg1)->GetSize();
20920 wxPyEndAllowThreads(__tstate);
20921 if (PyErr_Occurred()) SWIG_fail;
20922 }
20923 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
20924 return resultobj;
20925fail:
20926 return NULL;
20927}
20928
20929
20930SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20931 PyObject *resultobj = 0;
20932 wxDC *arg1 = (wxDC *) 0 ;
20933 int *arg2 = (int *) 0 ;
20934 int *arg3 = (int *) 0 ;
20935 void *argp1 = 0 ;
20936 int res1 = 0 ;
20937 int temp2 ;
20938 int res2 = SWIG_TMPOBJ ;
20939 int temp3 ;
20940 int res3 = SWIG_TMPOBJ ;
20941 PyObject *swig_obj[1] ;
20942
20943 arg2 = &temp2;
20944 arg3 = &temp3;
20945 if (!args) SWIG_fail;
20946 swig_obj[0] = args;
20947 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20948 if (!SWIG_IsOK(res1)) {
20949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
20950 }
20951 arg1 = reinterpret_cast< wxDC * >(argp1);
20952 {
20953 PyThreadState* __tstate = wxPyBeginAllowThreads();
20954 (arg1)->GetSize(arg2,arg3);
20955 wxPyEndAllowThreads(__tstate);
20956 if (PyErr_Occurred()) SWIG_fail;
20957 }
20958 resultobj = SWIG_Py_Void();
20959 if (SWIG_IsTmpObj(res2)) {
20960 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20961 } else {
20962 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20963 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20964 }
20965 if (SWIG_IsTmpObj(res3)) {
20966 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20967 } else {
20968 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20969 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20970 }
20971 return resultobj;
20972fail:
20973 return NULL;
20974}
20975
20976
20977SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20978 PyObject *resultobj = 0;
20979 wxDC *arg1 = (wxDC *) 0 ;
20980 wxSize result;
20981 void *argp1 = 0 ;
20982 int res1 = 0 ;
20983 PyObject *swig_obj[1] ;
20984
20985 if (!args) SWIG_fail;
20986 swig_obj[0] = args;
20987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20988 if (!SWIG_IsOK(res1)) {
20989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
20990 }
20991 arg1 = reinterpret_cast< wxDC * >(argp1);
20992 {
20993 PyThreadState* __tstate = wxPyBeginAllowThreads();
20994 result = ((wxDC const *)arg1)->GetSizeMM();
20995 wxPyEndAllowThreads(__tstate);
20996 if (PyErr_Occurred()) SWIG_fail;
20997 }
20998 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
20999 return resultobj;
21000fail:
21001 return NULL;
21002}
21003
21004
21005SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21006 PyObject *resultobj = 0;
21007 wxDC *arg1 = (wxDC *) 0 ;
21008 int *arg2 = (int *) 0 ;
21009 int *arg3 = (int *) 0 ;
21010 void *argp1 = 0 ;
21011 int res1 = 0 ;
21012 int temp2 ;
21013 int res2 = SWIG_TMPOBJ ;
21014 int temp3 ;
21015 int res3 = SWIG_TMPOBJ ;
21016 PyObject *swig_obj[1] ;
21017
21018 arg2 = &temp2;
21019 arg3 = &temp3;
21020 if (!args) SWIG_fail;
21021 swig_obj[0] = args;
21022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21023 if (!SWIG_IsOK(res1)) {
21024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21025 }
21026 arg1 = reinterpret_cast< wxDC * >(argp1);
21027 {
21028 PyThreadState* __tstate = wxPyBeginAllowThreads();
21029 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21030 wxPyEndAllowThreads(__tstate);
21031 if (PyErr_Occurred()) SWIG_fail;
21032 }
21033 resultobj = SWIG_Py_Void();
21034 if (SWIG_IsTmpObj(res2)) {
21035 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21036 } else {
21037 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21038 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21039 }
21040 if (SWIG_IsTmpObj(res3)) {
21041 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21042 } else {
21043 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21044 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21045 }
21046 return resultobj;
21047fail:
21048 return NULL;
21049}
21050
21051
21052SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21053 PyObject *resultobj = 0;
21054 wxDC *arg1 = (wxDC *) 0 ;
21055 int arg2 ;
21056 int result;
21057 void *argp1 = 0 ;
21058 int res1 = 0 ;
21059 int val2 ;
21060 int ecode2 = 0 ;
21061 PyObject * obj0 = 0 ;
21062 PyObject * obj1 = 0 ;
21063 char * kwnames[] = {
21064 (char *) "self",(char *) "x", NULL
21065 };
21066
21067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21069 if (!SWIG_IsOK(res1)) {
21070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21071 }
21072 arg1 = reinterpret_cast< wxDC * >(argp1);
21073 ecode2 = SWIG_AsVal_int(obj1, &val2);
21074 if (!SWIG_IsOK(ecode2)) {
21075 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21076 }
21077 arg2 = static_cast< int >(val2);
21078 {
21079 PyThreadState* __tstate = wxPyBeginAllowThreads();
21080 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21081 wxPyEndAllowThreads(__tstate);
21082 if (PyErr_Occurred()) SWIG_fail;
21083 }
21084 resultobj = SWIG_From_int(static_cast< int >(result));
21085 return resultobj;
21086fail:
21087 return NULL;
21088}
21089
21090
21091SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21092 PyObject *resultobj = 0;
21093 wxDC *arg1 = (wxDC *) 0 ;
21094 int arg2 ;
21095 int result;
21096 void *argp1 = 0 ;
21097 int res1 = 0 ;
21098 int val2 ;
21099 int ecode2 = 0 ;
21100 PyObject * obj0 = 0 ;
21101 PyObject * obj1 = 0 ;
21102 char * kwnames[] = {
21103 (char *) "self",(char *) "y", NULL
21104 };
21105
21106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21108 if (!SWIG_IsOK(res1)) {
21109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21110 }
21111 arg1 = reinterpret_cast< wxDC * >(argp1);
21112 ecode2 = SWIG_AsVal_int(obj1, &val2);
21113 if (!SWIG_IsOK(ecode2)) {
21114 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21115 }
21116 arg2 = static_cast< int >(val2);
21117 {
21118 PyThreadState* __tstate = wxPyBeginAllowThreads();
21119 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21120 wxPyEndAllowThreads(__tstate);
21121 if (PyErr_Occurred()) SWIG_fail;
21122 }
21123 resultobj = SWIG_From_int(static_cast< int >(result));
21124 return resultobj;
21125fail:
21126 return NULL;
21127}
21128
21129
21130SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21131 PyObject *resultobj = 0;
21132 wxDC *arg1 = (wxDC *) 0 ;
21133 int arg2 ;
21134 int result;
21135 void *argp1 = 0 ;
21136 int res1 = 0 ;
21137 int val2 ;
21138 int ecode2 = 0 ;
21139 PyObject * obj0 = 0 ;
21140 PyObject * obj1 = 0 ;
21141 char * kwnames[] = {
21142 (char *) "self",(char *) "x", NULL
21143 };
21144
21145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21147 if (!SWIG_IsOK(res1)) {
21148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21149 }
21150 arg1 = reinterpret_cast< wxDC * >(argp1);
21151 ecode2 = SWIG_AsVal_int(obj1, &val2);
21152 if (!SWIG_IsOK(ecode2)) {
21153 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21154 }
21155 arg2 = static_cast< int >(val2);
21156 {
21157 PyThreadState* __tstate = wxPyBeginAllowThreads();
21158 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21159 wxPyEndAllowThreads(__tstate);
21160 if (PyErr_Occurred()) SWIG_fail;
21161 }
21162 resultobj = SWIG_From_int(static_cast< int >(result));
21163 return resultobj;
21164fail:
21165 return NULL;
21166}
21167
21168
21169SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21170 PyObject *resultobj = 0;
21171 wxDC *arg1 = (wxDC *) 0 ;
21172 int arg2 ;
21173 int result;
21174 void *argp1 = 0 ;
21175 int res1 = 0 ;
21176 int val2 ;
21177 int ecode2 = 0 ;
21178 PyObject * obj0 = 0 ;
21179 PyObject * obj1 = 0 ;
21180 char * kwnames[] = {
21181 (char *) "self",(char *) "y", NULL
21182 };
21183
21184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21186 if (!SWIG_IsOK(res1)) {
21187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21188 }
21189 arg1 = reinterpret_cast< wxDC * >(argp1);
21190 ecode2 = SWIG_AsVal_int(obj1, &val2);
21191 if (!SWIG_IsOK(ecode2)) {
21192 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21193 }
21194 arg2 = static_cast< int >(val2);
21195 {
21196 PyThreadState* __tstate = wxPyBeginAllowThreads();
21197 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21198 wxPyEndAllowThreads(__tstate);
21199 if (PyErr_Occurred()) SWIG_fail;
21200 }
21201 resultobj = SWIG_From_int(static_cast< int >(result));
21202 return resultobj;
21203fail:
21204 return NULL;
21205}
21206
21207
21208SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21209 PyObject *resultobj = 0;
21210 wxDC *arg1 = (wxDC *) 0 ;
21211 int arg2 ;
21212 int result;
21213 void *argp1 = 0 ;
21214 int res1 = 0 ;
21215 int val2 ;
21216 int ecode2 = 0 ;
21217 PyObject * obj0 = 0 ;
21218 PyObject * obj1 = 0 ;
21219 char * kwnames[] = {
21220 (char *) "self",(char *) "x", NULL
21221 };
21222
21223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21225 if (!SWIG_IsOK(res1)) {
21226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21227 }
21228 arg1 = reinterpret_cast< wxDC * >(argp1);
21229 ecode2 = SWIG_AsVal_int(obj1, &val2);
21230 if (!SWIG_IsOK(ecode2)) {
21231 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21232 }
21233 arg2 = static_cast< int >(val2);
21234 {
21235 PyThreadState* __tstate = wxPyBeginAllowThreads();
21236 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21237 wxPyEndAllowThreads(__tstate);
21238 if (PyErr_Occurred()) SWIG_fail;
21239 }
21240 resultobj = SWIG_From_int(static_cast< int >(result));
21241 return resultobj;
21242fail:
21243 return NULL;
21244}
21245
21246
21247SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21248 PyObject *resultobj = 0;
21249 wxDC *arg1 = (wxDC *) 0 ;
21250 int arg2 ;
21251 int result;
21252 void *argp1 = 0 ;
21253 int res1 = 0 ;
21254 int val2 ;
21255 int ecode2 = 0 ;
21256 PyObject * obj0 = 0 ;
21257 PyObject * obj1 = 0 ;
21258 char * kwnames[] = {
21259 (char *) "self",(char *) "y", NULL
21260 };
21261
21262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21264 if (!SWIG_IsOK(res1)) {
21265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21266 }
21267 arg1 = reinterpret_cast< wxDC * >(argp1);
21268 ecode2 = SWIG_AsVal_int(obj1, &val2);
21269 if (!SWIG_IsOK(ecode2)) {
21270 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21271 }
21272 arg2 = static_cast< int >(val2);
21273 {
21274 PyThreadState* __tstate = wxPyBeginAllowThreads();
21275 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21276 wxPyEndAllowThreads(__tstate);
21277 if (PyErr_Occurred()) SWIG_fail;
21278 }
21279 resultobj = SWIG_From_int(static_cast< int >(result));
21280 return resultobj;
21281fail:
21282 return NULL;
21283}
21284
21285
21286SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21287 PyObject *resultobj = 0;
21288 wxDC *arg1 = (wxDC *) 0 ;
21289 int arg2 ;
21290 int result;
21291 void *argp1 = 0 ;
21292 int res1 = 0 ;
21293 int val2 ;
21294 int ecode2 = 0 ;
21295 PyObject * obj0 = 0 ;
21296 PyObject * obj1 = 0 ;
21297 char * kwnames[] = {
21298 (char *) "self",(char *) "x", NULL
21299 };
21300
21301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21303 if (!SWIG_IsOK(res1)) {
21304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21305 }
21306 arg1 = reinterpret_cast< wxDC * >(argp1);
21307 ecode2 = SWIG_AsVal_int(obj1, &val2);
21308 if (!SWIG_IsOK(ecode2)) {
21309 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21310 }
21311 arg2 = static_cast< int >(val2);
21312 {
21313 PyThreadState* __tstate = wxPyBeginAllowThreads();
21314 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21315 wxPyEndAllowThreads(__tstate);
21316 if (PyErr_Occurred()) SWIG_fail;
21317 }
21318 resultobj = SWIG_From_int(static_cast< int >(result));
21319 return resultobj;
21320fail:
21321 return NULL;
21322}
21323
21324
21325SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21326 PyObject *resultobj = 0;
21327 wxDC *arg1 = (wxDC *) 0 ;
21328 int arg2 ;
21329 int result;
21330 void *argp1 = 0 ;
21331 int res1 = 0 ;
21332 int val2 ;
21333 int ecode2 = 0 ;
21334 PyObject * obj0 = 0 ;
21335 PyObject * obj1 = 0 ;
21336 char * kwnames[] = {
21337 (char *) "self",(char *) "y", NULL
21338 };
21339
21340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21342 if (!SWIG_IsOK(res1)) {
21343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21344 }
21345 arg1 = reinterpret_cast< wxDC * >(argp1);
21346 ecode2 = SWIG_AsVal_int(obj1, &val2);
21347 if (!SWIG_IsOK(ecode2)) {
21348 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21349 }
21350 arg2 = static_cast< int >(val2);
21351 {
21352 PyThreadState* __tstate = wxPyBeginAllowThreads();
21353 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21354 wxPyEndAllowThreads(__tstate);
21355 if (PyErr_Occurred()) SWIG_fail;
21356 }
21357 resultobj = SWIG_From_int(static_cast< int >(result));
21358 return resultobj;
21359fail:
21360 return NULL;
21361}
21362
21363
21364SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(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_CanDrawBitmap" "', 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)->CanDrawBitmap();
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_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21395 PyObject *resultobj = 0;
21396 wxDC *arg1 = (wxDC *) 0 ;
21397 bool 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_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21407 }
21408 arg1 = reinterpret_cast< wxDC * >(argp1);
21409 {
21410 PyThreadState* __tstate = wxPyBeginAllowThreads();
21411 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21412 wxPyEndAllowThreads(__tstate);
21413 if (PyErr_Occurred()) SWIG_fail;
21414 }
21415 {
21416 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21417 }
21418 return resultobj;
21419fail:
21420 return NULL;
21421}
21422
21423
21424SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21425 PyObject *resultobj = 0;
21426 wxDC *arg1 = (wxDC *) 0 ;
21427 int result;
21428 void *argp1 = 0 ;
21429 int res1 = 0 ;
21430 PyObject *swig_obj[1] ;
21431
21432 if (!args) SWIG_fail;
21433 swig_obj[0] = args;
21434 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21435 if (!SWIG_IsOK(res1)) {
21436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21437 }
21438 arg1 = reinterpret_cast< wxDC * >(argp1);
21439 {
21440 PyThreadState* __tstate = wxPyBeginAllowThreads();
21441 result = (int)((wxDC const *)arg1)->GetDepth();
21442 wxPyEndAllowThreads(__tstate);
21443 if (PyErr_Occurred()) SWIG_fail;
21444 }
21445 resultobj = SWIG_From_int(static_cast< int >(result));
21446 return resultobj;
21447fail:
21448 return NULL;
21449}
21450
21451
21452SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21453 PyObject *resultobj = 0;
21454 wxDC *arg1 = (wxDC *) 0 ;
21455 wxSize result;
21456 void *argp1 = 0 ;
21457 int res1 = 0 ;
21458 PyObject *swig_obj[1] ;
21459
21460 if (!args) SWIG_fail;
21461 swig_obj[0] = args;
21462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21463 if (!SWIG_IsOK(res1)) {
21464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21465 }
21466 arg1 = reinterpret_cast< wxDC * >(argp1);
21467 {
21468 PyThreadState* __tstate = wxPyBeginAllowThreads();
21469 result = ((wxDC const *)arg1)->GetPPI();
21470 wxPyEndAllowThreads(__tstate);
21471 if (PyErr_Occurred()) SWIG_fail;
21472 }
21473 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21474 return resultobj;
21475fail:
21476 return NULL;
21477}
21478
21479
b39fe951 21480SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
21481 PyObject *resultobj = 0;
21482 wxDC *arg1 = (wxDC *) 0 ;
21483 bool 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)) {
b39fe951 21492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
1bd55598
RD
21493 }
21494 arg1 = reinterpret_cast< wxDC * >(argp1);
21495 {
21496 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 21497 result = (bool)((wxDC const *)arg1)->IsOk();
1bd55598
RD
21498 wxPyEndAllowThreads(__tstate);
21499 if (PyErr_Occurred()) SWIG_fail;
21500 }
21501 {
21502 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21503 }
21504 return resultobj;
21505fail:
21506 return NULL;
21507}
21508
21509
21510SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21511 PyObject *resultobj = 0;
21512 wxDC *arg1 = (wxDC *) 0 ;
21513 int result;
21514 void *argp1 = 0 ;
21515 int res1 = 0 ;
21516 PyObject *swig_obj[1] ;
21517
21518 if (!args) SWIG_fail;
21519 swig_obj[0] = args;
21520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21521 if (!SWIG_IsOK(res1)) {
21522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21523 }
21524 arg1 = reinterpret_cast< wxDC * >(argp1);
21525 {
21526 PyThreadState* __tstate = wxPyBeginAllowThreads();
21527 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21528 wxPyEndAllowThreads(__tstate);
21529 if (PyErr_Occurred()) SWIG_fail;
21530 }
21531 resultobj = SWIG_From_int(static_cast< int >(result));
21532 return resultobj;
21533fail:
21534 return NULL;
21535}
21536
21537
21538SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21539 PyObject *resultobj = 0;
21540 wxDC *arg1 = (wxDC *) 0 ;
21541 wxBrush *result = 0 ;
21542 void *argp1 = 0 ;
21543 int res1 = 0 ;
21544 PyObject *swig_obj[1] ;
21545
21546 if (!args) SWIG_fail;
21547 swig_obj[0] = args;
21548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21549 if (!SWIG_IsOK(res1)) {
21550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21551 }
21552 arg1 = reinterpret_cast< wxDC * >(argp1);
21553 {
21554 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21555 {
1bd55598
RD
21556 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21557 result = (wxBrush *) &_result_ref;
36ed4f51 21558 }
1bd55598
RD
21559 wxPyEndAllowThreads(__tstate);
21560 if (PyErr_Occurred()) SWIG_fail;
21561 }
21562 {
21563 wxBrush* resultptr = new wxBrush(*result);
21564 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21565 }
21566 return resultobj;
21567fail:
21568 return NULL;
21569}
21570
21571
21572SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21573 PyObject *resultobj = 0;
21574 wxDC *arg1 = (wxDC *) 0 ;
21575 wxBrush *result = 0 ;
21576 void *argp1 = 0 ;
21577 int res1 = 0 ;
21578 PyObject *swig_obj[1] ;
21579
21580 if (!args) SWIG_fail;
21581 swig_obj[0] = args;
21582 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21583 if (!SWIG_IsOK(res1)) {
21584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
21585 }
21586 arg1 = reinterpret_cast< wxDC * >(argp1);
21587 {
21588 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21589 {
1bd55598
RD
21590 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
21591 result = (wxBrush *) &_result_ref;
36ed4f51 21592 }
1bd55598
RD
21593 wxPyEndAllowThreads(__tstate);
21594 if (PyErr_Occurred()) SWIG_fail;
21595 }
21596 {
21597 wxBrush* resultptr = new wxBrush(*result);
21598 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21599 }
21600 return resultobj;
21601fail:
21602 return NULL;
21603}
21604
21605
21606SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21607 PyObject *resultobj = 0;
21608 wxDC *arg1 = (wxDC *) 0 ;
21609 wxFont *result = 0 ;
21610 void *argp1 = 0 ;
21611 int res1 = 0 ;
21612 PyObject *swig_obj[1] ;
21613
21614 if (!args) SWIG_fail;
21615 swig_obj[0] = args;
21616 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21617 if (!SWIG_IsOK(res1)) {
21618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
21619 }
21620 arg1 = reinterpret_cast< wxDC * >(argp1);
21621 {
21622 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21623 {
1bd55598
RD
21624 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
21625 result = (wxFont *) &_result_ref;
36ed4f51 21626 }
1bd55598
RD
21627 wxPyEndAllowThreads(__tstate);
21628 if (PyErr_Occurred()) SWIG_fail;
21629 }
21630 {
21631 wxFont* resultptr = new wxFont(*result);
21632 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
21633 }
21634 return resultobj;
21635fail:
21636 return NULL;
21637}
21638
21639
21640SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21641 PyObject *resultobj = 0;
21642 wxDC *arg1 = (wxDC *) 0 ;
21643 wxPen *result = 0 ;
21644 void *argp1 = 0 ;
21645 int res1 = 0 ;
21646 PyObject *swig_obj[1] ;
21647
21648 if (!args) SWIG_fail;
21649 swig_obj[0] = args;
21650 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21651 if (!SWIG_IsOK(res1)) {
21652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
21653 }
21654 arg1 = reinterpret_cast< wxDC * >(argp1);
21655 {
21656 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21657 {
1bd55598
RD
21658 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
21659 result = (wxPen *) &_result_ref;
36ed4f51 21660 }
1bd55598
RD
21661 wxPyEndAllowThreads(__tstate);
21662 if (PyErr_Occurred()) SWIG_fail;
21663 }
21664 {
21665 wxPen* resultptr = new wxPen(*result);
21666 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
21667 }
21668 return resultobj;
21669fail:
21670 return NULL;
21671}
21672
21673
21674SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21675 PyObject *resultobj = 0;
21676 wxDC *arg1 = (wxDC *) 0 ;
21677 wxColour *result = 0 ;
21678 void *argp1 = 0 ;
21679 int res1 = 0 ;
21680 PyObject *swig_obj[1] ;
21681
21682 if (!args) SWIG_fail;
21683 swig_obj[0] = args;
21684 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21685 if (!SWIG_IsOK(res1)) {
21686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21687 }
21688 arg1 = reinterpret_cast< wxDC * >(argp1);
21689 {
21690 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21691 {
1bd55598
RD
21692 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
21693 result = (wxColour *) &_result_ref;
36ed4f51 21694 }
1bd55598
RD
21695 wxPyEndAllowThreads(__tstate);
21696 if (PyErr_Occurred()) SWIG_fail;
21697 }
21698 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21699 return resultobj;
21700fail:
21701 return NULL;
21702}
21703
21704
21705SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21706 PyObject *resultobj = 0;
21707 wxDC *arg1 = (wxDC *) 0 ;
21708 wxColour *result = 0 ;
21709 void *argp1 = 0 ;
21710 int res1 = 0 ;
21711 PyObject *swig_obj[1] ;
21712
21713 if (!args) SWIG_fail;
21714 swig_obj[0] = args;
21715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21716 if (!SWIG_IsOK(res1)) {
21717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
21718 }
21719 arg1 = reinterpret_cast< wxDC * >(argp1);
21720 {
21721 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21722 {
1bd55598
RD
21723 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
21724 result = (wxColour *) &_result_ref;
36ed4f51 21725 }
1bd55598
RD
21726 wxPyEndAllowThreads(__tstate);
21727 if (PyErr_Occurred()) SWIG_fail;
21728 }
21729 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21730 return resultobj;
21731fail:
21732 return NULL;
21733}
21734
21735
21736SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21737 PyObject *resultobj = 0;
21738 wxDC *arg1 = (wxDC *) 0 ;
21739 wxColour *arg2 = 0 ;
21740 void *argp1 = 0 ;
21741 int res1 = 0 ;
21742 wxColour temp2 ;
21743 PyObject * obj0 = 0 ;
21744 PyObject * obj1 = 0 ;
21745 char * kwnames[] = {
21746 (char *) "self",(char *) "colour", NULL
21747 };
21748
21749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
21750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21751 if (!SWIG_IsOK(res1)) {
21752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
21753 }
21754 arg1 = reinterpret_cast< wxDC * >(argp1);
21755 {
21756 arg2 = &temp2;
21757 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21758 }
21759 {
21760 PyThreadState* __tstate = wxPyBeginAllowThreads();
21761 (arg1)->SetTextForeground((wxColour const &)*arg2);
21762 wxPyEndAllowThreads(__tstate);
21763 if (PyErr_Occurred()) SWIG_fail;
21764 }
21765 resultobj = SWIG_Py_Void();
21766 return resultobj;
21767fail:
21768 return NULL;
21769}
21770
21771
21772SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21773 PyObject *resultobj = 0;
21774 wxDC *arg1 = (wxDC *) 0 ;
21775 wxColour *arg2 = 0 ;
21776 void *argp1 = 0 ;
21777 int res1 = 0 ;
21778 wxColour temp2 ;
21779 PyObject * obj0 = 0 ;
21780 PyObject * obj1 = 0 ;
21781 char * kwnames[] = {
21782 (char *) "self",(char *) "colour", NULL
21783 };
21784
21785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
21786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21787 if (!SWIG_IsOK(res1)) {
21788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
21789 }
21790 arg1 = reinterpret_cast< wxDC * >(argp1);
21791 {
21792 arg2 = &temp2;
21793 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21794 }
21795 {
21796 PyThreadState* __tstate = wxPyBeginAllowThreads();
21797 (arg1)->SetTextBackground((wxColour const &)*arg2);
21798 wxPyEndAllowThreads(__tstate);
21799 if (PyErr_Occurred()) SWIG_fail;
21800 }
21801 resultobj = SWIG_Py_Void();
21802 return resultobj;
21803fail:
21804 return NULL;
21805}
21806
21807
21808SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21809 PyObject *resultobj = 0;
21810 wxDC *arg1 = (wxDC *) 0 ;
21811 int result;
21812 void *argp1 = 0 ;
21813 int res1 = 0 ;
21814 PyObject *swig_obj[1] ;
21815
21816 if (!args) SWIG_fail;
21817 swig_obj[0] = args;
21818 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21819 if (!SWIG_IsOK(res1)) {
21820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21821 }
21822 arg1 = reinterpret_cast< wxDC * >(argp1);
21823 {
21824 PyThreadState* __tstate = wxPyBeginAllowThreads();
21825 result = (int)((wxDC const *)arg1)->GetMapMode();
21826 wxPyEndAllowThreads(__tstate);
21827 if (PyErr_Occurred()) SWIG_fail;
21828 }
21829 resultobj = SWIG_From_int(static_cast< int >(result));
21830 return resultobj;
21831fail:
21832 return NULL;
21833}
21834
21835
21836SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21837 PyObject *resultobj = 0;
21838 wxDC *arg1 = (wxDC *) 0 ;
21839 int arg2 ;
21840 void *argp1 = 0 ;
21841 int res1 = 0 ;
21842 int val2 ;
21843 int ecode2 = 0 ;
21844 PyObject * obj0 = 0 ;
21845 PyObject * obj1 = 0 ;
21846 char * kwnames[] = {
21847 (char *) "self",(char *) "mode", NULL
21848 };
21849
21850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
21851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21852 if (!SWIG_IsOK(res1)) {
21853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
21854 }
21855 arg1 = reinterpret_cast< wxDC * >(argp1);
21856 ecode2 = SWIG_AsVal_int(obj1, &val2);
21857 if (!SWIG_IsOK(ecode2)) {
21858 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
21859 }
21860 arg2 = static_cast< int >(val2);
21861 {
21862 PyThreadState* __tstate = wxPyBeginAllowThreads();
21863 (arg1)->SetMapMode(arg2);
21864 wxPyEndAllowThreads(__tstate);
21865 if (PyErr_Occurred()) SWIG_fail;
21866 }
21867 resultobj = SWIG_Py_Void();
21868 return resultobj;
21869fail:
21870 return NULL;
21871}
21872
21873
21874SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21875 PyObject *resultobj = 0;
21876 wxDC *arg1 = (wxDC *) 0 ;
21877 double *arg2 = (double *) 0 ;
21878 double *arg3 = (double *) 0 ;
21879 void *argp1 = 0 ;
21880 int res1 = 0 ;
21881 double temp2 ;
21882 int res2 = SWIG_TMPOBJ ;
21883 double temp3 ;
21884 int res3 = SWIG_TMPOBJ ;
21885 PyObject *swig_obj[1] ;
21886
21887 arg2 = &temp2;
21888 arg3 = &temp3;
21889 if (!args) SWIG_fail;
21890 swig_obj[0] = args;
21891 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21892 if (!SWIG_IsOK(res1)) {
21893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
21894 }
21895 arg1 = reinterpret_cast< wxDC * >(argp1);
21896 {
21897 PyThreadState* __tstate = wxPyBeginAllowThreads();
21898 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
21899 wxPyEndAllowThreads(__tstate);
21900 if (PyErr_Occurred()) SWIG_fail;
21901 }
21902 resultobj = SWIG_Py_Void();
21903 if (SWIG_IsTmpObj(res2)) {
21904 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
21905 } else {
21906 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21907 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
21908 }
21909 if (SWIG_IsTmpObj(res3)) {
21910 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
21911 } else {
21912 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21913 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
21914 }
21915 return resultobj;
21916fail:
21917 return NULL;
21918}
21919
21920
21921SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21922 PyObject *resultobj = 0;
21923 wxDC *arg1 = (wxDC *) 0 ;
21924 double arg2 ;
21925 double arg3 ;
21926 void *argp1 = 0 ;
21927 int res1 = 0 ;
21928 double val2 ;
21929 int ecode2 = 0 ;
21930 double val3 ;
21931 int ecode3 = 0 ;
21932 PyObject * obj0 = 0 ;
21933 PyObject * obj1 = 0 ;
21934 PyObject * obj2 = 0 ;
21935 char * kwnames[] = {
21936 (char *) "self",(char *) "x",(char *) "y", NULL
21937 };
21938
21939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21941 if (!SWIG_IsOK(res1)) {
21942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
21943 }
21944 arg1 = reinterpret_cast< wxDC * >(argp1);
21945 ecode2 = SWIG_AsVal_double(obj1, &val2);
21946 if (!SWIG_IsOK(ecode2)) {
21947 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
21948 }
21949 arg2 = static_cast< double >(val2);
21950 ecode3 = SWIG_AsVal_double(obj2, &val3);
21951 if (!SWIG_IsOK(ecode3)) {
21952 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
21953 }
21954 arg3 = static_cast< double >(val3);
21955 {
21956 PyThreadState* __tstate = wxPyBeginAllowThreads();
21957 (arg1)->SetUserScale(arg2,arg3);
21958 wxPyEndAllowThreads(__tstate);
21959 if (PyErr_Occurred()) SWIG_fail;
21960 }
21961 resultobj = SWIG_Py_Void();
21962 return resultobj;
21963fail:
21964 return NULL;
21965}
21966
21967
21968SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21969 PyObject *resultobj = 0;
21970 wxDC *arg1 = (wxDC *) 0 ;
21971 double *arg2 = (double *) 0 ;
21972 double *arg3 = (double *) 0 ;
21973 void *argp1 = 0 ;
21974 int res1 = 0 ;
21975 double temp2 ;
21976 int res2 = SWIG_TMPOBJ ;
21977 double temp3 ;
21978 int res3 = SWIG_TMPOBJ ;
21979 PyObject *swig_obj[1] ;
21980
21981 arg2 = &temp2;
21982 arg3 = &temp3;
21983 if (!args) SWIG_fail;
21984 swig_obj[0] = args;
21985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21986 if (!SWIG_IsOK(res1)) {
21987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
21988 }
21989 arg1 = reinterpret_cast< wxDC * >(argp1);
21990 {
21991 PyThreadState* __tstate = wxPyBeginAllowThreads();
21992 (arg1)->GetLogicalScale(arg2,arg3);
21993 wxPyEndAllowThreads(__tstate);
21994 if (PyErr_Occurred()) SWIG_fail;
21995 }
21996 resultobj = SWIG_Py_Void();
21997 if (SWIG_IsTmpObj(res2)) {
21998 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
21999 } else {
22000 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22001 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22002 }
22003 if (SWIG_IsTmpObj(res3)) {
22004 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22005 } else {
22006 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22007 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22008 }
22009 return resultobj;
22010fail:
22011 return NULL;
22012}
22013
22014
22015SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22016 PyObject *resultobj = 0;
22017 wxDC *arg1 = (wxDC *) 0 ;
22018 double arg2 ;
22019 double arg3 ;
22020 void *argp1 = 0 ;
22021 int res1 = 0 ;
22022 double val2 ;
22023 int ecode2 = 0 ;
22024 double val3 ;
22025 int ecode3 = 0 ;
22026 PyObject * obj0 = 0 ;
22027 PyObject * obj1 = 0 ;
22028 PyObject * obj2 = 0 ;
22029 char * kwnames[] = {
22030 (char *) "self",(char *) "x",(char *) "y", NULL
22031 };
22032
22033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22035 if (!SWIG_IsOK(res1)) {
22036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22037 }
22038 arg1 = reinterpret_cast< wxDC * >(argp1);
22039 ecode2 = SWIG_AsVal_double(obj1, &val2);
22040 if (!SWIG_IsOK(ecode2)) {
22041 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22042 }
22043 arg2 = static_cast< double >(val2);
22044 ecode3 = SWIG_AsVal_double(obj2, &val3);
22045 if (!SWIG_IsOK(ecode3)) {
22046 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22047 }
22048 arg3 = static_cast< double >(val3);
22049 {
22050 PyThreadState* __tstate = wxPyBeginAllowThreads();
22051 (arg1)->SetLogicalScale(arg2,arg3);
22052 wxPyEndAllowThreads(__tstate);
22053 if (PyErr_Occurred()) SWIG_fail;
22054 }
22055 resultobj = SWIG_Py_Void();
22056 return resultobj;
22057fail:
22058 return NULL;
22059}
22060
22061
22062SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22063 PyObject *resultobj = 0;
22064 wxDC *arg1 = (wxDC *) 0 ;
22065 wxPoint result;
22066 void *argp1 = 0 ;
22067 int res1 = 0 ;
22068 PyObject *swig_obj[1] ;
22069
22070 if (!args) SWIG_fail;
22071 swig_obj[0] = args;
22072 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22073 if (!SWIG_IsOK(res1)) {
22074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22075 }
22076 arg1 = reinterpret_cast< wxDC * >(argp1);
22077 {
22078 PyThreadState* __tstate = wxPyBeginAllowThreads();
22079 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22080 wxPyEndAllowThreads(__tstate);
22081 if (PyErr_Occurred()) SWIG_fail;
22082 }
22083 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22084 return resultobj;
22085fail:
22086 return NULL;
22087}
22088
22089
22090SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22091 PyObject *resultobj = 0;
22092 wxDC *arg1 = (wxDC *) 0 ;
22093 int *arg2 = (int *) 0 ;
22094 int *arg3 = (int *) 0 ;
22095 void *argp1 = 0 ;
22096 int res1 = 0 ;
22097 int temp2 ;
22098 int res2 = SWIG_TMPOBJ ;
22099 int temp3 ;
22100 int res3 = SWIG_TMPOBJ ;
22101 PyObject *swig_obj[1] ;
22102
22103 arg2 = &temp2;
22104 arg3 = &temp3;
22105 if (!args) SWIG_fail;
22106 swig_obj[0] = args;
22107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22108 if (!SWIG_IsOK(res1)) {
22109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22110 }
22111 arg1 = reinterpret_cast< wxDC * >(argp1);
22112 {
22113 PyThreadState* __tstate = wxPyBeginAllowThreads();
22114 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22115 wxPyEndAllowThreads(__tstate);
22116 if (PyErr_Occurred()) SWIG_fail;
22117 }
22118 resultobj = SWIG_Py_Void();
22119 if (SWIG_IsTmpObj(res2)) {
22120 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22121 } else {
22122 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22123 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22124 }
22125 if (SWIG_IsTmpObj(res3)) {
22126 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22127 } else {
22128 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22129 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22130 }
22131 return resultobj;
22132fail:
22133 return NULL;
22134}
22135
22136
22137SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22138 PyObject *resultobj = 0;
22139 wxDC *arg1 = (wxDC *) 0 ;
22140 int arg2 ;
22141 int arg3 ;
22142 void *argp1 = 0 ;
22143 int res1 = 0 ;
22144 int val2 ;
22145 int ecode2 = 0 ;
22146 int val3 ;
22147 int ecode3 = 0 ;
22148 PyObject * obj0 = 0 ;
22149 PyObject * obj1 = 0 ;
22150 PyObject * obj2 = 0 ;
22151 char * kwnames[] = {
22152 (char *) "self",(char *) "x",(char *) "y", NULL
22153 };
22154
22155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22157 if (!SWIG_IsOK(res1)) {
22158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22159 }
22160 arg1 = reinterpret_cast< wxDC * >(argp1);
22161 ecode2 = SWIG_AsVal_int(obj1, &val2);
22162 if (!SWIG_IsOK(ecode2)) {
22163 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22164 }
22165 arg2 = static_cast< int >(val2);
22166 ecode3 = SWIG_AsVal_int(obj2, &val3);
22167 if (!SWIG_IsOK(ecode3)) {
22168 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22169 }
22170 arg3 = static_cast< int >(val3);
22171 {
22172 PyThreadState* __tstate = wxPyBeginAllowThreads();
22173 (arg1)->SetLogicalOrigin(arg2,arg3);
22174 wxPyEndAllowThreads(__tstate);
22175 if (PyErr_Occurred()) SWIG_fail;
22176 }
22177 resultobj = SWIG_Py_Void();
22178 return resultobj;
22179fail:
22180 return NULL;
22181}
22182
22183
22184SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22185 PyObject *resultobj = 0;
22186 wxDC *arg1 = (wxDC *) 0 ;
22187 wxPoint *arg2 = 0 ;
22188 void *argp1 = 0 ;
22189 int res1 = 0 ;
22190 wxPoint temp2 ;
22191 PyObject * obj0 = 0 ;
22192 PyObject * obj1 = 0 ;
22193 char * kwnames[] = {
22194 (char *) "self",(char *) "point", NULL
22195 };
22196
22197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22199 if (!SWIG_IsOK(res1)) {
22200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22201 }
22202 arg1 = reinterpret_cast< wxDC * >(argp1);
22203 {
22204 arg2 = &temp2;
22205 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22206 }
22207 {
22208 PyThreadState* __tstate = wxPyBeginAllowThreads();
22209 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22210 wxPyEndAllowThreads(__tstate);
22211 if (PyErr_Occurred()) SWIG_fail;
22212 }
22213 resultobj = SWIG_Py_Void();
22214 return resultobj;
22215fail:
22216 return NULL;
22217}
22218
22219
22220SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22221 PyObject *resultobj = 0;
22222 wxDC *arg1 = (wxDC *) 0 ;
22223 wxPoint result;
22224 void *argp1 = 0 ;
22225 int res1 = 0 ;
22226 PyObject *swig_obj[1] ;
22227
22228 if (!args) SWIG_fail;
22229 swig_obj[0] = args;
22230 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22231 if (!SWIG_IsOK(res1)) {
22232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22233 }
22234 arg1 = reinterpret_cast< wxDC * >(argp1);
22235 {
22236 PyThreadState* __tstate = wxPyBeginAllowThreads();
22237 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22238 wxPyEndAllowThreads(__tstate);
22239 if (PyErr_Occurred()) SWIG_fail;
22240 }
22241 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22242 return resultobj;
22243fail:
22244 return NULL;
22245}
22246
22247
22248SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22249 PyObject *resultobj = 0;
22250 wxDC *arg1 = (wxDC *) 0 ;
22251 int *arg2 = (int *) 0 ;
22252 int *arg3 = (int *) 0 ;
22253 void *argp1 = 0 ;
22254 int res1 = 0 ;
22255 int temp2 ;
22256 int res2 = SWIG_TMPOBJ ;
22257 int temp3 ;
22258 int res3 = SWIG_TMPOBJ ;
22259 PyObject *swig_obj[1] ;
22260
22261 arg2 = &temp2;
22262 arg3 = &temp3;
22263 if (!args) SWIG_fail;
22264 swig_obj[0] = args;
22265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22266 if (!SWIG_IsOK(res1)) {
22267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22268 }
22269 arg1 = reinterpret_cast< wxDC * >(argp1);
22270 {
22271 PyThreadState* __tstate = wxPyBeginAllowThreads();
22272 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22273 wxPyEndAllowThreads(__tstate);
22274 if (PyErr_Occurred()) SWIG_fail;
22275 }
22276 resultobj = SWIG_Py_Void();
22277 if (SWIG_IsTmpObj(res2)) {
22278 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22279 } else {
22280 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22281 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22282 }
22283 if (SWIG_IsTmpObj(res3)) {
22284 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22285 } else {
22286 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22287 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22288 }
22289 return resultobj;
22290fail:
22291 return NULL;
22292}
22293
22294
22295SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22296 PyObject *resultobj = 0;
22297 wxDC *arg1 = (wxDC *) 0 ;
22298 int arg2 ;
22299 int arg3 ;
22300 void *argp1 = 0 ;
22301 int res1 = 0 ;
22302 int val2 ;
22303 int ecode2 = 0 ;
22304 int val3 ;
22305 int ecode3 = 0 ;
22306 PyObject * obj0 = 0 ;
22307 PyObject * obj1 = 0 ;
22308 PyObject * obj2 = 0 ;
22309 char * kwnames[] = {
22310 (char *) "self",(char *) "x",(char *) "y", NULL
22311 };
22312
22313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22315 if (!SWIG_IsOK(res1)) {
22316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22317 }
22318 arg1 = reinterpret_cast< wxDC * >(argp1);
22319 ecode2 = SWIG_AsVal_int(obj1, &val2);
22320 if (!SWIG_IsOK(ecode2)) {
22321 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22322 }
22323 arg2 = static_cast< int >(val2);
22324 ecode3 = SWIG_AsVal_int(obj2, &val3);
22325 if (!SWIG_IsOK(ecode3)) {
22326 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22327 }
22328 arg3 = static_cast< int >(val3);
22329 {
22330 PyThreadState* __tstate = wxPyBeginAllowThreads();
22331 (arg1)->SetDeviceOrigin(arg2,arg3);
22332 wxPyEndAllowThreads(__tstate);
22333 if (PyErr_Occurred()) SWIG_fail;
22334 }
22335 resultobj = SWIG_Py_Void();
22336 return resultobj;
22337fail:
22338 return NULL;
22339}
22340
22341
22342SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22343 PyObject *resultobj = 0;
22344 wxDC *arg1 = (wxDC *) 0 ;
22345 wxPoint *arg2 = 0 ;
22346 void *argp1 = 0 ;
22347 int res1 = 0 ;
22348 wxPoint temp2 ;
22349 PyObject * obj0 = 0 ;
22350 PyObject * obj1 = 0 ;
22351 char * kwnames[] = {
22352 (char *) "self",(char *) "point", NULL
22353 };
22354
22355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22357 if (!SWIG_IsOK(res1)) {
22358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22359 }
22360 arg1 = reinterpret_cast< wxDC * >(argp1);
22361 {
22362 arg2 = &temp2;
22363 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22364 }
22365 {
22366 PyThreadState* __tstate = wxPyBeginAllowThreads();
22367 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22368 wxPyEndAllowThreads(__tstate);
22369 if (PyErr_Occurred()) SWIG_fail;
22370 }
22371 resultobj = SWIG_Py_Void();
22372 return resultobj;
22373fail:
22374 return NULL;
22375}
22376
22377
22378SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22379 PyObject *resultobj = 0;
22380 wxDC *arg1 = (wxDC *) 0 ;
22381 bool arg2 ;
22382 bool arg3 ;
22383 void *argp1 = 0 ;
22384 int res1 = 0 ;
22385 bool val2 ;
22386 int ecode2 = 0 ;
22387 bool val3 ;
22388 int ecode3 = 0 ;
22389 PyObject * obj0 = 0 ;
22390 PyObject * obj1 = 0 ;
22391 PyObject * obj2 = 0 ;
22392 char * kwnames[] = {
22393 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22394 };
22395
22396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22398 if (!SWIG_IsOK(res1)) {
22399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22400 }
22401 arg1 = reinterpret_cast< wxDC * >(argp1);
22402 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22403 if (!SWIG_IsOK(ecode2)) {
22404 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22405 }
22406 arg2 = static_cast< bool >(val2);
22407 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22408 if (!SWIG_IsOK(ecode3)) {
22409 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22410 }
22411 arg3 = static_cast< bool >(val3);
22412 {
22413 PyThreadState* __tstate = wxPyBeginAllowThreads();
22414 (arg1)->SetAxisOrientation(arg2,arg3);
22415 wxPyEndAllowThreads(__tstate);
22416 if (PyErr_Occurred()) SWIG_fail;
22417 }
22418 resultobj = SWIG_Py_Void();
22419 return resultobj;
22420fail:
22421 return NULL;
22422}
22423
22424
22425SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22426 PyObject *resultobj = 0;
22427 wxDC *arg1 = (wxDC *) 0 ;
22428 int result;
22429 void *argp1 = 0 ;
22430 int res1 = 0 ;
22431 PyObject *swig_obj[1] ;
22432
22433 if (!args) SWIG_fail;
22434 swig_obj[0] = args;
22435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22436 if (!SWIG_IsOK(res1)) {
22437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22438 }
22439 arg1 = reinterpret_cast< wxDC * >(argp1);
22440 {
22441 PyThreadState* __tstate = wxPyBeginAllowThreads();
22442 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22443 wxPyEndAllowThreads(__tstate);
22444 if (PyErr_Occurred()) SWIG_fail;
22445 }
22446 resultobj = SWIG_From_int(static_cast< int >(result));
22447 return resultobj;
22448fail:
22449 return NULL;
22450}
22451
22452
22453SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22454 PyObject *resultobj = 0;
22455 wxDC *arg1 = (wxDC *) 0 ;
22456 int arg2 ;
22457 void *argp1 = 0 ;
22458 int res1 = 0 ;
22459 int val2 ;
22460 int ecode2 = 0 ;
22461 PyObject * obj0 = 0 ;
22462 PyObject * obj1 = 0 ;
22463 char * kwnames[] = {
22464 (char *) "self",(char *) "function", NULL
22465 };
22466
22467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22469 if (!SWIG_IsOK(res1)) {
22470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22471 }
22472 arg1 = reinterpret_cast< wxDC * >(argp1);
22473 ecode2 = SWIG_AsVal_int(obj1, &val2);
22474 if (!SWIG_IsOK(ecode2)) {
22475 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22476 }
22477 arg2 = static_cast< int >(val2);
22478 {
22479 PyThreadState* __tstate = wxPyBeginAllowThreads();
22480 (arg1)->SetLogicalFunction(arg2);
22481 wxPyEndAllowThreads(__tstate);
22482 if (PyErr_Occurred()) SWIG_fail;
22483 }
22484 resultobj = SWIG_Py_Void();
22485 return resultobj;
22486fail:
22487 return NULL;
22488}
22489
22490
22491SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22492 PyObject *resultobj = 0;
22493 wxDC *arg1 = (wxDC *) 0 ;
22494 void *argp1 = 0 ;
22495 int res1 = 0 ;
22496 PyObject *swig_obj[1] ;
22497
22498 if (!args) SWIG_fail;
22499 swig_obj[0] = args;
22500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22501 if (!SWIG_IsOK(res1)) {
22502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22503 }
22504 arg1 = reinterpret_cast< wxDC * >(argp1);
22505 {
22506 PyThreadState* __tstate = wxPyBeginAllowThreads();
22507 (arg1)->ComputeScaleAndOrigin();
22508 wxPyEndAllowThreads(__tstate);
22509 if (PyErr_Occurred()) SWIG_fail;
22510 }
22511 resultobj = SWIG_Py_Void();
22512 return resultobj;
22513fail:
22514 return NULL;
22515}
22516
22517
22518SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22519 PyObject *resultobj = 0;
22520 wxDC *arg1 = (wxDC *) 0 ;
22521 int arg2 ;
22522 int arg3 ;
22523 void *argp1 = 0 ;
22524 int res1 = 0 ;
22525 int val2 ;
22526 int ecode2 = 0 ;
22527 int val3 ;
22528 int ecode3 = 0 ;
22529 PyObject * obj0 = 0 ;
22530 PyObject * obj1 = 0 ;
22531 PyObject * obj2 = 0 ;
22532 char * kwnames[] = {
22533 (char *) "self",(char *) "x",(char *) "y", NULL
22534 };
22535
22536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22538 if (!SWIG_IsOK(res1)) {
22539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22540 }
22541 arg1 = reinterpret_cast< wxDC * >(argp1);
22542 ecode2 = SWIG_AsVal_int(obj1, &val2);
22543 if (!SWIG_IsOK(ecode2)) {
22544 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22545 }
22546 arg2 = static_cast< int >(val2);
22547 ecode3 = SWIG_AsVal_int(obj2, &val3);
22548 if (!SWIG_IsOK(ecode3)) {
22549 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22550 }
22551 arg3 = static_cast< int >(val3);
22552 {
22553 PyThreadState* __tstate = wxPyBeginAllowThreads();
22554 (arg1)->CalcBoundingBox(arg2,arg3);
22555 wxPyEndAllowThreads(__tstate);
22556 if (PyErr_Occurred()) SWIG_fail;
22557 }
22558 resultobj = SWIG_Py_Void();
22559 return resultobj;
22560fail:
22561 return NULL;
22562}
22563
22564
22565SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22566 PyObject *resultobj = 0;
22567 wxDC *arg1 = (wxDC *) 0 ;
22568 wxPoint *arg2 = 0 ;
22569 void *argp1 = 0 ;
22570 int res1 = 0 ;
22571 wxPoint temp2 ;
22572 PyObject * obj0 = 0 ;
22573 PyObject * obj1 = 0 ;
22574 char * kwnames[] = {
22575 (char *) "self",(char *) "point", NULL
22576 };
22577
22578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22580 if (!SWIG_IsOK(res1)) {
22581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22582 }
22583 arg1 = reinterpret_cast< wxDC * >(argp1);
22584 {
22585 arg2 = &temp2;
22586 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22587 }
22588 {
22589 PyThreadState* __tstate = wxPyBeginAllowThreads();
22590 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
22591 wxPyEndAllowThreads(__tstate);
22592 if (PyErr_Occurred()) SWIG_fail;
22593 }
22594 resultobj = SWIG_Py_Void();
22595 return resultobj;
22596fail:
22597 return NULL;
22598}
22599
22600
22601SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22602 PyObject *resultobj = 0;
22603 wxDC *arg1 = (wxDC *) 0 ;
22604 void *argp1 = 0 ;
22605 int res1 = 0 ;
22606 PyObject *swig_obj[1] ;
22607
22608 if (!args) SWIG_fail;
22609 swig_obj[0] = args;
22610 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22611 if (!SWIG_IsOK(res1)) {
22612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22613 }
22614 arg1 = reinterpret_cast< wxDC * >(argp1);
22615 {
22616 PyThreadState* __tstate = wxPyBeginAllowThreads();
22617 (arg1)->ResetBoundingBox();
22618 wxPyEndAllowThreads(__tstate);
22619 if (PyErr_Occurred()) SWIG_fail;
22620 }
22621 resultobj = SWIG_Py_Void();
22622 return resultobj;
22623fail:
22624 return NULL;
22625}
22626
22627
22628SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22629 PyObject *resultobj = 0;
22630 wxDC *arg1 = (wxDC *) 0 ;
22631 int result;
22632 void *argp1 = 0 ;
22633 int res1 = 0 ;
22634 PyObject *swig_obj[1] ;
22635
22636 if (!args) SWIG_fail;
22637 swig_obj[0] = args;
22638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22639 if (!SWIG_IsOK(res1)) {
22640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
22641 }
22642 arg1 = reinterpret_cast< wxDC * >(argp1);
22643 {
22644 PyThreadState* __tstate = wxPyBeginAllowThreads();
22645 result = (int)((wxDC const *)arg1)->MinX();
22646 wxPyEndAllowThreads(__tstate);
22647 if (PyErr_Occurred()) SWIG_fail;
22648 }
22649 resultobj = SWIG_From_int(static_cast< int >(result));
22650 return resultobj;
22651fail:
22652 return NULL;
22653}
22654
22655
22656SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22657 PyObject *resultobj = 0;
22658 wxDC *arg1 = (wxDC *) 0 ;
22659 int result;
22660 void *argp1 = 0 ;
22661 int res1 = 0 ;
22662 PyObject *swig_obj[1] ;
22663
22664 if (!args) SWIG_fail;
22665 swig_obj[0] = args;
22666 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22667 if (!SWIG_IsOK(res1)) {
22668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
22669 }
22670 arg1 = reinterpret_cast< wxDC * >(argp1);
22671 {
22672 PyThreadState* __tstate = wxPyBeginAllowThreads();
22673 result = (int)((wxDC const *)arg1)->MaxX();
22674 wxPyEndAllowThreads(__tstate);
22675 if (PyErr_Occurred()) SWIG_fail;
22676 }
22677 resultobj = SWIG_From_int(static_cast< int >(result));
22678 return resultobj;
22679fail:
22680 return NULL;
22681}
22682
22683
22684SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22685 PyObject *resultobj = 0;
22686 wxDC *arg1 = (wxDC *) 0 ;
22687 int result;
22688 void *argp1 = 0 ;
22689 int res1 = 0 ;
22690 PyObject *swig_obj[1] ;
22691
22692 if (!args) SWIG_fail;
22693 swig_obj[0] = args;
22694 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22695 if (!SWIG_IsOK(res1)) {
22696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
22697 }
22698 arg1 = reinterpret_cast< wxDC * >(argp1);
22699 {
22700 PyThreadState* __tstate = wxPyBeginAllowThreads();
22701 result = (int)((wxDC const *)arg1)->MinY();
22702 wxPyEndAllowThreads(__tstate);
22703 if (PyErr_Occurred()) SWIG_fail;
22704 }
22705 resultobj = SWIG_From_int(static_cast< int >(result));
22706 return resultobj;
22707fail:
22708 return NULL;
22709}
22710
22711
22712SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22713 PyObject *resultobj = 0;
22714 wxDC *arg1 = (wxDC *) 0 ;
22715 int result;
22716 void *argp1 = 0 ;
22717 int res1 = 0 ;
22718 PyObject *swig_obj[1] ;
22719
22720 if (!args) SWIG_fail;
22721 swig_obj[0] = args;
22722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22723 if (!SWIG_IsOK(res1)) {
22724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
22725 }
22726 arg1 = reinterpret_cast< wxDC * >(argp1);
22727 {
22728 PyThreadState* __tstate = wxPyBeginAllowThreads();
22729 result = (int)((wxDC const *)arg1)->MaxY();
22730 wxPyEndAllowThreads(__tstate);
22731 if (PyErr_Occurred()) SWIG_fail;
22732 }
22733 resultobj = SWIG_From_int(static_cast< int >(result));
22734 return resultobj;
22735fail:
22736 return NULL;
22737}
22738
22739
22740SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22741 PyObject *resultobj = 0;
22742 wxDC *arg1 = (wxDC *) 0 ;
22743 int *arg2 = (int *) 0 ;
22744 int *arg3 = (int *) 0 ;
22745 int *arg4 = (int *) 0 ;
22746 int *arg5 = (int *) 0 ;
22747 void *argp1 = 0 ;
22748 int res1 = 0 ;
22749 int temp2 ;
22750 int res2 = SWIG_TMPOBJ ;
22751 int temp3 ;
22752 int res3 = SWIG_TMPOBJ ;
22753 int temp4 ;
22754 int res4 = SWIG_TMPOBJ ;
22755 int temp5 ;
22756 int res5 = SWIG_TMPOBJ ;
22757 PyObject *swig_obj[1] ;
22758
22759 arg2 = &temp2;
22760 arg3 = &temp3;
22761 arg4 = &temp4;
22762 arg5 = &temp5;
22763 if (!args) SWIG_fail;
22764 swig_obj[0] = args;
22765 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22766 if (!SWIG_IsOK(res1)) {
22767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22768 }
22769 arg1 = reinterpret_cast< wxDC * >(argp1);
22770 {
22771 PyThreadState* __tstate = wxPyBeginAllowThreads();
22772 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
22773 wxPyEndAllowThreads(__tstate);
22774 if (PyErr_Occurred()) SWIG_fail;
22775 }
22776 resultobj = SWIG_Py_Void();
22777 if (SWIG_IsTmpObj(res2)) {
22778 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22779 } else {
22780 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22781 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22782 }
22783 if (SWIG_IsTmpObj(res3)) {
22784 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22785 } else {
22786 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22787 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22788 }
22789 if (SWIG_IsTmpObj(res4)) {
22790 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22791 } else {
22792 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22793 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22794 }
22795 if (SWIG_IsTmpObj(res5)) {
22796 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
22797 } else {
22798 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22799 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
22800 }
22801 return resultobj;
22802fail:
22803 return NULL;
22804}
22805
22806
b39fe951
RD
22807SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22808 PyObject *resultobj = 0;
22809 wxDC *arg1 = (wxDC *) 0 ;
22810 wxLayoutDirection result;
22811 void *argp1 = 0 ;
22812 int res1 = 0 ;
22813 PyObject *swig_obj[1] ;
22814
22815 if (!args) SWIG_fail;
22816 swig_obj[0] = args;
22817 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22818 if (!SWIG_IsOK(res1)) {
22819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
22820 }
22821 arg1 = reinterpret_cast< wxDC * >(argp1);
22822 {
22823 PyThreadState* __tstate = wxPyBeginAllowThreads();
22824 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
22825 wxPyEndAllowThreads(__tstate);
22826 if (PyErr_Occurred()) SWIG_fail;
22827 }
22828 resultobj = SWIG_From_int(static_cast< int >(result));
22829 return resultobj;
22830fail:
22831 return NULL;
22832}
22833
22834
22835SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22836 PyObject *resultobj = 0;
22837 wxDC *arg1 = (wxDC *) 0 ;
22838 wxLayoutDirection arg2 ;
22839 void *argp1 = 0 ;
22840 int res1 = 0 ;
22841 int val2 ;
22842 int ecode2 = 0 ;
22843 PyObject * obj0 = 0 ;
22844 PyObject * obj1 = 0 ;
22845 char * kwnames[] = {
22846 (char *) "self",(char *) "dir", NULL
22847 };
22848
22849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
22850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22851 if (!SWIG_IsOK(res1)) {
22852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
22853 }
22854 arg1 = reinterpret_cast< wxDC * >(argp1);
22855 ecode2 = SWIG_AsVal_int(obj1, &val2);
22856 if (!SWIG_IsOK(ecode2)) {
22857 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
22858 }
22859 arg2 = static_cast< wxLayoutDirection >(val2);
22860 {
22861 PyThreadState* __tstate = wxPyBeginAllowThreads();
22862 (arg1)->SetLayoutDirection(arg2);
22863 wxPyEndAllowThreads(__tstate);
22864 if (PyErr_Occurred()) SWIG_fail;
22865 }
22866 resultobj = SWIG_Py_Void();
22867 return resultobj;
22868fail:
22869 return NULL;
22870}
22871
22872
1bd55598
RD
22873SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22874 PyObject *resultobj = 0;
22875 wxDC *arg1 = (wxDC *) 0 ;
22876 PyObject *arg2 = (PyObject *) 0 ;
22877 PyObject *arg3 = (PyObject *) 0 ;
22878 PyObject *arg4 = (PyObject *) 0 ;
22879 PyObject *result = 0 ;
22880 void *argp1 = 0 ;
22881 int res1 = 0 ;
22882 PyObject * obj0 = 0 ;
22883 PyObject * obj1 = 0 ;
22884 PyObject * obj2 = 0 ;
22885 PyObject * obj3 = 0 ;
22886 char * kwnames[] = {
22887 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22888 };
22889
22890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22892 if (!SWIG_IsOK(res1)) {
22893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
22894 }
22895 arg1 = reinterpret_cast< wxDC * >(argp1);
22896 arg2 = obj1;
22897 arg3 = obj2;
22898 arg4 = obj3;
22899 {
22900 PyThreadState* __tstate = wxPyBeginAllowThreads();
22901 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
22902 wxPyEndAllowThreads(__tstate);
22903 if (PyErr_Occurred()) SWIG_fail;
22904 }
22905 resultobj = result;
22906 return resultobj;
22907fail:
22908 return NULL;
22909}
22910
22911
22912SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22913 PyObject *resultobj = 0;
22914 wxDC *arg1 = (wxDC *) 0 ;
22915 PyObject *arg2 = (PyObject *) 0 ;
22916 PyObject *arg3 = (PyObject *) 0 ;
22917 PyObject *arg4 = (PyObject *) 0 ;
22918 PyObject *result = 0 ;
22919 void *argp1 = 0 ;
22920 int res1 = 0 ;
22921 PyObject * obj0 = 0 ;
22922 PyObject * obj1 = 0 ;
22923 PyObject * obj2 = 0 ;
22924 PyObject * obj3 = 0 ;
22925 char * kwnames[] = {
22926 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22927 };
22928
22929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22931 if (!SWIG_IsOK(res1)) {
22932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
22933 }
22934 arg1 = reinterpret_cast< wxDC * >(argp1);
22935 arg2 = obj1;
22936 arg3 = obj2;
22937 arg4 = obj3;
22938 {
22939 PyThreadState* __tstate = wxPyBeginAllowThreads();
22940 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
22941 wxPyEndAllowThreads(__tstate);
22942 if (PyErr_Occurred()) SWIG_fail;
22943 }
22944 resultobj = result;
22945 return resultobj;
22946fail:
22947 return NULL;
22948}
22949
22950
22951SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22952 PyObject *resultobj = 0;
22953 wxDC *arg1 = (wxDC *) 0 ;
22954 PyObject *arg2 = (PyObject *) 0 ;
22955 PyObject *arg3 = (PyObject *) 0 ;
22956 PyObject *arg4 = (PyObject *) 0 ;
22957 PyObject *result = 0 ;
22958 void *argp1 = 0 ;
22959 int res1 = 0 ;
22960 PyObject * obj0 = 0 ;
22961 PyObject * obj1 = 0 ;
22962 PyObject * obj2 = 0 ;
22963 PyObject * obj3 = 0 ;
22964 char * kwnames[] = {
22965 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22966 };
22967
22968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22970 if (!SWIG_IsOK(res1)) {
22971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
22972 }
22973 arg1 = reinterpret_cast< wxDC * >(argp1);
22974 arg2 = obj1;
22975 arg3 = obj2;
22976 arg4 = obj3;
22977 {
22978 PyThreadState* __tstate = wxPyBeginAllowThreads();
22979 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
22980 wxPyEndAllowThreads(__tstate);
22981 if (PyErr_Occurred()) SWIG_fail;
22982 }
22983 resultobj = result;
22984 return resultobj;
22985fail:
22986 return NULL;
22987}
22988
22989
22990SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22991 PyObject *resultobj = 0;
22992 wxDC *arg1 = (wxDC *) 0 ;
22993 PyObject *arg2 = (PyObject *) 0 ;
22994 PyObject *arg3 = (PyObject *) 0 ;
22995 PyObject *arg4 = (PyObject *) 0 ;
22996 PyObject *result = 0 ;
22997 void *argp1 = 0 ;
22998 int res1 = 0 ;
22999 PyObject * obj0 = 0 ;
23000 PyObject * obj1 = 0 ;
23001 PyObject * obj2 = 0 ;
23002 PyObject * obj3 = 0 ;
23003 char * kwnames[] = {
23004 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23005 };
23006
23007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23009 if (!SWIG_IsOK(res1)) {
23010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23011 }
23012 arg1 = reinterpret_cast< wxDC * >(argp1);
23013 arg2 = obj1;
23014 arg3 = obj2;
23015 arg4 = obj3;
23016 {
23017 PyThreadState* __tstate = wxPyBeginAllowThreads();
23018 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23019 wxPyEndAllowThreads(__tstate);
23020 if (PyErr_Occurred()) SWIG_fail;
23021 }
23022 resultobj = result;
23023 return resultobj;
23024fail:
23025 return NULL;
23026}
23027
23028
23029SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23030 PyObject *resultobj = 0;
23031 wxDC *arg1 = (wxDC *) 0 ;
23032 PyObject *arg2 = (PyObject *) 0 ;
23033 PyObject *arg3 = (PyObject *) 0 ;
23034 PyObject *arg4 = (PyObject *) 0 ;
23035 PyObject *result = 0 ;
23036 void *argp1 = 0 ;
23037 int res1 = 0 ;
23038 PyObject * obj0 = 0 ;
23039 PyObject * obj1 = 0 ;
23040 PyObject * obj2 = 0 ;
23041 PyObject * obj3 = 0 ;
23042 char * kwnames[] = {
23043 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23044 };
23045
23046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23048 if (!SWIG_IsOK(res1)) {
23049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23050 }
23051 arg1 = reinterpret_cast< wxDC * >(argp1);
23052 arg2 = obj1;
23053 arg3 = obj2;
23054 arg4 = obj3;
23055 {
23056 PyThreadState* __tstate = wxPyBeginAllowThreads();
23057 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23058 wxPyEndAllowThreads(__tstate);
23059 if (PyErr_Occurred()) SWIG_fail;
23060 }
23061 resultobj = result;
23062 return resultobj;
23063fail:
23064 return NULL;
23065}
23066
23067
23068SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23069 PyObject *resultobj = 0;
23070 wxDC *arg1 = (wxDC *) 0 ;
23071 PyObject *arg2 = (PyObject *) 0 ;
23072 PyObject *arg3 = (PyObject *) 0 ;
23073 PyObject *arg4 = (PyObject *) 0 ;
23074 PyObject *arg5 = (PyObject *) 0 ;
23075 PyObject *result = 0 ;
23076 void *argp1 = 0 ;
23077 int res1 = 0 ;
23078 PyObject * obj0 = 0 ;
23079 PyObject * obj1 = 0 ;
23080 PyObject * obj2 = 0 ;
23081 PyObject * obj3 = 0 ;
23082 PyObject * obj4 = 0 ;
23083 char * kwnames[] = {
23084 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23085 };
23086
23087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23089 if (!SWIG_IsOK(res1)) {
23090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23091 }
23092 arg1 = reinterpret_cast< wxDC * >(argp1);
23093 arg2 = obj1;
23094 arg3 = obj2;
23095 arg4 = obj3;
23096 arg5 = obj4;
23097 {
23098 PyThreadState* __tstate = wxPyBeginAllowThreads();
23099 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23100 wxPyEndAllowThreads(__tstate);
23101 if (PyErr_Occurred()) SWIG_fail;
23102 }
23103 resultobj = result;
23104 return resultobj;
23105fail:
23106 return NULL;
23107}
23108
23109
23110SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23111 PyObject *obj;
23112 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23113 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23114 return SWIG_Py_Void();
23115}
23116
8e99bda9 23117SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 23118 PyObject *resultobj = 0;
8e99bda9
RD
23119 wxBitmap const &arg1_defvalue = wxNullBitmap ;
23120 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
1bd55598 23121 wxMemoryDC *result = 0 ;
8e99bda9
RD
23122 void *argp1 = 0 ;
23123 int res1 = 0 ;
23124 PyObject * obj0 = 0 ;
23125 char * kwnames[] = {
23126 (char *) "bitmap", NULL
23127 };
1bd55598 23128
8e99bda9
RD
23129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
23130 if (obj0) {
23131 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
23132 if (!SWIG_IsOK(res1)) {
23133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'");
23134 }
23135 if (!argp1) {
23136 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'");
23137 }
23138 arg1 = reinterpret_cast< wxBitmap * >(argp1);
23139 }
1bd55598
RD
23140 {
23141 if (!wxPyCheckForApp()) SWIG_fail;
23142 PyThreadState* __tstate = wxPyBeginAllowThreads();
8e99bda9 23143 result = (wxMemoryDC *)new wxMemoryDC((wxBitmap const &)*arg1);
1bd55598
RD
23144 wxPyEndAllowThreads(__tstate);
23145 if (PyErr_Occurred()) SWIG_fail;
23146 }
23147 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
23148 return resultobj;
23149fail:
23150 return NULL;
23151}
23152
23153
23154SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23155 PyObject *resultobj = 0;
23156 wxDC *arg1 = (wxDC *) 0 ;
23157 wxMemoryDC *result = 0 ;
23158 void *argp1 = 0 ;
23159 int res1 = 0 ;
23160 PyObject * obj0 = 0 ;
23161 char * kwnames[] = {
23162 (char *) "oldDC", NULL
23163 };
23164
23165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
23166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23167 if (!SWIG_IsOK(res1)) {
23168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
23169 }
23170 arg1 = reinterpret_cast< wxDC * >(argp1);
23171 {
23172 if (!wxPyCheckForApp()) SWIG_fail;
23173 PyThreadState* __tstate = wxPyBeginAllowThreads();
23174 result = (wxMemoryDC *)new wxMemoryDC(arg1);
23175 wxPyEndAllowThreads(__tstate);
23176 if (PyErr_Occurred()) SWIG_fail;
23177 }
23178 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
23179 return resultobj;
23180fail:
23181 return NULL;
23182}
23183
23184
23185SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23186 PyObject *resultobj = 0;
23187 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
23188 wxBitmap *arg2 = 0 ;
23189 void *argp1 = 0 ;
23190 int res1 = 0 ;
23191 void *argp2 = 0 ;
23192 int res2 = 0 ;
23193 PyObject * obj0 = 0 ;
23194 PyObject * obj1 = 0 ;
23195 char * kwnames[] = {
23196 (char *) "self",(char *) "bitmap", NULL
23197 };
23198
23199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
23200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
23201 if (!SWIG_IsOK(res1)) {
23202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
23203 }
23204 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
23205 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23206 if (!SWIG_IsOK(res2)) {
23207 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23208 }
23209 if (!argp2) {
23210 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23211 }
23212 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23213 {
23214 PyThreadState* __tstate = wxPyBeginAllowThreads();
23215 (arg1)->SelectObject((wxBitmap const &)*arg2);
23216 wxPyEndAllowThreads(__tstate);
23217 if (PyErr_Occurred()) SWIG_fail;
23218 }
23219 resultobj = SWIG_Py_Void();
23220 return resultobj;
23221fail:
23222 return NULL;
23223}
23224
23225
23226SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23227 PyObject *obj;
23228 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23229 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
23230 return SWIG_Py_Void();
23231}
23232
23233SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23234 return SWIG_Python_InitShadowInstance(args);
23235}
23236
24f6c4e8
RD
23237SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23238 PyObject *resultobj = 0;
23239 wxScreenDC *result = 0 ;
23240
23241 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23242 {
23243 if (!wxPyCheckForApp()) SWIG_fail;
23244 PyThreadState* __tstate = wxPyBeginAllowThreads();
23245 result = (wxScreenDC *)new wxScreenDC();
23246 wxPyEndAllowThreads(__tstate);
23247 if (PyErr_Occurred()) SWIG_fail;
23248 }
23249 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23250 return resultobj;
23251fail:
23252 return NULL;
23253}
23254
23255
23256SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23257 PyObject *resultobj = 0;
23258 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23259 wxWindow *arg2 = (wxWindow *) 0 ;
23260 bool result;
23261 void *argp1 = 0 ;
23262 int res1 = 0 ;
23263 void *argp2 = 0 ;
23264 int res2 = 0 ;
23265 PyObject * obj0 = 0 ;
23266 PyObject * obj1 = 0 ;
23267 char * kwnames[] = {
23268 (char *) "self",(char *) "window", NULL
23269 };
23270
23271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23273 if (!SWIG_IsOK(res1)) {
23274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23275 }
23276 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23277 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23278 if (!SWIG_IsOK(res2)) {
23279 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23280 }
23281 arg2 = reinterpret_cast< wxWindow * >(argp2);
23282 {
23283 PyThreadState* __tstate = wxPyBeginAllowThreads();
23284 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23285 wxPyEndAllowThreads(__tstate);
23286 if (PyErr_Occurred()) SWIG_fail;
23287 }
23288 {
23289 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23290 }
23291 return resultobj;
23292fail:
23293 return NULL;
23294}
23295
23296
23297SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23298 PyObject *resultobj = 0;
23299 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23300 wxRect *arg2 = (wxRect *) NULL ;
23301 bool result;
23302 void *argp1 = 0 ;
23303 int res1 = 0 ;
23304 void *argp2 = 0 ;
23305 int res2 = 0 ;
23306 PyObject * obj0 = 0 ;
23307 PyObject * obj1 = 0 ;
23308 char * kwnames[] = {
23309 (char *) "self",(char *) "rect", NULL
23310 };
23311
23312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
23313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23314 if (!SWIG_IsOK(res1)) {
23315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23316 }
23317 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23318 if (obj1) {
23319 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
23320 if (!SWIG_IsOK(res2)) {
23321 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
23322 }
23323 arg2 = reinterpret_cast< wxRect * >(argp2);
23324 }
23325 {
23326 PyThreadState* __tstate = wxPyBeginAllowThreads();
23327 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23328 wxPyEndAllowThreads(__tstate);
23329 if (PyErr_Occurred()) SWIG_fail;
23330 }
23331 {
23332 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23333 }
23334 return resultobj;
23335fail:
23336 return NULL;
23337}
23338
23339
23340SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23341 PyObject *resultobj = 0;
23342 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23343 bool result;
23344 void *argp1 = 0 ;
23345 int res1 = 0 ;
23346 PyObject *swig_obj[1] ;
23347
23348 if (!args) SWIG_fail;
23349 swig_obj[0] = args;
23350 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23351 if (!SWIG_IsOK(res1)) {
23352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23353 }
23354 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23355 {
23356 PyThreadState* __tstate = wxPyBeginAllowThreads();
23357 result = (bool)(arg1)->EndDrawingOnTop();
23358 wxPyEndAllowThreads(__tstate);
23359 if (PyErr_Occurred()) SWIG_fail;
23360 }
23361 {
23362 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23363 }
23364 return resultobj;
23365fail:
23366 return NULL;
23367}
23368
23369
23370SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23371 PyObject *obj;
23372 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23373 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
23374 return SWIG_Py_Void();
23375}
23376
23377SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23378 return SWIG_Python_InitShadowInstance(args);
23379}
23380
23381SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23382 PyObject *resultobj = 0;
23383 wxWindow *arg1 = (wxWindow *) 0 ;
23384 wxWindowDC *result = 0 ;
23385 void *argp1 = 0 ;
23386 int res1 = 0 ;
23387 PyObject * obj0 = 0 ;
23388 char * kwnames[] = {
23389 (char *) "win", NULL
23390 };
23391
23392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
23393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23394 if (!SWIG_IsOK(res1)) {
23395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23396 }
23397 arg1 = reinterpret_cast< wxWindow * >(argp1);
23398 {
23399 if (!wxPyCheckForApp()) SWIG_fail;
23400 PyThreadState* __tstate = wxPyBeginAllowThreads();
23401 result = (wxWindowDC *)new wxWindowDC(arg1);
23402 wxPyEndAllowThreads(__tstate);
23403 if (PyErr_Occurred()) SWIG_fail;
23404 }
23405 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
23406 return resultobj;
23407fail:
23408 return NULL;
23409}
23410
23411
23412SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23413 PyObject *obj;
23414 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23415 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
23416 return SWIG_Py_Void();
23417}
23418
23419SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23420 return SWIG_Python_InitShadowInstance(args);
23421}
23422
23423SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23424 PyObject *resultobj = 0;
23425 wxWindow *arg1 = (wxWindow *) 0 ;
23426 wxClientDC *result = 0 ;
23427 void *argp1 = 0 ;
23428 int res1 = 0 ;
23429 PyObject * obj0 = 0 ;
23430 char * kwnames[] = {
23431 (char *) "win", NULL
23432 };
23433
23434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
23435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23436 if (!SWIG_IsOK(res1)) {
23437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23438 }
23439 arg1 = reinterpret_cast< wxWindow * >(argp1);
23440 {
23441 if (!wxPyCheckForApp()) SWIG_fail;
23442 PyThreadState* __tstate = wxPyBeginAllowThreads();
23443 result = (wxClientDC *)new wxClientDC(arg1);
23444 wxPyEndAllowThreads(__tstate);
23445 if (PyErr_Occurred()) SWIG_fail;
23446 }
23447 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
23448 return resultobj;
23449fail:
23450 return NULL;
23451}
23452
23453
23454SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23455 PyObject *obj;
23456 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23457 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
23458 return SWIG_Py_Void();
23459}
23460
23461SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23462 return SWIG_Python_InitShadowInstance(args);
23463}
23464
23465SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23466 PyObject *resultobj = 0;
23467 wxWindow *arg1 = (wxWindow *) 0 ;
23468 wxPaintDC *result = 0 ;
23469 void *argp1 = 0 ;
23470 int res1 = 0 ;
23471 PyObject * obj0 = 0 ;
23472 char * kwnames[] = {
23473 (char *) "win", NULL
23474 };
23475
23476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
23477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23478 if (!SWIG_IsOK(res1)) {
23479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23480 }
23481 arg1 = reinterpret_cast< wxWindow * >(argp1);
23482 {
23483 if (!wxPyCheckForApp()) SWIG_fail;
23484 PyThreadState* __tstate = wxPyBeginAllowThreads();
23485 result = (wxPaintDC *)new wxPaintDC(arg1);
23486 wxPyEndAllowThreads(__tstate);
23487 if (PyErr_Occurred()) SWIG_fail;
23488 }
23489 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
23490 return resultobj;
23491fail:
23492 return NULL;
23493}
23494
23495
23496SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23497 PyObject *obj;
23498 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23499 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
23500 return SWIG_Py_Void();
23501}
23502
23503SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23504 return SWIG_Python_InitShadowInstance(args);
23505}
23506
1bd55598
RD
23507SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23508 PyObject *resultobj = 0;
23509 wxDC *arg1 = (wxDC *) 0 ;
23510 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23511 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23512 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23513 wxBufferedDC *result = 0 ;
23514 void *argp1 = 0 ;
23515 int res1 = 0 ;
23516 void *argp2 = 0 ;
23517 int res2 = 0 ;
23518 int val3 ;
23519 int ecode3 = 0 ;
23520
23521 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
23522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23523 if (!SWIG_IsOK(res1)) {
23524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23525 }
23526 arg1 = reinterpret_cast< wxDC * >(argp1);
23527 if (swig_obj[1]) {
23528 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23529 if (!SWIG_IsOK(res2)) {
23530 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36ed4f51 23531 }
1bd55598
RD
23532 if (!argp2) {
23533 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36ed4f51 23534 }
1bd55598
RD
23535 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23536 }
23537 if (swig_obj[2]) {
23538 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23539 if (!SWIG_IsOK(ecode3)) {
23540 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23541 }
23542 arg3 = static_cast< int >(val3);
23543 }
23544 {
23545 if (!wxPyCheckForApp()) SWIG_fail;
23546 PyThreadState* __tstate = wxPyBeginAllowThreads();
23547 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
23548 wxPyEndAllowThreads(__tstate);
23549 if (PyErr_Occurred()) SWIG_fail;
23550 }
23551 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23552 return resultobj;
23553fail:
23554 return NULL;
23555}
23556
23557
23558SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23559 PyObject *resultobj = 0;
23560 wxDC *arg1 = (wxDC *) 0 ;
23561 wxSize *arg2 = 0 ;
23562 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23563 wxBufferedDC *result = 0 ;
23564 void *argp1 = 0 ;
23565 int res1 = 0 ;
23566 wxSize temp2 ;
23567 int val3 ;
23568 int ecode3 = 0 ;
23569
23570 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
23571 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23572 if (!SWIG_IsOK(res1)) {
23573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23574 }
23575 arg1 = reinterpret_cast< wxDC * >(argp1);
23576 {
23577 arg2 = &temp2;
23578 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
23579 }
23580 if (swig_obj[2]) {
23581 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23582 if (!SWIG_IsOK(ecode3)) {
23583 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23584 }
23585 arg3 = static_cast< int >(val3);
23586 }
23587 {
23588 if (!wxPyCheckForApp()) SWIG_fail;
23589 PyThreadState* __tstate = wxPyBeginAllowThreads();
23590 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
23591 wxPyEndAllowThreads(__tstate);
23592 if (PyErr_Occurred()) SWIG_fail;
23593 }
23594 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23595 return resultobj;
23596fail:
23597 return NULL;
23598}
23599
23600
23601SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
23602 int argc;
8e99bda9 23603 PyObject *argv[4];
1bd55598 23604
8e99bda9 23605 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
1bd55598
RD
23606 --argc;
23607 if ((argc >= 1) && (argc <= 3)) {
23608 int _v = 0;
23609 if (argc > 1) {
23610 {
23611 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
23612 _v = SWIG_CheckState(res);
23613 }
23614 if (!_v) goto check_1;
36ed4f51 23615 }
1bd55598
RD
23616 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
23617 }
23618check_1:
23619
23620 if ((argc >= 2) && (argc <= 3)) {
23621 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
23622 }
23623
23624fail:
23625 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
23626 return NULL;
23627}
23628
23629
23630SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23631 PyObject *resultobj = 0;
23632 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23633 void *argp1 = 0 ;
23634 int res1 = 0 ;
23635 PyObject *swig_obj[1] ;
23636
23637 if (!args) SWIG_fail;
23638 swig_obj[0] = args;
23639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
23640 if (!SWIG_IsOK(res1)) {
23641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23642 }
23643 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23644 {
23645 PyThreadState* __tstate = wxPyBeginAllowThreads();
23646 delete arg1;
23647
23648 wxPyEndAllowThreads(__tstate);
23649 if (PyErr_Occurred()) SWIG_fail;
23650 }
23651 resultobj = SWIG_Py_Void();
23652 return resultobj;
23653fail:
23654 return NULL;
23655}
23656
23657
23658SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23659 PyObject *resultobj = 0;
23660 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23661 void *argp1 = 0 ;
23662 int res1 = 0 ;
23663 PyObject *swig_obj[1] ;
23664
23665 if (!args) SWIG_fail;
23666 swig_obj[0] = args;
23667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
23668 if (!SWIG_IsOK(res1)) {
23669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23670 }
23671 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23672 {
23673 PyThreadState* __tstate = wxPyBeginAllowThreads();
23674 (arg1)->UnMask();
23675 wxPyEndAllowThreads(__tstate);
23676 if (PyErr_Occurred()) SWIG_fail;
23677 }
23678 resultobj = SWIG_Py_Void();
23679 return resultobj;
23680fail:
23681 return NULL;
23682}
23683
23684
23685SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23686 PyObject *obj;
23687 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23688 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
23689 return SWIG_Py_Void();
23690}
23691
23692SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23693 return SWIG_Python_InitShadowInstance(args);
23694}
23695
23696SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23697 PyObject *resultobj = 0;
23698 wxWindow *arg1 = (wxWindow *) 0 ;
23699 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23700 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23701 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23702 wxBufferedPaintDC *result = 0 ;
23703 void *argp1 = 0 ;
23704 int res1 = 0 ;
23705 void *argp2 = 0 ;
23706 int res2 = 0 ;
23707 int val3 ;
23708 int ecode3 = 0 ;
23709 PyObject * obj0 = 0 ;
23710 PyObject * obj1 = 0 ;
23711 PyObject * obj2 = 0 ;
23712 char * kwnames[] = {
23713 (char *) "window",(char *) "buffer",(char *) "style", NULL
23714 };
23715
23716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23718 if (!SWIG_IsOK(res1)) {
23719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23720 }
23721 arg1 = reinterpret_cast< wxWindow * >(argp1);
23722 if (obj1) {
23723 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23724 if (!SWIG_IsOK(res2)) {
23725 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36ed4f51 23726 }
1bd55598
RD
23727 if (!argp2) {
23728 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36ed4f51 23729 }
1bd55598
RD
23730 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23731 }
23732 if (obj2) {
23733 ecode3 = SWIG_AsVal_int(obj2, &val3);
23734 if (!SWIG_IsOK(ecode3)) {
23735 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
23736 }
23737 arg3 = static_cast< int >(val3);
23738 }
23739 {
23740 if (!wxPyCheckForApp()) SWIG_fail;
23741 PyThreadState* __tstate = wxPyBeginAllowThreads();
23742 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
23743 wxPyEndAllowThreads(__tstate);
23744 if (PyErr_Occurred()) SWIG_fail;
23745 }
23746 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
23747 return resultobj;
23748fail:
23749 return NULL;
23750}
23751
23752
23753SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23754 PyObject *obj;
23755 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23756 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
23757 return SWIG_Py_Void();
23758}
23759
23760SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23761 return SWIG_Python_InitShadowInstance(args);
23762}
23763
24f6c4e8 23764SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
23765 PyObject *resultobj = 0;
23766 wxWindow *arg1 = (wxWindow *) 0 ;
24f6c4e8 23767 wxAutoBufferedPaintDC *result = 0 ;
1bd55598
RD
23768 void *argp1 = 0 ;
23769 int res1 = 0 ;
23770 PyObject * obj0 = 0 ;
23771 char * kwnames[] = {
23772 (char *) "win", NULL
23773 };
23774
24f6c4e8 23775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
1bd55598
RD
23776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23777 if (!SWIG_IsOK(res1)) {
24f6c4e8 23778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
1bd55598
RD
23779 }
23780 arg1 = reinterpret_cast< wxWindow * >(argp1);
23781 {
1bd55598 23782 PyThreadState* __tstate = wxPyBeginAllowThreads();
24f6c4e8 23783 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
1bd55598
RD
23784 wxPyEndAllowThreads(__tstate);
23785 if (PyErr_Occurred()) SWIG_fail;
23786 }
24f6c4e8 23787 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
1bd55598
RD
23788 return resultobj;
23789fail:
23790 return NULL;
23791}
23792
23793
24f6c4e8 23794SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
23795 PyObject *obj;
23796 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24f6c4e8 23797 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
1bd55598
RD
23798 return SWIG_Py_Void();
23799}
23800
24f6c4e8 23801SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
23802 return SWIG_Python_InitShadowInstance(args);
23803}
23804
8e99bda9
RD
23805SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23806 PyObject *resultobj = 0;
23807 wxWindow *arg1 = (wxWindow *) 0 ;
23808 wxDC *result = 0 ;
23809 void *argp1 = 0 ;
23810 int res1 = 0 ;
23811 PyObject * obj0 = 0 ;
23812 char * kwnames[] = {
23813 (char *) "window", NULL
23814 };
23815
23816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
23817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23818 if (!SWIG_IsOK(res1)) {
23819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
23820 }
23821 arg1 = reinterpret_cast< wxWindow * >(argp1);
23822 {
23823 PyThreadState* __tstate = wxPyBeginAllowThreads();
23824 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
23825 wxPyEndAllowThreads(__tstate);
23826 if (PyErr_Occurred()) SWIG_fail;
23827 }
23828 {
23829 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
23830 }
23831 return resultobj;
23832fail:
23833 return NULL;
23834}
23835
23836
1bd55598
RD
23837SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23838 PyObject *resultobj = 0;
23839 wxDC *arg1 = 0 ;
23840 bool arg2 ;
23841 wxMirrorDC *result = 0 ;
23842 void *argp1 = 0 ;
23843 int res1 = 0 ;
23844 bool val2 ;
23845 int ecode2 = 0 ;
23846 PyObject * obj0 = 0 ;
23847 PyObject * obj1 = 0 ;
23848 char * kwnames[] = {
23849 (char *) "dc",(char *) "mirror", NULL
23850 };
23851
23852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
23853 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23854 if (!SWIG_IsOK(res1)) {
23855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
23856 }
23857 if (!argp1) {
23858 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
23859 }
23860 arg1 = reinterpret_cast< wxDC * >(argp1);
23861 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23862 if (!SWIG_IsOK(ecode2)) {
23863 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
23864 }
23865 arg2 = static_cast< bool >(val2);
23866 {
23867 if (!wxPyCheckForApp()) SWIG_fail;
23868 PyThreadState* __tstate = wxPyBeginAllowThreads();
23869 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
23870 wxPyEndAllowThreads(__tstate);
23871 if (PyErr_Occurred()) SWIG_fail;
23872 }
23873 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
23874 return resultobj;
23875fail:
23876 return NULL;
23877}
23878
23879
23880SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23881 PyObject *obj;
23882 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23883 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
23884 return SWIG_Py_Void();
23885}
23886
23887SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23888 return SWIG_Python_InitShadowInstance(args);
23889}
23890
23891SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23892 PyObject *resultobj = 0;
23893 wxPrintData *arg1 = 0 ;
23894 wxPostScriptDC *result = 0 ;
23895 void *argp1 = 0 ;
23896 int res1 = 0 ;
23897 PyObject * obj0 = 0 ;
23898 char * kwnames[] = {
23899 (char *) "printData", NULL
23900 };
23901
23902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
23903 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
23904 if (!SWIG_IsOK(res1)) {
23905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23906 }
23907 if (!argp1) {
23908 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23909 }
23910 arg1 = reinterpret_cast< wxPrintData * >(argp1);
23911 {
23912 if (!wxPyCheckForApp()) SWIG_fail;
23913 PyThreadState* __tstate = wxPyBeginAllowThreads();
23914 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
23915 wxPyEndAllowThreads(__tstate);
23916 if (PyErr_Occurred()) SWIG_fail;
23917 }
23918 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
23919 return resultobj;
23920fail:
23921 return NULL;
23922}
23923
23924
23925SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23926 PyObject *resultobj = 0;
23927 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
23928 wxPrintData *result = 0 ;
23929 void *argp1 = 0 ;
23930 int res1 = 0 ;
23931 PyObject *swig_obj[1] ;
23932
23933 if (!args) SWIG_fail;
23934 swig_obj[0] = args;
23935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
23936 if (!SWIG_IsOK(res1)) {
23937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
23938 }
23939 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
23940 {
23941 PyThreadState* __tstate = wxPyBeginAllowThreads();
e2950dbb 23942 {
1bd55598
RD
23943 wxPrintData &_result_ref = (arg1)->GetPrintData();
23944 result = (wxPrintData *) &_result_ref;
e2950dbb 23945 }
1bd55598
RD
23946 wxPyEndAllowThreads(__tstate);
23947 if (PyErr_Occurred()) SWIG_fail;
23948 }
23949 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
23950 return resultobj;
23951fail:
23952 return NULL;
23953}
23954
23955
23956SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23957 PyObject *resultobj = 0;
23958 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
23959 wxPrintData *arg2 = 0 ;
23960 void *argp1 = 0 ;
23961 int res1 = 0 ;
23962 void *argp2 = 0 ;
23963 int res2 = 0 ;
23964 PyObject * obj0 = 0 ;
23965 PyObject * obj1 = 0 ;
23966 char * kwnames[] = {
23967 (char *) "self",(char *) "data", NULL
23968 };
23969
23970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
23971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
23972 if (!SWIG_IsOK(res1)) {
23973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
23974 }
23975 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
23976 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
23977 if (!SWIG_IsOK(res2)) {
23978 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
23979 }
23980 if (!argp2) {
23981 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
23982 }
23983 arg2 = reinterpret_cast< wxPrintData * >(argp2);
23984 {
23985 PyThreadState* __tstate = wxPyBeginAllowThreads();
23986 (arg1)->SetPrintData((wxPrintData const &)*arg2);
23987 wxPyEndAllowThreads(__tstate);
23988 if (PyErr_Occurred()) SWIG_fail;
23989 }
23990 resultobj = SWIG_Py_Void();
23991 return resultobj;
23992fail:
23993 return NULL;
23994}
23995
23996
23997SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23998 PyObject *resultobj = 0;
23999 int arg1 ;
24000 int val1 ;
24001 int ecode1 = 0 ;
24002 PyObject * obj0 = 0 ;
24003 char * kwnames[] = {
24004 (char *) "ppi", NULL
24005 };
24006
24007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
24008 ecode1 = SWIG_AsVal_int(obj0, &val1);
24009 if (!SWIG_IsOK(ecode1)) {
24010 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
24011 }
24012 arg1 = static_cast< int >(val1);
24013 {
24014 PyThreadState* __tstate = wxPyBeginAllowThreads();
24015 wxPostScriptDC::SetResolution(arg1);
24016 wxPyEndAllowThreads(__tstate);
24017 if (PyErr_Occurred()) SWIG_fail;
24018 }
24019 resultobj = SWIG_Py_Void();
24020 return resultobj;
24021fail:
24022 return NULL;
24023}
24024
24025
24026SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24027 PyObject *resultobj = 0;
24028 int result;
24029
24030 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24031 {
24032 PyThreadState* __tstate = wxPyBeginAllowThreads();
24033 result = (int)wxPostScriptDC::GetResolution();
24034 wxPyEndAllowThreads(__tstate);
24035 if (PyErr_Occurred()) SWIG_fail;
24036 }
24037 resultobj = SWIG_From_int(static_cast< int >(result));
24038 return resultobj;
24039fail:
24040 return NULL;
24041}
24042
24043
24044SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24045 PyObject *obj;
24046 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24047 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24048 return SWIG_Py_Void();
24049}
24050
24051SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24052 return SWIG_Python_InitShadowInstance(args);
24053}
24054
24055SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24056 PyObject *resultobj = 0;
24057 wxString const &arg1_defvalue = wxPyEmptyString ;
24058 wxString *arg1 = (wxString *) &arg1_defvalue ;
24059 wxMetaFile *result = 0 ;
24060 bool temp1 = false ;
24061 PyObject * obj0 = 0 ;
24062 char * kwnames[] = {
24063 (char *) "filename", NULL
24064 };
24065
24066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
24067 if (obj0) {
36ed4f51 24068 {
1bd55598
RD
24069 arg1 = wxString_in_helper(obj0);
24070 if (arg1 == NULL) SWIG_fail;
24071 temp1 = true;
36ed4f51 24072 }
1bd55598
RD
24073 }
24074 {
24075 if (!wxPyCheckForApp()) SWIG_fail;
24076 PyThreadState* __tstate = wxPyBeginAllowThreads();
24077 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
24078 wxPyEndAllowThreads(__tstate);
24079 if (PyErr_Occurred()) SWIG_fail;
24080 }
24081 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
24082 {
24083 if (temp1)
24084 delete arg1;
24085 }
24086 return resultobj;
24087fail:
24088 {
24089 if (temp1)
24090 delete arg1;
24091 }
24092 return NULL;
24093}
24094
24095
24096SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24097 PyObject *resultobj = 0;
24098 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24099 void *argp1 = 0 ;
24100 int res1 = 0 ;
24101 PyObject *swig_obj[1] ;
24102
24103 if (!args) SWIG_fail;
24104 swig_obj[0] = args;
24105 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
24106 if (!SWIG_IsOK(res1)) {
24107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24108 }
24109 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24110 {
24111 PyThreadState* __tstate = wxPyBeginAllowThreads();
24112 delete arg1;
24113
24114 wxPyEndAllowThreads(__tstate);
24115 if (PyErr_Occurred()) SWIG_fail;
24116 }
24117 resultobj = SWIG_Py_Void();
24118 return resultobj;
24119fail:
24120 return NULL;
24121}
24122
24123
b39fe951 24124SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
24125 PyObject *resultobj = 0;
24126 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24127 bool result;
24128 void *argp1 = 0 ;
24129 int res1 = 0 ;
24130 PyObject *swig_obj[1] ;
24131
24132 if (!args) SWIG_fail;
24133 swig_obj[0] = args;
24134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24135 if (!SWIG_IsOK(res1)) {
b39fe951 24136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'");
1bd55598
RD
24137 }
24138 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24139 {
24140 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 24141 result = (bool)(arg1)->IsOk();
1bd55598
RD
24142 wxPyEndAllowThreads(__tstate);
24143 if (PyErr_Occurred()) SWIG_fail;
24144 }
24145 {
24146 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24147 }
24148 return resultobj;
24149fail:
24150 return NULL;
24151}
24152
24153
24154SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24155 PyObject *resultobj = 0;
24156 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24157 int arg2 = (int) 0 ;
24158 int arg3 = (int) 0 ;
24159 bool result;
24160 void *argp1 = 0 ;
24161 int res1 = 0 ;
24162 int val2 ;
24163 int ecode2 = 0 ;
24164 int val3 ;
24165 int ecode3 = 0 ;
24166 PyObject * obj0 = 0 ;
24167 PyObject * obj1 = 0 ;
24168 PyObject * obj2 = 0 ;
24169 char * kwnames[] = {
24170 (char *) "self",(char *) "width",(char *) "height", NULL
24171 };
24172
24173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24175 if (!SWIG_IsOK(res1)) {
24176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24177 }
24178 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24179 if (obj1) {
24180 ecode2 = SWIG_AsVal_int(obj1, &val2);
24181 if (!SWIG_IsOK(ecode2)) {
24182 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
24183 }
24184 arg2 = static_cast< int >(val2);
24185 }
24186 if (obj2) {
24187 ecode3 = SWIG_AsVal_int(obj2, &val3);
24188 if (!SWIG_IsOK(ecode3)) {
24189 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
24190 }
24191 arg3 = static_cast< int >(val3);
24192 }
24193 {
24194 PyThreadState* __tstate = wxPyBeginAllowThreads();
24195 result = (bool)(arg1)->SetClipboard(arg2,arg3);
24196 wxPyEndAllowThreads(__tstate);
24197 if (PyErr_Occurred()) SWIG_fail;
24198 }
24199 {
24200 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24201 }
24202 return resultobj;
24203fail:
24204 return NULL;
24205}
24206
24207
24208SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24209 PyObject *resultobj = 0;
24210 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24211 wxSize 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_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24221 }
24222 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24223 {
24224 PyThreadState* __tstate = wxPyBeginAllowThreads();
24225 result = (arg1)->GetSize();
24226 wxPyEndAllowThreads(__tstate);
24227 if (PyErr_Occurred()) SWIG_fail;
24228 }
24229 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24230 return resultobj;
24231fail:
24232 return NULL;
24233}
24234
24235
24236SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(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_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24249 }
24250 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24251 {
24252 PyThreadState* __tstate = wxPyBeginAllowThreads();
24253 result = (int)(arg1)->GetWidth();
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 *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24265 PyObject *resultobj = 0;
24266 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24267 int result;
24268 void *argp1 = 0 ;
24269 int res1 = 0 ;
24270 PyObject *swig_obj[1] ;
24271
24272 if (!args) SWIG_fail;
24273 swig_obj[0] = args;
24274 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24275 if (!SWIG_IsOK(res1)) {
24276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24277 }
24278 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24279 {
24280 PyThreadState* __tstate = wxPyBeginAllowThreads();
24281 result = (int)(arg1)->GetHeight();
24282 wxPyEndAllowThreads(__tstate);
24283 if (PyErr_Occurred()) SWIG_fail;
24284 }
24285 resultobj = SWIG_From_int(static_cast< int >(result));
24286 return resultobj;
24287fail:
24288 return NULL;
24289}
24290
24291
24292SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24293 PyObject *obj;
24294 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24295 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
24296 return SWIG_Py_Void();
24297}
24298
24299SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24300 return SWIG_Python_InitShadowInstance(args);
24301}
24302
24303SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24304 PyObject *resultobj = 0;
24305 wxString const &arg1_defvalue = wxPyEmptyString ;
24306 wxString *arg1 = (wxString *) &arg1_defvalue ;
24307 int arg2 = (int) 0 ;
24308 int arg3 = (int) 0 ;
24309 wxString const &arg4_defvalue = wxPyEmptyString ;
24310 wxString *arg4 = (wxString *) &arg4_defvalue ;
24311 wxMetaFileDC *result = 0 ;
24312 bool temp1 = false ;
24313 int val2 ;
24314 int ecode2 = 0 ;
24315 int val3 ;
24316 int ecode3 = 0 ;
24317 bool temp4 = false ;
24318 PyObject * obj0 = 0 ;
24319 PyObject * obj1 = 0 ;
24320 PyObject * obj2 = 0 ;
24321 PyObject * obj3 = 0 ;
24322 char * kwnames[] = {
24323 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
24324 };
24325
24326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24327 if (obj0) {
36ed4f51 24328 {
1bd55598
RD
24329 arg1 = wxString_in_helper(obj0);
24330 if (arg1 == NULL) SWIG_fail;
24331 temp1 = true;
36ed4f51 24332 }
1bd55598
RD
24333 }
24334 if (obj1) {
24335 ecode2 = SWIG_AsVal_int(obj1, &val2);
24336 if (!SWIG_IsOK(ecode2)) {
24337 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
24338 }
24339 arg2 = static_cast< int >(val2);
24340 }
24341 if (obj2) {
24342 ecode3 = SWIG_AsVal_int(obj2, &val3);
24343 if (!SWIG_IsOK(ecode3)) {
24344 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
24345 }
24346 arg3 = static_cast< int >(val3);
24347 }
24348 if (obj3) {
36ed4f51 24349 {
1bd55598
RD
24350 arg4 = wxString_in_helper(obj3);
24351 if (arg4 == NULL) SWIG_fail;
24352 temp4 = true;
36ed4f51 24353 }
1bd55598
RD
24354 }
24355 {
24356 if (!wxPyCheckForApp()) SWIG_fail;
24357 PyThreadState* __tstate = wxPyBeginAllowThreads();
24358 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
24359 wxPyEndAllowThreads(__tstate);
24360 if (PyErr_Occurred()) SWIG_fail;
24361 }
24362 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
24363 {
24364 if (temp1)
24365 delete arg1;
24366 }
24367 {
24368 if (temp4)
24369 delete arg4;
24370 }
24371 return resultobj;
24372fail:
24373 {
24374 if (temp1)
24375 delete arg1;
24376 }
24377 {
24378 if (temp4)
24379 delete arg4;
24380 }
24381 return NULL;
24382}
24383
24384
24385SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24386 PyObject *resultobj = 0;
24387 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
24388 wxMetaFile *result = 0 ;
24389 void *argp1 = 0 ;
24390 int res1 = 0 ;
24391 PyObject *swig_obj[1] ;
24392
24393 if (!args) SWIG_fail;
24394 swig_obj[0] = args;
24395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
24396 if (!SWIG_IsOK(res1)) {
24397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
24398 }
24399 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
24400 {
24401 PyThreadState* __tstate = wxPyBeginAllowThreads();
24402 result = (wxMetaFile *)(arg1)->Close();
24403 wxPyEndAllowThreads(__tstate);
24404 if (PyErr_Occurred()) SWIG_fail;
24405 }
24406 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
24407 return resultobj;
24408fail:
24409 return NULL;
24410}
24411
24412
24413SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24414 PyObject *obj;
24415 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24416 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
24417 return SWIG_Py_Void();
24418}
24419
24420SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24421 return SWIG_Python_InitShadowInstance(args);
24422}
24423
24424SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24425 PyObject *resultobj = 0;
24426 wxPrintData *arg1 = 0 ;
24427 wxPrinterDC *result = 0 ;
24428 void *argp1 = 0 ;
24429 int res1 = 0 ;
24430 PyObject * obj0 = 0 ;
24431 char * kwnames[] = {
24432 (char *) "printData", NULL
24433 };
24434
24435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
24436 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24437 if (!SWIG_IsOK(res1)) {
24438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24439 }
24440 if (!argp1) {
24441 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24442 }
24443 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24444 {
24445 if (!wxPyCheckForApp()) SWIG_fail;
24446 PyThreadState* __tstate = wxPyBeginAllowThreads();
24447 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
24448 wxPyEndAllowThreads(__tstate);
24449 if (PyErr_Occurred()) SWIG_fail;
24450 }
24451 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
24452 return resultobj;
24453fail:
24454 return NULL;
24455}
24456
24457
24458SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24459 PyObject *obj;
24460 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24461 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
24462 return SWIG_Py_Void();
24463}
24464
24465SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24466 return SWIG_Python_InitShadowInstance(args);
24467}
24468
72ef6efb 24469SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 24470 PyObject *resultobj = 0;
72ef6efb 24471 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
1bd55598
RD
24472 void *argp1 = 0 ;
24473 int res1 = 0 ;
24474 PyObject *swig_obj[1] ;
24475
24476 if (!args) SWIG_fail;
24477 swig_obj[0] = args;
72ef6efb 24478 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
1bd55598 24479 if (!SWIG_IsOK(res1)) {
72ef6efb 24480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
1bd55598 24481 }
72ef6efb 24482 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
1bd55598 24483 {
1bd55598
RD
24484 delete arg1;
24485
1bd55598
RD
24486 if (PyErr_Occurred()) SWIG_fail;
24487 }
24488 resultobj = SWIG_Py_Void();
24489 return resultobj;
24490fail:
24491 return NULL;
24492}
24493
24494
72ef6efb 24495SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 24496 PyObject *resultobj = 0;
72ef6efb
RD
24497 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24498 wxDouble arg2 ;
24499 wxDouble arg3 ;
1bd55598
RD
24500 void *argp1 = 0 ;
24501 int res1 = 0 ;
72ef6efb
RD
24502 double val2 ;
24503 int ecode2 = 0 ;
24504 double val3 ;
24505 int ecode3 = 0 ;
1bd55598
RD
24506 PyObject * obj0 = 0 ;
24507 PyObject * obj1 = 0 ;
24508 PyObject * obj2 = 0 ;
24509 char * kwnames[] = {
72ef6efb 24510 (char *) "self",(char *) "x",(char *) "y", NULL
1bd55598
RD
24511 };
24512
72ef6efb
RD
24513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_MoveToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
1bd55598 24515 if (!SWIG_IsOK(res1)) {
72ef6efb 24516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
1bd55598 24517 }
72ef6efb
RD
24518 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24519 ecode2 = SWIG_AsVal_double(obj1, &val2);
24520 if (!SWIG_IsOK(ecode2)) {
24521 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24522 }
24523 arg2 = static_cast< wxDouble >(val2);
24524 ecode3 = SWIG_AsVal_double(obj2, &val3);
24525 if (!SWIG_IsOK(ecode3)) {
24526 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24527 }
24528 arg3 = static_cast< wxDouble >(val3);
1bd55598 24529 {
72ef6efb 24530 (arg1)->MoveToPoint(arg2,arg3);
1bd55598
RD
24531 if (PyErr_Occurred()) SWIG_fail;
24532 }
72ef6efb 24533 resultobj = SWIG_Py_Void();
1bd55598
RD
24534 return resultobj;
24535fail:
24536 return NULL;
24537}
24538
24539
72ef6efb 24540SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 24541 PyObject *resultobj = 0;
72ef6efb
RD
24542 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24543 wxDouble arg2 ;
24544 wxDouble arg3 ;
1bd55598
RD
24545 void *argp1 = 0 ;
24546 int res1 = 0 ;
72ef6efb
RD
24547 double val2 ;
24548 int ecode2 = 0 ;
24549 double val3 ;
24550 int ecode3 = 0 ;
1bd55598
RD
24551 PyObject * obj0 = 0 ;
24552 PyObject * obj1 = 0 ;
24553 PyObject * obj2 = 0 ;
24554 char * kwnames[] = {
72ef6efb 24555 (char *) "self",(char *) "x",(char *) "y", NULL
1bd55598
RD
24556 };
24557
72ef6efb
RD
24558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_AddLineToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
1bd55598 24560 if (!SWIG_IsOK(res1)) {
72ef6efb 24561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
1bd55598 24562 }
72ef6efb
RD
24563 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24564 ecode2 = SWIG_AsVal_double(obj1, &val2);
24565 if (!SWIG_IsOK(ecode2)) {
24566 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24567 }
24568 arg2 = static_cast< wxDouble >(val2);
24569 ecode3 = SWIG_AsVal_double(obj2, &val3);
24570 if (!SWIG_IsOK(ecode3)) {
24571 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24572 }
24573 arg3 = static_cast< wxDouble >(val3);
1bd55598 24574 {
72ef6efb 24575 (arg1)->AddLineToPoint(arg2,arg3);
1bd55598
RD
24576 if (PyErr_Occurred()) SWIG_fail;
24577 }
72ef6efb 24578 resultobj = SWIG_Py_Void();
1bd55598
RD
24579 return resultobj;
24580fail:
24581 return NULL;
24582}
24583
24584
72ef6efb 24585SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 24586 PyObject *resultobj = 0;
72ef6efb
RD
24587 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24588 wxDouble arg2 ;
24589 wxDouble arg3 ;
24590 wxDouble arg4 ;
24591 wxDouble arg5 ;
24592 wxDouble arg6 ;
24593 wxDouble arg7 ;
1bd55598
RD
24594 void *argp1 = 0 ;
24595 int res1 = 0 ;
72ef6efb
RD
24596 double val2 ;
24597 int ecode2 = 0 ;
24598 double val3 ;
24599 int ecode3 = 0 ;
24600 double val4 ;
24601 int ecode4 = 0 ;
24602 double val5 ;
24603 int ecode5 = 0 ;
24604 double val6 ;
24605 int ecode6 = 0 ;
24606 double val7 ;
24607 int ecode7 = 0 ;
24608 PyObject * obj0 = 0 ;
24609 PyObject * obj1 = 0 ;
24610 PyObject * obj2 = 0 ;
24611 PyObject * obj3 = 0 ;
24612 PyObject * obj4 = 0 ;
24613 PyObject * obj5 = 0 ;
24614 PyObject * obj6 = 0 ;
24615 char * kwnames[] = {
24616 (char *) "self",(char *) "cx1",(char *) "cy1",(char *) "cx2",(char *) "cy2",(char *) "x",(char *) "y", NULL
24617 };
24618
24619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24621 if (!SWIG_IsOK(res1)) {
24622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24623 }
24624 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24625 ecode2 = SWIG_AsVal_double(obj1, &val2);
24626 if (!SWIG_IsOK(ecode2)) {
24627 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24628 }
24629 arg2 = static_cast< wxDouble >(val2);
24630 ecode3 = SWIG_AsVal_double(obj2, &val3);
24631 if (!SWIG_IsOK(ecode3)) {
24632 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24633 }
24634 arg3 = static_cast< wxDouble >(val3);
24635 ecode4 = SWIG_AsVal_double(obj3, &val4);
24636 if (!SWIG_IsOK(ecode4)) {
24637 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
24638 }
24639 arg4 = static_cast< wxDouble >(val4);
24640 ecode5 = SWIG_AsVal_double(obj4, &val5);
24641 if (!SWIG_IsOK(ecode5)) {
24642 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
24643 }
24644 arg5 = static_cast< wxDouble >(val5);
24645 ecode6 = SWIG_AsVal_double(obj5, &val6);
24646 if (!SWIG_IsOK(ecode6)) {
24647 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
24648 }
24649 arg6 = static_cast< wxDouble >(val6);
24650 ecode7 = SWIG_AsVal_double(obj6, &val7);
24651 if (!SWIG_IsOK(ecode7)) {
24652 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
24653 }
24654 arg7 = static_cast< wxDouble >(val7);
24655 {
72ef6efb 24656 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
24657 if (PyErr_Occurred()) SWIG_fail;
24658 }
24659 resultobj = SWIG_Py_Void();
24660 return resultobj;
24661fail:
24662 return NULL;
24663}
24664
24665
24666SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24667 PyObject *resultobj = 0;
24668 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24669 void *argp1 = 0 ;
24670 int res1 = 0 ;
24671 PyObject *swig_obj[1] ;
24672
24673 if (!args) SWIG_fail;
24674 swig_obj[0] = args;
24675 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24676 if (!SWIG_IsOK(res1)) {
24677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24678 }
24679 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24680 {
72ef6efb 24681 (arg1)->CloseSubpath();
72ef6efb
RD
24682 if (PyErr_Occurred()) SWIG_fail;
24683 }
24684 resultobj = SWIG_Py_Void();
24685 return resultobj;
24686fail:
24687 return NULL;
24688}
24689
24690
24691SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24692 PyObject *resultobj = 0;
24693 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24694 wxPoint2D result;
24695 void *argp1 = 0 ;
24696 int res1 = 0 ;
24697 PyObject *swig_obj[1] ;
24698
24699 if (!args) SWIG_fail;
24700 swig_obj[0] = args;
24701 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24702 if (!SWIG_IsOK(res1)) {
24703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24704 }
24705 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24706 {
72ef6efb 24707 result = (arg1)->GetCurrentPoint();
72ef6efb
RD
24708 if (PyErr_Occurred()) SWIG_fail;
24709 }
24710 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
24711 return resultobj;
24712fail:
24713 return NULL;
24714}
24715
24716
24717SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24718 PyObject *resultobj = 0;
24719 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24720 wxDouble arg2 ;
24721 wxDouble arg3 ;
24722 wxDouble arg4 ;
24723 wxDouble arg5 ;
24724 wxDouble arg6 ;
24725 bool arg7 ;
24726 void *argp1 = 0 ;
24727 int res1 = 0 ;
24728 double val2 ;
24729 int ecode2 = 0 ;
24730 double val3 ;
24731 int ecode3 = 0 ;
24732 double val4 ;
24733 int ecode4 = 0 ;
24734 double val5 ;
24735 int ecode5 = 0 ;
24736 double val6 ;
24737 int ecode6 = 0 ;
24738 bool val7 ;
24739 int ecode7 = 0 ;
24740 PyObject * obj0 = 0 ;
24741 PyObject * obj1 = 0 ;
24742 PyObject * obj2 = 0 ;
24743 PyObject * obj3 = 0 ;
24744 PyObject * obj4 = 0 ;
24745 PyObject * obj5 = 0 ;
24746 PyObject * obj6 = 0 ;
24747 char * kwnames[] = {
24748 (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "startAngle",(char *) "endAngle",(char *) "clockwise", NULL
24749 };
24750
24751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24753 if (!SWIG_IsOK(res1)) {
24754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24755 }
24756 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24757 ecode2 = SWIG_AsVal_double(obj1, &val2);
24758 if (!SWIG_IsOK(ecode2)) {
24759 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
24760 }
24761 arg2 = static_cast< wxDouble >(val2);
24762 ecode3 = SWIG_AsVal_double(obj2, &val3);
24763 if (!SWIG_IsOK(ecode3)) {
24764 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
24765 }
24766 arg3 = static_cast< wxDouble >(val3);
24767 ecode4 = SWIG_AsVal_double(obj3, &val4);
24768 if (!SWIG_IsOK(ecode4)) {
24769 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
24770 }
24771 arg4 = static_cast< wxDouble >(val4);
24772 ecode5 = SWIG_AsVal_double(obj4, &val5);
24773 if (!SWIG_IsOK(ecode5)) {
24774 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
24775 }
24776 arg5 = static_cast< wxDouble >(val5);
24777 ecode6 = SWIG_AsVal_double(obj5, &val6);
24778 if (!SWIG_IsOK(ecode6)) {
24779 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
24780 }
24781 arg6 = static_cast< wxDouble >(val6);
24782 ecode7 = SWIG_AsVal_bool(obj6, &val7);
24783 if (!SWIG_IsOK(ecode7)) {
24784 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
24785 }
24786 arg7 = static_cast< bool >(val7);
24787 {
72ef6efb 24788 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
24789 if (PyErr_Occurred()) SWIG_fail;
24790 }
24791 resultobj = SWIG_Py_Void();
24792 return resultobj;
24793fail:
24794 return NULL;
24795}
24796
24797
24798SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24799 PyObject *resultobj = 0;
24800 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24801 wxDouble arg2 ;
24802 wxDouble arg3 ;
24803 wxDouble arg4 ;
24804 wxDouble arg5 ;
24805 void *argp1 = 0 ;
24806 int res1 = 0 ;
24807 double val2 ;
24808 int ecode2 = 0 ;
24809 double val3 ;
24810 int ecode3 = 0 ;
24811 double val4 ;
24812 int ecode4 = 0 ;
24813 double val5 ;
24814 int ecode5 = 0 ;
24815 PyObject * obj0 = 0 ;
24816 PyObject * obj1 = 0 ;
24817 PyObject * obj2 = 0 ;
24818 PyObject * obj3 = 0 ;
24819 PyObject * obj4 = 0 ;
24820 char * kwnames[] = {
24821 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
24822 };
24823
24824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24826 if (!SWIG_IsOK(res1)) {
24827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24828 }
24829 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24830 ecode2 = SWIG_AsVal_double(obj1, &val2);
24831 if (!SWIG_IsOK(ecode2)) {
24832 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24833 }
24834 arg2 = static_cast< wxDouble >(val2);
24835 ecode3 = SWIG_AsVal_double(obj2, &val3);
24836 if (!SWIG_IsOK(ecode3)) {
24837 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24838 }
24839 arg3 = static_cast< wxDouble >(val3);
24840 ecode4 = SWIG_AsVal_double(obj3, &val4);
24841 if (!SWIG_IsOK(ecode4)) {
24842 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
24843 }
24844 arg4 = static_cast< wxDouble >(val4);
24845 ecode5 = SWIG_AsVal_double(obj4, &val5);
24846 if (!SWIG_IsOK(ecode5)) {
24847 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
24848 }
24849 arg5 = static_cast< wxDouble >(val5);
24850 {
72ef6efb 24851 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
72ef6efb
RD
24852 if (PyErr_Occurred()) SWIG_fail;
24853 }
24854 resultobj = SWIG_Py_Void();
24855 return resultobj;
24856fail:
24857 return NULL;
24858}
24859
24860
24861SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24862 PyObject *resultobj = 0;
24863 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24864 wxDouble arg2 ;
24865 wxDouble arg3 ;
24866 wxDouble arg4 ;
24867 wxDouble arg5 ;
24868 void *argp1 = 0 ;
24869 int res1 = 0 ;
24870 double val2 ;
24871 int ecode2 = 0 ;
24872 double val3 ;
24873 int ecode3 = 0 ;
24874 double val4 ;
24875 int ecode4 = 0 ;
24876 double val5 ;
24877 int ecode5 = 0 ;
24878 PyObject * obj0 = 0 ;
24879 PyObject * obj1 = 0 ;
24880 PyObject * obj2 = 0 ;
24881 PyObject * obj3 = 0 ;
24882 PyObject * obj4 = 0 ;
24883 char * kwnames[] = {
24884 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
24885 };
24886
24887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24889 if (!SWIG_IsOK(res1)) {
24890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24891 }
24892 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24893 ecode2 = SWIG_AsVal_double(obj1, &val2);
24894 if (!SWIG_IsOK(ecode2)) {
24895 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
24896 }
24897 arg2 = static_cast< wxDouble >(val2);
24898 ecode3 = SWIG_AsVal_double(obj2, &val3);
24899 if (!SWIG_IsOK(ecode3)) {
24900 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
24901 }
24902 arg3 = static_cast< wxDouble >(val3);
24903 ecode4 = SWIG_AsVal_double(obj3, &val4);
24904 if (!SWIG_IsOK(ecode4)) {
24905 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
24906 }
24907 arg4 = static_cast< wxDouble >(val4);
24908 ecode5 = SWIG_AsVal_double(obj4, &val5);
24909 if (!SWIG_IsOK(ecode5)) {
24910 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
24911 }
24912 arg5 = static_cast< wxDouble >(val5);
24913 {
72ef6efb 24914 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
72ef6efb
RD
24915 if (PyErr_Occurred()) SWIG_fail;
24916 }
24917 resultobj = SWIG_Py_Void();
24918 return resultobj;
24919fail:
24920 return NULL;
24921}
24922
24923
24924SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24925 PyObject *resultobj = 0;
24926 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24927 wxDouble arg2 ;
24928 wxDouble arg3 ;
24929 wxDouble arg4 ;
24930 void *argp1 = 0 ;
24931 int res1 = 0 ;
24932 double val2 ;
24933 int ecode2 = 0 ;
24934 double val3 ;
24935 int ecode3 = 0 ;
24936 double val4 ;
24937 int ecode4 = 0 ;
24938 PyObject * obj0 = 0 ;
24939 PyObject * obj1 = 0 ;
24940 PyObject * obj2 = 0 ;
24941 PyObject * obj3 = 0 ;
24942 char * kwnames[] = {
24943 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
24944 };
24945
24946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24948 if (!SWIG_IsOK(res1)) {
24949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24950 }
24951 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24952 ecode2 = SWIG_AsVal_double(obj1, &val2);
24953 if (!SWIG_IsOK(ecode2)) {
24954 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
24955 }
24956 arg2 = static_cast< wxDouble >(val2);
24957 ecode3 = SWIG_AsVal_double(obj2, &val3);
24958 if (!SWIG_IsOK(ecode3)) {
24959 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
24960 }
24961 arg3 = static_cast< wxDouble >(val3);
24962 ecode4 = SWIG_AsVal_double(obj3, &val4);
24963 if (!SWIG_IsOK(ecode4)) {
24964 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
24965 }
24966 arg4 = static_cast< wxDouble >(val4);
24967 {
72ef6efb 24968 (arg1)->AddCircle(arg2,arg3,arg4);
72ef6efb
RD
24969 if (PyErr_Occurred()) SWIG_fail;
24970 }
24971 resultobj = SWIG_Py_Void();
24972 return resultobj;
24973fail:
24974 return NULL;
24975}
24976
24977
24978SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24979 PyObject *resultobj = 0;
24980 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24981 wxDouble arg2 ;
24982 wxDouble arg3 ;
24983 wxDouble arg4 ;
24984 wxDouble arg5 ;
24985 wxDouble arg6 ;
24986 void *argp1 = 0 ;
24987 int res1 = 0 ;
24988 double val2 ;
24989 int ecode2 = 0 ;
24990 double val3 ;
24991 int ecode3 = 0 ;
24992 double val4 ;
24993 int ecode4 = 0 ;
24994 double val5 ;
24995 int ecode5 = 0 ;
24996 double val6 ;
24997 int ecode6 = 0 ;
24998 PyObject * obj0 = 0 ;
24999 PyObject * obj1 = 0 ;
25000 PyObject * obj2 = 0 ;
25001 PyObject * obj3 = 0 ;
25002 PyObject * obj4 = 0 ;
25003 PyObject * obj5 = 0 ;
25004 char * kwnames[] = {
25005 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
25006 };
25007
25008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25010 if (!SWIG_IsOK(res1)) {
25011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25012 }
25013 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25014 ecode2 = SWIG_AsVal_double(obj1, &val2);
25015 if (!SWIG_IsOK(ecode2)) {
25016 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25017 }
25018 arg2 = static_cast< wxDouble >(val2);
25019 ecode3 = SWIG_AsVal_double(obj2, &val3);
25020 if (!SWIG_IsOK(ecode3)) {
25021 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25022 }
25023 arg3 = static_cast< wxDouble >(val3);
25024 ecode4 = SWIG_AsVal_double(obj3, &val4);
25025 if (!SWIG_IsOK(ecode4)) {
25026 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
25027 }
25028 arg4 = static_cast< wxDouble >(val4);
25029 ecode5 = SWIG_AsVal_double(obj4, &val5);
25030 if (!SWIG_IsOK(ecode5)) {
25031 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
25032 }
25033 arg5 = static_cast< wxDouble >(val5);
25034 ecode6 = SWIG_AsVal_double(obj5, &val6);
25035 if (!SWIG_IsOK(ecode6)) {
25036 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
25037 }
25038 arg6 = static_cast< wxDouble >(val6);
25039 {
72ef6efb 25040 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
25041 if (PyErr_Occurred()) SWIG_fail;
25042 }
25043 resultobj = SWIG_Py_Void();
25044 return resultobj;
25045fail:
25046 return NULL;
25047}
25048
25049
25050SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25051 PyObject *obj;
25052 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25053 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
25054 return SWIG_Py_Void();
25055}
25056
25057SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25058 PyObject *resultobj = 0;
25059 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25060 void *argp1 = 0 ;
25061 int res1 = 0 ;
25062 PyObject *swig_obj[1] ;
25063
25064 if (!args) SWIG_fail;
25065 swig_obj[0] = args;
25066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
25067 if (!SWIG_IsOK(res1)) {
25068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25069 }
25070 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25071 {
72ef6efb
RD
25072 delete arg1;
25073
72ef6efb
RD
25074 if (PyErr_Occurred()) SWIG_fail;
25075 }
25076 resultobj = SWIG_Py_Void();
25077 return resultobj;
25078fail:
25079 return NULL;
25080}
25081
25082
0a27f394 25083SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
25084 PyObject *resultobj = 0;
25085 wxWindowDC *arg1 = 0 ;
25086 wxGraphicsContext *result = 0 ;
25087 void *argp1 = 0 ;
25088 int res1 = 0 ;
72ef6efb 25089
0a27f394
RD
25090 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
25091 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
72ef6efb
RD
25092 if (!SWIG_IsOK(res1)) {
25093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
25094 }
25095 if (!argp1) {
25096 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
25097 }
25098 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
25099 {
72ef6efb 25100 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
72ef6efb
RD
25101 if (PyErr_Occurred()) SWIG_fail;
25102 }
be68621e 25103 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
25104 return resultobj;
25105fail:
25106 return NULL;
25107}
25108
25109
0a27f394
RD
25110SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25111 PyObject *resultobj = 0;
25112 wxWindow *arg1 = (wxWindow *) 0 ;
25113 wxGraphicsContext *result = 0 ;
25114 void *argp1 = 0 ;
25115 int res1 = 0 ;
25116
25117 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
25118 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25119 if (!SWIG_IsOK(res1)) {
25120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
25121 }
25122 arg1 = reinterpret_cast< wxWindow * >(argp1);
25123 {
25124 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
25125 if (PyErr_Occurred()) SWIG_fail;
25126 }
be68621e 25127 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
0a27f394
RD
25128 return resultobj;
25129fail:
25130 return NULL;
25131}
25132
25133
25134SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
25135 int argc;
25136 PyObject *argv[2];
25137
25138 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
25139 --argc;
25140 if (argc == 1) {
25141 int _v = 0;
25142 {
25143 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
25144 _v = SWIG_CheckState(res);
25145 }
25146 if (!_v) goto check_1;
25147 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
25148 }
25149check_1:
25150
25151 if (argc == 1) {
25152 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
25153 }
25154
25155fail:
25156 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
25157 return NULL;
25158}
25159
25160
25161SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25162 PyObject *resultobj = 0;
25163 void *arg1 = (void *) 0 ;
25164 wxGraphicsContext *result = 0 ;
25165 int res1 ;
25166 PyObject * obj0 = 0 ;
25167 char * kwnames[] = {
25168 (char *) "context", NULL
25169 };
25170
25171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
25172 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
25173 if (!SWIG_IsOK(res1)) {
25174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
25175 }
25176 {
25177 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
25178 if (PyErr_Occurred()) SWIG_fail;
25179 }
be68621e 25180 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
0a27f394
RD
25181 return resultobj;
25182fail:
25183 return NULL;
25184}
25185
25186
72ef6efb
RD
25187SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25188 PyObject *resultobj = 0;
25189 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25190 wxGraphicsPath *result = 0 ;
25191 void *argp1 = 0 ;
25192 int res1 = 0 ;
25193 PyObject *swig_obj[1] ;
25194
25195 if (!args) SWIG_fail;
25196 swig_obj[0] = args;
25197 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25198 if (!SWIG_IsOK(res1)) {
25199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25200 }
25201 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25202 {
72ef6efb 25203 result = (wxGraphicsPath *)(arg1)->CreatePath();
72ef6efb
RD
25204 if (PyErr_Occurred()) SWIG_fail;
25205 }
be68621e 25206 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
25207 return resultobj;
25208fail:
25209 return NULL;
25210}
25211
25212
25213SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25214 PyObject *resultobj = 0;
25215 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25216 void *argp1 = 0 ;
25217 int res1 = 0 ;
25218 PyObject *swig_obj[1] ;
25219
25220 if (!args) SWIG_fail;
25221 swig_obj[0] = args;
25222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25223 if (!SWIG_IsOK(res1)) {
25224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25225 }
25226 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25227 {
72ef6efb 25228 (arg1)->PushState();
72ef6efb
RD
25229 if (PyErr_Occurred()) SWIG_fail;
25230 }
25231 resultobj = SWIG_Py_Void();
25232 return resultobj;
25233fail:
25234 return NULL;
25235}
25236
25237
25238SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25239 PyObject *resultobj = 0;
25240 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25241 void *argp1 = 0 ;
25242 int res1 = 0 ;
25243 PyObject *swig_obj[1] ;
25244
25245 if (!args) SWIG_fail;
25246 swig_obj[0] = args;
25247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25248 if (!SWIG_IsOK(res1)) {
25249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25250 }
25251 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25252 {
72ef6efb 25253 (arg1)->PopState();
72ef6efb
RD
25254 if (PyErr_Occurred()) SWIG_fail;
25255 }
25256 resultobj = SWIG_Py_Void();
25257 return resultobj;
25258fail:
25259 return NULL;
25260}
25261
25262
0a27f394 25263SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
25264 PyObject *resultobj = 0;
25265 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25266 wxRegion *arg2 = 0 ;
25267 void *argp1 = 0 ;
25268 int res1 = 0 ;
25269 void *argp2 = 0 ;
25270 int res2 = 0 ;
25271 PyObject * obj0 = 0 ;
25272 PyObject * obj1 = 0 ;
25273 char * kwnames[] = {
25274 (char *) "self",(char *) "region", NULL
25275 };
25276
0a27f394 25277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
25278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25279 if (!SWIG_IsOK(res1)) {
0a27f394 25280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
25281 }
25282 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25283 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
25284 if (!SWIG_IsOK(res2)) {
0a27f394 25285 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
25286 }
25287 if (!argp2) {
0a27f394 25288 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
25289 }
25290 arg2 = reinterpret_cast< wxRegion * >(argp2);
25291 {
72ef6efb 25292 (arg1)->Clip((wxRegion const &)*arg2);
72ef6efb
RD
25293 if (PyErr_Occurred()) SWIG_fail;
25294 }
25295 resultobj = SWIG_Py_Void();
25296 return resultobj;
25297fail:
25298 return NULL;
25299}
25300
25301
0a27f394
RD
25302SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25303 PyObject *resultobj = 0;
25304 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25305 wxDouble arg2 ;
25306 wxDouble arg3 ;
25307 wxDouble arg4 ;
25308 wxDouble arg5 ;
25309 void *argp1 = 0 ;
25310 int res1 = 0 ;
25311 double val2 ;
25312 int ecode2 = 0 ;
25313 double val3 ;
25314 int ecode3 = 0 ;
25315 double val4 ;
25316 int ecode4 = 0 ;
25317 double val5 ;
25318 int ecode5 = 0 ;
25319 PyObject * obj0 = 0 ;
25320 PyObject * obj1 = 0 ;
25321 PyObject * obj2 = 0 ;
25322 PyObject * obj3 = 0 ;
25323 PyObject * obj4 = 0 ;
25324 char * kwnames[] = {
25325 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
25326 };
25327
25328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25330 if (!SWIG_IsOK(res1)) {
25331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25332 }
25333 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25334 ecode2 = SWIG_AsVal_double(obj1, &val2);
25335 if (!SWIG_IsOK(ecode2)) {
25336 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
25337 }
25338 arg2 = static_cast< wxDouble >(val2);
25339 ecode3 = SWIG_AsVal_double(obj2, &val3);
25340 if (!SWIG_IsOK(ecode3)) {
25341 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
25342 }
25343 arg3 = static_cast< wxDouble >(val3);
25344 ecode4 = SWIG_AsVal_double(obj3, &val4);
25345 if (!SWIG_IsOK(ecode4)) {
25346 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
25347 }
25348 arg4 = static_cast< wxDouble >(val4);
25349 ecode5 = SWIG_AsVal_double(obj4, &val5);
25350 if (!SWIG_IsOK(ecode5)) {
25351 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
25352 }
25353 arg5 = static_cast< wxDouble >(val5);
25354 {
25355 (arg1)->Clip(arg2,arg3,arg4,arg5);
25356 if (PyErr_Occurred()) SWIG_fail;
25357 }
25358 resultobj = SWIG_Py_Void();
25359 return resultobj;
25360fail:
25361 return NULL;
25362}
25363
25364
25365SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25366 PyObject *resultobj = 0;
25367 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25368 void *argp1 = 0 ;
25369 int res1 = 0 ;
25370 PyObject *swig_obj[1] ;
25371
25372 if (!args) SWIG_fail;
25373 swig_obj[0] = args;
25374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25375 if (!SWIG_IsOK(res1)) {
25376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25377 }
25378 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25379 {
25380 (arg1)->ResetClip();
25381 if (PyErr_Occurred()) SWIG_fail;
25382 }
25383 resultobj = SWIG_Py_Void();
25384 return resultobj;
25385fail:
25386 return NULL;
25387}
25388
25389
25390SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25391 PyObject *resultobj = 0;
25392 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25393 void *result = 0 ;
25394 void *argp1 = 0 ;
25395 int res1 = 0 ;
25396 PyObject *swig_obj[1] ;
25397
25398 if (!args) SWIG_fail;
25399 swig_obj[0] = args;
25400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25401 if (!SWIG_IsOK(res1)) {
25402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25403 }
25404 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25405 {
25406 result = (void *)(arg1)->GetNativeContext();
25407 if (PyErr_Occurred()) SWIG_fail;
25408 }
25409 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
25410 return resultobj;
25411fail:
25412 return NULL;
25413}
25414
25415
72ef6efb
RD
25416SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25417 PyObject *resultobj = 0;
25418 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25419 wxDouble arg2 ;
25420 wxDouble arg3 ;
25421 void *argp1 = 0 ;
25422 int res1 = 0 ;
25423 double val2 ;
25424 int ecode2 = 0 ;
25425 double val3 ;
25426 int ecode3 = 0 ;
25427 PyObject * obj0 = 0 ;
25428 PyObject * obj1 = 0 ;
25429 PyObject * obj2 = 0 ;
25430 char * kwnames[] = {
25431 (char *) "self",(char *) "dx",(char *) "dy", NULL
25432 };
25433
25434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25436 if (!SWIG_IsOK(res1)) {
25437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25438 }
25439 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25440 ecode2 = SWIG_AsVal_double(obj1, &val2);
25441 if (!SWIG_IsOK(ecode2)) {
25442 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
25443 }
25444 arg2 = static_cast< wxDouble >(val2);
25445 ecode3 = SWIG_AsVal_double(obj2, &val3);
25446 if (!SWIG_IsOK(ecode3)) {
25447 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
25448 }
25449 arg3 = static_cast< wxDouble >(val3);
25450 {
72ef6efb 25451 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
25452 if (PyErr_Occurred()) SWIG_fail;
25453 }
25454 resultobj = SWIG_Py_Void();
25455 return resultobj;
25456fail:
25457 return NULL;
25458}
25459
25460
25461SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25462 PyObject *resultobj = 0;
25463 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25464 wxDouble arg2 ;
25465 wxDouble arg3 ;
25466 void *argp1 = 0 ;
25467 int res1 = 0 ;
25468 double val2 ;
25469 int ecode2 = 0 ;
25470 double val3 ;
25471 int ecode3 = 0 ;
25472 PyObject * obj0 = 0 ;
25473 PyObject * obj1 = 0 ;
25474 PyObject * obj2 = 0 ;
25475 char * kwnames[] = {
25476 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
25477 };
25478
25479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25481 if (!SWIG_IsOK(res1)) {
25482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25483 }
25484 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25485 ecode2 = SWIG_AsVal_double(obj1, &val2);
25486 if (!SWIG_IsOK(ecode2)) {
25487 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
25488 }
25489 arg2 = static_cast< wxDouble >(val2);
25490 ecode3 = SWIG_AsVal_double(obj2, &val3);
25491 if (!SWIG_IsOK(ecode3)) {
25492 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
25493 }
25494 arg3 = static_cast< wxDouble >(val3);
25495 {
72ef6efb 25496 (arg1)->Scale(arg2,arg3);
72ef6efb
RD
25497 if (PyErr_Occurred()) SWIG_fail;
25498 }
25499 resultobj = SWIG_Py_Void();
25500 return resultobj;
25501fail:
25502 return NULL;
25503}
25504
25505
25506SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25507 PyObject *resultobj = 0;
25508 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25509 wxDouble arg2 ;
25510 void *argp1 = 0 ;
25511 int res1 = 0 ;
25512 double val2 ;
25513 int ecode2 = 0 ;
25514 PyObject * obj0 = 0 ;
25515 PyObject * obj1 = 0 ;
25516 char * kwnames[] = {
25517 (char *) "self",(char *) "angle", NULL
25518 };
25519
25520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
25521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25522 if (!SWIG_IsOK(res1)) {
25523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25524 }
25525 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25526 ecode2 = SWIG_AsVal_double(obj1, &val2);
25527 if (!SWIG_IsOK(ecode2)) {
25528 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
25529 }
25530 arg2 = static_cast< wxDouble >(val2);
25531 {
72ef6efb 25532 (arg1)->Rotate(arg2);
72ef6efb
RD
25533 if (PyErr_Occurred()) SWIG_fail;
25534 }
25535 resultobj = SWIG_Py_Void();
25536 return resultobj;
25537fail:
25538 return NULL;
25539}
25540
25541
25542SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25543 PyObject *resultobj = 0;
25544 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25545 wxPen *arg2 = 0 ;
25546 void *argp1 = 0 ;
25547 int res1 = 0 ;
25548 void *argp2 = 0 ;
25549 int res2 = 0 ;
25550 PyObject * obj0 = 0 ;
25551 PyObject * obj1 = 0 ;
25552 char * kwnames[] = {
25553 (char *) "self",(char *) "pen", NULL
25554 };
25555
25556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
25557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25558 if (!SWIG_IsOK(res1)) {
25559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25560 }
25561 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25562 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
25563 if (!SWIG_IsOK(res2)) {
25564 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
25565 }
25566 if (!argp2) {
25567 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
25568 }
25569 arg2 = reinterpret_cast< wxPen * >(argp2);
25570 {
72ef6efb 25571 (arg1)->SetPen((wxPen const &)*arg2);
72ef6efb
RD
25572 if (PyErr_Occurred()) SWIG_fail;
25573 }
25574 resultobj = SWIG_Py_Void();
25575 return resultobj;
25576fail:
25577 return NULL;
25578}
25579
25580
25581SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25582 PyObject *resultobj = 0;
25583 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25584 wxBrush *arg2 = 0 ;
25585 void *argp1 = 0 ;
25586 int res1 = 0 ;
25587 void *argp2 = 0 ;
25588 int res2 = 0 ;
25589 PyObject * obj0 = 0 ;
25590 PyObject * obj1 = 0 ;
25591 char * kwnames[] = {
25592 (char *) "self",(char *) "brush", NULL
25593 };
25594
25595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
25596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25597 if (!SWIG_IsOK(res1)) {
25598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25599 }
25600 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25601 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
25602 if (!SWIG_IsOK(res2)) {
25603 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
25604 }
25605 if (!argp2) {
25606 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
25607 }
25608 arg2 = reinterpret_cast< wxBrush * >(argp2);
25609 {
72ef6efb 25610 (arg1)->SetBrush((wxBrush const &)*arg2);
72ef6efb
RD
25611 if (PyErr_Occurred()) SWIG_fail;
25612 }
25613 resultobj = SWIG_Py_Void();
25614 return resultobj;
25615fail:
25616 return NULL;
25617}
25618
25619
25620SWIGINTERN PyObject *_wrap_GraphicsContext_SetLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25621 PyObject *resultobj = 0;
25622 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25623 wxDouble arg2 ;
25624 wxDouble arg3 ;
25625 wxDouble arg4 ;
25626 wxDouble arg5 ;
25627 wxColour *arg6 = 0 ;
25628 wxColour *arg7 = 0 ;
25629 void *argp1 = 0 ;
25630 int res1 = 0 ;
25631 double val2 ;
25632 int ecode2 = 0 ;
25633 double val3 ;
25634 int ecode3 = 0 ;
25635 double val4 ;
25636 int ecode4 = 0 ;
25637 double val5 ;
25638 int ecode5 = 0 ;
25639 wxColour temp6 ;
25640 wxColour temp7 ;
25641 PyObject * obj0 = 0 ;
25642 PyObject * obj1 = 0 ;
25643 PyObject * obj2 = 0 ;
25644 PyObject * obj3 = 0 ;
25645 PyObject * obj4 = 0 ;
25646 PyObject * obj5 = 0 ;
25647 PyObject * obj6 = 0 ;
25648 char * kwnames[] = {
25649 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
25650 };
25651
25652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_SetLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25654 if (!SWIG_IsOK(res1)) {
25655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25656 }
25657 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25658 ecode2 = SWIG_AsVal_double(obj1, &val2);
25659 if (!SWIG_IsOK(ecode2)) {
25660 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
25661 }
25662 arg2 = static_cast< wxDouble >(val2);
25663 ecode3 = SWIG_AsVal_double(obj2, &val3);
25664 if (!SWIG_IsOK(ecode3)) {
25665 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
25666 }
25667 arg3 = static_cast< wxDouble >(val3);
25668 ecode4 = SWIG_AsVal_double(obj3, &val4);
25669 if (!SWIG_IsOK(ecode4)) {
25670 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
25671 }
25672 arg4 = static_cast< wxDouble >(val4);
25673 ecode5 = SWIG_AsVal_double(obj4, &val5);
25674 if (!SWIG_IsOK(ecode5)) {
25675 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
25676 }
25677 arg5 = static_cast< wxDouble >(val5);
25678 {
25679 arg6 = &temp6;
25680 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
25681 }
25682 {
25683 arg7 = &temp7;
25684 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
25685 }
25686 {
72ef6efb 25687 (arg1)->SetLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
25688 if (PyErr_Occurred()) SWIG_fail;
25689 }
25690 resultobj = SWIG_Py_Void();
25691 return resultobj;
25692fail:
25693 return NULL;
25694}
25695
25696
25697SWIGINTERN PyObject *_wrap_GraphicsContext_SetRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25698 PyObject *resultobj = 0;
25699 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25700 wxDouble arg2 ;
25701 wxDouble arg3 ;
25702 wxDouble arg4 ;
25703 wxDouble arg5 ;
25704 wxDouble arg6 ;
25705 wxColour *arg7 = 0 ;
25706 wxColour *arg8 = 0 ;
25707 void *argp1 = 0 ;
25708 int res1 = 0 ;
25709 double val2 ;
25710 int ecode2 = 0 ;
25711 double val3 ;
25712 int ecode3 = 0 ;
25713 double val4 ;
25714 int ecode4 = 0 ;
25715 double val5 ;
25716 int ecode5 = 0 ;
25717 double val6 ;
25718 int ecode6 = 0 ;
25719 wxColour temp7 ;
25720 wxColour temp8 ;
25721 PyObject * obj0 = 0 ;
25722 PyObject * obj1 = 0 ;
25723 PyObject * obj2 = 0 ;
25724 PyObject * obj3 = 0 ;
25725 PyObject * obj4 = 0 ;
25726 PyObject * obj5 = 0 ;
25727 PyObject * obj6 = 0 ;
25728 PyObject * obj7 = 0 ;
25729 char * kwnames[] = {
be68621e 25730 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColour",(char *) "cColour", NULL
72ef6efb
RD
25731 };
25732
25733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_SetRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
25734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25735 if (!SWIG_IsOK(res1)) {
25736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25737 }
25738 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25739 ecode2 = SWIG_AsVal_double(obj1, &val2);
25740 if (!SWIG_IsOK(ecode2)) {
25741 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
25742 }
25743 arg2 = static_cast< wxDouble >(val2);
25744 ecode3 = SWIG_AsVal_double(obj2, &val3);
25745 if (!SWIG_IsOK(ecode3)) {
25746 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
25747 }
25748 arg3 = static_cast< wxDouble >(val3);
25749 ecode4 = SWIG_AsVal_double(obj3, &val4);
25750 if (!SWIG_IsOK(ecode4)) {
25751 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
25752 }
25753 arg4 = static_cast< wxDouble >(val4);
25754 ecode5 = SWIG_AsVal_double(obj4, &val5);
25755 if (!SWIG_IsOK(ecode5)) {
25756 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
25757 }
25758 arg5 = static_cast< wxDouble >(val5);
25759 ecode6 = SWIG_AsVal_double(obj5, &val6);
25760 if (!SWIG_IsOK(ecode6)) {
25761 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
25762 }
25763 arg6 = static_cast< wxDouble >(val6);
25764 {
25765 arg7 = &temp7;
25766 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
25767 }
25768 {
25769 arg8 = &temp8;
25770 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
25771 }
25772 {
72ef6efb 25773 (arg1)->SetRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
25774 if (PyErr_Occurred()) SWIG_fail;
25775 }
25776 resultobj = SWIG_Py_Void();
25777 return resultobj;
25778fail:
25779 return NULL;
25780}
25781
25782
25783SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25784 PyObject *resultobj = 0;
25785 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25786 wxFont *arg2 = 0 ;
25787 void *argp1 = 0 ;
25788 int res1 = 0 ;
25789 void *argp2 = 0 ;
25790 int res2 = 0 ;
25791 PyObject * obj0 = 0 ;
25792 PyObject * obj1 = 0 ;
25793 char * kwnames[] = {
25794 (char *) "self",(char *) "font", NULL
25795 };
25796
25797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25799 if (!SWIG_IsOK(res1)) {
25800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25801 }
25802 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25803 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
25804 if (!SWIG_IsOK(res2)) {
25805 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25806 }
25807 if (!argp2) {
25808 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25809 }
25810 arg2 = reinterpret_cast< wxFont * >(argp2);
25811 {
72ef6efb 25812 (arg1)->SetFont((wxFont const &)*arg2);
72ef6efb
RD
25813 if (PyErr_Occurred()) SWIG_fail;
25814 }
25815 resultobj = SWIG_Py_Void();
25816 return resultobj;
25817fail:
25818 return NULL;
25819}
25820
25821
be68621e 25822SWIGINTERN PyObject *_wrap_GraphicsContext_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
25823 PyObject *resultobj = 0;
25824 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25825 wxColour *arg2 = 0 ;
25826 void *argp1 = 0 ;
25827 int res1 = 0 ;
25828 wxColour temp2 ;
25829 PyObject * obj0 = 0 ;
25830 PyObject * obj1 = 0 ;
25831 char * kwnames[] = {
25832 (char *) "self",(char *) "col", NULL
25833 };
25834
be68621e 25835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
25836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25837 if (!SWIG_IsOK(res1)) {
be68621e 25838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTextColour" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
25839 }
25840 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25841 {
25842 arg2 = &temp2;
25843 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25844 }
25845 {
be68621e 25846 (arg1)->SetTextColour((wxColour const &)*arg2);
72ef6efb
RD
25847 if (PyErr_Occurred()) SWIG_fail;
25848 }
25849 resultobj = SWIG_Py_Void();
25850 return resultobj;
25851fail:
25852 return NULL;
25853}
25854
25855
25856SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25857 PyObject *resultobj = 0;
25858 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25859 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
25860 void *argp1 = 0 ;
25861 int res1 = 0 ;
25862 void *argp2 = 0 ;
25863 int res2 = 0 ;
25864 PyObject * obj0 = 0 ;
25865 PyObject * obj1 = 0 ;
25866 char * kwnames[] = {
25867 (char *) "self",(char *) "path", NULL
25868 };
25869
25870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
25871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25872 if (!SWIG_IsOK(res1)) {
25873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25874 }
25875 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25876 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25877 if (!SWIG_IsOK(res2)) {
25878 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
25879 }
25880 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
25881 {
72ef6efb 25882 (arg1)->StrokePath((wxGraphicsPath const *)arg2);
72ef6efb
RD
25883 if (PyErr_Occurred()) SWIG_fail;
25884 }
25885 resultobj = SWIG_Py_Void();
25886 return resultobj;
25887fail:
25888 return NULL;
25889}
25890
25891
25892SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25893 PyObject *resultobj = 0;
25894 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25895 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
25896 int arg3 = (int) wxWINDING_RULE ;
25897 void *argp1 = 0 ;
25898 int res1 = 0 ;
25899 void *argp2 = 0 ;
25900 int res2 = 0 ;
25901 int val3 ;
25902 int ecode3 = 0 ;
25903 PyObject * obj0 = 0 ;
25904 PyObject * obj1 = 0 ;
25905 PyObject * obj2 = 0 ;
25906 char * kwnames[] = {
25907 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
25908 };
25909
25910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25912 if (!SWIG_IsOK(res1)) {
25913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25914 }
25915 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25916 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25917 if (!SWIG_IsOK(res2)) {
25918 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
25919 }
25920 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
25921 if (obj2) {
25922 ecode3 = SWIG_AsVal_int(obj2, &val3);
25923 if (!SWIG_IsOK(ecode3)) {
25924 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
25925 }
25926 arg3 = static_cast< int >(val3);
25927 }
25928 {
72ef6efb 25929 (arg1)->FillPath((wxGraphicsPath const *)arg2,arg3);
72ef6efb
RD
25930 if (PyErr_Occurred()) SWIG_fail;
25931 }
25932 resultobj = SWIG_Py_Void();
25933 return resultobj;
25934fail:
25935 return NULL;
25936}
25937
25938
25939SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25940 PyObject *resultobj = 0;
25941 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25942 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
25943 int arg3 = (int) wxWINDING_RULE ;
25944 void *argp1 = 0 ;
25945 int res1 = 0 ;
25946 void *argp2 = 0 ;
25947 int res2 = 0 ;
25948 int val3 ;
25949 int ecode3 = 0 ;
25950 PyObject * obj0 = 0 ;
25951 PyObject * obj1 = 0 ;
25952 PyObject * obj2 = 0 ;
25953 char * kwnames[] = {
25954 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
25955 };
25956
25957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25959 if (!SWIG_IsOK(res1)) {
25960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25961 }
25962 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25963 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25964 if (!SWIG_IsOK(res2)) {
25965 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
25966 }
25967 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
25968 if (obj2) {
25969 ecode3 = SWIG_AsVal_int(obj2, &val3);
25970 if (!SWIG_IsOK(ecode3)) {
25971 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
25972 }
25973 arg3 = static_cast< int >(val3);
25974 }
25975 {
72ef6efb 25976 (arg1)->DrawPath((wxGraphicsPath const *)arg2,arg3);
72ef6efb
RD
25977 if (PyErr_Occurred()) SWIG_fail;
25978 }
25979 resultobj = SWIG_Py_Void();
25980 return resultobj;
25981fail:
25982 return NULL;
25983}
25984
25985
b39fe951 25986SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
25987 PyObject *resultobj = 0;
25988 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25989 wxString *arg2 = 0 ;
25990 wxDouble arg3 ;
25991 wxDouble arg4 ;
25992 void *argp1 = 0 ;
25993 int res1 = 0 ;
25994 bool temp2 = false ;
25995 double val3 ;
25996 int ecode3 = 0 ;
25997 double val4 ;
25998 int ecode4 = 0 ;
b39fe951
RD
25999 PyObject * obj0 = 0 ;
26000 PyObject * obj1 = 0 ;
26001 PyObject * obj2 = 0 ;
26002 PyObject * obj3 = 0 ;
26003 char * kwnames[] = {
26004 (char *) "self",(char *) "str",(char *) "x",(char *) "y", NULL
26005 };
72ef6efb 26006
b39fe951
RD
26007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
26009 if (!SWIG_IsOK(res1)) {
26010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26011 }
26012 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26013 {
b39fe951 26014 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
26015 if (arg2 == NULL) SWIG_fail;
26016 temp2 = true;
26017 }
b39fe951 26018 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb
RD
26019 if (!SWIG_IsOK(ecode3)) {
26020 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
26021 }
26022 arg3 = static_cast< wxDouble >(val3);
b39fe951 26023 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb
RD
26024 if (!SWIG_IsOK(ecode4)) {
26025 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
26026 }
26027 arg4 = static_cast< wxDouble >(val4);
26028 {
72ef6efb 26029 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
72ef6efb
RD
26030 if (PyErr_Occurred()) SWIG_fail;
26031 }
26032 resultobj = SWIG_Py_Void();
26033 {
26034 if (temp2)
26035 delete arg2;
26036 }
26037 return resultobj;
26038fail:
26039 {
26040 if (temp2)
26041 delete arg2;
26042 }
26043 return NULL;
26044}
26045
26046
b39fe951 26047SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
26048 PyObject *resultobj = 0;
26049 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26050 wxString *arg2 = 0 ;
26051 wxDouble arg3 ;
26052 wxDouble arg4 ;
26053 wxDouble arg5 ;
26054 void *argp1 = 0 ;
26055 int res1 = 0 ;
26056 bool temp2 = false ;
26057 double val3 ;
26058 int ecode3 = 0 ;
26059 double val4 ;
26060 int ecode4 = 0 ;
26061 double val5 ;
26062 int ecode5 = 0 ;
b39fe951
RD
26063 PyObject * obj0 = 0 ;
26064 PyObject * obj1 = 0 ;
26065 PyObject * obj2 = 0 ;
26066 PyObject * obj3 = 0 ;
26067 PyObject * obj4 = 0 ;
26068 char * kwnames[] = {
26069 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle", NULL
26070 };
72ef6efb 26071
b39fe951
RD
26072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 26074 if (!SWIG_IsOK(res1)) {
b39fe951 26075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
26076 }
26077 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26078 {
b39fe951 26079 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
26080 if (arg2 == NULL) SWIG_fail;
26081 temp2 = true;
26082 }
b39fe951 26083 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 26084 if (!SWIG_IsOK(ecode3)) {
b39fe951 26085 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
26086 }
26087 arg3 = static_cast< wxDouble >(val3);
b39fe951 26088 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb 26089 if (!SWIG_IsOK(ecode4)) {
b39fe951 26090 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
26091 }
26092 arg4 = static_cast< wxDouble >(val4);
b39fe951 26093 ecode5 = SWIG_AsVal_double(obj4, &val5);
72ef6efb 26094 if (!SWIG_IsOK(ecode5)) {
b39fe951 26095 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
26096 }
26097 arg5 = static_cast< wxDouble >(val5);
26098 {
72ef6efb 26099 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4,arg5);
72ef6efb
RD
26100 if (PyErr_Occurred()) SWIG_fail;
26101 }
26102 resultobj = SWIG_Py_Void();
26103 {
26104 if (temp2)
26105 delete arg2;
26106 }
26107 return resultobj;
26108fail:
26109 {
26110 if (temp2)
26111 delete arg2;
26112 }
26113 return NULL;
26114}
26115
26116
be68621e 26117SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
26118 PyObject *resultobj = 0;
26119 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26120 wxString *arg2 = 0 ;
26121 wxDouble *arg3 = (wxDouble *) 0 ;
26122 wxDouble *arg4 = (wxDouble *) 0 ;
26123 wxDouble *arg5 = (wxDouble *) 0 ;
26124 wxDouble *arg6 = (wxDouble *) 0 ;
26125 void *argp1 = 0 ;
26126 int res1 = 0 ;
26127 bool temp2 = false ;
26128 wxDouble temp3 ;
26129 int res3 = SWIG_TMPOBJ ;
26130 wxDouble temp4 ;
26131 int res4 = SWIG_TMPOBJ ;
26132 wxDouble temp5 ;
26133 int res5 = SWIG_TMPOBJ ;
26134 wxDouble temp6 ;
26135 int res6 = SWIG_TMPOBJ ;
26136 PyObject * obj0 = 0 ;
26137 PyObject * obj1 = 0 ;
26138 char * kwnames[] = {
26139 (char *) "self",(char *) "text", NULL
26140 };
26141
26142 arg3 = &temp3;
26143 arg4 = &temp4;
26144 arg5 = &temp5;
26145 arg6 = &temp6;
be68621e 26146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
26147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26148 if (!SWIG_IsOK(res1)) {
be68621e 26149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
26150 }
26151 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26152 {
26153 arg2 = wxString_in_helper(obj1);
26154 if (arg2 == NULL) SWIG_fail;
26155 temp2 = true;
26156 }
26157 {
72ef6efb 26158 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
26159 if (PyErr_Occurred()) SWIG_fail;
26160 }
26161 resultobj = SWIG_Py_Void();
26162 if (SWIG_IsTmpObj(res3)) {
26163 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26164 } else {
26165 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26166 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26167 }
26168 if (SWIG_IsTmpObj(res4)) {
26169 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
26170 } else {
26171 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26172 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
26173 }
26174 if (SWIG_IsTmpObj(res5)) {
26175 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
26176 } else {
26177 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26178 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
26179 }
26180 if (SWIG_IsTmpObj(res6)) {
26181 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
26182 } else {
26183 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26184 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
26185 }
26186 {
26187 if (temp2)
26188 delete arg2;
26189 }
26190 return resultobj;
26191fail:
26192 {
26193 if (temp2)
26194 delete arg2;
26195 }
26196 return NULL;
26197}
26198
26199
be68621e
RD
26200SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26201 PyObject *resultobj = 0;
26202 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26203 wxString *arg2 = 0 ;
26204 PyObject *result = 0 ;
26205 void *argp1 = 0 ;
26206 int res1 = 0 ;
26207 bool temp2 = false ;
26208 PyObject * obj0 = 0 ;
26209 PyObject * obj1 = 0 ;
26210 char * kwnames[] = {
26211 (char *) "self",(char *) "text", NULL
26212 };
26213
26214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
26215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26216 if (!SWIG_IsOK(res1)) {
26217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26218 }
26219 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26220 {
26221 arg2 = wxString_in_helper(obj1);
26222 if (arg2 == NULL) SWIG_fail;
26223 temp2 = true;
26224 }
26225 {
26226 result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2);
26227 if (PyErr_Occurred()) SWIG_fail;
26228 }
26229 resultobj = result;
26230 {
26231 if (temp2)
26232 delete arg2;
26233 }
26234 return resultobj;
26235fail:
26236 {
26237 if (temp2)
26238 delete arg2;
26239 }
26240 return NULL;
26241}
26242
26243
72ef6efb
RD
26244SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26245 PyObject *resultobj = 0;
26246 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26247 wxString *arg2 = 0 ;
b39fe951 26248 wxArrayDouble result;
72ef6efb
RD
26249 void *argp1 = 0 ;
26250 int res1 = 0 ;
26251 bool temp2 = false ;
72ef6efb
RD
26252 PyObject * obj0 = 0 ;
26253 PyObject * obj1 = 0 ;
72ef6efb 26254 char * kwnames[] = {
b39fe951 26255 (char *) "self",(char *) "text", NULL
72ef6efb
RD
26256 };
26257
b39fe951 26258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
26259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26260 if (!SWIG_IsOK(res1)) {
b39fe951 26261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
26262 }
26263 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26264 {
26265 arg2 = wxString_in_helper(obj1);
26266 if (arg2 == NULL) SWIG_fail;
26267 temp2 = true;
26268 }
72ef6efb 26269 {
b39fe951 26270 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
72ef6efb
RD
26271 if (PyErr_Occurred()) SWIG_fail;
26272 }
b39fe951
RD
26273 {
26274 resultobj = wxArrayDouble2PyList_helper(result);
26275 }
72ef6efb
RD
26276 {
26277 if (temp2)
26278 delete arg2;
26279 }
26280 return resultobj;
26281fail:
26282 {
26283 if (temp2)
26284 delete arg2;
26285 }
26286 return NULL;
26287}
26288
26289
26290SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26291 PyObject *resultobj = 0;
26292 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26293 wxBitmap *arg2 = 0 ;
26294 wxDouble arg3 ;
26295 wxDouble arg4 ;
26296 wxDouble arg5 ;
26297 wxDouble arg6 ;
26298 void *argp1 = 0 ;
26299 int res1 = 0 ;
26300 void *argp2 = 0 ;
26301 int res2 = 0 ;
26302 double val3 ;
26303 int ecode3 = 0 ;
26304 double val4 ;
26305 int ecode4 = 0 ;
26306 double val5 ;
26307 int ecode5 = 0 ;
26308 double val6 ;
26309 int ecode6 = 0 ;
26310 PyObject * obj0 = 0 ;
26311 PyObject * obj1 = 0 ;
26312 PyObject * obj2 = 0 ;
26313 PyObject * obj3 = 0 ;
26314 PyObject * obj4 = 0 ;
26315 PyObject * obj5 = 0 ;
26316 char * kwnames[] = {
26317 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26318 };
26319
26320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26322 if (!SWIG_IsOK(res1)) {
26323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26324 }
26325 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26326 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
26327 if (!SWIG_IsOK(res2)) {
26328 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26329 }
26330 if (!argp2) {
26331 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26332 }
26333 arg2 = reinterpret_cast< wxBitmap * >(argp2);
26334 ecode3 = SWIG_AsVal_double(obj2, &val3);
26335 if (!SWIG_IsOK(ecode3)) {
26336 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
26337 }
26338 arg3 = static_cast< wxDouble >(val3);
26339 ecode4 = SWIG_AsVal_double(obj3, &val4);
26340 if (!SWIG_IsOK(ecode4)) {
26341 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
26342 }
26343 arg4 = static_cast< wxDouble >(val4);
26344 ecode5 = SWIG_AsVal_double(obj4, &val5);
26345 if (!SWIG_IsOK(ecode5)) {
26346 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
26347 }
26348 arg5 = static_cast< wxDouble >(val5);
26349 ecode6 = SWIG_AsVal_double(obj5, &val6);
26350 if (!SWIG_IsOK(ecode6)) {
26351 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
26352 }
26353 arg6 = static_cast< wxDouble >(val6);
26354 {
72ef6efb 26355 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
26356 if (PyErr_Occurred()) SWIG_fail;
26357 }
26358 resultobj = SWIG_Py_Void();
26359 return resultobj;
26360fail:
26361 return NULL;
26362}
26363
26364
26365SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26366 PyObject *resultobj = 0;
26367 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26368 wxIcon *arg2 = 0 ;
26369 wxDouble arg3 ;
26370 wxDouble arg4 ;
26371 wxDouble arg5 ;
26372 wxDouble arg6 ;
26373 void *argp1 = 0 ;
26374 int res1 = 0 ;
26375 void *argp2 = 0 ;
26376 int res2 = 0 ;
26377 double val3 ;
26378 int ecode3 = 0 ;
26379 double val4 ;
26380 int ecode4 = 0 ;
26381 double val5 ;
26382 int ecode5 = 0 ;
26383 double val6 ;
26384 int ecode6 = 0 ;
26385 PyObject * obj0 = 0 ;
26386 PyObject * obj1 = 0 ;
26387 PyObject * obj2 = 0 ;
26388 PyObject * obj3 = 0 ;
26389 PyObject * obj4 = 0 ;
26390 PyObject * obj5 = 0 ;
26391 char * kwnames[] = {
26392 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26393 };
26394
26395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26397 if (!SWIG_IsOK(res1)) {
26398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26399 }
26400 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26401 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
26402 if (!SWIG_IsOK(res2)) {
26403 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
26404 }
26405 if (!argp2) {
26406 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
26407 }
26408 arg2 = reinterpret_cast< wxIcon * >(argp2);
26409 ecode3 = SWIG_AsVal_double(obj2, &val3);
26410 if (!SWIG_IsOK(ecode3)) {
26411 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
26412 }
26413 arg3 = static_cast< wxDouble >(val3);
26414 ecode4 = SWIG_AsVal_double(obj3, &val4);
26415 if (!SWIG_IsOK(ecode4)) {
26416 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
26417 }
26418 arg4 = static_cast< wxDouble >(val4);
26419 ecode5 = SWIG_AsVal_double(obj4, &val5);
26420 if (!SWIG_IsOK(ecode5)) {
26421 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
26422 }
26423 arg5 = static_cast< wxDouble >(val5);
26424 ecode6 = SWIG_AsVal_double(obj5, &val6);
26425 if (!SWIG_IsOK(ecode6)) {
26426 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
26427 }
26428 arg6 = static_cast< wxDouble >(val6);
26429 {
72ef6efb 26430 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
26431 if (PyErr_Occurred()) SWIG_fail;
26432 }
26433 resultobj = SWIG_Py_Void();
26434 return resultobj;
26435fail:
26436 return NULL;
26437}
26438
26439
26440SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26441 PyObject *resultobj = 0;
26442 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26443 wxDouble arg2 ;
26444 wxDouble arg3 ;
26445 wxDouble arg4 ;
26446 wxDouble arg5 ;
26447 void *argp1 = 0 ;
26448 int res1 = 0 ;
26449 double val2 ;
26450 int ecode2 = 0 ;
26451 double val3 ;
26452 int ecode3 = 0 ;
26453 double val4 ;
26454 int ecode4 = 0 ;
26455 double val5 ;
26456 int ecode5 = 0 ;
26457 PyObject * obj0 = 0 ;
26458 PyObject * obj1 = 0 ;
26459 PyObject * obj2 = 0 ;
26460 PyObject * obj3 = 0 ;
26461 PyObject * obj4 = 0 ;
26462 char * kwnames[] = {
26463 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
26464 };
26465
26466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26468 if (!SWIG_IsOK(res1)) {
26469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26470 }
26471 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26472 ecode2 = SWIG_AsVal_double(obj1, &val2);
26473 if (!SWIG_IsOK(ecode2)) {
26474 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
26475 }
26476 arg2 = static_cast< wxDouble >(val2);
26477 ecode3 = SWIG_AsVal_double(obj2, &val3);
26478 if (!SWIG_IsOK(ecode3)) {
26479 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
26480 }
26481 arg3 = static_cast< wxDouble >(val3);
26482 ecode4 = SWIG_AsVal_double(obj3, &val4);
26483 if (!SWIG_IsOK(ecode4)) {
26484 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
26485 }
26486 arg4 = static_cast< wxDouble >(val4);
26487 ecode5 = SWIG_AsVal_double(obj4, &val5);
26488 if (!SWIG_IsOK(ecode5)) {
26489 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
26490 }
26491 arg5 = static_cast< wxDouble >(val5);
26492 {
72ef6efb 26493 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
72ef6efb
RD
26494 if (PyErr_Occurred()) SWIG_fail;
26495 }
26496 resultobj = SWIG_Py_Void();
26497 return resultobj;
26498fail:
26499 return NULL;
26500}
26501
26502
b39fe951 26503SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
26504 PyObject *resultobj = 0;
26505 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26506 size_t arg2 ;
26507 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
26508 void *argp1 = 0 ;
26509 int res1 = 0 ;
b39fe951
RD
26510 PyObject * obj0 = 0 ;
26511 PyObject * obj1 = 0 ;
26512 char * kwnames[] = {
26513 (char *) "self",(char *) "points", NULL
26514 };
72ef6efb 26515
b39fe951
RD
26516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
26517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
26518 if (!SWIG_IsOK(res1)) {
26519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26520 }
26521 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
b39fe951
RD
26522 {
26523 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
26524 if (arg3 == NULL) SWIG_fail;
72ef6efb 26525 }
72ef6efb 26526 {
72ef6efb 26527 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
72ef6efb
RD
26528 if (PyErr_Occurred()) SWIG_fail;
26529 }
26530 resultobj = SWIG_Py_Void();
b39fe951
RD
26531 {
26532 if (arg3) delete [] arg3;
26533 }
72ef6efb
RD
26534 return resultobj;
26535fail:
b39fe951
RD
26536 {
26537 if (arg3) delete [] arg3;
26538 }
72ef6efb
RD
26539 return NULL;
26540}
26541
26542
f8eb59b9 26543SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
26544 PyObject *resultobj = 0;
26545 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
b39fe951
RD
26546 PyObject *arg2 = (PyObject *) 0 ;
26547 PyObject *arg3 = (PyObject *) 0 ;
72ef6efb
RD
26548 void *argp1 = 0 ;
26549 int res1 = 0 ;
b39fe951
RD
26550 PyObject * obj0 = 0 ;
26551 PyObject * obj1 = 0 ;
26552 PyObject * obj2 = 0 ;
26553 char * kwnames[] = {
26554 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
26555 };
72ef6efb 26556
f8eb59b9 26557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
b39fe951 26558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 26559 if (!SWIG_IsOK(res1)) {
f8eb59b9 26560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
26561 }
26562 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
b39fe951
RD
26563 arg2 = obj1;
26564 arg3 = obj2;
72ef6efb 26565 {
f8eb59b9 26566 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
72ef6efb
RD
26567 if (PyErr_Occurred()) SWIG_fail;
26568 }
26569 resultobj = SWIG_Py_Void();
26570 return resultobj;
26571fail:
26572 return NULL;
26573}
26574
26575
72ef6efb
RD
26576SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26577 PyObject *resultobj = 0;
26578 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26579 size_t arg2 ;
26580 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
26581 int arg4 = (int) wxWINDING_RULE ;
26582 void *argp1 = 0 ;
26583 int res1 = 0 ;
72ef6efb
RD
26584 int val4 ;
26585 int ecode4 = 0 ;
26586 PyObject * obj0 = 0 ;
26587 PyObject * obj1 = 0 ;
26588 PyObject * obj2 = 0 ;
72ef6efb 26589 char * kwnames[] = {
b39fe951 26590 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
72ef6efb
RD
26591 };
26592
b39fe951 26593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
72ef6efb
RD
26594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26595 if (!SWIG_IsOK(res1)) {
26596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26597 }
26598 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
b39fe951
RD
26599 {
26600 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
26601 if (arg3 == NULL) SWIG_fail;
72ef6efb 26602 }
b39fe951
RD
26603 if (obj2) {
26604 ecode4 = SWIG_AsVal_int(obj2, &val4);
72ef6efb
RD
26605 if (!SWIG_IsOK(ecode4)) {
26606 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
26607 }
26608 arg4 = static_cast< int >(val4);
26609 }
26610 {
72ef6efb 26611 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
72ef6efb
RD
26612 if (PyErr_Occurred()) SWIG_fail;
26613 }
26614 resultobj = SWIG_Py_Void();
b39fe951
RD
26615 {
26616 if (arg3) delete [] arg3;
26617 }
72ef6efb
RD
26618 return resultobj;
26619fail:
b39fe951
RD
26620 {
26621 if (arg3) delete [] arg3;
26622 }
72ef6efb
RD
26623 return NULL;
26624}
26625
26626
26627SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26628 PyObject *resultobj = 0;
26629 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26630 wxDouble arg2 ;
26631 wxDouble arg3 ;
26632 wxDouble arg4 ;
26633 wxDouble arg5 ;
26634 void *argp1 = 0 ;
26635 int res1 = 0 ;
26636 double val2 ;
26637 int ecode2 = 0 ;
26638 double val3 ;
26639 int ecode3 = 0 ;
26640 double val4 ;
26641 int ecode4 = 0 ;
26642 double val5 ;
26643 int ecode5 = 0 ;
26644 PyObject * obj0 = 0 ;
26645 PyObject * obj1 = 0 ;
26646 PyObject * obj2 = 0 ;
26647 PyObject * obj3 = 0 ;
26648 PyObject * obj4 = 0 ;
26649 char * kwnames[] = {
26650 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26651 };
26652
26653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26655 if (!SWIG_IsOK(res1)) {
26656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26657 }
26658 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26659 ecode2 = SWIG_AsVal_double(obj1, &val2);
26660 if (!SWIG_IsOK(ecode2)) {
26661 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26662 }
26663 arg2 = static_cast< wxDouble >(val2);
26664 ecode3 = SWIG_AsVal_double(obj2, &val3);
26665 if (!SWIG_IsOK(ecode3)) {
26666 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26667 }
26668 arg3 = static_cast< wxDouble >(val3);
26669 ecode4 = SWIG_AsVal_double(obj3, &val4);
26670 if (!SWIG_IsOK(ecode4)) {
26671 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26672 }
26673 arg4 = static_cast< wxDouble >(val4);
26674 ecode5 = SWIG_AsVal_double(obj4, &val5);
26675 if (!SWIG_IsOK(ecode5)) {
26676 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26677 }
26678 arg5 = static_cast< wxDouble >(val5);
26679 {
72ef6efb 26680 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
72ef6efb
RD
26681 if (PyErr_Occurred()) SWIG_fail;
26682 }
26683 resultobj = SWIG_Py_Void();
26684 return resultobj;
26685fail:
26686 return NULL;
26687}
26688
26689
26690SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26691 PyObject *resultobj = 0;
26692 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26693 wxDouble arg2 ;
26694 wxDouble arg3 ;
26695 wxDouble arg4 ;
26696 wxDouble arg5 ;
26697 void *argp1 = 0 ;
26698 int res1 = 0 ;
26699 double val2 ;
26700 int ecode2 = 0 ;
26701 double val3 ;
26702 int ecode3 = 0 ;
26703 double val4 ;
26704 int ecode4 = 0 ;
26705 double val5 ;
26706 int ecode5 = 0 ;
26707 PyObject * obj0 = 0 ;
26708 PyObject * obj1 = 0 ;
26709 PyObject * obj2 = 0 ;
26710 PyObject * obj3 = 0 ;
26711 PyObject * obj4 = 0 ;
26712 char * kwnames[] = {
26713 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26714 };
26715
26716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26718 if (!SWIG_IsOK(res1)) {
26719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26720 }
26721 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26722 ecode2 = SWIG_AsVal_double(obj1, &val2);
26723 if (!SWIG_IsOK(ecode2)) {
26724 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
26725 }
26726 arg2 = static_cast< wxDouble >(val2);
26727 ecode3 = SWIG_AsVal_double(obj2, &val3);
26728 if (!SWIG_IsOK(ecode3)) {
26729 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
26730 }
26731 arg3 = static_cast< wxDouble >(val3);
26732 ecode4 = SWIG_AsVal_double(obj3, &val4);
26733 if (!SWIG_IsOK(ecode4)) {
26734 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
26735 }
26736 arg4 = static_cast< wxDouble >(val4);
26737 ecode5 = SWIG_AsVal_double(obj4, &val5);
26738 if (!SWIG_IsOK(ecode5)) {
26739 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
26740 }
26741 arg5 = static_cast< wxDouble >(val5);
26742 {
72ef6efb 26743 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
72ef6efb
RD
26744 if (PyErr_Occurred()) SWIG_fail;
26745 }
26746 resultobj = SWIG_Py_Void();
26747 return resultobj;
26748fail:
26749 return NULL;
26750}
26751
26752
26753SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26754 PyObject *resultobj = 0;
26755 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26756 wxDouble arg2 ;
26757 wxDouble arg3 ;
26758 wxDouble arg4 ;
26759 wxDouble arg5 ;
26760 wxDouble arg6 ;
26761 void *argp1 = 0 ;
26762 int res1 = 0 ;
26763 double val2 ;
26764 int ecode2 = 0 ;
26765 double val3 ;
26766 int ecode3 = 0 ;
26767 double val4 ;
26768 int ecode4 = 0 ;
26769 double val5 ;
26770 int ecode5 = 0 ;
26771 double val6 ;
26772 int ecode6 = 0 ;
26773 PyObject * obj0 = 0 ;
26774 PyObject * obj1 = 0 ;
26775 PyObject * obj2 = 0 ;
26776 PyObject * obj3 = 0 ;
26777 PyObject * obj4 = 0 ;
26778 PyObject * obj5 = 0 ;
26779 char * kwnames[] = {
26780 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
26781 };
26782
26783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26785 if (!SWIG_IsOK(res1)) {
26786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26787 }
26788 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26789 ecode2 = SWIG_AsVal_double(obj1, &val2);
26790 if (!SWIG_IsOK(ecode2)) {
26791 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26792 }
26793 arg2 = static_cast< wxDouble >(val2);
26794 ecode3 = SWIG_AsVal_double(obj2, &val3);
26795 if (!SWIG_IsOK(ecode3)) {
26796 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26797 }
26798 arg3 = static_cast< wxDouble >(val3);
26799 ecode4 = SWIG_AsVal_double(obj3, &val4);
26800 if (!SWIG_IsOK(ecode4)) {
26801 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26802 }
26803 arg4 = static_cast< wxDouble >(val4);
26804 ecode5 = SWIG_AsVal_double(obj4, &val5);
26805 if (!SWIG_IsOK(ecode5)) {
26806 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26807 }
26808 arg5 = static_cast< wxDouble >(val5);
26809 ecode6 = SWIG_AsVal_double(obj5, &val6);
26810 if (!SWIG_IsOK(ecode6)) {
26811 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
26812 }
26813 arg6 = static_cast< wxDouble >(val6);
26814 {
72ef6efb 26815 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
26816 if (PyErr_Occurred()) SWIG_fail;
26817 }
26818 resultobj = SWIG_Py_Void();
26819 return resultobj;
26820fail:
26821 return NULL;
26822}
26823
26824
26825SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26826 PyObject *obj;
26827 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26828 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
26829 return SWIG_Py_Void();
26830}
26831
26832SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26833 PyObject *resultobj = 0;
26834 wxWindowDC *arg1 = 0 ;
26835 wxGCDC *result = 0 ;
26836 void *argp1 = 0 ;
26837 int res1 = 0 ;
26838 PyObject * obj0 = 0 ;
26839 char * kwnames[] = {
26840 (char *) "dc", NULL
26841 };
26842
26843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_GCDC",kwnames,&obj0)) SWIG_fail;
26844 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
26845 if (!SWIG_IsOK(res1)) {
26846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
26847 }
26848 if (!argp1) {
26849 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
26850 }
26851 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
26852 {
26853 if (!wxPyCheckForApp()) SWIG_fail;
26854 PyThreadState* __tstate = wxPyBeginAllowThreads();
26855 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
26856 wxPyEndAllowThreads(__tstate);
26857 if (PyErr_Occurred()) SWIG_fail;
26858 }
26859 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
26860 return resultobj;
26861fail:
26862 return NULL;
26863}
26864
26865
26866SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26867 PyObject *resultobj = 0;
26868 wxGCDC *arg1 = (wxGCDC *) 0 ;
26869 void *argp1 = 0 ;
26870 int res1 = 0 ;
26871 PyObject *swig_obj[1] ;
26872
26873 if (!args) SWIG_fail;
26874 swig_obj[0] = args;
26875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
26876 if (!SWIG_IsOK(res1)) {
26877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
26878 }
26879 arg1 = reinterpret_cast< wxGCDC * >(argp1);
26880 {
72ef6efb
RD
26881 delete arg1;
26882
72ef6efb
RD
26883 if (PyErr_Occurred()) SWIG_fail;
26884 }
26885 resultobj = SWIG_Py_Void();
26886 return resultobj;
26887fail:
26888 return NULL;
26889}
26890
26891
0a27f394 26892SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
26893 PyObject *resultobj = 0;
26894 wxGCDC *arg1 = (wxGCDC *) 0 ;
26895 wxGraphicsContext *result = 0 ;
26896 void *argp1 = 0 ;
26897 int res1 = 0 ;
26898 PyObject *swig_obj[1] ;
26899
26900 if (!args) SWIG_fail;
26901 swig_obj[0] = args;
26902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
26903 if (!SWIG_IsOK(res1)) {
0a27f394 26904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
72ef6efb
RD
26905 }
26906 arg1 = reinterpret_cast< wxGCDC * >(argp1);
26907 {
0a27f394 26908 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
72ef6efb
RD
26909 if (PyErr_Occurred()) SWIG_fail;
26910 }
26911 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26912 return resultobj;
26913fail:
26914 return NULL;
26915}
26916
26917
0a27f394
RD
26918SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26919 PyObject *resultobj = 0;
26920 wxGCDC *arg1 = (wxGCDC *) 0 ;
26921 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
26922 void *argp1 = 0 ;
26923 int res1 = 0 ;
26924 void *argp2 = 0 ;
26925 int res2 = 0 ;
26926 PyObject * obj0 = 0 ;
26927 PyObject * obj1 = 0 ;
26928 char * kwnames[] = {
26929 (char *) "self",(char *) "ctx", NULL
26930 };
26931
26932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
26933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
26934 if (!SWIG_IsOK(res1)) {
26935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
26936 }
26937 arg1 = reinterpret_cast< wxGCDC * >(argp1);
26938 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26939 if (!SWIG_IsOK(res2)) {
26940 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
26941 }
26942 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
26943 {
26944 (arg1)->SetGraphicsContext(arg2);
26945 if (PyErr_Occurred()) SWIG_fail;
26946 }
26947 resultobj = SWIG_Py_Void();
26948 return resultobj;
26949fail:
26950 return NULL;
26951}
26952
26953
72ef6efb
RD
26954SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26955 PyObject *obj;
26956 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26957 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
26958 return SWIG_Py_Void();
26959}
26960
26961SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26962 return SWIG_Python_InitShadowInstance(args);
26963}
26964
b39fe951
RD
26965SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26966 PyObject *resultobj = 0;
26967 wxOverlay *result = 0 ;
26968
26969 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
26970 {
26971 PyThreadState* __tstate = wxPyBeginAllowThreads();
26972 result = (wxOverlay *)new wxOverlay();
26973 wxPyEndAllowThreads(__tstate);
26974 if (PyErr_Occurred()) SWIG_fail;
26975 }
26976 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
26977 return resultobj;
26978fail:
26979 return NULL;
26980}
26981
26982
26983SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26984 PyObject *resultobj = 0;
26985 wxOverlay *arg1 = (wxOverlay *) 0 ;
26986 void *argp1 = 0 ;
26987 int res1 = 0 ;
26988 PyObject *swig_obj[1] ;
26989
26990 if (!args) SWIG_fail;
26991 swig_obj[0] = args;
26992 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
26993 if (!SWIG_IsOK(res1)) {
26994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
26995 }
26996 arg1 = reinterpret_cast< wxOverlay * >(argp1);
26997 {
26998 PyThreadState* __tstate = wxPyBeginAllowThreads();
26999 delete arg1;
27000
27001 wxPyEndAllowThreads(__tstate);
27002 if (PyErr_Occurred()) SWIG_fail;
27003 }
27004 resultobj = SWIG_Py_Void();
27005 return resultobj;
27006fail:
27007 return NULL;
27008}
27009
27010
27011SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27012 PyObject *resultobj = 0;
27013 wxOverlay *arg1 = (wxOverlay *) 0 ;
27014 void *argp1 = 0 ;
27015 int res1 = 0 ;
27016 PyObject *swig_obj[1] ;
27017
27018 if (!args) SWIG_fail;
27019 swig_obj[0] = args;
27020 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
27021 if (!SWIG_IsOK(res1)) {
27022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
27023 }
27024 arg1 = reinterpret_cast< wxOverlay * >(argp1);
27025 {
27026 PyThreadState* __tstate = wxPyBeginAllowThreads();
27027 (arg1)->Reset();
27028 wxPyEndAllowThreads(__tstate);
27029 if (PyErr_Occurred()) SWIG_fail;
27030 }
27031 resultobj = SWIG_Py_Void();
27032 return resultobj;
27033fail:
27034 return NULL;
27035}
27036
27037
27038SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27039 PyObject *obj;
27040 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27041 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
27042 return SWIG_Py_Void();
27043}
27044
27045SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27046 return SWIG_Python_InitShadowInstance(args);
27047}
27048
27049SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27050 PyObject *resultobj = 0;
27051 wxOverlay *arg1 = 0 ;
27052 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
27053 int arg3 ;
27054 int arg4 ;
27055 int arg5 ;
27056 int arg6 ;
27057 wxDCOverlay *result = 0 ;
27058 void *argp1 = 0 ;
27059 int res1 = 0 ;
27060 void *argp2 = 0 ;
27061 int res2 = 0 ;
27062 int val3 ;
27063 int ecode3 = 0 ;
27064 int val4 ;
27065 int ecode4 = 0 ;
27066 int val5 ;
27067 int ecode5 = 0 ;
27068 int val6 ;
27069 int ecode6 = 0 ;
27070
27071 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
27072 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
27073 if (!SWIG_IsOK(res1)) {
27074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
27075 }
27076 if (!argp1) {
27077 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
27078 }
27079 arg1 = reinterpret_cast< wxOverlay * >(argp1);
27080 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
27081 if (!SWIG_IsOK(res2)) {
27082 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
27083 }
27084 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
27085 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
27086 if (!SWIG_IsOK(ecode3)) {
27087 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
27088 }
27089 arg3 = static_cast< int >(val3);
27090 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
27091 if (!SWIG_IsOK(ecode4)) {
27092 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
27093 }
27094 arg4 = static_cast< int >(val4);
27095 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
27096 if (!SWIG_IsOK(ecode5)) {
27097 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
27098 }
27099 arg5 = static_cast< int >(val5);
27100 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
27101 if (!SWIG_IsOK(ecode6)) {
27102 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
27103 }
27104 arg6 = static_cast< int >(val6);
27105 {
27106 PyThreadState* __tstate = wxPyBeginAllowThreads();
27107 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
27108 wxPyEndAllowThreads(__tstate);
27109 if (PyErr_Occurred()) SWIG_fail;
27110 }
27111 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
27112 return resultobj;
27113fail:
27114 return NULL;
27115}
27116
27117
27118SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27119 PyObject *resultobj = 0;
27120 wxOverlay *arg1 = 0 ;
27121 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
27122 wxDCOverlay *result = 0 ;
27123 void *argp1 = 0 ;
27124 int res1 = 0 ;
27125 void *argp2 = 0 ;
27126 int res2 = 0 ;
27127
27128 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
27130 if (!SWIG_IsOK(res1)) {
27131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
27132 }
27133 if (!argp1) {
27134 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
27135 }
27136 arg1 = reinterpret_cast< wxOverlay * >(argp1);
27137 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
27138 if (!SWIG_IsOK(res2)) {
27139 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
27140 }
27141 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
27142 {
27143 PyThreadState* __tstate = wxPyBeginAllowThreads();
27144 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
27145 wxPyEndAllowThreads(__tstate);
27146 if (PyErr_Occurred()) SWIG_fail;
27147 }
27148 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
27149 return resultobj;
27150fail:
27151 return NULL;
27152}
27153
27154
27155SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
27156 int argc;
27157 PyObject *argv[7];
27158
27159 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
27160 --argc;
27161 if (argc == 2) {
27162 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
27163 }
27164 if (argc == 6) {
27165 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
27166 }
27167
27168fail:
27169 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
27170 return NULL;
27171}
27172
27173
27174SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27175 PyObject *resultobj = 0;
27176 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
27177 void *argp1 = 0 ;
27178 int res1 = 0 ;
27179 PyObject *swig_obj[1] ;
27180
27181 if (!args) SWIG_fail;
27182 swig_obj[0] = args;
27183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
27184 if (!SWIG_IsOK(res1)) {
27185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
27186 }
27187 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
27188 {
27189 PyThreadState* __tstate = wxPyBeginAllowThreads();
27190 delete arg1;
27191
27192 wxPyEndAllowThreads(__tstate);
27193 if (PyErr_Occurred()) SWIG_fail;
27194 }
27195 resultobj = SWIG_Py_Void();
27196 return resultobj;
27197fail:
27198 return NULL;
27199}
27200
27201
27202SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27203 PyObject *resultobj = 0;
27204 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
27205 void *argp1 = 0 ;
27206 int res1 = 0 ;
27207 PyObject *swig_obj[1] ;
27208
27209 if (!args) SWIG_fail;
27210 swig_obj[0] = args;
27211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
27212 if (!SWIG_IsOK(res1)) {
27213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
27214 }
27215 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
27216 {
27217 PyThreadState* __tstate = wxPyBeginAllowThreads();
27218 (arg1)->Clear();
27219 wxPyEndAllowThreads(__tstate);
27220 if (PyErr_Occurred()) SWIG_fail;
27221 }
27222 resultobj = SWIG_Py_Void();
27223 return resultobj;
27224fail:
27225 return NULL;
27226}
27227
27228
27229SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27230 PyObject *obj;
27231 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27232 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
27233 return SWIG_Py_Void();
27234}
27235
27236SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27237 return SWIG_Python_InitShadowInstance(args);
27238}
27239
72ef6efb
RD
27240SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27241 PyObject *resultobj = 0;
27242 int arg1 ;
27243 int arg2 ;
27244 int arg3 = (int) true ;
27245 int arg4 = (int) 1 ;
27246 wxImageList *result = 0 ;
27247 int val1 ;
27248 int ecode1 = 0 ;
27249 int val2 ;
27250 int ecode2 = 0 ;
27251 int val3 ;
27252 int ecode3 = 0 ;
27253 int val4 ;
27254 int ecode4 = 0 ;
27255 PyObject * obj0 = 0 ;
27256 PyObject * obj1 = 0 ;
27257 PyObject * obj2 = 0 ;
27258 PyObject * obj3 = 0 ;
27259 char * kwnames[] = {
27260 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
27261 };
27262
27263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27264 ecode1 = SWIG_AsVal_int(obj0, &val1);
27265 if (!SWIG_IsOK(ecode1)) {
27266 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
27267 }
27268 arg1 = static_cast< int >(val1);
27269 ecode2 = SWIG_AsVal_int(obj1, &val2);
27270 if (!SWIG_IsOK(ecode2)) {
27271 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
27272 }
27273 arg2 = static_cast< int >(val2);
27274 if (obj2) {
27275 ecode3 = SWIG_AsVal_int(obj2, &val3);
27276 if (!SWIG_IsOK(ecode3)) {
27277 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
27278 }
27279 arg3 = static_cast< int >(val3);
27280 }
27281 if (obj3) {
27282 ecode4 = SWIG_AsVal_int(obj3, &val4);
27283 if (!SWIG_IsOK(ecode4)) {
27284 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
27285 }
27286 arg4 = static_cast< int >(val4);
27287 }
27288 {
27289 if (!wxPyCheckForApp()) SWIG_fail;
27290 PyThreadState* __tstate = wxPyBeginAllowThreads();
27291 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
27292 wxPyEndAllowThreads(__tstate);
27293 if (PyErr_Occurred()) SWIG_fail;
27294 }
e02c0a13 27295 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
72ef6efb
RD
27296 return resultobj;
27297fail:
27298 return NULL;
27299}
27300
27301
27302SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27303 PyObject *resultobj = 0;
27304 wxImageList *arg1 = (wxImageList *) 0 ;
27305 void *argp1 = 0 ;
27306 int res1 = 0 ;
27307 PyObject *swig_obj[1] ;
27308
27309 if (!args) SWIG_fail;
27310 swig_obj[0] = args;
27311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
27312 if (!SWIG_IsOK(res1)) {
27313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
27314 }
27315 arg1 = reinterpret_cast< wxImageList * >(argp1);
27316 {
27317 PyThreadState* __tstate = wxPyBeginAllowThreads();
27318 delete arg1;
27319
27320 wxPyEndAllowThreads(__tstate);
27321 if (PyErr_Occurred()) SWIG_fail;
27322 }
27323 resultobj = SWIG_Py_Void();
27324 return resultobj;
27325fail:
27326 return NULL;
27327}
27328
27329
27330SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27331 PyObject *resultobj = 0;
27332 wxImageList *arg1 = (wxImageList *) 0 ;
27333 wxBitmap *arg2 = 0 ;
27334 wxBitmap const &arg3_defvalue = wxNullBitmap ;
27335 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
27336 int result;
27337 void *argp1 = 0 ;
27338 int res1 = 0 ;
27339 void *argp2 = 0 ;
27340 int res2 = 0 ;
27341 void *argp3 = 0 ;
27342 int res3 = 0 ;
27343 PyObject * obj0 = 0 ;
27344 PyObject * obj1 = 0 ;
27345 PyObject * obj2 = 0 ;
27346 char * kwnames[] = {
27347 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
27348 };
27349
27350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27352 if (!SWIG_IsOK(res1)) {
27353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
27354 }
27355 arg1 = reinterpret_cast< wxImageList * >(argp1);
27356 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
27357 if (!SWIG_IsOK(res2)) {
27358 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27359 }
27360 if (!argp2) {
27361 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27362 }
27363 arg2 = reinterpret_cast< wxBitmap * >(argp2);
27364 if (obj2) {
27365 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
27366 if (!SWIG_IsOK(res3)) {
27367 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27368 }
27369 if (!argp3) {
27370 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27371 }
27372 arg3 = reinterpret_cast< wxBitmap * >(argp3);
27373 }
27374 {
27375 PyThreadState* __tstate = wxPyBeginAllowThreads();
27376 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
27377 wxPyEndAllowThreads(__tstate);
27378 if (PyErr_Occurred()) SWIG_fail;
27379 }
27380 resultobj = SWIG_From_int(static_cast< int >(result));
27381 return resultobj;
27382fail:
27383 return NULL;
27384}
27385
27386
27387SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27388 PyObject *resultobj = 0;
27389 wxImageList *arg1 = (wxImageList *) 0 ;
27390 wxBitmap *arg2 = 0 ;
27391 wxColour *arg3 = 0 ;
27392 int result;
27393 void *argp1 = 0 ;
27394 int res1 = 0 ;
27395 void *argp2 = 0 ;
27396 int res2 = 0 ;
27397 wxColour temp3 ;
27398 PyObject * obj0 = 0 ;
27399 PyObject * obj1 = 0 ;
27400 PyObject * obj2 = 0 ;
27401 char * kwnames[] = {
27402 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
27403 };
27404
27405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27407 if (!SWIG_IsOK(res1)) {
27408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
27409 }
27410 arg1 = reinterpret_cast< wxImageList * >(argp1);
27411 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
27412 if (!SWIG_IsOK(res2)) {
27413 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27414 }
27415 if (!argp2) {
27416 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27417 }
27418 arg2 = reinterpret_cast< wxBitmap * >(argp2);
27419 {
27420 arg3 = &temp3;
27421 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
27422 }
27423 {
27424 PyThreadState* __tstate = wxPyBeginAllowThreads();
27425 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
27426 wxPyEndAllowThreads(__tstate);
27427 if (PyErr_Occurred()) SWIG_fail;
27428 }
27429 resultobj = SWIG_From_int(static_cast< int >(result));
27430 return resultobj;
27431fail:
27432 return NULL;
27433}
27434
27435
27436SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27437 PyObject *resultobj = 0;
27438 wxImageList *arg1 = (wxImageList *) 0 ;
27439 wxIcon *arg2 = 0 ;
27440 int result;
27441 void *argp1 = 0 ;
27442 int res1 = 0 ;
27443 void *argp2 = 0 ;
27444 int res2 = 0 ;
27445 PyObject * obj0 = 0 ;
27446 PyObject * obj1 = 0 ;
27447 char * kwnames[] = {
27448 (char *) "self",(char *) "icon", NULL
27449 };
27450
27451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
27452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27453 if (!SWIG_IsOK(res1)) {
27454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
27455 }
1bd55598
RD
27456 arg1 = reinterpret_cast< wxImageList * >(argp1);
27457 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
27458 if (!SWIG_IsOK(res2)) {
27459 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
27460 }
27461 if (!argp2) {
27462 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
27463 }
27464 arg2 = reinterpret_cast< wxIcon * >(argp2);
27465 {
27466 PyThreadState* __tstate = wxPyBeginAllowThreads();
27467 result = (int)(arg1)->Add((wxIcon const &)*arg2);
27468 wxPyEndAllowThreads(__tstate);
27469 if (PyErr_Occurred()) SWIG_fail;
27470 }
27471 resultobj = SWIG_From_int(static_cast< int >(result));
27472 return resultobj;
27473fail:
27474 return NULL;
27475}
27476
27477
27478SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27479 PyObject *resultobj = 0;
27480 wxImageList *arg1 = (wxImageList *) 0 ;
27481 int arg2 ;
27482 SwigValueWrapper<wxBitmap > result;
27483 void *argp1 = 0 ;
27484 int res1 = 0 ;
27485 int val2 ;
27486 int ecode2 = 0 ;
27487 PyObject * obj0 = 0 ;
27488 PyObject * obj1 = 0 ;
27489 char * kwnames[] = {
27490 (char *) "self",(char *) "index", NULL
27491 };
27492
27493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
27494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27495 if (!SWIG_IsOK(res1)) {
27496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
27497 }
27498 arg1 = reinterpret_cast< wxImageList * >(argp1);
27499 ecode2 = SWIG_AsVal_int(obj1, &val2);
27500 if (!SWIG_IsOK(ecode2)) {
27501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
27502 }
27503 arg2 = static_cast< int >(val2);
27504 {
27505 PyThreadState* __tstate = wxPyBeginAllowThreads();
27506 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
27507 wxPyEndAllowThreads(__tstate);
27508 if (PyErr_Occurred()) SWIG_fail;
27509 }
27510 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
27511 return resultobj;
27512fail:
27513 return NULL;
27514}
27515
27516
27517SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27518 PyObject *resultobj = 0;
27519 wxImageList *arg1 = (wxImageList *) 0 ;
27520 int arg2 ;
27521 wxIcon result;
27522 void *argp1 = 0 ;
27523 int res1 = 0 ;
27524 int val2 ;
27525 int ecode2 = 0 ;
27526 PyObject * obj0 = 0 ;
27527 PyObject * obj1 = 0 ;
27528 char * kwnames[] = {
27529 (char *) "self",(char *) "index", NULL
27530 };
27531
27532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
27533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27534 if (!SWIG_IsOK(res1)) {
27535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
27536 }
27537 arg1 = reinterpret_cast< wxImageList * >(argp1);
27538 ecode2 = SWIG_AsVal_int(obj1, &val2);
27539 if (!SWIG_IsOK(ecode2)) {
27540 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
27541 }
27542 arg2 = static_cast< int >(val2);
27543 {
27544 PyThreadState* __tstate = wxPyBeginAllowThreads();
27545 result = ((wxImageList const *)arg1)->GetIcon(arg2);
27546 wxPyEndAllowThreads(__tstate);
27547 if (PyErr_Occurred()) SWIG_fail;
27548 }
27549 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
27550 return resultobj;
27551fail:
27552 return NULL;
27553}
27554
27555
27556SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27557 PyObject *resultobj = 0;
27558 wxImageList *arg1 = (wxImageList *) 0 ;
27559 int arg2 ;
27560 wxBitmap *arg3 = 0 ;
2131d850
RD
27561 wxBitmap const &arg4_defvalue = wxNullBitmap ;
27562 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
1bd55598
RD
27563 bool result;
27564 void *argp1 = 0 ;
27565 int res1 = 0 ;
27566 int val2 ;
27567 int ecode2 = 0 ;
27568 void *argp3 = 0 ;
27569 int res3 = 0 ;
2131d850
RD
27570 void *argp4 = 0 ;
27571 int res4 = 0 ;
1bd55598
RD
27572 PyObject * obj0 = 0 ;
27573 PyObject * obj1 = 0 ;
27574 PyObject * obj2 = 0 ;
2131d850 27575 PyObject * obj3 = 0 ;
1bd55598 27576 char * kwnames[] = {
2131d850 27577 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
1bd55598
RD
27578 };
27579
2131d850 27580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
27581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27582 if (!SWIG_IsOK(res1)) {
27583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
27584 }
27585 arg1 = reinterpret_cast< wxImageList * >(argp1);
27586 ecode2 = SWIG_AsVal_int(obj1, &val2);
27587 if (!SWIG_IsOK(ecode2)) {
27588 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
27589 }
27590 arg2 = static_cast< int >(val2);
27591 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
27592 if (!SWIG_IsOK(res3)) {
27593 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27594 }
27595 if (!argp3) {
27596 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27597 }
27598 arg3 = reinterpret_cast< wxBitmap * >(argp3);
2131d850
RD
27599 if (obj3) {
27600 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
27601 if (!SWIG_IsOK(res4)) {
27602 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
27603 }
27604 if (!argp4) {
27605 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
27606 }
27607 arg4 = reinterpret_cast< wxBitmap * >(argp4);
27608 }
1bd55598
RD
27609 {
27610 PyThreadState* __tstate = wxPyBeginAllowThreads();
2131d850 27611 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
1bd55598
RD
27612 wxPyEndAllowThreads(__tstate);
27613 if (PyErr_Occurred()) SWIG_fail;
27614 }
27615 {
27616 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27617 }
27618 return resultobj;
27619fail:
27620 return NULL;
27621}
27622
27623
27624SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27625 PyObject *resultobj = 0;
27626 wxImageList *arg1 = (wxImageList *) 0 ;
27627 int arg2 ;
27628 wxDC *arg3 = 0 ;
27629 int arg4 ;
27630 int arg5 ;
27631 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
27632 bool arg7 = (bool) (bool)false ;
27633 bool result;
27634 void *argp1 = 0 ;
27635 int res1 = 0 ;
27636 int val2 ;
27637 int ecode2 = 0 ;
27638 void *argp3 = 0 ;
27639 int res3 = 0 ;
27640 int val4 ;
27641 int ecode4 = 0 ;
27642 int val5 ;
27643 int ecode5 = 0 ;
27644 int val6 ;
27645 int ecode6 = 0 ;
27646 bool val7 ;
27647 int ecode7 = 0 ;
27648 PyObject * obj0 = 0 ;
27649 PyObject * obj1 = 0 ;
27650 PyObject * obj2 = 0 ;
27651 PyObject * obj3 = 0 ;
27652 PyObject * obj4 = 0 ;
27653 PyObject * obj5 = 0 ;
27654 PyObject * obj6 = 0 ;
27655 char * kwnames[] = {
27656 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
27657 };
27658
27659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27661 if (!SWIG_IsOK(res1)) {
27662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
27663 }
27664 arg1 = reinterpret_cast< wxImageList * >(argp1);
27665 ecode2 = SWIG_AsVal_int(obj1, &val2);
27666 if (!SWIG_IsOK(ecode2)) {
27667 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
27668 }
27669 arg2 = static_cast< int >(val2);
27670 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27671 if (!SWIG_IsOK(res3)) {
27672 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
27673 }
27674 if (!argp3) {
27675 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
27676 }
27677 arg3 = reinterpret_cast< wxDC * >(argp3);
27678 ecode4 = SWIG_AsVal_int(obj3, &val4);
27679 if (!SWIG_IsOK(ecode4)) {
27680 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
27681 }
27682 arg4 = static_cast< int >(val4);
27683 ecode5 = SWIG_AsVal_int(obj4, &val5);
27684 if (!SWIG_IsOK(ecode5)) {
27685 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
27686 }
27687 arg5 = static_cast< int >(val5);
27688 if (obj5) {
27689 ecode6 = SWIG_AsVal_int(obj5, &val6);
27690 if (!SWIG_IsOK(ecode6)) {
27691 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
27692 }
27693 arg6 = static_cast< int >(val6);
27694 }
27695 if (obj6) {
27696 ecode7 = SWIG_AsVal_bool(obj6, &val7);
27697 if (!SWIG_IsOK(ecode7)) {
27698 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
27699 }
27700 arg7 = static_cast< bool >(val7);
27701 }
27702 {
27703 PyThreadState* __tstate = wxPyBeginAllowThreads();
27704 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
27705 wxPyEndAllowThreads(__tstate);
27706 if (PyErr_Occurred()) SWIG_fail;
27707 }
27708 {
27709 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27710 }
27711 return resultobj;
27712fail:
27713 return NULL;
27714}
27715
27716
27717SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27718 PyObject *resultobj = 0;
27719 wxImageList *arg1 = (wxImageList *) 0 ;
27720 int result;
27721 void *argp1 = 0 ;
27722 int res1 = 0 ;
27723 PyObject *swig_obj[1] ;
27724
27725 if (!args) SWIG_fail;
27726 swig_obj[0] = args;
27727 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27728 if (!SWIG_IsOK(res1)) {
27729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
27730 }
27731 arg1 = reinterpret_cast< wxImageList * >(argp1);
27732 {
27733 PyThreadState* __tstate = wxPyBeginAllowThreads();
27734 result = (int)(arg1)->GetImageCount();
27735 wxPyEndAllowThreads(__tstate);
27736 if (PyErr_Occurred()) SWIG_fail;
27737 }
27738 resultobj = SWIG_From_int(static_cast< int >(result));
27739 return resultobj;
27740fail:
27741 return NULL;
27742}
27743
27744
27745SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27746 PyObject *resultobj = 0;
27747 wxImageList *arg1 = (wxImageList *) 0 ;
27748 int arg2 ;
27749 bool result;
27750 void *argp1 = 0 ;
27751 int res1 = 0 ;
27752 int val2 ;
27753 int ecode2 = 0 ;
27754 PyObject * obj0 = 0 ;
27755 PyObject * obj1 = 0 ;
27756 char * kwnames[] = {
27757 (char *) "self",(char *) "index", NULL
27758 };
27759
27760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
27761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27762 if (!SWIG_IsOK(res1)) {
27763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
27764 }
27765 arg1 = reinterpret_cast< wxImageList * >(argp1);
27766 ecode2 = SWIG_AsVal_int(obj1, &val2);
27767 if (!SWIG_IsOK(ecode2)) {
27768 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
27769 }
27770 arg2 = static_cast< int >(val2);
27771 {
27772 PyThreadState* __tstate = wxPyBeginAllowThreads();
27773 result = (bool)(arg1)->Remove(arg2);
27774 wxPyEndAllowThreads(__tstate);
27775 if (PyErr_Occurred()) SWIG_fail;
27776 }
27777 {
27778 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27779 }
27780 return resultobj;
27781fail:
27782 return NULL;
27783}
27784
27785
27786SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27787 PyObject *resultobj = 0;
27788 wxImageList *arg1 = (wxImageList *) 0 ;
27789 bool result;
27790 void *argp1 = 0 ;
27791 int res1 = 0 ;
27792 PyObject *swig_obj[1] ;
27793
27794 if (!args) SWIG_fail;
27795 swig_obj[0] = args;
27796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27797 if (!SWIG_IsOK(res1)) {
27798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
27799 }
27800 arg1 = reinterpret_cast< wxImageList * >(argp1);
27801 {
27802 PyThreadState* __tstate = wxPyBeginAllowThreads();
27803 result = (bool)(arg1)->RemoveAll();
27804 wxPyEndAllowThreads(__tstate);
27805 if (PyErr_Occurred()) SWIG_fail;
27806 }
27807 {
27808 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27809 }
27810 return resultobj;
27811fail:
27812 return NULL;
27813}
27814
27815
27816SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27817 PyObject *resultobj = 0;
27818 wxImageList *arg1 = (wxImageList *) 0 ;
27819 int arg2 ;
27820 int *arg3 = 0 ;
27821 int *arg4 = 0 ;
27822 void *argp1 = 0 ;
27823 int res1 = 0 ;
27824 int val2 ;
27825 int ecode2 = 0 ;
27826 int temp3 ;
27827 int res3 = SWIG_TMPOBJ ;
27828 int temp4 ;
27829 int res4 = SWIG_TMPOBJ ;
27830 PyObject * obj0 = 0 ;
27831 PyObject * obj1 = 0 ;
27832 char * kwnames[] = {
27833 (char *) "self",(char *) "index", NULL
27834 };
27835
27836 arg3 = &temp3;
27837 arg4 = &temp4;
27838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
27839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27840 if (!SWIG_IsOK(res1)) {
27841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
27842 }
27843 arg1 = reinterpret_cast< wxImageList * >(argp1);
27844 ecode2 = SWIG_AsVal_int(obj1, &val2);
27845 if (!SWIG_IsOK(ecode2)) {
27846 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
27847 }
27848 arg2 = static_cast< int >(val2);
27849 {
27850 PyThreadState* __tstate = wxPyBeginAllowThreads();
27851 (arg1)->GetSize(arg2,*arg3,*arg4);
27852 wxPyEndAllowThreads(__tstate);
27853 if (PyErr_Occurred()) SWIG_fail;
27854 }
27855 resultobj = SWIG_Py_Void();
27856 if (SWIG_IsTmpObj(res3)) {
27857 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
27858 } else {
27859 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27860 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
27861 }
27862 if (SWIG_IsTmpObj(res4)) {
27863 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
27864 } else {
27865 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27866 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
27867 }
27868 return resultobj;
27869fail:
27870 return NULL;
27871}
27872
27873
27874SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27875 PyObject *obj;
27876 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27877 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
27878 return SWIG_Py_Void();
27879}
27880
27881SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27882 return SWIG_Python_InitShadowInstance(args);
27883}
27884
da91cb0f
RD
27885SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27886 PyObject *resultobj = 0;
27887 wxStockGDI *result = 0 ;
1bd55598 27888
da91cb0f
RD
27889 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
27890 {
27891 PyThreadState* __tstate = wxPyBeginAllowThreads();
27892 result = (wxStockGDI *)new wxStockGDI();
27893 wxPyEndAllowThreads(__tstate);
27894 if (PyErr_Occurred()) SWIG_fail;
27895 }
27896 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
27897 return resultobj;
27898fail:
27899 return NULL;
1bd55598
RD
27900}
27901
27902
da91cb0f
RD
27903SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27904 PyObject *resultobj = 0;
27905 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
27906 void *argp1 = 0 ;
27907 int res1 = 0 ;
27908 PyObject *swig_obj[1] ;
1bd55598 27909
da91cb0f
RD
27910 if (!args) SWIG_fail;
27911 swig_obj[0] = args;
27912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
27913 if (!SWIG_IsOK(res1)) {
27914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
27915 }
27916 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
27917 {
27918 PyThreadState* __tstate = wxPyBeginAllowThreads();
27919 delete arg1;
27920
27921 wxPyEndAllowThreads(__tstate);
27922 if (PyErr_Occurred()) SWIG_fail;
27923 }
27924 resultobj = SWIG_Py_Void();
27925 return resultobj;
27926fail:
27927 return NULL;
1bd55598
RD
27928}
27929
27930
da91cb0f
RD
27931SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27932 PyObject *resultobj = 0;
1bd55598 27933
da91cb0f
RD
27934 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
27935 {
27936 PyThreadState* __tstate = wxPyBeginAllowThreads();
27937 wxStockGDI::DeleteAll();
27938 wxPyEndAllowThreads(__tstate);
27939 if (PyErr_Occurred()) SWIG_fail;
27940 }
27941 resultobj = SWIG_Py_Void();
27942 return resultobj;
27943fail:
27944 return NULL;
1bd55598
RD
27945}
27946
27947
da91cb0f
RD
27948SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27949 PyObject *resultobj = 0;
27950 wxStockGDI *result = 0 ;
1bd55598 27951
da91cb0f
RD
27952 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
27953 {
27954 PyThreadState* __tstate = wxPyBeginAllowThreads();
27955 {
27956 wxStockGDI &_result_ref = wxStockGDI::instance();
27957 result = (wxStockGDI *) &_result_ref;
27958 }
27959 wxPyEndAllowThreads(__tstate);
27960 if (PyErr_Occurred()) SWIG_fail;
27961 }
27962 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
27963 return resultobj;
27964fail:
27965 return NULL;
1bd55598
RD
27966}
27967
27968
da91cb0f
RD
27969SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27970 PyObject *resultobj = 0;
27971 wxStockGDI::Item arg1 ;
27972 wxBrush *result = 0 ;
27973 int val1 ;
27974 int ecode1 = 0 ;
27975 PyObject * obj0 = 0 ;
27976 char * kwnames[] = {
27977 (char *) "item", NULL
27978 };
27979
27980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
27981 ecode1 = SWIG_AsVal_int(obj0, &val1);
27982 if (!SWIG_IsOK(ecode1)) {
27983 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27984 }
27985 arg1 = static_cast< wxStockGDI::Item >(val1);
27986 {
27987 PyThreadState* __tstate = wxPyBeginAllowThreads();
27988 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
27989 wxPyEndAllowThreads(__tstate);
27990 if (PyErr_Occurred()) SWIG_fail;
27991 }
27992 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
27993 return resultobj;
27994fail:
27995 return NULL;
1bd55598
RD
27996}
27997
27998
da91cb0f
RD
27999SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28000 PyObject *resultobj = 0;
28001 wxStockGDI::Item arg1 ;
28002 wxColour *result = 0 ;
28003 int val1 ;
28004 int ecode1 = 0 ;
28005 PyObject * obj0 = 0 ;
28006 char * kwnames[] = {
28007 (char *) "item", NULL
28008 };
1bd55598 28009
da91cb0f
RD
28010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
28011 ecode1 = SWIG_AsVal_int(obj0, &val1);
28012 if (!SWIG_IsOK(ecode1)) {
28013 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
28014 }
28015 arg1 = static_cast< wxStockGDI::Item >(val1);
28016 {
28017 PyThreadState* __tstate = wxPyBeginAllowThreads();
28018 result = (wxColour *)wxStockGDI::GetColour(arg1);
28019 wxPyEndAllowThreads(__tstate);
28020 if (PyErr_Occurred()) SWIG_fail;
28021 }
28022 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
28023 return resultobj;
28024fail:
28025 return NULL;
1bd55598
RD
28026}
28027
28028
da91cb0f
RD
28029SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28030 PyObject *resultobj = 0;
28031 wxStockGDI::Item arg1 ;
28032 wxCursor *result = 0 ;
28033 int val1 ;
28034 int ecode1 = 0 ;
28035 PyObject * obj0 = 0 ;
28036 char * kwnames[] = {
28037 (char *) "item", NULL
28038 };
28039
28040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
28041 ecode1 = SWIG_AsVal_int(obj0, &val1);
28042 if (!SWIG_IsOK(ecode1)) {
28043 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
28044 }
28045 arg1 = static_cast< wxStockGDI::Item >(val1);
28046 {
28047 PyThreadState* __tstate = wxPyBeginAllowThreads();
28048 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
28049 wxPyEndAllowThreads(__tstate);
28050 if (PyErr_Occurred()) SWIG_fail;
28051 }
28052 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
28053 return resultobj;
28054fail:
28055 return NULL;
1bd55598
RD
28056}
28057
28058
da91cb0f
RD
28059SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28060 PyObject *resultobj = 0;
28061 wxStockGDI::Item arg1 ;
28062 wxPen *result = 0 ;
28063 int val1 ;
28064 int ecode1 = 0 ;
28065 PyObject * obj0 = 0 ;
28066 char * kwnames[] = {
28067 (char *) "item", NULL
28068 };
28069
28070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
28071 ecode1 = SWIG_AsVal_int(obj0, &val1);
28072 if (!SWIG_IsOK(ecode1)) {
28073 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
28074 }
28075 arg1 = static_cast< wxStockGDI::Item >(val1);
28076 {
28077 PyThreadState* __tstate = wxPyBeginAllowThreads();
28078 result = (wxPen *)wxStockGDI::GetPen(arg1);
28079 wxPyEndAllowThreads(__tstate);
28080 if (PyErr_Occurred()) SWIG_fail;
28081 }
28082 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
28083 return resultobj;
28084fail:
28085 return NULL;
1bd55598
RD
28086}
28087
28088
da91cb0f
RD
28089SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28090 PyObject *resultobj = 0;
28091 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
28092 wxStockGDI::Item arg2 ;
28093 wxFont *result = 0 ;
28094 void *argp1 = 0 ;
28095 int res1 = 0 ;
28096 int val2 ;
28097 int ecode2 = 0 ;
28098 PyObject * obj0 = 0 ;
28099 PyObject * obj1 = 0 ;
28100 char * kwnames[] = {
28101 (char *) "self",(char *) "item", NULL
28102 };
1bd55598 28103
da91cb0f
RD
28104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
28105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
28106 if (!SWIG_IsOK(res1)) {
28107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
28108 }
28109 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
28110 ecode2 = SWIG_AsVal_int(obj1, &val2);
28111 if (!SWIG_IsOK(ecode2)) {
28112 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
28113 }
28114 arg2 = static_cast< wxStockGDI::Item >(val2);
28115 {
28116 PyThreadState* __tstate = wxPyBeginAllowThreads();
28117 result = (wxFont *)(arg1)->GetFont(arg2);
28118 wxPyEndAllowThreads(__tstate);
28119 if (PyErr_Occurred()) SWIG_fail;
28120 }
28121 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
28122 return resultobj;
28123fail:
28124 return NULL;
1bd55598
RD
28125}
28126
28127
da91cb0f
RD
28128SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28129 PyObject *obj;
28130 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28131 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
28132 return SWIG_Py_Void();
1bd55598
RD
28133}
28134
da91cb0f
RD
28135SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28136 return SWIG_Python_InitShadowInstance(args);
1bd55598
RD
28137}
28138
1bd55598
RD
28139SWIGINTERN int NullBitmap_set(PyObject *) {
28140 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
28141 return 1;
28142}
28143
28144
28145SWIGINTERN PyObject *NullBitmap_get(void) {
28146 PyObject *pyobj = 0;
28147
28148 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
28149 return pyobj;
28150}
28151
28152
28153SWIGINTERN int NullIcon_set(PyObject *) {
28154 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
28155 return 1;
28156}
28157
28158
28159SWIGINTERN PyObject *NullIcon_get(void) {
28160 PyObject *pyobj = 0;
28161
28162 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
28163 return pyobj;
28164}
28165
28166
28167SWIGINTERN int NullCursor_set(PyObject *) {
28168 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
28169 return 1;
28170}
28171
28172
28173SWIGINTERN PyObject *NullCursor_get(void) {
28174 PyObject *pyobj = 0;
28175
28176 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
28177 return pyobj;
28178}
28179
28180
28181SWIGINTERN int NullPen_set(PyObject *) {
28182 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
28183 return 1;
28184}
28185
28186
28187SWIGINTERN PyObject *NullPen_get(void) {
28188 PyObject *pyobj = 0;
28189
28190 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
28191 return pyobj;
28192}
28193
28194
28195SWIGINTERN int NullBrush_set(PyObject *) {
28196 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
28197 return 1;
28198}
28199
28200
28201SWIGINTERN PyObject *NullBrush_get(void) {
28202 PyObject *pyobj = 0;
28203
28204 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
28205 return pyobj;
28206}
28207
28208
28209SWIGINTERN int NullPalette_set(PyObject *) {
28210 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
28211 return 1;
28212}
28213
28214
28215SWIGINTERN PyObject *NullPalette_get(void) {
28216 PyObject *pyobj = 0;
28217
28218 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
28219 return pyobj;
28220}
28221
28222
28223SWIGINTERN int NullFont_set(PyObject *) {
28224 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
28225 return 1;
28226}
28227
28228
28229SWIGINTERN PyObject *NullFont_get(void) {
28230 PyObject *pyobj = 0;
28231
28232 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
28233 return pyobj;
28234}
28235
28236
28237SWIGINTERN int NullColour_set(PyObject *) {
28238 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
28239 return 1;
28240}
28241
28242
28243SWIGINTERN PyObject *NullColour_get(void) {
28244 PyObject *pyobj = 0;
28245
28246 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
28247 return pyobj;
28248}
28249
28250
da91cb0f 28251SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 28252 PyObject *resultobj = 0;
da91cb0f
RD
28253 wxGDIObjListBase *result = 0 ;
28254
28255 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
28256 {
28257 PyThreadState* __tstate = wxPyBeginAllowThreads();
28258 result = (wxGDIObjListBase *)new wxGDIObjListBase();
28259 wxPyEndAllowThreads(__tstate);
28260 if (PyErr_Occurred()) SWIG_fail;
28261 }
28262 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
28263 return resultobj;
28264fail:
28265 return NULL;
28266}
28267
28268
28269SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28270 PyObject *resultobj = 0;
28271 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
1bd55598
RD
28272 void *argp1 = 0 ;
28273 int res1 = 0 ;
da91cb0f 28274 PyObject *swig_obj[1] ;
1bd55598 28275
da91cb0f
RD
28276 if (!args) SWIG_fail;
28277 swig_obj[0] = args;
28278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
1bd55598 28279 if (!SWIG_IsOK(res1)) {
da91cb0f 28280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
1bd55598 28281 }
da91cb0f 28282 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
1bd55598
RD
28283 {
28284 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f
RD
28285 delete arg1;
28286
1bd55598
RD
28287 wxPyEndAllowThreads(__tstate);
28288 if (PyErr_Occurred()) SWIG_fail;
28289 }
28290 resultobj = SWIG_Py_Void();
28291 return resultobj;
28292fail:
28293 return NULL;
28294}
28295
28296
da91cb0f
RD
28297SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28298 PyObject *obj;
28299 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28300 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
28301 return SWIG_Py_Void();
28302}
28303
28304SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28305 return SWIG_Python_InitShadowInstance(args);
28306}
28307
1bd55598
RD
28308SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28309 PyObject *resultobj = 0;
28310 wxPenList *arg1 = (wxPenList *) 0 ;
28311 wxColour *arg2 = 0 ;
28312 int arg3 ;
28313 int arg4 ;
28314 wxPen *result = 0 ;
28315 void *argp1 = 0 ;
28316 int res1 = 0 ;
28317 wxColour temp2 ;
28318 int val3 ;
28319 int ecode3 = 0 ;
28320 int val4 ;
28321 int ecode4 = 0 ;
28322 PyObject * obj0 = 0 ;
28323 PyObject * obj1 = 0 ;
28324 PyObject * obj2 = 0 ;
28325 PyObject * obj3 = 0 ;
28326 char * kwnames[] = {
28327 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
28328 };
28329
28330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
28332 if (!SWIG_IsOK(res1)) {
28333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
28334 }
28335 arg1 = reinterpret_cast< wxPenList * >(argp1);
28336 {
28337 arg2 = &temp2;
28338 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28339 }
28340 ecode3 = SWIG_AsVal_int(obj2, &val3);
28341 if (!SWIG_IsOK(ecode3)) {
28342 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
28343 }
28344 arg3 = static_cast< int >(val3);
28345 ecode4 = SWIG_AsVal_int(obj3, &val4);
28346 if (!SWIG_IsOK(ecode4)) {
28347 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
28348 }
28349 arg4 = static_cast< int >(val4);
28350 {
28351 PyThreadState* __tstate = wxPyBeginAllowThreads();
28352 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
28353 wxPyEndAllowThreads(__tstate);
28354 if (PyErr_Occurred()) SWIG_fail;
28355 }
28356 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
28357 return resultobj;
28358fail:
28359 return NULL;
28360}
28361
28362
da91cb0f 28363SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
28364 PyObject *resultobj = 0;
28365 wxPenList *arg1 = (wxPenList *) 0 ;
28366 wxPen *arg2 = (wxPen *) 0 ;
28367 void *argp1 = 0 ;
28368 int res1 = 0 ;
28369 void *argp2 = 0 ;
28370 int res2 = 0 ;
28371 PyObject * obj0 = 0 ;
28372 PyObject * obj1 = 0 ;
28373 char * kwnames[] = {
28374 (char *) "self",(char *) "pen", NULL
28375 };
28376
da91cb0f 28377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
1bd55598
RD
28378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
28379 if (!SWIG_IsOK(res1)) {
da91cb0f 28380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
1bd55598
RD
28381 }
28382 arg1 = reinterpret_cast< wxPenList * >(argp1);
28383 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
28384 if (!SWIG_IsOK(res2)) {
da91cb0f 28385 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
1bd55598
RD
28386 }
28387 arg2 = reinterpret_cast< wxPen * >(argp2);
28388 {
28389 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 28390 (arg1)->AddPen(arg2);
1bd55598
RD
28391 wxPyEndAllowThreads(__tstate);
28392 if (PyErr_Occurred()) SWIG_fail;
28393 }
28394 resultobj = SWIG_Py_Void();
28395 return resultobj;
28396fail:
28397 return NULL;
28398}
28399
28400
da91cb0f 28401SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
28402 PyObject *resultobj = 0;
28403 wxPenList *arg1 = (wxPenList *) 0 ;
da91cb0f 28404 wxPen *arg2 = (wxPen *) 0 ;
1bd55598
RD
28405 void *argp1 = 0 ;
28406 int res1 = 0 ;
da91cb0f
RD
28407 void *argp2 = 0 ;
28408 int res2 = 0 ;
28409 PyObject * obj0 = 0 ;
28410 PyObject * obj1 = 0 ;
28411 char * kwnames[] = {
28412 (char *) "self",(char *) "pen", NULL
28413 };
1bd55598 28414
da91cb0f
RD
28415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
28416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
1bd55598 28417 if (!SWIG_IsOK(res1)) {
da91cb0f 28418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
1bd55598
RD
28419 }
28420 arg1 = reinterpret_cast< wxPenList * >(argp1);
da91cb0f
RD
28421 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
28422 if (!SWIG_IsOK(res2)) {
28423 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
28424 }
28425 arg2 = reinterpret_cast< wxPen * >(argp2);
1bd55598
RD
28426 {
28427 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 28428 (arg1)->RemovePen(arg2);
1bd55598
RD
28429 wxPyEndAllowThreads(__tstate);
28430 if (PyErr_Occurred()) SWIG_fail;
28431 }
da91cb0f 28432 resultobj = SWIG_Py_Void();
1bd55598
RD
28433 return resultobj;
28434fail:
28435 return NULL;
28436}
28437
28438
28439SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28440 PyObject *obj;
28441 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28442 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
28443 return SWIG_Py_Void();
28444}
28445
da91cb0f
RD
28446SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28447 PyObject *resultobj = 0;
28448 wxBrushList *arg1 = (wxBrushList *) 0 ;
28449 wxColour *arg2 = 0 ;
28450 int arg3 = (int) wxSOLID ;
28451 wxBrush *result = 0 ;
28452 void *argp1 = 0 ;
28453 int res1 = 0 ;
28454 wxColour temp2 ;
28455 int val3 ;
28456 int ecode3 = 0 ;
28457 PyObject * obj0 = 0 ;
28458 PyObject * obj1 = 0 ;
28459 PyObject * obj2 = 0 ;
28460 char * kwnames[] = {
28461 (char *) "self",(char *) "colour",(char *) "style", NULL
28462 };
28463
28464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
28466 if (!SWIG_IsOK(res1)) {
28467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
28468 }
28469 arg1 = reinterpret_cast< wxBrushList * >(argp1);
28470 {
28471 arg2 = &temp2;
28472 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28473 }
28474 if (obj2) {
28475 ecode3 = SWIG_AsVal_int(obj2, &val3);
28476 if (!SWIG_IsOK(ecode3)) {
28477 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
28478 }
28479 arg3 = static_cast< int >(val3);
28480 }
28481 {
28482 PyThreadState* __tstate = wxPyBeginAllowThreads();
28483 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
28484 wxPyEndAllowThreads(__tstate);
28485 if (PyErr_Occurred()) SWIG_fail;
28486 }
28487 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
28488 return resultobj;
28489fail:
28490 return NULL;
28491}
28492
28493
1bd55598
RD
28494SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28495 PyObject *resultobj = 0;
28496 wxBrushList *arg1 = (wxBrushList *) 0 ;
28497 wxBrush *arg2 = (wxBrush *) 0 ;
28498 void *argp1 = 0 ;
28499 int res1 = 0 ;
28500 void *argp2 = 0 ;
28501 int res2 = 0 ;
28502 PyObject * obj0 = 0 ;
28503 PyObject * obj1 = 0 ;
28504 char * kwnames[] = {
28505 (char *) "self",(char *) "brush", NULL
28506 };
28507
28508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
28510 if (!SWIG_IsOK(res1)) {
28511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
28512 }
28513 arg1 = reinterpret_cast< wxBrushList * >(argp1);
28514 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
28515 if (!SWIG_IsOK(res2)) {
28516 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
28517 }
28518 arg2 = reinterpret_cast< wxBrush * >(argp2);
28519 {
28520 PyThreadState* __tstate = wxPyBeginAllowThreads();
28521 (arg1)->AddBrush(arg2);
28522 wxPyEndAllowThreads(__tstate);
28523 if (PyErr_Occurred()) SWIG_fail;
28524 }
28525 resultobj = SWIG_Py_Void();
28526 return resultobj;
28527fail:
28528 return NULL;
28529}
28530
28531
da91cb0f 28532SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
28533 PyObject *resultobj = 0;
28534 wxBrushList *arg1 = (wxBrushList *) 0 ;
da91cb0f 28535 wxBrush *arg2 = (wxBrush *) 0 ;
1bd55598
RD
28536 void *argp1 = 0 ;
28537 int res1 = 0 ;
da91cb0f
RD
28538 void *argp2 = 0 ;
28539 int res2 = 0 ;
28540 PyObject * obj0 = 0 ;
28541 PyObject * obj1 = 0 ;
28542 char * kwnames[] = {
28543 (char *) "self",(char *) "brush", NULL
28544 };
28545
28546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
28548 if (!SWIG_IsOK(res1)) {
28549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
28550 }
28551 arg1 = reinterpret_cast< wxBrushList * >(argp1);
28552 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
28553 if (!SWIG_IsOK(res2)) {
28554 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
28555 }
28556 arg2 = reinterpret_cast< wxBrush * >(argp2);
28557 {
28558 PyThreadState* __tstate = wxPyBeginAllowThreads();
28559 (arg1)->RemoveBrush(arg2);
28560 wxPyEndAllowThreads(__tstate);
28561 if (PyErr_Occurred()) SWIG_fail;
28562 }
28563 resultobj = SWIG_Py_Void();
28564 return resultobj;
28565fail:
28566 return NULL;
28567}
28568
28569
28570SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28571 PyObject *obj;
28572 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28573 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
28574 return SWIG_Py_Void();
28575}
28576
28577SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28578 PyObject *resultobj = 0;
28579 wxFontList *arg1 = (wxFontList *) 0 ;
28580 int arg2 ;
28581 int arg3 ;
28582 int arg4 ;
28583 int arg5 ;
28584 bool arg6 = (bool) false ;
28585 wxString const &arg7_defvalue = wxPyEmptyString ;
28586 wxString *arg7 = (wxString *) &arg7_defvalue ;
28587 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
28588 wxFont *result = 0 ;
28589 void *argp1 = 0 ;
28590 int res1 = 0 ;
28591 int val2 ;
28592 int ecode2 = 0 ;
1bd55598
RD
28593 int val3 ;
28594 int ecode3 = 0 ;
da91cb0f
RD
28595 int val4 ;
28596 int ecode4 = 0 ;
28597 int val5 ;
28598 int ecode5 = 0 ;
28599 bool val6 ;
28600 int ecode6 = 0 ;
28601 bool temp7 = false ;
28602 int val8 ;
28603 int ecode8 = 0 ;
1bd55598
RD
28604 PyObject * obj0 = 0 ;
28605 PyObject * obj1 = 0 ;
28606 PyObject * obj2 = 0 ;
da91cb0f
RD
28607 PyObject * obj3 = 0 ;
28608 PyObject * obj4 = 0 ;
28609 PyObject * obj5 = 0 ;
28610 PyObject * obj6 = 0 ;
28611 PyObject * obj7 = 0 ;
1bd55598 28612 char * kwnames[] = {
da91cb0f 28613 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
1bd55598
RD
28614 };
28615
da91cb0f
RD
28616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 28618 if (!SWIG_IsOK(res1)) {
da91cb0f 28619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 28620 }
da91cb0f
RD
28621 arg1 = reinterpret_cast< wxFontList * >(argp1);
28622 ecode2 = SWIG_AsVal_int(obj1, &val2);
28623 if (!SWIG_IsOK(ecode2)) {
28624 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
28625 }
28626 arg2 = static_cast< int >(val2);
28627 ecode3 = SWIG_AsVal_int(obj2, &val3);
28628 if (!SWIG_IsOK(ecode3)) {
28629 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
28630 }
28631 arg3 = static_cast< int >(val3);
28632 ecode4 = SWIG_AsVal_int(obj3, &val4);
28633 if (!SWIG_IsOK(ecode4)) {
28634 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
28635 }
28636 arg4 = static_cast< int >(val4);
28637 ecode5 = SWIG_AsVal_int(obj4, &val5);
28638 if (!SWIG_IsOK(ecode5)) {
28639 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
28640 }
28641 arg5 = static_cast< int >(val5);
28642 if (obj5) {
28643 ecode6 = SWIG_AsVal_bool(obj5, &val6);
28644 if (!SWIG_IsOK(ecode6)) {
28645 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
28646 }
28647 arg6 = static_cast< bool >(val6);
1bd55598 28648 }
da91cb0f
RD
28649 if (obj6) {
28650 {
28651 arg7 = wxString_in_helper(obj6);
28652 if (arg7 == NULL) SWIG_fail;
28653 temp7 = true;
28654 }
28655 }
28656 if (obj7) {
28657 ecode8 = SWIG_AsVal_int(obj7, &val8);
28658 if (!SWIG_IsOK(ecode8)) {
28659 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
1bd55598 28660 }
da91cb0f 28661 arg8 = static_cast< wxFontEncoding >(val8);
1bd55598
RD
28662 }
28663 {
28664 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 28665 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
1bd55598
RD
28666 wxPyEndAllowThreads(__tstate);
28667 if (PyErr_Occurred()) SWIG_fail;
28668 }
da91cb0f
RD
28669 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
28670 {
28671 if (temp7)
28672 delete arg7;
28673 }
1bd55598
RD
28674 return resultobj;
28675fail:
da91cb0f
RD
28676 {
28677 if (temp7)
28678 delete arg7;
28679 }
1bd55598
RD
28680 return NULL;
28681}
28682
28683
da91cb0f 28684SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 28685 PyObject *resultobj = 0;
da91cb0f
RD
28686 wxFontList *arg1 = (wxFontList *) 0 ;
28687 wxFont *arg2 = (wxFont *) 0 ;
1bd55598
RD
28688 void *argp1 = 0 ;
28689 int res1 = 0 ;
28690 void *argp2 = 0 ;
28691 int res2 = 0 ;
28692 PyObject * obj0 = 0 ;
28693 PyObject * obj1 = 0 ;
28694 char * kwnames[] = {
da91cb0f 28695 (char *) "self",(char *) "font", NULL
1bd55598
RD
28696 };
28697
da91cb0f
RD
28698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
28699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 28700 if (!SWIG_IsOK(res1)) {
da91cb0f 28701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 28702 }
da91cb0f
RD
28703 arg1 = reinterpret_cast< wxFontList * >(argp1);
28704 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
1bd55598 28705 if (!SWIG_IsOK(res2)) {
da91cb0f 28706 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
1bd55598 28707 }
da91cb0f 28708 arg2 = reinterpret_cast< wxFont * >(argp2);
1bd55598
RD
28709 {
28710 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 28711 (arg1)->AddFont(arg2);
1bd55598
RD
28712 wxPyEndAllowThreads(__tstate);
28713 if (PyErr_Occurred()) SWIG_fail;
28714 }
28715 resultobj = SWIG_Py_Void();
28716 return resultobj;
28717fail:
28718 return NULL;
28719}
28720
28721
da91cb0f 28722SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 28723 PyObject *resultobj = 0;
da91cb0f
RD
28724 wxFontList *arg1 = (wxFontList *) 0 ;
28725 wxFont *arg2 = (wxFont *) 0 ;
1bd55598
RD
28726 void *argp1 = 0 ;
28727 int res1 = 0 ;
da91cb0f
RD
28728 void *argp2 = 0 ;
28729 int res2 = 0 ;
28730 PyObject * obj0 = 0 ;
28731 PyObject * obj1 = 0 ;
28732 char * kwnames[] = {
28733 (char *) "self",(char *) "font", NULL
28734 };
1bd55598 28735
da91cb0f
RD
28736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
28737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 28738 if (!SWIG_IsOK(res1)) {
da91cb0f 28739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 28740 }
da91cb0f
RD
28741 arg1 = reinterpret_cast< wxFontList * >(argp1);
28742 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
28743 if (!SWIG_IsOK(res2)) {
28744 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
28745 }
28746 arg2 = reinterpret_cast< wxFont * >(argp2);
1bd55598
RD
28747 {
28748 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 28749 (arg1)->RemoveFont(arg2);
1bd55598
RD
28750 wxPyEndAllowThreads(__tstate);
28751 if (PyErr_Occurred()) SWIG_fail;
28752 }
da91cb0f 28753 resultobj = SWIG_Py_Void();
1bd55598
RD
28754 return resultobj;
28755fail:
28756 return NULL;
28757}
28758
28759
da91cb0f 28760SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
28761 PyObject *obj;
28762 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
da91cb0f 28763 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
1bd55598
RD
28764 return SWIG_Py_Void();
28765}
28766
28767SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28768 PyObject *resultobj = 0;
28769 wxColourDatabase *result = 0 ;
28770
28771 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
28772 {
28773 if (!wxPyCheckForApp()) SWIG_fail;
28774 PyThreadState* __tstate = wxPyBeginAllowThreads();
28775 result = (wxColourDatabase *)new wxColourDatabase();
28776 wxPyEndAllowThreads(__tstate);
28777 if (PyErr_Occurred()) SWIG_fail;
28778 }
28779 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
28780 return resultobj;
28781fail:
28782 return NULL;
28783}
28784
28785
28786SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28787 PyObject *resultobj = 0;
28788 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28789 void *argp1 = 0 ;
28790 int res1 = 0 ;
28791 PyObject *swig_obj[1] ;
28792
28793 if (!args) SWIG_fail;
28794 swig_obj[0] = args;
28795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
28796 if (!SWIG_IsOK(res1)) {
28797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
28798 }
28799 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28800 {
28801 PyThreadState* __tstate = wxPyBeginAllowThreads();
28802 delete arg1;
28803
28804 wxPyEndAllowThreads(__tstate);
28805 if (PyErr_Occurred()) SWIG_fail;
28806 }
28807 resultobj = SWIG_Py_Void();
28808 return resultobj;
28809fail:
28810 return NULL;
28811}
28812
28813
28814SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28815 PyObject *resultobj = 0;
28816 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28817 wxString *arg2 = 0 ;
28818 wxColour result;
28819 void *argp1 = 0 ;
28820 int res1 = 0 ;
28821 bool temp2 = false ;
28822 PyObject * obj0 = 0 ;
28823 PyObject * obj1 = 0 ;
28824 char * kwnames[] = {
28825 (char *) "self",(char *) "name", NULL
28826 };
28827
28828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
28829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28830 if (!SWIG_IsOK(res1)) {
28831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
28832 }
28833 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28834 {
28835 arg2 = wxString_in_helper(obj1);
28836 if (arg2 == NULL) SWIG_fail;
28837 temp2 = true;
28838 }
28839 {
28840 PyThreadState* __tstate = wxPyBeginAllowThreads();
28841 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
28842 wxPyEndAllowThreads(__tstate);
28843 if (PyErr_Occurred()) SWIG_fail;
28844 }
28845 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28846 {
28847 if (temp2)
28848 delete arg2;
28849 }
28850 return resultobj;
28851fail:
28852 {
28853 if (temp2)
28854 delete arg2;
28855 }
28856 return NULL;
28857}
28858
28859
28860SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28861 PyObject *resultobj = 0;
28862 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28863 wxColour *arg2 = 0 ;
28864 wxString result;
28865 void *argp1 = 0 ;
28866 int res1 = 0 ;
28867 wxColour temp2 ;
28868 PyObject * obj0 = 0 ;
28869 PyObject * obj1 = 0 ;
28870 char * kwnames[] = {
28871 (char *) "self",(char *) "colour", NULL
28872 };
28873
28874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
28875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28876 if (!SWIG_IsOK(res1)) {
28877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
28878 }
28879 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28880 {
28881 arg2 = &temp2;
28882 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28883 }
28884 {
28885 PyThreadState* __tstate = wxPyBeginAllowThreads();
28886 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
28887 wxPyEndAllowThreads(__tstate);
28888 if (PyErr_Occurred()) SWIG_fail;
28889 }
28890 {
28891#if wxUSE_UNICODE
28892 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28893#else
28894 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28895#endif
28896 }
28897 return resultobj;
28898fail:
28899 return NULL;
28900}
28901
28902
28903SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28904 PyObject *resultobj = 0;
28905 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28906 wxString *arg2 = 0 ;
28907 wxColour *arg3 = 0 ;
28908 void *argp1 = 0 ;
28909 int res1 = 0 ;
28910 bool temp2 = false ;
28911 wxColour temp3 ;
28912 PyObject * obj0 = 0 ;
28913 PyObject * obj1 = 0 ;
28914 PyObject * obj2 = 0 ;
28915 char * kwnames[] = {
28916 (char *) "self",(char *) "name",(char *) "colour", NULL
28917 };
28918
28919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28921 if (!SWIG_IsOK(res1)) {
28922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
28923 }
28924 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28925 {
28926 arg2 = wxString_in_helper(obj1);
28927 if (arg2 == NULL) SWIG_fail;
28928 temp2 = true;
28929 }
28930 {
28931 arg3 = &temp3;
28932 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28933 }
28934 {
28935 PyThreadState* __tstate = wxPyBeginAllowThreads();
28936 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
28937 wxPyEndAllowThreads(__tstate);
28938 if (PyErr_Occurred()) SWIG_fail;
28939 }
28940 resultobj = SWIG_Py_Void();
28941 {
28942 if (temp2)
28943 delete arg2;
28944 }
28945 return resultobj;
28946fail:
28947 {
28948 if (temp2)
28949 delete arg2;
28950 }
28951 return NULL;
28952}
28953
28954
28955SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28956 PyObject *resultobj = 0;
28957 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28958 wxString *arg2 = 0 ;
28959 int arg3 ;
28960 int arg4 ;
28961 int arg5 ;
28962 void *argp1 = 0 ;
28963 int res1 = 0 ;
28964 bool temp2 = false ;
28965 int val3 ;
28966 int ecode3 = 0 ;
28967 int val4 ;
28968 int ecode4 = 0 ;
da91cb0f
RD
28969 int val5 ;
28970 int ecode5 = 0 ;
1bd55598
RD
28971 PyObject * obj0 = 0 ;
28972 PyObject * obj1 = 0 ;
28973 PyObject * obj2 = 0 ;
28974 PyObject * obj3 = 0 ;
28975 PyObject * obj4 = 0 ;
1bd55598 28976 char * kwnames[] = {
da91cb0f 28977 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
1bd55598
RD
28978 };
28979
da91cb0f
RD
28980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
1bd55598 28982 if (!SWIG_IsOK(res1)) {
da91cb0f
RD
28983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
28984 }
28985 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28986 {
28987 arg2 = wxString_in_helper(obj1);
28988 if (arg2 == NULL) SWIG_fail;
28989 temp2 = true;
1bd55598 28990 }
1bd55598
RD
28991 ecode3 = SWIG_AsVal_int(obj2, &val3);
28992 if (!SWIG_IsOK(ecode3)) {
da91cb0f 28993 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
1bd55598
RD
28994 }
28995 arg3 = static_cast< int >(val3);
28996 ecode4 = SWIG_AsVal_int(obj3, &val4);
28997 if (!SWIG_IsOK(ecode4)) {
da91cb0f 28998 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
1bd55598
RD
28999 }
29000 arg4 = static_cast< int >(val4);
29001 ecode5 = SWIG_AsVal_int(obj4, &val5);
29002 if (!SWIG_IsOK(ecode5)) {
da91cb0f 29003 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
1bd55598
RD
29004 }
29005 arg5 = static_cast< int >(val5);
1bd55598
RD
29006 {
29007 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 29008 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
1bd55598
RD
29009 wxPyEndAllowThreads(__tstate);
29010 if (PyErr_Occurred()) SWIG_fail;
29011 }
da91cb0f 29012 resultobj = SWIG_Py_Void();
1bd55598 29013 {
da91cb0f
RD
29014 if (temp2)
29015 delete arg2;
1bd55598
RD
29016 }
29017 return resultobj;
29018fail:
29019 {
da91cb0f
RD
29020 if (temp2)
29021 delete arg2;
1bd55598
RD
29022 }
29023 return NULL;
29024}
29025
29026
da91cb0f
RD
29027SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29028 PyObject *obj;
29029 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29030 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
29031 return SWIG_Py_Void();
29032}
29033
29034SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29035 return SWIG_Python_InitShadowInstance(args);
29036}
29037
29038SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 29039 PyObject *resultobj = 0;
da91cb0f 29040 wxFontList *result = 0 ;
1bd55598 29041
da91cb0f 29042 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
1bd55598
RD
29043 {
29044 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 29045 result = (wxFontList *)_wxPyInitTheFontList();
1bd55598
RD
29046 wxPyEndAllowThreads(__tstate);
29047 if (PyErr_Occurred()) SWIG_fail;
29048 }
da91cb0f 29049 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598
RD
29050 return resultobj;
29051fail:
29052 return NULL;
29053}
29054
29055
da91cb0f 29056SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 29057 PyObject *resultobj = 0;
da91cb0f 29058 wxPenList *result = 0 ;
1bd55598 29059
da91cb0f 29060 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
1bd55598
RD
29061 {
29062 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 29063 result = (wxPenList *)_wxPyInitThePenList();
1bd55598
RD
29064 wxPyEndAllowThreads(__tstate);
29065 if (PyErr_Occurred()) SWIG_fail;
29066 }
da91cb0f 29067 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
1bd55598
RD
29068 return resultobj;
29069fail:
29070 return NULL;
29071}
29072
29073
da91cb0f
RD
29074SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29075 PyObject *resultobj = 0;
29076 wxBrushList *result = 0 ;
1bd55598 29077
da91cb0f
RD
29078 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
29079 {
29080 PyThreadState* __tstate = wxPyBeginAllowThreads();
29081 result = (wxBrushList *)_wxPyInitTheBrushList();
29082 wxPyEndAllowThreads(__tstate);
29083 if (PyErr_Occurred()) SWIG_fail;
29084 }
29085 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
29086 return resultobj;
29087fail:
29088 return NULL;
1bd55598
RD
29089}
29090
29091
da91cb0f
RD
29092SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29093 PyObject *resultobj = 0;
29094 wxColourDatabase *result = 0 ;
1bd55598 29095
da91cb0f
RD
29096 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
29097 {
29098 PyThreadState* __tstate = wxPyBeginAllowThreads();
29099 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
29100 wxPyEndAllowThreads(__tstate);
29101 if (PyErr_Occurred()) SWIG_fail;
29102 }
29103 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
29104 return resultobj;
29105fail:
29106 return NULL;
1bd55598
RD
29107}
29108
29109
29110SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29111 PyObject *resultobj = 0;
29112 wxEffects *result = 0 ;
29113
29114 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
29115 {
29116 PyThreadState* __tstate = wxPyBeginAllowThreads();
29117 result = (wxEffects *)new wxEffects();
29118 wxPyEndAllowThreads(__tstate);
29119 if (PyErr_Occurred()) SWIG_fail;
29120 }
29121 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
29122 return resultobj;
29123fail:
29124 return NULL;
29125}
29126
29127
29128SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29129 PyObject *resultobj = 0;
29130 wxEffects *arg1 = (wxEffects *) 0 ;
29131 wxColour result;
29132 void *argp1 = 0 ;
29133 int res1 = 0 ;
29134 PyObject *swig_obj[1] ;
29135
29136 if (!args) SWIG_fail;
29137 swig_obj[0] = args;
29138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29139 if (!SWIG_IsOK(res1)) {
29140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
29141 }
29142 arg1 = reinterpret_cast< wxEffects * >(argp1);
29143 {
29144 PyThreadState* __tstate = wxPyBeginAllowThreads();
29145 result = ((wxEffects const *)arg1)->GetHighlightColour();
29146 wxPyEndAllowThreads(__tstate);
29147 if (PyErr_Occurred()) SWIG_fail;
29148 }
29149 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29150 return resultobj;
29151fail:
29152 return NULL;
29153}
29154
29155
29156SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29157 PyObject *resultobj = 0;
29158 wxEffects *arg1 = (wxEffects *) 0 ;
29159 wxColour result;
29160 void *argp1 = 0 ;
29161 int res1 = 0 ;
29162 PyObject *swig_obj[1] ;
29163
29164 if (!args) SWIG_fail;
29165 swig_obj[0] = args;
29166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29167 if (!SWIG_IsOK(res1)) {
29168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
29169 }
29170 arg1 = reinterpret_cast< wxEffects * >(argp1);
29171 {
29172 PyThreadState* __tstate = wxPyBeginAllowThreads();
29173 result = ((wxEffects const *)arg1)->GetLightShadow();
29174 wxPyEndAllowThreads(__tstate);
29175 if (PyErr_Occurred()) SWIG_fail;
29176 }
29177 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29178 return resultobj;
29179fail:
29180 return NULL;
29181}
29182
29183
29184SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29185 PyObject *resultobj = 0;
29186 wxEffects *arg1 = (wxEffects *) 0 ;
29187 wxColour result;
29188 void *argp1 = 0 ;
29189 int res1 = 0 ;
29190 PyObject *swig_obj[1] ;
29191
29192 if (!args) SWIG_fail;
29193 swig_obj[0] = args;
29194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29195 if (!SWIG_IsOK(res1)) {
29196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
29197 }
29198 arg1 = reinterpret_cast< wxEffects * >(argp1);
29199 {
29200 PyThreadState* __tstate = wxPyBeginAllowThreads();
29201 result = ((wxEffects const *)arg1)->GetFaceColour();
29202 wxPyEndAllowThreads(__tstate);
29203 if (PyErr_Occurred()) SWIG_fail;
29204 }
29205 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29206 return resultobj;
29207fail:
29208 return NULL;
29209}
29210
29211
29212SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29213 PyObject *resultobj = 0;
29214 wxEffects *arg1 = (wxEffects *) 0 ;
29215 wxColour result;
29216 void *argp1 = 0 ;
29217 int res1 = 0 ;
29218 PyObject *swig_obj[1] ;
29219
29220 if (!args) SWIG_fail;
29221 swig_obj[0] = args;
29222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29223 if (!SWIG_IsOK(res1)) {
29224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
29225 }
29226 arg1 = reinterpret_cast< wxEffects * >(argp1);
29227 {
29228 PyThreadState* __tstate = wxPyBeginAllowThreads();
29229 result = ((wxEffects const *)arg1)->GetMediumShadow();
29230 wxPyEndAllowThreads(__tstate);
29231 if (PyErr_Occurred()) SWIG_fail;
29232 }
29233 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29234 return resultobj;
29235fail:
29236 return NULL;
29237}
29238
29239
29240SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29241 PyObject *resultobj = 0;
29242 wxEffects *arg1 = (wxEffects *) 0 ;
29243 wxColour result;
29244 void *argp1 = 0 ;
29245 int res1 = 0 ;
29246 PyObject *swig_obj[1] ;
29247
29248 if (!args) SWIG_fail;
29249 swig_obj[0] = args;
29250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29251 if (!SWIG_IsOK(res1)) {
29252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
29253 }
29254 arg1 = reinterpret_cast< wxEffects * >(argp1);
29255 {
29256 PyThreadState* __tstate = wxPyBeginAllowThreads();
29257 result = ((wxEffects const *)arg1)->GetDarkShadow();
29258 wxPyEndAllowThreads(__tstate);
29259 if (PyErr_Occurred()) SWIG_fail;
29260 }
29261 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29262 return resultobj;
29263fail:
29264 return NULL;
29265}
29266
29267
29268SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29269 PyObject *resultobj = 0;
29270 wxEffects *arg1 = (wxEffects *) 0 ;
29271 wxColour *arg2 = 0 ;
29272 void *argp1 = 0 ;
29273 int res1 = 0 ;
29274 wxColour temp2 ;
29275 PyObject * obj0 = 0 ;
29276 PyObject * obj1 = 0 ;
29277 char * kwnames[] = {
29278 (char *) "self",(char *) "c", NULL
29279 };
29280
29281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
29282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29283 if (!SWIG_IsOK(res1)) {
29284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
29285 }
29286 arg1 = reinterpret_cast< wxEffects * >(argp1);
29287 {
29288 arg2 = &temp2;
29289 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29290 }
29291 {
29292 PyThreadState* __tstate = wxPyBeginAllowThreads();
29293 (arg1)->SetHighlightColour((wxColour const &)*arg2);
29294 wxPyEndAllowThreads(__tstate);
29295 if (PyErr_Occurred()) SWIG_fail;
29296 }
29297 resultobj = SWIG_Py_Void();
29298 return resultobj;
29299fail:
29300 return NULL;
29301}
29302
29303
29304SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29305 PyObject *resultobj = 0;
29306 wxEffects *arg1 = (wxEffects *) 0 ;
29307 wxColour *arg2 = 0 ;
29308 void *argp1 = 0 ;
29309 int res1 = 0 ;
29310 wxColour temp2 ;
29311 PyObject * obj0 = 0 ;
29312 PyObject * obj1 = 0 ;
29313 char * kwnames[] = {
29314 (char *) "self",(char *) "c", NULL
29315 };
29316
29317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
29318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29319 if (!SWIG_IsOK(res1)) {
29320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
29321 }
29322 arg1 = reinterpret_cast< wxEffects * >(argp1);
29323 {
29324 arg2 = &temp2;
29325 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29326 }
29327 {
29328 PyThreadState* __tstate = wxPyBeginAllowThreads();
29329 (arg1)->SetLightShadow((wxColour const &)*arg2);
29330 wxPyEndAllowThreads(__tstate);
29331 if (PyErr_Occurred()) SWIG_fail;
29332 }
29333 resultobj = SWIG_Py_Void();
29334 return resultobj;
29335fail:
29336 return NULL;
29337}
29338
29339
29340SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29341 PyObject *resultobj = 0;
29342 wxEffects *arg1 = (wxEffects *) 0 ;
29343 wxColour *arg2 = 0 ;
29344 void *argp1 = 0 ;
29345 int res1 = 0 ;
29346 wxColour temp2 ;
29347 PyObject * obj0 = 0 ;
29348 PyObject * obj1 = 0 ;
29349 char * kwnames[] = {
29350 (char *) "self",(char *) "c", NULL
29351 };
29352
29353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
29354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29355 if (!SWIG_IsOK(res1)) {
29356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
29357 }
29358 arg1 = reinterpret_cast< wxEffects * >(argp1);
29359 {
29360 arg2 = &temp2;
29361 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29362 }
29363 {
29364 PyThreadState* __tstate = wxPyBeginAllowThreads();
29365 (arg1)->SetFaceColour((wxColour const &)*arg2);
29366 wxPyEndAllowThreads(__tstate);
29367 if (PyErr_Occurred()) SWIG_fail;
29368 }
29369 resultobj = SWIG_Py_Void();
29370 return resultobj;
29371fail:
29372 return NULL;
29373}
29374
29375
29376SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29377 PyObject *resultobj = 0;
29378 wxEffects *arg1 = (wxEffects *) 0 ;
29379 wxColour *arg2 = 0 ;
29380 void *argp1 = 0 ;
29381 int res1 = 0 ;
29382 wxColour temp2 ;
29383 PyObject * obj0 = 0 ;
29384 PyObject * obj1 = 0 ;
29385 char * kwnames[] = {
29386 (char *) "self",(char *) "c", NULL
29387 };
29388
29389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
29390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29391 if (!SWIG_IsOK(res1)) {
29392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
29393 }
29394 arg1 = reinterpret_cast< wxEffects * >(argp1);
29395 {
29396 arg2 = &temp2;
29397 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29398 }
29399 {
29400 PyThreadState* __tstate = wxPyBeginAllowThreads();
29401 (arg1)->SetMediumShadow((wxColour const &)*arg2);
29402 wxPyEndAllowThreads(__tstate);
29403 if (PyErr_Occurred()) SWIG_fail;
29404 }
29405 resultobj = SWIG_Py_Void();
29406 return resultobj;
29407fail:
29408 return NULL;
29409}
29410
29411
29412SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29413 PyObject *resultobj = 0;
29414 wxEffects *arg1 = (wxEffects *) 0 ;
29415 wxColour *arg2 = 0 ;
29416 void *argp1 = 0 ;
29417 int res1 = 0 ;
29418 wxColour temp2 ;
29419 PyObject * obj0 = 0 ;
29420 PyObject * obj1 = 0 ;
29421 char * kwnames[] = {
29422 (char *) "self",(char *) "c", NULL
29423 };
29424
29425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
29426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29427 if (!SWIG_IsOK(res1)) {
29428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
29429 }
29430 arg1 = reinterpret_cast< wxEffects * >(argp1);
29431 {
29432 arg2 = &temp2;
29433 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29434 }
29435 {
29436 PyThreadState* __tstate = wxPyBeginAllowThreads();
29437 (arg1)->SetDarkShadow((wxColour const &)*arg2);
29438 wxPyEndAllowThreads(__tstate);
29439 if (PyErr_Occurred()) SWIG_fail;
29440 }
29441 resultobj = SWIG_Py_Void();
29442 return resultobj;
29443fail:
29444 return NULL;
29445}
29446
29447
29448SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29449 PyObject *resultobj = 0;
29450 wxEffects *arg1 = (wxEffects *) 0 ;
29451 wxColour *arg2 = 0 ;
29452 wxColour *arg3 = 0 ;
29453 wxColour *arg4 = 0 ;
29454 wxColour *arg5 = 0 ;
29455 wxColour *arg6 = 0 ;
29456 void *argp1 = 0 ;
29457 int res1 = 0 ;
29458 wxColour temp2 ;
29459 wxColour temp3 ;
29460 wxColour temp4 ;
29461 wxColour temp5 ;
29462 wxColour temp6 ;
29463 PyObject * obj0 = 0 ;
29464 PyObject * obj1 = 0 ;
29465 PyObject * obj2 = 0 ;
29466 PyObject * obj3 = 0 ;
29467 PyObject * obj4 = 0 ;
29468 PyObject * obj5 = 0 ;
29469 char * kwnames[] = {
29470 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
29471 };
29472
29473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29475 if (!SWIG_IsOK(res1)) {
29476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
29477 }
29478 arg1 = reinterpret_cast< wxEffects * >(argp1);
29479 {
29480 arg2 = &temp2;
29481 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29482 }
29483 {
29484 arg3 = &temp3;
29485 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
29486 }
29487 {
29488 arg4 = &temp4;
29489 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
29490 }
29491 {
29492 arg5 = &temp5;
29493 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
29494 }
29495 {
29496 arg6 = &temp6;
29497 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
29498 }
29499 {
29500 PyThreadState* __tstate = wxPyBeginAllowThreads();
29501 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
29502 wxPyEndAllowThreads(__tstate);
29503 if (PyErr_Occurred()) SWIG_fail;
29504 }
29505 resultobj = SWIG_Py_Void();
29506 return resultobj;
29507fail:
29508 return NULL;
29509}
29510
29511
29512SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29513 PyObject *resultobj = 0;
29514 wxEffects *arg1 = (wxEffects *) 0 ;
29515 wxDC *arg2 = 0 ;
29516 wxRect *arg3 = 0 ;
29517 int arg4 = (int) 1 ;
29518 void *argp1 = 0 ;
29519 int res1 = 0 ;
29520 void *argp2 = 0 ;
29521 int res2 = 0 ;
29522 wxRect temp3 ;
29523 int val4 ;
29524 int ecode4 = 0 ;
29525 PyObject * obj0 = 0 ;
29526 PyObject * obj1 = 0 ;
29527 PyObject * obj2 = 0 ;
29528 PyObject * obj3 = 0 ;
29529 char * kwnames[] = {
29530 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
29531 };
29532
29533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29535 if (!SWIG_IsOK(res1)) {
29536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
29537 }
29538 arg1 = reinterpret_cast< wxEffects * >(argp1);
29539 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
29540 if (!SWIG_IsOK(res2)) {
29541 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
29542 }
29543 if (!argp2) {
29544 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
29545 }
29546 arg2 = reinterpret_cast< wxDC * >(argp2);
29547 {
29548 arg3 = &temp3;
29549 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
29550 }
29551 if (obj3) {
29552 ecode4 = SWIG_AsVal_int(obj3, &val4);
29553 if (!SWIG_IsOK(ecode4)) {
29554 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
29555 }
29556 arg4 = static_cast< int >(val4);
29557 }
29558 {
29559 PyThreadState* __tstate = wxPyBeginAllowThreads();
29560 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
29561 wxPyEndAllowThreads(__tstate);
29562 if (PyErr_Occurred()) SWIG_fail;
29563 }
29564 resultobj = SWIG_Py_Void();
29565 return resultobj;
29566fail:
29567 return NULL;
29568}
29569
29570
29571SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29572 PyObject *resultobj = 0;
29573 wxEffects *arg1 = (wxEffects *) 0 ;
29574 wxRect *arg2 = 0 ;
29575 wxDC *arg3 = 0 ;
29576 wxBitmap *arg4 = 0 ;
29577 bool result;
29578 void *argp1 = 0 ;
29579 int res1 = 0 ;
29580 wxRect temp2 ;
29581 void *argp3 = 0 ;
29582 int res3 = 0 ;
29583 void *argp4 = 0 ;
29584 int res4 = 0 ;
29585 PyObject * obj0 = 0 ;
29586 PyObject * obj1 = 0 ;
29587 PyObject * obj2 = 0 ;
29588 PyObject * obj3 = 0 ;
29589 char * kwnames[] = {
29590 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
29591 };
29592
29593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29595 if (!SWIG_IsOK(res1)) {
29596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
29597 }
29598 arg1 = reinterpret_cast< wxEffects * >(argp1);
29599 {
29600 arg2 = &temp2;
29601 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
29602 }
29603 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
29604 if (!SWIG_IsOK(res3)) {
29605 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
29606 }
29607 if (!argp3) {
29608 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
29609 }
29610 arg3 = reinterpret_cast< wxDC * >(argp3);
29611 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
29612 if (!SWIG_IsOK(res4)) {
29613 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
29614 }
29615 if (!argp4) {
29616 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
29617 }
29618 arg4 = reinterpret_cast< wxBitmap * >(argp4);
29619 {
29620 PyThreadState* __tstate = wxPyBeginAllowThreads();
29621 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
29622 wxPyEndAllowThreads(__tstate);
29623 if (PyErr_Occurred()) SWIG_fail;
29624 }
29625 {
29626 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29627 }
29628 return resultobj;
29629fail:
29630 return NULL;
29631}
29632
29633
29634SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29635 PyObject *obj;
29636 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29637 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
29638 return SWIG_Py_Void();
29639}
29640
29641SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29642 return SWIG_Python_InitShadowInstance(args);
29643}
29644
29645SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29646 PyObject *resultobj = 0;
29647 int arg1 ;
29648 int arg2 ;
29649 bool arg3 ;
29650 wxSplitterRenderParams *result = 0 ;
29651 int val1 ;
29652 int ecode1 = 0 ;
29653 int val2 ;
29654 int ecode2 = 0 ;
29655 bool val3 ;
29656 int ecode3 = 0 ;
29657 PyObject * obj0 = 0 ;
29658 PyObject * obj1 = 0 ;
29659 PyObject * obj2 = 0 ;
29660 char * kwnames[] = {
29661 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
29662 };
29663
29664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29665 ecode1 = SWIG_AsVal_int(obj0, &val1);
29666 if (!SWIG_IsOK(ecode1)) {
29667 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
29668 }
29669 arg1 = static_cast< int >(val1);
29670 ecode2 = SWIG_AsVal_int(obj1, &val2);
29671 if (!SWIG_IsOK(ecode2)) {
29672 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
29673 }
29674 arg2 = static_cast< int >(val2);
29675 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29676 if (!SWIG_IsOK(ecode3)) {
29677 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
29678 }
29679 arg3 = static_cast< bool >(val3);
29680 {
29681 PyThreadState* __tstate = wxPyBeginAllowThreads();
29682 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
29683 wxPyEndAllowThreads(__tstate);
29684 if (PyErr_Occurred()) SWIG_fail;
29685 }
29686 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
29687 return resultobj;
29688fail:
29689 return NULL;
29690}
29691
29692
29693SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29694 PyObject *resultobj = 0;
29695 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29696 void *argp1 = 0 ;
29697 int res1 = 0 ;
29698 PyObject *swig_obj[1] ;
29699
29700 if (!args) SWIG_fail;
29701 swig_obj[0] = args;
29702 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
29703 if (!SWIG_IsOK(res1)) {
29704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29705 }
29706 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29707 {
29708 PyThreadState* __tstate = wxPyBeginAllowThreads();
29709 delete arg1;
29710
29711 wxPyEndAllowThreads(__tstate);
29712 if (PyErr_Occurred()) SWIG_fail;
29713 }
29714 resultobj = SWIG_Py_Void();
29715 return resultobj;
29716fail:
29717 return NULL;
29718}
29719
29720
29721SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29722 PyObject *resultobj = 0;
29723 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29724 int result;
29725 void *argp1 = 0 ;
29726 int res1 = 0 ;
29727 PyObject *swig_obj[1] ;
29728
29729 if (!args) SWIG_fail;
29730 swig_obj[0] = args;
29731 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
29732 if (!SWIG_IsOK(res1)) {
29733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29734 }
29735 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29736 result = (int)(int) ((arg1)->widthSash);
29737 resultobj = SWIG_From_int(static_cast< int >(result));
29738 return resultobj;
29739fail:
29740 return NULL;
29741}
29742
29743
29744SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29745 PyObject *resultobj = 0;
29746 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29747 int result;
29748 void *argp1 = 0 ;
29749 int res1 = 0 ;
29750 PyObject *swig_obj[1] ;
29751
29752 if (!args) SWIG_fail;
29753 swig_obj[0] = args;
29754 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
29755 if (!SWIG_IsOK(res1)) {
29756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29757 }
29758 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29759 result = (int)(int) ((arg1)->border);
29760 resultobj = SWIG_From_int(static_cast< int >(result));
29761 return resultobj;
29762fail:
29763 return NULL;
29764}
29765
29766
29767SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29768 PyObject *resultobj = 0;
29769 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29770 bool result;
29771 void *argp1 = 0 ;
29772 int res1 = 0 ;
29773 PyObject *swig_obj[1] ;
29774
29775 if (!args) SWIG_fail;
29776 swig_obj[0] = args;
29777 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
29778 if (!SWIG_IsOK(res1)) {
29779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29780 }
29781 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29782 result = (bool)(bool) ((arg1)->isHotSensitive);
29783 resultobj = SWIG_From_bool(static_cast< bool >(result));
29784 return resultobj;
29785fail:
29786 return NULL;
29787}
29788
29789
29790SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29791 PyObject *obj;
29792 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29793 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
29794 return SWIG_Py_Void();
29795}
29796
29797SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29798 return SWIG_Python_InitShadowInstance(args);
29799}
29800
33d6fd3b
RD
29801SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29802 PyObject *resultobj = 0;
29803 wxHeaderButtonParams *result = 0 ;
29804
29805 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
29806 {
29807 PyThreadState* __tstate = wxPyBeginAllowThreads();
29808 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
29809 wxPyEndAllowThreads(__tstate);
29810 if (PyErr_Occurred()) SWIG_fail;
29811 }
29812 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
29813 return resultobj;
29814fail:
29815 return NULL;
29816}
29817
29818
29819SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29820 PyObject *resultobj = 0;
29821 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29822 void *argp1 = 0 ;
29823 int res1 = 0 ;
29824 PyObject *swig_obj[1] ;
29825
29826 if (!args) SWIG_fail;
29827 swig_obj[0] = args;
29828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
29829 if (!SWIG_IsOK(res1)) {
29830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29831 }
29832 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29833 {
29834 PyThreadState* __tstate = wxPyBeginAllowThreads();
29835 delete arg1;
29836
29837 wxPyEndAllowThreads(__tstate);
29838 if (PyErr_Occurred()) SWIG_fail;
29839 }
29840 resultobj = SWIG_Py_Void();
29841 return resultobj;
29842fail:
29843 return NULL;
29844}
29845
29846
29847SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29848 PyObject *resultobj = 0;
29849 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29850 wxColour *arg2 = (wxColour *) 0 ;
29851 void *argp1 = 0 ;
29852 int res1 = 0 ;
29853 wxColour temp2 ;
29854 PyObject *swig_obj[2] ;
29855
29856 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
29857 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29858 if (!SWIG_IsOK(res1)) {
29859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29860 }
29861 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29862 {
29863 arg2 = &temp2;
29864 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
29865 }
29866 if (arg1) (arg1)->m_arrowColour = *arg2;
29867
29868 resultobj = SWIG_Py_Void();
29869 return resultobj;
29870fail:
29871 return NULL;
29872}
29873
29874
29875SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29876 PyObject *resultobj = 0;
29877 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29878 wxColour *result = 0 ;
29879 void *argp1 = 0 ;
29880 int res1 = 0 ;
29881 PyObject *swig_obj[1] ;
29882
29883 if (!args) SWIG_fail;
29884 swig_obj[0] = args;
29885 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29886 if (!SWIG_IsOK(res1)) {
29887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29888 }
29889 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29890 result = (wxColour *)& ((arg1)->m_arrowColour);
29891 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
29892 return resultobj;
29893fail:
29894 return NULL;
29895}
29896
29897
29898SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29899 PyObject *resultobj = 0;
29900 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29901 wxColour *arg2 = (wxColour *) 0 ;
29902 void *argp1 = 0 ;
29903 int res1 = 0 ;
29904 wxColour temp2 ;
29905 PyObject *swig_obj[2] ;
29906
29907 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
29908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29909 if (!SWIG_IsOK(res1)) {
29910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29911 }
29912 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29913 {
29914 arg2 = &temp2;
29915 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
29916 }
29917 if (arg1) (arg1)->m_selectionColour = *arg2;
29918
29919 resultobj = SWIG_Py_Void();
29920 return resultobj;
29921fail:
29922 return NULL;
29923}
29924
29925
29926SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29927 PyObject *resultobj = 0;
29928 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29929 wxColour *result = 0 ;
29930 void *argp1 = 0 ;
29931 int res1 = 0 ;
29932 PyObject *swig_obj[1] ;
29933
29934 if (!args) SWIG_fail;
29935 swig_obj[0] = args;
29936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29937 if (!SWIG_IsOK(res1)) {
29938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29939 }
29940 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29941 result = (wxColour *)& ((arg1)->m_selectionColour);
29942 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
29943 return resultobj;
29944fail:
29945 return NULL;
29946}
29947
29948
29949SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29950 PyObject *resultobj = 0;
29951 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29952 wxString *arg2 = (wxString *) 0 ;
29953 void *argp1 = 0 ;
29954 int res1 = 0 ;
29955 bool temp2 = false ;
29956 PyObject *swig_obj[2] ;
29957
29958 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
29959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29960 if (!SWIG_IsOK(res1)) {
29961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29962 }
29963 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29964 {
29965 arg2 = wxString_in_helper(swig_obj[1]);
29966 if (arg2 == NULL) SWIG_fail;
29967 temp2 = true;
29968 }
29969 if (arg1) (arg1)->m_labelText = *arg2;
29970
29971 resultobj = SWIG_Py_Void();
29972 {
29973 if (temp2)
29974 delete arg2;
29975 }
29976 return resultobj;
29977fail:
29978 {
29979 if (temp2)
29980 delete arg2;
29981 }
29982 return NULL;
29983}
29984
29985
29986SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29987 PyObject *resultobj = 0;
29988 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29989 wxString *result = 0 ;
29990 void *argp1 = 0 ;
29991 int res1 = 0 ;
29992 PyObject *swig_obj[1] ;
29993
29994 if (!args) SWIG_fail;
29995 swig_obj[0] = args;
29996 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29997 if (!SWIG_IsOK(res1)) {
29998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29999 }
30000 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30001 result = (wxString *)& ((arg1)->m_labelText);
30002 {
30003#if wxUSE_UNICODE
30004 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
30005#else
30006 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
30007#endif
30008 }
30009 return resultobj;
30010fail:
30011 return NULL;
30012}
30013
30014
30015SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30016 PyObject *resultobj = 0;
30017 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30018 wxFont *arg2 = (wxFont *) 0 ;
30019 void *argp1 = 0 ;
30020 int res1 = 0 ;
30021 void *argp2 = 0 ;
30022 int res2 = 0 ;
30023 PyObject *swig_obj[2] ;
30024
30025 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
30026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30027 if (!SWIG_IsOK(res1)) {
30028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30029 }
30030 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30031 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
30032 if (!SWIG_IsOK(res2)) {
30033 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
30034 }
30035 arg2 = reinterpret_cast< wxFont * >(argp2);
30036 if (arg1) (arg1)->m_labelFont = *arg2;
30037
30038 resultobj = SWIG_Py_Void();
30039 return resultobj;
30040fail:
30041 return NULL;
30042}
30043
30044
30045SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30046 PyObject *resultobj = 0;
30047 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30048 wxFont *result = 0 ;
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_wxHeaderButtonParams, 0 | 0 );
30056 if (!SWIG_IsOK(res1)) {
30057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30058 }
30059 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30060 result = (wxFont *)& ((arg1)->m_labelFont);
30061 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
30062 return resultobj;
30063fail:
30064 return NULL;
30065}
30066
30067
30068SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30069 PyObject *resultobj = 0;
30070 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30071 wxColour *arg2 = (wxColour *) 0 ;
30072 void *argp1 = 0 ;
30073 int res1 = 0 ;
30074 wxColour temp2 ;
30075 PyObject *swig_obj[2] ;
30076
30077 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
30078 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30079 if (!SWIG_IsOK(res1)) {
30080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30081 }
30082 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30083 {
30084 arg2 = &temp2;
30085 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
30086 }
30087 if (arg1) (arg1)->m_labelColour = *arg2;
30088
30089 resultobj = SWIG_Py_Void();
30090 return resultobj;
30091fail:
30092 return NULL;
30093}
30094
30095
30096SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30097 PyObject *resultobj = 0;
30098 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30099 wxColour *result = 0 ;
30100 void *argp1 = 0 ;
30101 int res1 = 0 ;
30102 PyObject *swig_obj[1] ;
30103
30104 if (!args) SWIG_fail;
30105 swig_obj[0] = args;
30106 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30107 if (!SWIG_IsOK(res1)) {
30108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30109 }
30110 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30111 result = (wxColour *)& ((arg1)->m_labelColour);
30112 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
30113 return resultobj;
30114fail:
30115 return NULL;
30116}
30117
30118
30119SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30120 PyObject *resultobj = 0;
30121 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30122 wxBitmap *arg2 = (wxBitmap *) 0 ;
30123 void *argp1 = 0 ;
30124 int res1 = 0 ;
30125 void *argp2 = 0 ;
30126 int res2 = 0 ;
30127 PyObject *swig_obj[2] ;
30128
30129 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
30130 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30131 if (!SWIG_IsOK(res1)) {
30132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30133 }
30134 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30135 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
30136 if (!SWIG_IsOK(res2)) {
30137 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
30138 }
30139 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30140 if (arg1) (arg1)->m_labelBitmap = *arg2;
30141
30142 resultobj = SWIG_Py_Void();
30143 return resultobj;
30144fail:
30145 return NULL;
30146}
30147
30148
30149SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30150 PyObject *resultobj = 0;
30151 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30152 wxBitmap *result = 0 ;
30153 void *argp1 = 0 ;
30154 int res1 = 0 ;
30155 PyObject *swig_obj[1] ;
30156
30157 if (!args) SWIG_fail;
30158 swig_obj[0] = args;
30159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30160 if (!SWIG_IsOK(res1)) {
30161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30162 }
30163 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30164 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
30165 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
30166 return resultobj;
30167fail:
30168 return NULL;
30169}
30170
30171
30172SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30173 PyObject *resultobj = 0;
30174 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30175 int arg2 ;
30176 void *argp1 = 0 ;
30177 int res1 = 0 ;
30178 int val2 ;
30179 int ecode2 = 0 ;
30180 PyObject *swig_obj[2] ;
30181
30182 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
30183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30184 if (!SWIG_IsOK(res1)) {
30185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30186 }
30187 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30188 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
30189 if (!SWIG_IsOK(ecode2)) {
30190 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
30191 }
30192 arg2 = static_cast< int >(val2);
30193 if (arg1) (arg1)->m_labelAlignment = arg2;
30194
30195 resultobj = SWIG_Py_Void();
30196 return resultobj;
30197fail:
30198 return NULL;
30199}
30200
30201
30202SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30203 PyObject *resultobj = 0;
30204 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30205 int result;
30206 void *argp1 = 0 ;
30207 int res1 = 0 ;
30208 PyObject *swig_obj[1] ;
30209
30210 if (!args) SWIG_fail;
30211 swig_obj[0] = args;
30212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30213 if (!SWIG_IsOK(res1)) {
30214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30215 }
30216 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30217 result = (int) ((arg1)->m_labelAlignment);
30218 resultobj = SWIG_From_int(static_cast< int >(result));
30219 return resultobj;
30220fail:
30221 return NULL;
30222}
30223
30224
30225SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30226 PyObject *obj;
30227 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30228 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
30229 return SWIG_Py_Void();
30230}
30231
30232SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30233 return SWIG_Python_InitShadowInstance(args);
30234}
30235
1bd55598
RD
30236SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30237 PyObject *resultobj = 0;
30238 int arg1 ;
30239 int arg2 ;
30240 wxRendererVersion *result = 0 ;
30241 int val1 ;
30242 int ecode1 = 0 ;
30243 int val2 ;
30244 int ecode2 = 0 ;
30245 PyObject * obj0 = 0 ;
30246 PyObject * obj1 = 0 ;
30247 char * kwnames[] = {
30248 (char *) "version_",(char *) "age_", NULL
30249 };
30250
30251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
30252 ecode1 = SWIG_AsVal_int(obj0, &val1);
30253 if (!SWIG_IsOK(ecode1)) {
30254 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
30255 }
30256 arg1 = static_cast< int >(val1);
30257 ecode2 = SWIG_AsVal_int(obj1, &val2);
30258 if (!SWIG_IsOK(ecode2)) {
30259 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
30260 }
30261 arg2 = static_cast< int >(val2);
30262 {
30263 PyThreadState* __tstate = wxPyBeginAllowThreads();
30264 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
30265 wxPyEndAllowThreads(__tstate);
30266 if (PyErr_Occurred()) SWIG_fail;
30267 }
30268 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
30269 return resultobj;
30270fail:
30271 return NULL;
30272}
30273
30274
30275SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30276 PyObject *resultobj = 0;
30277 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
30278 void *argp1 = 0 ;
30279 int res1 = 0 ;
30280 PyObject *swig_obj[1] ;
30281
30282 if (!args) SWIG_fail;
30283 swig_obj[0] = args;
30284 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
30285 if (!SWIG_IsOK(res1)) {
30286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
30287 }
30288 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30289 {
30290 PyThreadState* __tstate = wxPyBeginAllowThreads();
30291 delete arg1;
30292
30293 wxPyEndAllowThreads(__tstate);
30294 if (PyErr_Occurred()) SWIG_fail;
30295 }
30296 resultobj = SWIG_Py_Void();
30297 return resultobj;
30298fail:
30299 return NULL;
30300}
30301
30302
30303SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30304 PyObject *resultobj = 0;
30305 wxRendererVersion *arg1 = 0 ;
30306 bool result;
30307 void *argp1 = 0 ;
30308 int res1 = 0 ;
30309 PyObject * obj0 = 0 ;
30310 char * kwnames[] = {
30311 (char *) "ver", NULL
30312 };
30313
30314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
30315 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
30316 if (!SWIG_IsOK(res1)) {
30317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
30318 }
30319 if (!argp1) {
30320 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
30321 }
30322 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30323 {
30324 PyThreadState* __tstate = wxPyBeginAllowThreads();
30325 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
30326 wxPyEndAllowThreads(__tstate);
30327 if (PyErr_Occurred()) SWIG_fail;
30328 }
30329 {
30330 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30331 }
30332 return resultobj;
30333fail:
30334 return NULL;
30335}
30336
30337
30338SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30339 PyObject *resultobj = 0;
30340 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
30341 int result;
30342 void *argp1 = 0 ;
30343 int res1 = 0 ;
30344 PyObject *swig_obj[1] ;
30345
30346 if (!args) SWIG_fail;
30347 swig_obj[0] = args;
30348 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
30349 if (!SWIG_IsOK(res1)) {
30350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
30351 }
30352 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30353 result = (int)(int) ((arg1)->version);
30354 resultobj = SWIG_From_int(static_cast< int >(result));
30355 return resultobj;
30356fail:
30357 return NULL;
30358}
30359
30360
30361SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30362 PyObject *resultobj = 0;
30363 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
30364 int result;
30365 void *argp1 = 0 ;
30366 int res1 = 0 ;
30367 PyObject *swig_obj[1] ;
30368
30369 if (!args) SWIG_fail;
30370 swig_obj[0] = args;
30371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
30372 if (!SWIG_IsOK(res1)) {
30373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
30374 }
30375 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30376 result = (int)(int) ((arg1)->age);
30377 resultobj = SWIG_From_int(static_cast< int >(result));
30378 return resultobj;
30379fail:
30380 return NULL;
30381}
30382
30383
30384SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30385 PyObject *obj;
30386 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30387 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
30388 return SWIG_Py_Void();
30389}
30390
30391SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30392 return SWIG_Python_InitShadowInstance(args);
30393}
30394
30395SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30396 PyObject *resultobj = 0;
30397 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30398 wxWindow *arg2 = (wxWindow *) 0 ;
30399 wxDC *arg3 = 0 ;
30400 wxRect *arg4 = 0 ;
30401 int arg5 = (int) 0 ;
33d6fd3b
RD
30402 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
30403 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
1bd55598
RD
30404 void *argp1 = 0 ;
30405 int res1 = 0 ;
30406 void *argp2 = 0 ;
30407 int res2 = 0 ;
30408 void *argp3 = 0 ;
30409 int res3 = 0 ;
30410 wxRect temp4 ;
30411 int val5 ;
30412 int ecode5 = 0 ;
33d6fd3b
RD
30413 int val6 ;
30414 int ecode6 = 0 ;
30415 void *argp7 = 0 ;
30416 int res7 = 0 ;
1bd55598
RD
30417 PyObject * obj0 = 0 ;
30418 PyObject * obj1 = 0 ;
30419 PyObject * obj2 = 0 ;
30420 PyObject * obj3 = 0 ;
30421 PyObject * obj4 = 0 ;
33d6fd3b
RD
30422 PyObject * obj5 = 0 ;
30423 PyObject * obj6 = 0 ;
1bd55598 30424 char * kwnames[] = {
33d6fd3b 30425 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
1bd55598
RD
30426 };
30427
33d6fd3b 30428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
1bd55598
RD
30429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30430 if (!SWIG_IsOK(res1)) {
30431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30432 }
30433 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30434 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30435 if (!SWIG_IsOK(res2)) {
30436 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30437 }
30438 arg2 = reinterpret_cast< wxWindow * >(argp2);
30439 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30440 if (!SWIG_IsOK(res3)) {
30441 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
30442 }
30443 if (!argp3) {
30444 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
30445 }
30446 arg3 = reinterpret_cast< wxDC * >(argp3);
30447 {
30448 arg4 = &temp4;
30449 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30450 }
30451 if (obj4) {
30452 ecode5 = SWIG_AsVal_int(obj4, &val5);
30453 if (!SWIG_IsOK(ecode5)) {
30454 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
30455 }
30456 arg5 = static_cast< int >(val5);
30457 }
33d6fd3b
RD
30458 if (obj5) {
30459 ecode6 = SWIG_AsVal_int(obj5, &val6);
30460 if (!SWIG_IsOK(ecode6)) {
30461 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
30462 }
30463 arg6 = static_cast< wxHeaderSortIconType >(val6);
30464 }
30465 if (obj6) {
30466 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30467 if (!SWIG_IsOK(res7)) {
30468 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
30469 }
30470 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
30471 }
30472 {
30473 PyThreadState* __tstate = wxPyBeginAllowThreads();
30474 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
30475 wxPyEndAllowThreads(__tstate);
30476 if (PyErr_Occurred()) SWIG_fail;
30477 }
30478 resultobj = SWIG_Py_Void();
30479 return resultobj;
30480fail:
30481 return NULL;
30482}
30483
30484
30485SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30486 PyObject *resultobj = 0;
30487 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30488 wxWindow *arg2 = (wxWindow *) 0 ;
30489 wxDC *arg3 = 0 ;
30490 wxRect *arg4 = 0 ;
30491 int arg5 = (int) 0 ;
30492 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
30493 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
30494 void *argp1 = 0 ;
30495 int res1 = 0 ;
30496 void *argp2 = 0 ;
30497 int res2 = 0 ;
30498 void *argp3 = 0 ;
30499 int res3 = 0 ;
30500 wxRect temp4 ;
30501 int val5 ;
30502 int ecode5 = 0 ;
30503 int val6 ;
30504 int ecode6 = 0 ;
30505 void *argp7 = 0 ;
30506 int res7 = 0 ;
30507 PyObject * obj0 = 0 ;
30508 PyObject * obj1 = 0 ;
30509 PyObject * obj2 = 0 ;
30510 PyObject * obj3 = 0 ;
30511 PyObject * obj4 = 0 ;
30512 PyObject * obj5 = 0 ;
30513 PyObject * obj6 = 0 ;
30514 char * kwnames[] = {
30515 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
30516 };
30517
30518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30520 if (!SWIG_IsOK(res1)) {
30521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30522 }
30523 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30524 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30525 if (!SWIG_IsOK(res2)) {
30526 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
30527 }
30528 arg2 = reinterpret_cast< wxWindow * >(argp2);
30529 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30530 if (!SWIG_IsOK(res3)) {
30531 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
30532 }
30533 if (!argp3) {
30534 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
30535 }
30536 arg3 = reinterpret_cast< wxDC * >(argp3);
30537 {
30538 arg4 = &temp4;
30539 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30540 }
30541 if (obj4) {
30542 ecode5 = SWIG_AsVal_int(obj4, &val5);
30543 if (!SWIG_IsOK(ecode5)) {
30544 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
30545 }
30546 arg5 = static_cast< int >(val5);
30547 }
30548 if (obj5) {
30549 ecode6 = SWIG_AsVal_int(obj5, &val6);
30550 if (!SWIG_IsOK(ecode6)) {
30551 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
30552 }
30553 arg6 = static_cast< wxHeaderSortIconType >(val6);
30554 }
30555 if (obj6) {
30556 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30557 if (!SWIG_IsOK(res7)) {
30558 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
30559 }
30560 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
30561 }
1bd55598
RD
30562 {
30563 PyThreadState* __tstate = wxPyBeginAllowThreads();
33d6fd3b 30564 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
1bd55598
RD
30565 wxPyEndAllowThreads(__tstate);
30566 if (PyErr_Occurred()) SWIG_fail;
30567 }
30568 resultobj = SWIG_Py_Void();
30569 return resultobj;
30570fail:
30571 return NULL;
30572}
30573
30574
33d6fd3b
RD
30575SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30576 PyObject *resultobj = 0;
30577 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30578 wxWindow *arg2 = (wxWindow *) 0 ;
30579 int result;
30580 void *argp1 = 0 ;
30581 int res1 = 0 ;
30582 void *argp2 = 0 ;
30583 int res2 = 0 ;
30584 PyObject * obj0 = 0 ;
30585 PyObject * obj1 = 0 ;
30586 char * kwnames[] = {
30587 (char *) "self",(char *) "win", NULL
30588 };
30589
30590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
30591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30592 if (!SWIG_IsOK(res1)) {
30593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30594 }
30595 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30596 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30597 if (!SWIG_IsOK(res2)) {
30598 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
30599 }
30600 arg2 = reinterpret_cast< wxWindow * >(argp2);
30601 {
30602 PyThreadState* __tstate = wxPyBeginAllowThreads();
30603 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
30604 wxPyEndAllowThreads(__tstate);
30605 if (PyErr_Occurred()) SWIG_fail;
30606 }
30607 resultobj = SWIG_From_int(static_cast< int >(result));
30608 return resultobj;
30609fail:
30610 return NULL;
30611}
30612
30613
1bd55598
RD
30614SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30615 PyObject *resultobj = 0;
30616 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30617 wxWindow *arg2 = (wxWindow *) 0 ;
30618 wxDC *arg3 = 0 ;
30619 wxRect *arg4 = 0 ;
30620 int arg5 = (int) 0 ;
30621 void *argp1 = 0 ;
30622 int res1 = 0 ;
30623 void *argp2 = 0 ;
30624 int res2 = 0 ;
30625 void *argp3 = 0 ;
30626 int res3 = 0 ;
30627 wxRect temp4 ;
30628 int val5 ;
30629 int ecode5 = 0 ;
30630 PyObject * obj0 = 0 ;
30631 PyObject * obj1 = 0 ;
30632 PyObject * obj2 = 0 ;
30633 PyObject * obj3 = 0 ;
30634 PyObject * obj4 = 0 ;
30635 char * kwnames[] = {
30636 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30637 };
30638
30639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30641 if (!SWIG_IsOK(res1)) {
30642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30643 }
30644 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30645 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30646 if (!SWIG_IsOK(res2)) {
30647 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30648 }
30649 arg2 = reinterpret_cast< wxWindow * >(argp2);
30650 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30651 if (!SWIG_IsOK(res3)) {
30652 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
30653 }
30654 if (!argp3) {
30655 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
30656 }
30657 arg3 = reinterpret_cast< wxDC * >(argp3);
30658 {
30659 arg4 = &temp4;
30660 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30661 }
30662 if (obj4) {
30663 ecode5 = SWIG_AsVal_int(obj4, &val5);
30664 if (!SWIG_IsOK(ecode5)) {
30665 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
30666 }
30667 arg5 = static_cast< int >(val5);
30668 }
30669 {
30670 PyThreadState* __tstate = wxPyBeginAllowThreads();
30671 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
30672 wxPyEndAllowThreads(__tstate);
30673 if (PyErr_Occurred()) SWIG_fail;
30674 }
30675 resultobj = SWIG_Py_Void();
30676 return resultobj;
30677fail:
30678 return NULL;
30679}
30680
30681
30682SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30683 PyObject *resultobj = 0;
30684 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30685 wxWindow *arg2 = (wxWindow *) 0 ;
30686 wxDC *arg3 = 0 ;
30687 wxRect *arg4 = 0 ;
30688 int arg5 = (int) 0 ;
30689 void *argp1 = 0 ;
30690 int res1 = 0 ;
30691 void *argp2 = 0 ;
30692 int res2 = 0 ;
30693 void *argp3 = 0 ;
30694 int res3 = 0 ;
30695 wxRect temp4 ;
30696 int val5 ;
30697 int ecode5 = 0 ;
30698 PyObject * obj0 = 0 ;
30699 PyObject * obj1 = 0 ;
30700 PyObject * obj2 = 0 ;
30701 PyObject * obj3 = 0 ;
30702 PyObject * obj4 = 0 ;
30703 char * kwnames[] = {
30704 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30705 };
30706
30707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30709 if (!SWIG_IsOK(res1)) {
30710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30711 }
30712 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30713 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30714 if (!SWIG_IsOK(res2)) {
30715 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
30716 }
30717 arg2 = reinterpret_cast< wxWindow * >(argp2);
30718 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30719 if (!SWIG_IsOK(res3)) {
30720 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
30721 }
30722 if (!argp3) {
30723 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
30724 }
30725 arg3 = reinterpret_cast< wxDC * >(argp3);
30726 {
30727 arg4 = &temp4;
30728 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30729 }
30730 if (obj4) {
30731 ecode5 = SWIG_AsVal_int(obj4, &val5);
30732 if (!SWIG_IsOK(ecode5)) {
30733 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
30734 }
30735 arg5 = static_cast< int >(val5);
30736 }
30737 {
30738 PyThreadState* __tstate = wxPyBeginAllowThreads();
30739 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
30740 wxPyEndAllowThreads(__tstate);
30741 if (PyErr_Occurred()) SWIG_fail;
30742 }
30743 resultobj = SWIG_Py_Void();
30744 return resultobj;
30745fail:
30746 return NULL;
30747}
30748
30749
30750SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30751 PyObject *resultobj = 0;
30752 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30753 wxWindow *arg2 = (wxWindow *) 0 ;
30754 wxDC *arg3 = 0 ;
30755 wxSize *arg4 = 0 ;
30756 int arg5 ;
30757 wxOrientation arg6 ;
30758 int arg7 = (int) 0 ;
30759 void *argp1 = 0 ;
30760 int res1 = 0 ;
30761 void *argp2 = 0 ;
30762 int res2 = 0 ;
30763 void *argp3 = 0 ;
30764 int res3 = 0 ;
30765 wxSize temp4 ;
30766 int val5 ;
30767 int ecode5 = 0 ;
30768 int val6 ;
30769 int ecode6 = 0 ;
30770 int val7 ;
30771 int ecode7 = 0 ;
30772 PyObject * obj0 = 0 ;
30773 PyObject * obj1 = 0 ;
30774 PyObject * obj2 = 0 ;
30775 PyObject * obj3 = 0 ;
30776 PyObject * obj4 = 0 ;
30777 PyObject * obj5 = 0 ;
30778 PyObject * obj6 = 0 ;
30779 char * kwnames[] = {
30780 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
30781 };
30782
30783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30785 if (!SWIG_IsOK(res1)) {
30786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30787 }
30788 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30789 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30790 if (!SWIG_IsOK(res2)) {
30791 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
30792 }
30793 arg2 = reinterpret_cast< wxWindow * >(argp2);
30794 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30795 if (!SWIG_IsOK(res3)) {
30796 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
30797 }
30798 if (!argp3) {
30799 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
30800 }
30801 arg3 = reinterpret_cast< wxDC * >(argp3);
30802 {
30803 arg4 = &temp4;
30804 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
30805 }
30806 ecode5 = SWIG_AsVal_int(obj4, &val5);
30807 if (!SWIG_IsOK(ecode5)) {
30808 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
30809 }
30810 arg5 = static_cast< int >(val5);
30811 ecode6 = SWIG_AsVal_int(obj5, &val6);
30812 if (!SWIG_IsOK(ecode6)) {
30813 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
30814 }
30815 arg6 = static_cast< wxOrientation >(val6);
30816 if (obj6) {
30817 ecode7 = SWIG_AsVal_int(obj6, &val7);
30818 if (!SWIG_IsOK(ecode7)) {
30819 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
30820 }
30821 arg7 = static_cast< int >(val7);
30822 }
30823 {
30824 PyThreadState* __tstate = wxPyBeginAllowThreads();
30825 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
30826 wxPyEndAllowThreads(__tstate);
30827 if (PyErr_Occurred()) SWIG_fail;
30828 }
30829 resultobj = SWIG_Py_Void();
30830 return resultobj;
30831fail:
30832 return NULL;
30833}
30834
30835
30836SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30837 PyObject *resultobj = 0;
30838 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30839 wxWindow *arg2 = (wxWindow *) 0 ;
30840 wxDC *arg3 = 0 ;
30841 wxRect *arg4 = 0 ;
30842 int arg5 = (int) 0 ;
30843 void *argp1 = 0 ;
30844 int res1 = 0 ;
30845 void *argp2 = 0 ;
30846 int res2 = 0 ;
30847 void *argp3 = 0 ;
30848 int res3 = 0 ;
30849 wxRect temp4 ;
30850 int val5 ;
30851 int ecode5 = 0 ;
30852 PyObject * obj0 = 0 ;
30853 PyObject * obj1 = 0 ;
30854 PyObject * obj2 = 0 ;
30855 PyObject * obj3 = 0 ;
30856 PyObject * obj4 = 0 ;
30857 char * kwnames[] = {
30858 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30859 };
30860
30861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30863 if (!SWIG_IsOK(res1)) {
30864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30865 }
30866 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30867 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30868 if (!SWIG_IsOK(res2)) {
30869 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30870 }
30871 arg2 = reinterpret_cast< wxWindow * >(argp2);
30872 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30873 if (!SWIG_IsOK(res3)) {
30874 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
30875 }
30876 if (!argp3) {
30877 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
30878 }
30879 arg3 = reinterpret_cast< wxDC * >(argp3);
30880 {
30881 arg4 = &temp4;
30882 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30883 }
30884 if (obj4) {
30885 ecode5 = SWIG_AsVal_int(obj4, &val5);
30886 if (!SWIG_IsOK(ecode5)) {
30887 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
30888 }
30889 arg5 = static_cast< int >(val5);
30890 }
30891 {
30892 PyThreadState* __tstate = wxPyBeginAllowThreads();
30893 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
30894 wxPyEndAllowThreads(__tstate);
30895 if (PyErr_Occurred()) SWIG_fail;
30896 }
30897 resultobj = SWIG_Py_Void();
30898 return resultobj;
30899fail:
30900 return NULL;
30901}
30902
30903
30904SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30905 PyObject *resultobj = 0;
30906 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30907 wxWindow *arg2 = (wxWindow *) 0 ;
30908 wxDC *arg3 = 0 ;
30909 wxRect *arg4 = 0 ;
30910 int arg5 = (int) 0 ;
30911 void *argp1 = 0 ;
30912 int res1 = 0 ;
30913 void *argp2 = 0 ;
30914 int res2 = 0 ;
30915 void *argp3 = 0 ;
30916 int res3 = 0 ;
30917 wxRect temp4 ;
30918 int val5 ;
30919 int ecode5 = 0 ;
30920 PyObject * obj0 = 0 ;
30921 PyObject * obj1 = 0 ;
30922 PyObject * obj2 = 0 ;
30923 PyObject * obj3 = 0 ;
30924 PyObject * obj4 = 0 ;
30925 char * kwnames[] = {
30926 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30927 };
30928
30929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30931 if (!SWIG_IsOK(res1)) {
30932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30933 }
30934 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30935 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30936 if (!SWIG_IsOK(res2)) {
30937 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
30938 }
30939 arg2 = reinterpret_cast< wxWindow * >(argp2);
30940 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30941 if (!SWIG_IsOK(res3)) {
30942 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
30943 }
30944 if (!argp3) {
30945 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
30946 }
30947 arg3 = reinterpret_cast< wxDC * >(argp3);
30948 {
30949 arg4 = &temp4;
30950 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30951 }
30952 if (obj4) {
30953 ecode5 = SWIG_AsVal_int(obj4, &val5);
30954 if (!SWIG_IsOK(ecode5)) {
30955 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
30956 }
30957 arg5 = static_cast< int >(val5);
30958 }
30959 {
30960 PyThreadState* __tstate = wxPyBeginAllowThreads();
30961 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
30962 wxPyEndAllowThreads(__tstate);
30963 if (PyErr_Occurred()) SWIG_fail;
30964 }
30965 resultobj = SWIG_Py_Void();
30966 return resultobj;
30967fail:
30968 return NULL;
30969}
30970
30971
2131d850 30972SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
da91cb0f
RD
30973 PyObject *resultobj = 0;
30974 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30975 wxWindow *arg2 = (wxWindow *) 0 ;
30976 wxDC *arg3 = 0 ;
30977 wxRect *arg4 = 0 ;
30978 int arg5 = (int) 0 ;
30979 void *argp1 = 0 ;
30980 int res1 = 0 ;
30981 void *argp2 = 0 ;
30982 int res2 = 0 ;
30983 void *argp3 = 0 ;
30984 int res3 = 0 ;
30985 wxRect temp4 ;
30986 int val5 ;
30987 int ecode5 = 0 ;
30988 PyObject * obj0 = 0 ;
30989 PyObject * obj1 = 0 ;
30990 PyObject * obj2 = 0 ;
30991 PyObject * obj3 = 0 ;
30992 PyObject * obj4 = 0 ;
30993 char * kwnames[] = {
30994 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30995 };
30996
2131d850 30997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
da91cb0f
RD
30998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30999 if (!SWIG_IsOK(res1)) {
2131d850 31000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
da91cb0f
RD
31001 }
31002 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31003 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31004 if (!SWIG_IsOK(res2)) {
2131d850 31005 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
da91cb0f
RD
31006 }
31007 arg2 = reinterpret_cast< wxWindow * >(argp2);
31008 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31009 if (!SWIG_IsOK(res3)) {
2131d850 31010 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
da91cb0f
RD
31011 }
31012 if (!argp3) {
2131d850 31013 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
da91cb0f
RD
31014 }
31015 arg3 = reinterpret_cast< wxDC * >(argp3);
31016 {
31017 arg4 = &temp4;
31018 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31019 }
31020 if (obj4) {
31021 ecode5 = SWIG_AsVal_int(obj4, &val5);
31022 if (!SWIG_IsOK(ecode5)) {
2131d850 31023 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
da91cb0f
RD
31024 }
31025 arg5 = static_cast< int >(val5);
31026 }
31027 {
31028 PyThreadState* __tstate = wxPyBeginAllowThreads();
2131d850
RD
31029 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
31030 wxPyEndAllowThreads(__tstate);
31031 if (PyErr_Occurred()) SWIG_fail;
31032 }
31033 resultobj = SWIG_Py_Void();
31034 return resultobj;
31035fail:
31036 return NULL;
31037}
31038
31039
31040SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31041 PyObject *resultobj = 0;
31042 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31043 wxWindow *arg2 = (wxWindow *) 0 ;
31044 wxDC *arg3 = 0 ;
31045 wxRect *arg4 = 0 ;
31046 int arg5 = (int) 0 ;
31047 void *argp1 = 0 ;
31048 int res1 = 0 ;
31049 void *argp2 = 0 ;
31050 int res2 = 0 ;
31051 void *argp3 = 0 ;
31052 int res3 = 0 ;
31053 wxRect temp4 ;
31054 int val5 ;
31055 int ecode5 = 0 ;
31056 PyObject * obj0 = 0 ;
31057 PyObject * obj1 = 0 ;
31058 PyObject * obj2 = 0 ;
31059 PyObject * obj3 = 0 ;
31060 PyObject * obj4 = 0 ;
31061 char * kwnames[] = {
31062 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31063 };
31064
31065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31067 if (!SWIG_IsOK(res1)) {
31068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31069 }
31070 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31071 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31072 if (!SWIG_IsOK(res2)) {
31073 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
31074 }
31075 arg2 = reinterpret_cast< wxWindow * >(argp2);
31076 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31077 if (!SWIG_IsOK(res3)) {
31078 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
31079 }
31080 if (!argp3) {
31081 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
31082 }
31083 arg3 = reinterpret_cast< wxDC * >(argp3);
31084 {
31085 arg4 = &temp4;
31086 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31087 }
31088 if (obj4) {
31089 ecode5 = SWIG_AsVal_int(obj4, &val5);
31090 if (!SWIG_IsOK(ecode5)) {
31091 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
31092 }
31093 arg5 = static_cast< int >(val5);
31094 }
31095 {
31096 PyThreadState* __tstate = wxPyBeginAllowThreads();
31097 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
31098 wxPyEndAllowThreads(__tstate);
31099 if (PyErr_Occurred()) SWIG_fail;
31100 }
31101 resultobj = SWIG_Py_Void();
31102 return resultobj;
31103fail:
31104 return NULL;
31105}
31106
31107
31108SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31109 PyObject *resultobj = 0;
31110 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31111 wxWindow *arg2 = (wxWindow *) 0 ;
31112 wxDC *arg3 = 0 ;
31113 wxRect *arg4 = 0 ;
31114 int arg5 = (int) 0 ;
31115 void *argp1 = 0 ;
31116 int res1 = 0 ;
31117 void *argp2 = 0 ;
31118 int res2 = 0 ;
31119 void *argp3 = 0 ;
31120 int res3 = 0 ;
31121 wxRect temp4 ;
31122 int val5 ;
31123 int ecode5 = 0 ;
31124 PyObject * obj0 = 0 ;
31125 PyObject * obj1 = 0 ;
31126 PyObject * obj2 = 0 ;
31127 PyObject * obj3 = 0 ;
31128 PyObject * obj4 = 0 ;
31129 char * kwnames[] = {
31130 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31131 };
31132
31133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31135 if (!SWIG_IsOK(res1)) {
31136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31137 }
31138 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31139 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31140 if (!SWIG_IsOK(res2)) {
31141 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
31142 }
31143 arg2 = reinterpret_cast< wxWindow * >(argp2);
31144 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31145 if (!SWIG_IsOK(res3)) {
31146 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
31147 }
31148 if (!argp3) {
31149 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
31150 }
31151 arg3 = reinterpret_cast< wxDC * >(argp3);
31152 {
31153 arg4 = &temp4;
31154 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31155 }
31156 if (obj4) {
31157 ecode5 = SWIG_AsVal_int(obj4, &val5);
31158 if (!SWIG_IsOK(ecode5)) {
31159 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
31160 }
31161 arg5 = static_cast< int >(val5);
31162 }
31163 {
31164 PyThreadState* __tstate = wxPyBeginAllowThreads();
31165 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
da91cb0f
RD
31166 wxPyEndAllowThreads(__tstate);
31167 if (PyErr_Occurred()) SWIG_fail;
31168 }
31169 resultobj = SWIG_Py_Void();
31170 return resultobj;
31171fail:
31172 return NULL;
31173}
31174
31175
1bd55598
RD
31176SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31177 PyObject *resultobj = 0;
31178 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31179 wxWindow *arg2 = (wxWindow *) 0 ;
31180 SwigValueWrapper<wxSplitterRenderParams > result;
31181 void *argp1 = 0 ;
31182 int res1 = 0 ;
31183 void *argp2 = 0 ;
31184 int res2 = 0 ;
31185 PyObject * obj0 = 0 ;
31186 PyObject * obj1 = 0 ;
31187 char * kwnames[] = {
31188 (char *) "self",(char *) "win", NULL
31189 };
31190
31191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
31192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31193 if (!SWIG_IsOK(res1)) {
31194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31195 }
31196 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31197 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31198 if (!SWIG_IsOK(res2)) {
31199 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
31200 }
31201 arg2 = reinterpret_cast< wxWindow * >(argp2);
31202 {
31203 PyThreadState* __tstate = wxPyBeginAllowThreads();
31204 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
31205 wxPyEndAllowThreads(__tstate);
31206 if (PyErr_Occurred()) SWIG_fail;
31207 }
31208 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
31209 return resultobj;
31210fail:
31211 return NULL;
31212}
31213
31214
31215SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31216 PyObject *resultobj = 0;
31217 wxRendererNative *result = 0 ;
31218
31219 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
31220 {
704eda0c 31221 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 31222 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 31223 {
1bd55598
RD
31224 wxRendererNative &_result_ref = wxRendererNative::Get();
31225 result = (wxRendererNative *) &_result_ref;
36ed4f51 31226 }
1bd55598
RD
31227 wxPyEndAllowThreads(__tstate);
31228 if (PyErr_Occurred()) SWIG_fail;
31229 }
31230 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31231 return resultobj;
31232fail:
31233 return NULL;
31234}
31235
31236
31237SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31238 PyObject *resultobj = 0;
31239 wxRendererNative *result = 0 ;
31240
31241 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
31242 {
704eda0c 31243 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 31244 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 31245 {
1bd55598
RD
31246 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
31247 result = (wxRendererNative *) &_result_ref;
be9b1dca 31248 }
1bd55598
RD
31249 wxPyEndAllowThreads(__tstate);
31250 if (PyErr_Occurred()) SWIG_fail;
31251 }
31252 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31253 return resultobj;
31254fail:
31255 return NULL;
31256}
31257
31258
31259SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31260 PyObject *resultobj = 0;
31261 wxRendererNative *result = 0 ;
31262
31263 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
31264 {
704eda0c 31265 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 31266 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 31267 {
1bd55598
RD
31268 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
31269 result = (wxRendererNative *) &_result_ref;
be9b1dca 31270 }
1bd55598
RD
31271 wxPyEndAllowThreads(__tstate);
31272 if (PyErr_Occurred()) SWIG_fail;
31273 }
31274 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31275 return resultobj;
31276fail:
31277 return NULL;
31278}
31279
31280
31281SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31282 PyObject *resultobj = 0;
31283 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31284 wxRendererNative *result = 0 ;
31285 void *argp1 = 0 ;
31286 int res1 = 0 ;
31287 PyObject * obj0 = 0 ;
31288 char * kwnames[] = {
31289 (char *) "renderer", NULL
31290 };
31291
31292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
31293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31294 if (!SWIG_IsOK(res1)) {
31295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31296 }
31297 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31298 {
704eda0c 31299 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598
RD
31300 PyThreadState* __tstate = wxPyBeginAllowThreads();
31301 result = (wxRendererNative *)wxRendererNative::Set(arg1);
31302 wxPyEndAllowThreads(__tstate);
31303 if (PyErr_Occurred()) SWIG_fail;
31304 }
31305 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31306 return resultobj;
31307fail:
31308 return NULL;
31309}
31310
31311
31312SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31313 PyObject *resultobj = 0;
31314 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31315 SwigValueWrapper<wxRendererVersion > result;
31316 void *argp1 = 0 ;
31317 int res1 = 0 ;
31318 PyObject *swig_obj[1] ;
31319
31320 if (!args) SWIG_fail;
31321 swig_obj[0] = args;
31322 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31323 if (!SWIG_IsOK(res1)) {
31324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
31325 }
31326 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31327 {
31328 PyThreadState* __tstate = wxPyBeginAllowThreads();
31329 result = ((wxRendererNative const *)arg1)->GetVersion();
31330 wxPyEndAllowThreads(__tstate);
31331 if (PyErr_Occurred()) SWIG_fail;
31332 }
31333 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
31334 return resultobj;
31335fail:
31336 return NULL;
31337}
31338
31339
31340SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31341 PyObject *obj;
31342 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31343 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
31344 return SWIG_Py_Void();
31345}
31346
27e45892
RD
31347SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31348 PyObject *resultobj = 0;
31349 wxPseudoDC *result = 0 ;
31350
31351 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
31352 {
31353 PyThreadState* __tstate = wxPyBeginAllowThreads();
31354 result = (wxPseudoDC *)new wxPseudoDC();
31355 wxPyEndAllowThreads(__tstate);
31356 if (PyErr_Occurred()) SWIG_fail;
31357 }
31358 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
31359 return resultobj;
31360fail:
31361 return NULL;
31362}
31363
31364
31365SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31366 PyObject *resultobj = 0;
31367 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31368 void *argp1 = 0 ;
31369 int res1 = 0 ;
31370 PyObject *swig_obj[1] ;
31371
31372 if (!args) SWIG_fail;
31373 swig_obj[0] = args;
31374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31375 if (!SWIG_IsOK(res1)) {
31376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31377 }
31378 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31379 {
31380 PyThreadState* __tstate = wxPyBeginAllowThreads();
31381 (arg1)->BeginDrawing();
31382 wxPyEndAllowThreads(__tstate);
31383 if (PyErr_Occurred()) SWIG_fail;
31384 }
31385 resultobj = SWIG_Py_Void();
31386 return resultobj;
31387fail:
31388 return NULL;
31389}
31390
31391
31392SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31393 PyObject *resultobj = 0;
31394 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31395 void *argp1 = 0 ;
31396 int res1 = 0 ;
31397 PyObject *swig_obj[1] ;
31398
31399 if (!args) SWIG_fail;
31400 swig_obj[0] = args;
31401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31402 if (!SWIG_IsOK(res1)) {
31403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31404 }
31405 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31406 {
31407 PyThreadState* __tstate = wxPyBeginAllowThreads();
31408 (arg1)->EndDrawing();
31409 wxPyEndAllowThreads(__tstate);
31410 if (PyErr_Occurred()) SWIG_fail;
31411 }
31412 resultobj = SWIG_Py_Void();
31413 return resultobj;
31414fail:
31415 return NULL;
31416}
31417
31418
31419SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31420 PyObject *resultobj = 0;
31421 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31422 void *argp1 = 0 ;
31423 int res1 = 0 ;
31424 PyObject *swig_obj[1] ;
31425
31426 if (!args) SWIG_fail;
31427 swig_obj[0] = args;
31428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
31429 if (!SWIG_IsOK(res1)) {
31430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31431 }
31432 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31433 {
31434 PyThreadState* __tstate = wxPyBeginAllowThreads();
31435 delete arg1;
31436
31437 wxPyEndAllowThreads(__tstate);
31438 if (PyErr_Occurred()) SWIG_fail;
31439 }
31440 resultobj = SWIG_Py_Void();
31441 return resultobj;
31442fail:
31443 return NULL;
31444}
31445
31446
31447SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31448 PyObject *resultobj = 0;
31449 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31450 void *argp1 = 0 ;
31451 int res1 = 0 ;
31452 PyObject *swig_obj[1] ;
31453
31454 if (!args) SWIG_fail;
31455 swig_obj[0] = args;
31456 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31457 if (!SWIG_IsOK(res1)) {
31458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31459 }
31460 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31461 {
31462 PyThreadState* __tstate = wxPyBeginAllowThreads();
31463 (arg1)->RemoveAll();
31464 wxPyEndAllowThreads(__tstate);
31465 if (PyErr_Occurred()) SWIG_fail;
31466 }
31467 resultobj = SWIG_Py_Void();
31468 return resultobj;
31469fail:
31470 return NULL;
31471}
31472
31473
31474SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31475 PyObject *resultobj = 0;
31476 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31477 int result;
31478 void *argp1 = 0 ;
31479 int res1 = 0 ;
31480 PyObject *swig_obj[1] ;
31481
31482 if (!args) SWIG_fail;
31483 swig_obj[0] = args;
31484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31485 if (!SWIG_IsOK(res1)) {
31486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31487 }
31488 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31489 {
31490 PyThreadState* __tstate = wxPyBeginAllowThreads();
31491 result = (int)(arg1)->GetLen();
31492 wxPyEndAllowThreads(__tstate);
31493 if (PyErr_Occurred()) SWIG_fail;
31494 }
31495 resultobj = SWIG_From_int(static_cast< int >(result));
31496 return resultobj;
31497fail:
31498 return NULL;
31499}
31500
31501
31502SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31503 PyObject *resultobj = 0;
31504 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31505 int arg2 ;
31506 void *argp1 = 0 ;
31507 int res1 = 0 ;
31508 int val2 ;
31509 int ecode2 = 0 ;
31510 PyObject * obj0 = 0 ;
31511 PyObject * obj1 = 0 ;
31512 char * kwnames[] = {
31513 (char *) "self",(char *) "id", NULL
31514 };
31515
31516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
31517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31518 if (!SWIG_IsOK(res1)) {
31519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31520 }
31521 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31522 ecode2 = SWIG_AsVal_int(obj1, &val2);
31523 if (!SWIG_IsOK(ecode2)) {
31524 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
31525 }
31526 arg2 = static_cast< int >(val2);
31527 {
31528 PyThreadState* __tstate = wxPyBeginAllowThreads();
31529 (arg1)->SetId(arg2);
31530 wxPyEndAllowThreads(__tstate);
31531 if (PyErr_Occurred()) SWIG_fail;
31532 }
31533 resultobj = SWIG_Py_Void();
31534 return resultobj;
31535fail:
31536 return NULL;
31537}
31538
31539
31540SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31541 PyObject *resultobj = 0;
31542 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31543 int arg2 ;
31544 void *argp1 = 0 ;
31545 int res1 = 0 ;
31546 int val2 ;
31547 int ecode2 = 0 ;
31548 PyObject * obj0 = 0 ;
31549 PyObject * obj1 = 0 ;
31550 char * kwnames[] = {
31551 (char *) "self",(char *) "id", NULL
31552 };
31553
31554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
31555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31556 if (!SWIG_IsOK(res1)) {
31557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31558 }
31559 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31560 ecode2 = SWIG_AsVal_int(obj1, &val2);
31561 if (!SWIG_IsOK(ecode2)) {
31562 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
31563 }
31564 arg2 = static_cast< int >(val2);
31565 {
31566 PyThreadState* __tstate = wxPyBeginAllowThreads();
31567 (arg1)->ClearId(arg2);
31568 wxPyEndAllowThreads(__tstate);
31569 if (PyErr_Occurred()) SWIG_fail;
31570 }
31571 resultobj = SWIG_Py_Void();
31572 return resultobj;
31573fail:
31574 return NULL;
31575}
31576
31577
31578SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31579 PyObject *resultobj = 0;
31580 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31581 int arg2 ;
31582 void *argp1 = 0 ;
31583 int res1 = 0 ;
31584 int val2 ;
31585 int ecode2 = 0 ;
31586 PyObject * obj0 = 0 ;
31587 PyObject * obj1 = 0 ;
31588 char * kwnames[] = {
31589 (char *) "self",(char *) "id", NULL
31590 };
31591
31592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
31593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31594 if (!SWIG_IsOK(res1)) {
31595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31596 }
31597 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31598 ecode2 = SWIG_AsVal_int(obj1, &val2);
31599 if (!SWIG_IsOK(ecode2)) {
31600 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
31601 }
31602 arg2 = static_cast< int >(val2);
31603 {
31604 PyThreadState* __tstate = wxPyBeginAllowThreads();
31605 (arg1)->RemoveId(arg2);
31606 wxPyEndAllowThreads(__tstate);
31607 if (PyErr_Occurred()) SWIG_fail;
31608 }
31609 resultobj = SWIG_Py_Void();
31610 return resultobj;
31611fail:
31612 return NULL;
31613}
31614
31615
31616SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31617 PyObject *resultobj = 0;
31618 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31619 int arg2 ;
31620 int arg3 ;
31621 int arg4 ;
31622 void *argp1 = 0 ;
31623 int res1 = 0 ;
31624 int val2 ;
31625 int ecode2 = 0 ;
31626 int val3 ;
31627 int ecode3 = 0 ;
31628 int val4 ;
31629 int ecode4 = 0 ;
31630 PyObject * obj0 = 0 ;
31631 PyObject * obj1 = 0 ;
31632 PyObject * obj2 = 0 ;
31633 PyObject * obj3 = 0 ;
31634 char * kwnames[] = {
31635 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
31636 };
31637
31638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31640 if (!SWIG_IsOK(res1)) {
31641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31642 }
31643 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31644 ecode2 = SWIG_AsVal_int(obj1, &val2);
31645 if (!SWIG_IsOK(ecode2)) {
31646 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
31647 }
31648 arg2 = static_cast< int >(val2);
31649 ecode3 = SWIG_AsVal_int(obj2, &val3);
31650 if (!SWIG_IsOK(ecode3)) {
31651 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
31652 }
31653 arg3 = static_cast< int >(val3);
31654 ecode4 = SWIG_AsVal_int(obj3, &val4);
31655 if (!SWIG_IsOK(ecode4)) {
31656 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
31657 }
31658 arg4 = static_cast< int >(val4);
31659 {
31660 PyThreadState* __tstate = wxPyBeginAllowThreads();
31661 (arg1)->TranslateId(arg2,arg3,arg4);
31662 wxPyEndAllowThreads(__tstate);
31663 if (PyErr_Occurred()) SWIG_fail;
31664 }
31665 resultobj = SWIG_Py_Void();
31666 return resultobj;
31667fail:
31668 return NULL;
31669}
31670
31671
72ef6efb
RD
31672SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31673 PyObject *resultobj = 0;
31674 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31675 int arg2 ;
31676 bool arg3 = (bool) true ;
31677 void *argp1 = 0 ;
31678 int res1 = 0 ;
31679 int val2 ;
31680 int ecode2 = 0 ;
31681 bool val3 ;
31682 int ecode3 = 0 ;
31683 PyObject * obj0 = 0 ;
31684 PyObject * obj1 = 0 ;
31685 PyObject * obj2 = 0 ;
31686 char * kwnames[] = {
31687 (char *) "self",(char *) "id",(char *) "greyout", NULL
31688 };
31689
31690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31692 if (!SWIG_IsOK(res1)) {
31693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31694 }
31695 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31696 ecode2 = SWIG_AsVal_int(obj1, &val2);
31697 if (!SWIG_IsOK(ecode2)) {
31698 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
31699 }
31700 arg2 = static_cast< int >(val2);
31701 if (obj2) {
31702 ecode3 = SWIG_AsVal_bool(obj2, &val3);
31703 if (!SWIG_IsOK(ecode3)) {
31704 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
31705 }
31706 arg3 = static_cast< bool >(val3);
31707 }
31708 {
31709 PyThreadState* __tstate = wxPyBeginAllowThreads();
31710 (arg1)->SetIdGreyedOut(arg2,arg3);
31711 wxPyEndAllowThreads(__tstate);
31712 if (PyErr_Occurred()) SWIG_fail;
31713 }
31714 resultobj = SWIG_Py_Void();
31715 return resultobj;
31716fail:
31717 return NULL;
31718}
31719
31720
31721SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31722 PyObject *resultobj = 0;
31723 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31724 int arg2 ;
31725 bool result;
31726 void *argp1 = 0 ;
31727 int res1 = 0 ;
31728 int val2 ;
31729 int ecode2 = 0 ;
31730 PyObject * obj0 = 0 ;
31731 PyObject * obj1 = 0 ;
31732 char * kwnames[] = {
31733 (char *) "self",(char *) "id", NULL
31734 };
31735
31736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
31737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31738 if (!SWIG_IsOK(res1)) {
31739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31740 }
31741 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31742 ecode2 = SWIG_AsVal_int(obj1, &val2);
31743 if (!SWIG_IsOK(ecode2)) {
31744 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
31745 }
31746 arg2 = static_cast< int >(val2);
31747 {
31748 PyThreadState* __tstate = wxPyBeginAllowThreads();
31749 result = (bool)(arg1)->GetIdGreyedOut(arg2);
31750 wxPyEndAllowThreads(__tstate);
31751 if (PyErr_Occurred()) SWIG_fail;
31752 }
31753 {
31754 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31755 }
31756 return resultobj;
31757fail:
31758 return NULL;
31759}
31760
31761
31762SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31763 PyObject *resultobj = 0;
31764 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31765 int arg2 ;
31766 int arg3 ;
31767 int arg4 = (int) 1 ;
31768 wxColor const &arg5_defvalue = *wxWHITE ;
31769 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
31770 PyObject *result = 0 ;
31771 void *argp1 = 0 ;
31772 int res1 = 0 ;
31773 int val2 ;
31774 int ecode2 = 0 ;
31775 int val3 ;
31776 int ecode3 = 0 ;
31777 int val4 ;
31778 int ecode4 = 0 ;
31779 void *argp5 = 0 ;
31780 int res5 = 0 ;
31781 PyObject * obj0 = 0 ;
31782 PyObject * obj1 = 0 ;
31783 PyObject * obj2 = 0 ;
31784 PyObject * obj3 = 0 ;
31785 PyObject * obj4 = 0 ;
31786 char * kwnames[] = {
31787 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
31788 };
31789
31790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31792 if (!SWIG_IsOK(res1)) {
31793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31794 }
31795 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31796 ecode2 = SWIG_AsVal_int(obj1, &val2);
31797 if (!SWIG_IsOK(ecode2)) {
31798 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
31799 }
31800 arg2 = static_cast< int >(val2);
31801 ecode3 = SWIG_AsVal_int(obj2, &val3);
31802 if (!SWIG_IsOK(ecode3)) {
31803 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
31804 }
31805 arg3 = static_cast< int >(val3);
31806 if (obj3) {
31807 ecode4 = SWIG_AsVal_int(obj3, &val4);
31808 if (!SWIG_IsOK(ecode4)) {
31809 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
31810 }
31811 arg4 = static_cast< int >(val4);
31812 }
31813 if (obj4) {
31814 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
31815 if (!SWIG_IsOK(res5)) {
31816 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
31817 }
31818 if (!argp5) {
31819 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
31820 }
31821 arg5 = reinterpret_cast< wxColor * >(argp5);
31822 }
31823 {
31824 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
31825 if (PyErr_Occurred()) SWIG_fail;
31826 }
31827 resultobj = result;
31828 return resultobj;
31829fail:
31830 return NULL;
31831}
31832
31833
31834SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31835 PyObject *resultobj = 0;
31836 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31837 int arg2 ;
31838 int arg3 ;
31839 PyObject *result = 0 ;
31840 void *argp1 = 0 ;
31841 int res1 = 0 ;
31842 int val2 ;
31843 int ecode2 = 0 ;
31844 int val3 ;
31845 int ecode3 = 0 ;
31846 PyObject * obj0 = 0 ;
31847 PyObject * obj1 = 0 ;
31848 PyObject * obj2 = 0 ;
31849 char * kwnames[] = {
31850 (char *) "self",(char *) "x",(char *) "y", NULL
31851 };
31852
31853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31855 if (!SWIG_IsOK(res1)) {
31856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31857 }
31858 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31859 ecode2 = SWIG_AsVal_int(obj1, &val2);
31860 if (!SWIG_IsOK(ecode2)) {
31861 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
31862 }
31863 arg2 = static_cast< int >(val2);
31864 ecode3 = SWIG_AsVal_int(obj2, &val3);
31865 if (!SWIG_IsOK(ecode3)) {
31866 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
31867 }
31868 arg3 = static_cast< int >(val3);
31869 {
31870 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
31871 if (PyErr_Occurred()) SWIG_fail;
31872 }
31873 resultobj = result;
31874 return resultobj;
31875fail:
31876 return NULL;
31877}
31878
31879
27e45892
RD
31880SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31881 PyObject *resultobj = 0;
31882 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31883 int arg2 ;
31884 wxDC *arg3 = (wxDC *) 0 ;
31885 void *argp1 = 0 ;
31886 int res1 = 0 ;
31887 int val2 ;
31888 int ecode2 = 0 ;
31889 void *argp3 = 0 ;
31890 int res3 = 0 ;
31891 PyObject * obj0 = 0 ;
31892 PyObject * obj1 = 0 ;
31893 PyObject * obj2 = 0 ;
31894 char * kwnames[] = {
31895 (char *) "self",(char *) "id",(char *) "dc", NULL
31896 };
31897
31898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31900 if (!SWIG_IsOK(res1)) {
31901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31902 }
31903 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31904 ecode2 = SWIG_AsVal_int(obj1, &val2);
31905 if (!SWIG_IsOK(ecode2)) {
31906 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
31907 }
31908 arg2 = static_cast< int >(val2);
31909 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
31910 if (!SWIG_IsOK(res3)) {
31911 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
31912 }
31913 arg3 = reinterpret_cast< wxDC * >(argp3);
31914 {
31915 PyThreadState* __tstate = wxPyBeginAllowThreads();
31916 (arg1)->DrawIdToDC(arg2,arg3);
31917 wxPyEndAllowThreads(__tstate);
31918 if (PyErr_Occurred()) SWIG_fail;
31919 }
31920 resultobj = SWIG_Py_Void();
31921 return resultobj;
31922fail:
31923 return NULL;
31924}
31925
31926
31927SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31928 PyObject *resultobj = 0;
31929 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31930 int arg2 ;
31931 wxRect *arg3 = 0 ;
31932 void *argp1 = 0 ;
31933 int res1 = 0 ;
31934 int val2 ;
31935 int ecode2 = 0 ;
31936 wxRect temp3 ;
31937 PyObject * obj0 = 0 ;
31938 PyObject * obj1 = 0 ;
31939 PyObject * obj2 = 0 ;
31940 char * kwnames[] = {
31941 (char *) "self",(char *) "id",(char *) "rect", NULL
31942 };
31943
31944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31946 if (!SWIG_IsOK(res1)) {
31947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31948 }
31949 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31950 ecode2 = SWIG_AsVal_int(obj1, &val2);
31951 if (!SWIG_IsOK(ecode2)) {
31952 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
31953 }
31954 arg2 = static_cast< int >(val2);
31955 {
31956 arg3 = &temp3;
31957 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
31958 }
31959 {
31960 PyThreadState* __tstate = wxPyBeginAllowThreads();
31961 (arg1)->SetIdBounds(arg2,*arg3);
31962 wxPyEndAllowThreads(__tstate);
31963 if (PyErr_Occurred()) SWIG_fail;
31964 }
31965 resultobj = SWIG_Py_Void();
31966 return resultobj;
31967fail:
31968 return NULL;
31969}
31970
31971
31972SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31973 PyObject *resultobj = 0;
31974 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31975 int arg2 ;
31976 wxRect result;
31977 void *argp1 = 0 ;
31978 int res1 = 0 ;
31979 int val2 ;
31980 int ecode2 = 0 ;
31981 PyObject * obj0 = 0 ;
31982 PyObject * obj1 = 0 ;
31983 char * kwnames[] = {
31984 (char *) "self",(char *) "id", NULL
31985 };
31986
31987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
31988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31989 if (!SWIG_IsOK(res1)) {
31990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31991 }
31992 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31993 ecode2 = SWIG_AsVal_int(obj1, &val2);
31994 if (!SWIG_IsOK(ecode2)) {
31995 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
31996 }
31997 arg2 = static_cast< int >(val2);
31998 {
31999 PyThreadState* __tstate = wxPyBeginAllowThreads();
32000 result = wxPseudoDC_GetIdBounds(arg1,arg2);
32001 wxPyEndAllowThreads(__tstate);
32002 if (PyErr_Occurred()) SWIG_fail;
32003 }
32004 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
32005 return resultobj;
32006fail:
32007 return NULL;
32008}
32009
32010
32011SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32012 PyObject *resultobj = 0;
32013 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32014 wxDC *arg2 = (wxDC *) 0 ;
32015 wxRect *arg3 = 0 ;
32016 void *argp1 = 0 ;
32017 int res1 = 0 ;
32018 void *argp2 = 0 ;
32019 int res2 = 0 ;
32020 wxRect temp3 ;
32021 PyObject * obj0 = 0 ;
32022 PyObject * obj1 = 0 ;
32023 PyObject * obj2 = 0 ;
32024 char * kwnames[] = {
32025 (char *) "self",(char *) "dc",(char *) "rect", NULL
32026 };
32027
32028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32030 if (!SWIG_IsOK(res1)) {
32031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32032 }
32033 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32034 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
32035 if (!SWIG_IsOK(res2)) {
32036 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
32037 }
32038 arg2 = reinterpret_cast< wxDC * >(argp2);
32039 {
32040 arg3 = &temp3;
32041 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
32042 }
32043 {
32044 PyThreadState* __tstate = wxPyBeginAllowThreads();
32045 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
32046 wxPyEndAllowThreads(__tstate);
32047 if (PyErr_Occurred()) SWIG_fail;
32048 }
32049 resultobj = SWIG_Py_Void();
32050 return resultobj;
32051fail:
32052 return NULL;
32053}
32054
32055
32056SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32057 PyObject *resultobj = 0;
32058 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32059 wxDC *arg2 = (wxDC *) 0 ;
32060 wxRegion *arg3 = 0 ;
32061 void *argp1 = 0 ;
32062 int res1 = 0 ;
32063 void *argp2 = 0 ;
32064 int res2 = 0 ;
32065 void *argp3 = 0 ;
32066 int res3 = 0 ;
32067 PyObject * obj0 = 0 ;
32068 PyObject * obj1 = 0 ;
32069 PyObject * obj2 = 0 ;
32070 char * kwnames[] = {
32071 (char *) "self",(char *) "dc",(char *) "region", NULL
32072 };
32073
32074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32076 if (!SWIG_IsOK(res1)) {
32077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32078 }
32079 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32080 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
32081 if (!SWIG_IsOK(res2)) {
32082 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
32083 }
32084 arg2 = reinterpret_cast< wxDC * >(argp2);
32085 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
32086 if (!SWIG_IsOK(res3)) {
32087 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
32088 }
32089 if (!argp3) {
32090 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
32091 }
32092 arg3 = reinterpret_cast< wxRegion * >(argp3);
32093 {
32094 PyThreadState* __tstate = wxPyBeginAllowThreads();
32095 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
32096 wxPyEndAllowThreads(__tstate);
32097 if (PyErr_Occurred()) SWIG_fail;
32098 }
32099 resultobj = SWIG_Py_Void();
32100 return resultobj;
32101fail:
32102 return NULL;
32103}
32104
32105
32106SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32107 PyObject *resultobj = 0;
32108 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32109 wxDC *arg2 = (wxDC *) 0 ;
32110 void *argp1 = 0 ;
32111 int res1 = 0 ;
32112 void *argp2 = 0 ;
32113 int res2 = 0 ;
32114 PyObject * obj0 = 0 ;
32115 PyObject * obj1 = 0 ;
32116 char * kwnames[] = {
32117 (char *) "self",(char *) "dc", NULL
32118 };
32119
32120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
32121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32122 if (!SWIG_IsOK(res1)) {
32123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32124 }
32125 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32126 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
32127 if (!SWIG_IsOK(res2)) {
32128 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
32129 }
32130 arg2 = reinterpret_cast< wxDC * >(argp2);
32131 {
32132 PyThreadState* __tstate = wxPyBeginAllowThreads();
32133 (arg1)->DrawToDC(arg2);
32134 wxPyEndAllowThreads(__tstate);
32135 if (PyErr_Occurred()) SWIG_fail;
32136 }
32137 resultobj = SWIG_Py_Void();
32138 return resultobj;
32139fail:
32140 return NULL;
32141}
32142
32143
32144SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32145 PyObject *resultobj = 0;
32146 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32147 int arg2 ;
32148 int arg3 ;
32149 wxColour *arg4 = 0 ;
32150 int arg5 = (int) wxFLOOD_SURFACE ;
32151 void *argp1 = 0 ;
32152 int res1 = 0 ;
32153 int val2 ;
32154 int ecode2 = 0 ;
32155 int val3 ;
32156 int ecode3 = 0 ;
32157 wxColour temp4 ;
32158 int val5 ;
32159 int ecode5 = 0 ;
32160 PyObject * obj0 = 0 ;
32161 PyObject * obj1 = 0 ;
32162 PyObject * obj2 = 0 ;
32163 PyObject * obj3 = 0 ;
32164 PyObject * obj4 = 0 ;
32165 char * kwnames[] = {
32166 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
32167 };
32168
32169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32171 if (!SWIG_IsOK(res1)) {
32172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32173 }
32174 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32175 ecode2 = SWIG_AsVal_int(obj1, &val2);
32176 if (!SWIG_IsOK(ecode2)) {
32177 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
32178 }
32179 arg2 = static_cast< int >(val2);
32180 ecode3 = SWIG_AsVal_int(obj2, &val3);
32181 if (!SWIG_IsOK(ecode3)) {
32182 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
32183 }
32184 arg3 = static_cast< int >(val3);
32185 {
32186 arg4 = &temp4;
32187 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
32188 }
32189 if (obj4) {
32190 ecode5 = SWIG_AsVal_int(obj4, &val5);
32191 if (!SWIG_IsOK(ecode5)) {
32192 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
32193 }
32194 arg5 = static_cast< int >(val5);
32195 }
32196 {
32197 PyThreadState* __tstate = wxPyBeginAllowThreads();
32198 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
32199 wxPyEndAllowThreads(__tstate);
32200 if (PyErr_Occurred()) SWIG_fail;
32201 }
32202 resultobj = SWIG_Py_Void();
32203 return resultobj;
32204fail:
32205 return NULL;
32206}
32207
32208
32209SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32210 PyObject *resultobj = 0;
32211 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32212 wxPoint *arg2 = 0 ;
32213 wxColour *arg3 = 0 ;
32214 int arg4 = (int) wxFLOOD_SURFACE ;
32215 void *argp1 = 0 ;
32216 int res1 = 0 ;
32217 wxPoint temp2 ;
32218 wxColour temp3 ;
32219 int val4 ;
32220 int ecode4 = 0 ;
32221 PyObject * obj0 = 0 ;
32222 PyObject * obj1 = 0 ;
32223 PyObject * obj2 = 0 ;
32224 PyObject * obj3 = 0 ;
32225 char * kwnames[] = {
32226 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
32227 };
32228
32229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32231 if (!SWIG_IsOK(res1)) {
32232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32233 }
32234 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32235 {
32236 arg2 = &temp2;
32237 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32238 }
32239 {
32240 arg3 = &temp3;
32241 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32242 }
32243 if (obj3) {
32244 ecode4 = SWIG_AsVal_int(obj3, &val4);
32245 if (!SWIG_IsOK(ecode4)) {
32246 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
32247 }
32248 arg4 = static_cast< int >(val4);
32249 }
32250 {
32251 PyThreadState* __tstate = wxPyBeginAllowThreads();
32252 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
32253 wxPyEndAllowThreads(__tstate);
32254 if (PyErr_Occurred()) SWIG_fail;
32255 }
32256 resultobj = SWIG_Py_Void();
32257 return resultobj;
32258fail:
32259 return NULL;
32260}
32261
32262
32263SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32264 PyObject *resultobj = 0;
32265 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32266 int arg2 ;
32267 int arg3 ;
32268 int arg4 ;
32269 int arg5 ;
32270 void *argp1 = 0 ;
32271 int res1 = 0 ;
32272 int val2 ;
32273 int ecode2 = 0 ;
32274 int val3 ;
32275 int ecode3 = 0 ;
32276 int val4 ;
32277 int ecode4 = 0 ;
32278 int val5 ;
32279 int ecode5 = 0 ;
32280 PyObject * obj0 = 0 ;
32281 PyObject * obj1 = 0 ;
32282 PyObject * obj2 = 0 ;
32283 PyObject * obj3 = 0 ;
32284 PyObject * obj4 = 0 ;
32285 char * kwnames[] = {
32286 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
32287 };
32288
32289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32291 if (!SWIG_IsOK(res1)) {
32292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32293 }
32294 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32295 ecode2 = SWIG_AsVal_int(obj1, &val2);
32296 if (!SWIG_IsOK(ecode2)) {
32297 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
32298 }
32299 arg2 = static_cast< int >(val2);
32300 ecode3 = SWIG_AsVal_int(obj2, &val3);
32301 if (!SWIG_IsOK(ecode3)) {
32302 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
32303 }
32304 arg3 = static_cast< int >(val3);
32305 ecode4 = SWIG_AsVal_int(obj3, &val4);
32306 if (!SWIG_IsOK(ecode4)) {
32307 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
32308 }
32309 arg4 = static_cast< int >(val4);
32310 ecode5 = SWIG_AsVal_int(obj4, &val5);
32311 if (!SWIG_IsOK(ecode5)) {
32312 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
32313 }
32314 arg5 = static_cast< int >(val5);
32315 {
32316 PyThreadState* __tstate = wxPyBeginAllowThreads();
32317 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
32318 wxPyEndAllowThreads(__tstate);
32319 if (PyErr_Occurred()) SWIG_fail;
32320 }
32321 resultobj = SWIG_Py_Void();
32322 return resultobj;
32323fail:
32324 return NULL;
32325}
32326
32327
32328SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32329 PyObject *resultobj = 0;
32330 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32331 wxPoint *arg2 = 0 ;
32332 wxPoint *arg3 = 0 ;
32333 void *argp1 = 0 ;
32334 int res1 = 0 ;
32335 wxPoint temp2 ;
32336 wxPoint temp3 ;
32337 PyObject * obj0 = 0 ;
32338 PyObject * obj1 = 0 ;
32339 PyObject * obj2 = 0 ;
32340 char * kwnames[] = {
32341 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
32342 };
32343
32344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32346 if (!SWIG_IsOK(res1)) {
32347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32348 }
32349 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32350 {
32351 arg2 = &temp2;
32352 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32353 }
32354 {
32355 arg3 = &temp3;
32356 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32357 }
32358 {
32359 PyThreadState* __tstate = wxPyBeginAllowThreads();
32360 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
32361 wxPyEndAllowThreads(__tstate);
32362 if (PyErr_Occurred()) SWIG_fail;
32363 }
32364 resultobj = SWIG_Py_Void();
32365 return resultobj;
32366fail:
32367 return NULL;
32368}
32369
32370
32371SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32372 PyObject *resultobj = 0;
32373 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32374 int arg2 ;
32375 int arg3 ;
32376 void *argp1 = 0 ;
32377 int res1 = 0 ;
32378 int val2 ;
32379 int ecode2 = 0 ;
32380 int val3 ;
32381 int ecode3 = 0 ;
32382 PyObject * obj0 = 0 ;
32383 PyObject * obj1 = 0 ;
32384 PyObject * obj2 = 0 ;
32385 char * kwnames[] = {
32386 (char *) "self",(char *) "x",(char *) "y", NULL
32387 };
32388
32389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32391 if (!SWIG_IsOK(res1)) {
32392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32393 }
32394 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32395 ecode2 = SWIG_AsVal_int(obj1, &val2);
32396 if (!SWIG_IsOK(ecode2)) {
32397 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
32398 }
32399 arg2 = static_cast< int >(val2);
32400 ecode3 = SWIG_AsVal_int(obj2, &val3);
32401 if (!SWIG_IsOK(ecode3)) {
32402 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
32403 }
32404 arg3 = static_cast< int >(val3);
32405 {
32406 PyThreadState* __tstate = wxPyBeginAllowThreads();
32407 (arg1)->CrossHair(arg2,arg3);
32408 wxPyEndAllowThreads(__tstate);
32409 if (PyErr_Occurred()) SWIG_fail;
32410 }
32411 resultobj = SWIG_Py_Void();
32412 return resultobj;
32413fail:
32414 return NULL;
32415}
32416
32417
32418SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32419 PyObject *resultobj = 0;
32420 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32421 wxPoint *arg2 = 0 ;
32422 void *argp1 = 0 ;
32423 int res1 = 0 ;
32424 wxPoint temp2 ;
32425 PyObject * obj0 = 0 ;
32426 PyObject * obj1 = 0 ;
32427 char * kwnames[] = {
32428 (char *) "self",(char *) "pt", NULL
32429 };
32430
32431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
32432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32433 if (!SWIG_IsOK(res1)) {
32434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32435 }
32436 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32437 {
32438 arg2 = &temp2;
32439 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32440 }
32441 {
32442 PyThreadState* __tstate = wxPyBeginAllowThreads();
32443 (arg1)->CrossHair((wxPoint const &)*arg2);
32444 wxPyEndAllowThreads(__tstate);
32445 if (PyErr_Occurred()) SWIG_fail;
32446 }
32447 resultobj = SWIG_Py_Void();
32448 return resultobj;
32449fail:
32450 return NULL;
32451}
32452
32453
32454SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32455 PyObject *resultobj = 0;
32456 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32457 int arg2 ;
32458 int arg3 ;
32459 int arg4 ;
32460 int arg5 ;
32461 int arg6 ;
32462 int arg7 ;
32463 void *argp1 = 0 ;
32464 int res1 = 0 ;
32465 int val2 ;
32466 int ecode2 = 0 ;
32467 int val3 ;
32468 int ecode3 = 0 ;
32469 int val4 ;
32470 int ecode4 = 0 ;
32471 int val5 ;
32472 int ecode5 = 0 ;
32473 int val6 ;
32474 int ecode6 = 0 ;
32475 int val7 ;
32476 int ecode7 = 0 ;
32477 PyObject * obj0 = 0 ;
32478 PyObject * obj1 = 0 ;
32479 PyObject * obj2 = 0 ;
32480 PyObject * obj3 = 0 ;
32481 PyObject * obj4 = 0 ;
32482 PyObject * obj5 = 0 ;
32483 PyObject * obj6 = 0 ;
32484 char * kwnames[] = {
32485 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
32486 };
32487
32488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32490 if (!SWIG_IsOK(res1)) {
32491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32492 }
32493 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32494 ecode2 = SWIG_AsVal_int(obj1, &val2);
32495 if (!SWIG_IsOK(ecode2)) {
32496 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
32497 }
32498 arg2 = static_cast< int >(val2);
32499 ecode3 = SWIG_AsVal_int(obj2, &val3);
32500 if (!SWIG_IsOK(ecode3)) {
32501 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
32502 }
32503 arg3 = static_cast< int >(val3);
32504 ecode4 = SWIG_AsVal_int(obj3, &val4);
32505 if (!SWIG_IsOK(ecode4)) {
32506 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
32507 }
32508 arg4 = static_cast< int >(val4);
32509 ecode5 = SWIG_AsVal_int(obj4, &val5);
32510 if (!SWIG_IsOK(ecode5)) {
32511 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
32512 }
32513 arg5 = static_cast< int >(val5);
32514 ecode6 = SWIG_AsVal_int(obj5, &val6);
32515 if (!SWIG_IsOK(ecode6)) {
32516 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
32517 }
32518 arg6 = static_cast< int >(val6);
32519 ecode7 = SWIG_AsVal_int(obj6, &val7);
32520 if (!SWIG_IsOK(ecode7)) {
32521 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
32522 }
32523 arg7 = static_cast< int >(val7);
32524 {
32525 PyThreadState* __tstate = wxPyBeginAllowThreads();
32526 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
32527 wxPyEndAllowThreads(__tstate);
32528 if (PyErr_Occurred()) SWIG_fail;
32529 }
32530 resultobj = SWIG_Py_Void();
32531 return resultobj;
32532fail:
32533 return NULL;
32534}
32535
32536
32537SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32538 PyObject *resultobj = 0;
32539 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32540 wxPoint *arg2 = 0 ;
32541 wxPoint *arg3 = 0 ;
32542 wxPoint *arg4 = 0 ;
32543 void *argp1 = 0 ;
32544 int res1 = 0 ;
32545 wxPoint temp2 ;
32546 wxPoint temp3 ;
32547 wxPoint temp4 ;
32548 PyObject * obj0 = 0 ;
32549 PyObject * obj1 = 0 ;
32550 PyObject * obj2 = 0 ;
32551 PyObject * obj3 = 0 ;
32552 char * kwnames[] = {
32553 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
32554 };
32555
32556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32558 if (!SWIG_IsOK(res1)) {
32559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32560 }
32561 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32562 {
32563 arg2 = &temp2;
32564 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32565 }
32566 {
32567 arg3 = &temp3;
32568 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32569 }
32570 {
32571 arg4 = &temp4;
32572 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
32573 }
32574 {
32575 PyThreadState* __tstate = wxPyBeginAllowThreads();
32576 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
32577 wxPyEndAllowThreads(__tstate);
32578 if (PyErr_Occurred()) SWIG_fail;
32579 }
32580 resultobj = SWIG_Py_Void();
32581 return resultobj;
32582fail:
32583 return NULL;
32584}
32585
32586
32587SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32588 PyObject *resultobj = 0;
32589 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32590 int arg2 ;
32591 int arg3 ;
32592 int arg4 ;
32593 int arg5 ;
32594 void *argp1 = 0 ;
32595 int res1 = 0 ;
32596 int val2 ;
32597 int ecode2 = 0 ;
32598 int val3 ;
32599 int ecode3 = 0 ;
32600 int val4 ;
32601 int ecode4 = 0 ;
32602 int val5 ;
32603 int ecode5 = 0 ;
32604 PyObject * obj0 = 0 ;
32605 PyObject * obj1 = 0 ;
32606 PyObject * obj2 = 0 ;
32607 PyObject * obj3 = 0 ;
32608 PyObject * obj4 = 0 ;
32609 char * kwnames[] = {
32610 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
32611 };
32612
32613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32615 if (!SWIG_IsOK(res1)) {
32616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32617 }
32618 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32619 ecode2 = SWIG_AsVal_int(obj1, &val2);
32620 if (!SWIG_IsOK(ecode2)) {
32621 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
32622 }
32623 arg2 = static_cast< int >(val2);
32624 ecode3 = SWIG_AsVal_int(obj2, &val3);
32625 if (!SWIG_IsOK(ecode3)) {
32626 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
32627 }
32628 arg3 = static_cast< int >(val3);
32629 ecode4 = SWIG_AsVal_int(obj3, &val4);
32630 if (!SWIG_IsOK(ecode4)) {
32631 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
32632 }
32633 arg4 = static_cast< int >(val4);
32634 ecode5 = SWIG_AsVal_int(obj4, &val5);
32635 if (!SWIG_IsOK(ecode5)) {
32636 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
32637 }
32638 arg5 = static_cast< int >(val5);
32639 {
32640 PyThreadState* __tstate = wxPyBeginAllowThreads();
32641 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
32642 wxPyEndAllowThreads(__tstate);
32643 if (PyErr_Occurred()) SWIG_fail;
32644 }
32645 resultobj = SWIG_Py_Void();
32646 return resultobj;
32647fail:
32648 return NULL;
32649}
32650
32651
32652SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32653 PyObject *resultobj = 0;
32654 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32655 wxRect *arg2 = 0 ;
32656 void *argp1 = 0 ;
32657 int res1 = 0 ;
32658 wxRect temp2 ;
32659 PyObject * obj0 = 0 ;
32660 PyObject * obj1 = 0 ;
32661 char * kwnames[] = {
32662 (char *) "self",(char *) "rect", NULL
32663 };
32664
32665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
32666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32667 if (!SWIG_IsOK(res1)) {
32668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32669 }
32670 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32671 {
32672 arg2 = &temp2;
32673 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32674 }
32675 {
32676 PyThreadState* __tstate = wxPyBeginAllowThreads();
32677 (arg1)->DrawCheckMark((wxRect const &)*arg2);
32678 wxPyEndAllowThreads(__tstate);
32679 if (PyErr_Occurred()) SWIG_fail;
32680 }
32681 resultobj = SWIG_Py_Void();
32682 return resultobj;
32683fail:
32684 return NULL;
32685}
32686
32687
32688SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32689 PyObject *resultobj = 0;
32690 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32691 int arg2 ;
32692 int arg3 ;
32693 int arg4 ;
32694 int arg5 ;
32695 double arg6 ;
32696 double arg7 ;
32697 void *argp1 = 0 ;
32698 int res1 = 0 ;
32699 int val2 ;
32700 int ecode2 = 0 ;
32701 int val3 ;
32702 int ecode3 = 0 ;
32703 int val4 ;
32704 int ecode4 = 0 ;
32705 int val5 ;
32706 int ecode5 = 0 ;
32707 double val6 ;
32708 int ecode6 = 0 ;
32709 double val7 ;
32710 int ecode7 = 0 ;
32711 PyObject * obj0 = 0 ;
32712 PyObject * obj1 = 0 ;
32713 PyObject * obj2 = 0 ;
32714 PyObject * obj3 = 0 ;
32715 PyObject * obj4 = 0 ;
32716 PyObject * obj5 = 0 ;
32717 PyObject * obj6 = 0 ;
32718 char * kwnames[] = {
32719 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
32720 };
32721
32722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32724 if (!SWIG_IsOK(res1)) {
32725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32726 }
32727 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32728 ecode2 = SWIG_AsVal_int(obj1, &val2);
32729 if (!SWIG_IsOK(ecode2)) {
32730 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
32731 }
32732 arg2 = static_cast< int >(val2);
32733 ecode3 = SWIG_AsVal_int(obj2, &val3);
32734 if (!SWIG_IsOK(ecode3)) {
32735 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
32736 }
32737 arg3 = static_cast< int >(val3);
32738 ecode4 = SWIG_AsVal_int(obj3, &val4);
32739 if (!SWIG_IsOK(ecode4)) {
32740 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
32741 }
32742 arg4 = static_cast< int >(val4);
32743 ecode5 = SWIG_AsVal_int(obj4, &val5);
32744 if (!SWIG_IsOK(ecode5)) {
32745 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
32746 }
32747 arg5 = static_cast< int >(val5);
32748 ecode6 = SWIG_AsVal_double(obj5, &val6);
32749 if (!SWIG_IsOK(ecode6)) {
32750 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
32751 }
32752 arg6 = static_cast< double >(val6);
32753 ecode7 = SWIG_AsVal_double(obj6, &val7);
32754 if (!SWIG_IsOK(ecode7)) {
32755 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
32756 }
32757 arg7 = static_cast< double >(val7);
32758 {
32759 PyThreadState* __tstate = wxPyBeginAllowThreads();
32760 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
32761 wxPyEndAllowThreads(__tstate);
32762 if (PyErr_Occurred()) SWIG_fail;
32763 }
32764 resultobj = SWIG_Py_Void();
32765 return resultobj;
32766fail:
32767 return NULL;
32768}
32769
32770
32771SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32772 PyObject *resultobj = 0;
32773 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32774 wxPoint *arg2 = 0 ;
32775 wxSize *arg3 = 0 ;
32776 double arg4 ;
32777 double arg5 ;
32778 void *argp1 = 0 ;
32779 int res1 = 0 ;
32780 wxPoint temp2 ;
32781 wxSize temp3 ;
32782 double val4 ;
32783 int ecode4 = 0 ;
32784 double val5 ;
32785 int ecode5 = 0 ;
32786 PyObject * obj0 = 0 ;
32787 PyObject * obj1 = 0 ;
32788 PyObject * obj2 = 0 ;
32789 PyObject * obj3 = 0 ;
32790 PyObject * obj4 = 0 ;
32791 char * kwnames[] = {
32792 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
32793 };
32794
32795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32796 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32797 if (!SWIG_IsOK(res1)) {
32798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32799 }
32800 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32801 {
32802 arg2 = &temp2;
32803 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32804 }
32805 {
32806 arg3 = &temp3;
32807 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
32808 }
32809 ecode4 = SWIG_AsVal_double(obj3, &val4);
32810 if (!SWIG_IsOK(ecode4)) {
32811 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
32812 }
32813 arg4 = static_cast< double >(val4);
32814 ecode5 = SWIG_AsVal_double(obj4, &val5);
32815 if (!SWIG_IsOK(ecode5)) {
32816 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
32817 }
32818 arg5 = static_cast< double >(val5);
32819 {
32820 PyThreadState* __tstate = wxPyBeginAllowThreads();
32821 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
32822 wxPyEndAllowThreads(__tstate);
32823 if (PyErr_Occurred()) SWIG_fail;
32824 }
32825 resultobj = SWIG_Py_Void();
32826 return resultobj;
32827fail:
32828 return NULL;
32829}
32830
32831
32832SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32833 PyObject *resultobj = 0;
32834 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32835 int arg2 ;
32836 int arg3 ;
32837 void *argp1 = 0 ;
32838 int res1 = 0 ;
32839 int val2 ;
32840 int ecode2 = 0 ;
32841 int val3 ;
32842 int ecode3 = 0 ;
32843 PyObject * obj0 = 0 ;
32844 PyObject * obj1 = 0 ;
32845 PyObject * obj2 = 0 ;
32846 char * kwnames[] = {
32847 (char *) "self",(char *) "x",(char *) "y", NULL
32848 };
32849
32850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32852 if (!SWIG_IsOK(res1)) {
32853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32854 }
32855 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32856 ecode2 = SWIG_AsVal_int(obj1, &val2);
32857 if (!SWIG_IsOK(ecode2)) {
32858 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
32859 }
32860 arg2 = static_cast< int >(val2);
32861 ecode3 = SWIG_AsVal_int(obj2, &val3);
32862 if (!SWIG_IsOK(ecode3)) {
32863 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
32864 }
32865 arg3 = static_cast< int >(val3);
32866 {
32867 PyThreadState* __tstate = wxPyBeginAllowThreads();
32868 (arg1)->DrawPoint(arg2,arg3);
32869 wxPyEndAllowThreads(__tstate);
32870 if (PyErr_Occurred()) SWIG_fail;
32871 }
32872 resultobj = SWIG_Py_Void();
32873 return resultobj;
32874fail:
32875 return NULL;
32876}
32877
32878
32879SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32880 PyObject *resultobj = 0;
32881 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32882 wxPoint *arg2 = 0 ;
32883 void *argp1 = 0 ;
32884 int res1 = 0 ;
32885 wxPoint temp2 ;
32886 PyObject * obj0 = 0 ;
32887 PyObject * obj1 = 0 ;
32888 char * kwnames[] = {
32889 (char *) "self",(char *) "pt", NULL
32890 };
32891
32892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
32893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32894 if (!SWIG_IsOK(res1)) {
32895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32896 }
32897 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32898 {
32899 arg2 = &temp2;
32900 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32901 }
32902 {
32903 PyThreadState* __tstate = wxPyBeginAllowThreads();
32904 (arg1)->DrawPoint((wxPoint const &)*arg2);
32905 wxPyEndAllowThreads(__tstate);
32906 if (PyErr_Occurred()) SWIG_fail;
32907 }
32908 resultobj = SWIG_Py_Void();
32909 return resultobj;
32910fail:
32911 return NULL;
32912}
32913
32914
32915SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32916 PyObject *resultobj = 0;
32917 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32918 int arg2 ;
32919 int arg3 ;
32920 int arg4 ;
32921 int arg5 ;
32922 void *argp1 = 0 ;
32923 int res1 = 0 ;
32924 int val2 ;
32925 int ecode2 = 0 ;
32926 int val3 ;
32927 int ecode3 = 0 ;
32928 int val4 ;
32929 int ecode4 = 0 ;
32930 int val5 ;
32931 int ecode5 = 0 ;
32932 PyObject * obj0 = 0 ;
32933 PyObject * obj1 = 0 ;
32934 PyObject * obj2 = 0 ;
32935 PyObject * obj3 = 0 ;
32936 PyObject * obj4 = 0 ;
32937 char * kwnames[] = {
32938 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
32939 };
32940
32941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32943 if (!SWIG_IsOK(res1)) {
32944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32945 }
32946 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32947 ecode2 = SWIG_AsVal_int(obj1, &val2);
32948 if (!SWIG_IsOK(ecode2)) {
32949 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
32950 }
32951 arg2 = static_cast< int >(val2);
32952 ecode3 = SWIG_AsVal_int(obj2, &val3);
32953 if (!SWIG_IsOK(ecode3)) {
32954 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
32955 }
32956 arg3 = static_cast< int >(val3);
32957 ecode4 = SWIG_AsVal_int(obj3, &val4);
32958 if (!SWIG_IsOK(ecode4)) {
32959 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
32960 }
32961 arg4 = static_cast< int >(val4);
32962 ecode5 = SWIG_AsVal_int(obj4, &val5);
32963 if (!SWIG_IsOK(ecode5)) {
32964 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
32965 }
32966 arg5 = static_cast< int >(val5);
32967 {
32968 PyThreadState* __tstate = wxPyBeginAllowThreads();
32969 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
32970 wxPyEndAllowThreads(__tstate);
32971 if (PyErr_Occurred()) SWIG_fail;
32972 }
32973 resultobj = SWIG_Py_Void();
32974 return resultobj;
32975fail:
32976 return NULL;
32977}
32978
32979
32980SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32981 PyObject *resultobj = 0;
32982 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32983 wxRect *arg2 = 0 ;
32984 void *argp1 = 0 ;
32985 int res1 = 0 ;
32986 wxRect temp2 ;
32987 PyObject * obj0 = 0 ;
32988 PyObject * obj1 = 0 ;
32989 char * kwnames[] = {
32990 (char *) "self",(char *) "rect", NULL
32991 };
32992
32993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
32994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32995 if (!SWIG_IsOK(res1)) {
32996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32997 }
32998 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32999 {
33000 arg2 = &temp2;
33001 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33002 }
33003 {
33004 PyThreadState* __tstate = wxPyBeginAllowThreads();
33005 (arg1)->DrawRectangle((wxRect const &)*arg2);
33006 wxPyEndAllowThreads(__tstate);
33007 if (PyErr_Occurred()) SWIG_fail;
33008 }
33009 resultobj = SWIG_Py_Void();
33010 return resultobj;
33011fail:
33012 return NULL;
33013}
33014
33015
33016SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33017 PyObject *resultobj = 0;
33018 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33019 wxPoint *arg2 = 0 ;
33020 wxSize *arg3 = 0 ;
33021 void *argp1 = 0 ;
33022 int res1 = 0 ;
33023 wxPoint temp2 ;
33024 wxSize temp3 ;
33025 PyObject * obj0 = 0 ;
33026 PyObject * obj1 = 0 ;
33027 PyObject * obj2 = 0 ;
33028 char * kwnames[] = {
33029 (char *) "self",(char *) "pt",(char *) "sz", NULL
33030 };
33031
33032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33034 if (!SWIG_IsOK(res1)) {
33035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33036 }
33037 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33038 {
33039 arg2 = &temp2;
33040 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33041 }
33042 {
33043 arg3 = &temp3;
33044 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
33045 }
33046 {
33047 PyThreadState* __tstate = wxPyBeginAllowThreads();
33048 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
33049 wxPyEndAllowThreads(__tstate);
33050 if (PyErr_Occurred()) SWIG_fail;
33051 }
33052 resultobj = SWIG_Py_Void();
33053 return resultobj;
33054fail:
33055 return NULL;
33056}
33057
33058
33059SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33060 PyObject *resultobj = 0;
33061 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33062 int arg2 ;
33063 int arg3 ;
33064 int arg4 ;
33065 int arg5 ;
33066 double arg6 ;
33067 void *argp1 = 0 ;
33068 int res1 = 0 ;
33069 int val2 ;
33070 int ecode2 = 0 ;
33071 int val3 ;
33072 int ecode3 = 0 ;
33073 int val4 ;
33074 int ecode4 = 0 ;
33075 int val5 ;
33076 int ecode5 = 0 ;
33077 double val6 ;
33078 int ecode6 = 0 ;
33079 PyObject * obj0 = 0 ;
33080 PyObject * obj1 = 0 ;
33081 PyObject * obj2 = 0 ;
33082 PyObject * obj3 = 0 ;
33083 PyObject * obj4 = 0 ;
33084 PyObject * obj5 = 0 ;
33085 char * kwnames[] = {
33086 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
33087 };
33088
33089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33091 if (!SWIG_IsOK(res1)) {
33092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33093 }
33094 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33095 ecode2 = SWIG_AsVal_int(obj1, &val2);
33096 if (!SWIG_IsOK(ecode2)) {
33097 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
33098 }
33099 arg2 = static_cast< int >(val2);
33100 ecode3 = SWIG_AsVal_int(obj2, &val3);
33101 if (!SWIG_IsOK(ecode3)) {
33102 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
33103 }
33104 arg3 = static_cast< int >(val3);
33105 ecode4 = SWIG_AsVal_int(obj3, &val4);
33106 if (!SWIG_IsOK(ecode4)) {
33107 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
33108 }
33109 arg4 = static_cast< int >(val4);
33110 ecode5 = SWIG_AsVal_int(obj4, &val5);
33111 if (!SWIG_IsOK(ecode5)) {
33112 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
33113 }
33114 arg5 = static_cast< int >(val5);
33115 ecode6 = SWIG_AsVal_double(obj5, &val6);
33116 if (!SWIG_IsOK(ecode6)) {
33117 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
33118 }
33119 arg6 = static_cast< double >(val6);
33120 {
33121 PyThreadState* __tstate = wxPyBeginAllowThreads();
33122 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
33123 wxPyEndAllowThreads(__tstate);
33124 if (PyErr_Occurred()) SWIG_fail;
33125 }
33126 resultobj = SWIG_Py_Void();
33127 return resultobj;
33128fail:
33129 return NULL;
33130}
33131
33132
33133SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33134 PyObject *resultobj = 0;
33135 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33136 wxRect *arg2 = 0 ;
33137 double arg3 ;
33138 void *argp1 = 0 ;
33139 int res1 = 0 ;
33140 wxRect temp2 ;
33141 double val3 ;
33142 int ecode3 = 0 ;
33143 PyObject * obj0 = 0 ;
33144 PyObject * obj1 = 0 ;
33145 PyObject * obj2 = 0 ;
33146 char * kwnames[] = {
33147 (char *) "self",(char *) "r",(char *) "radius", NULL
33148 };
33149
33150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33152 if (!SWIG_IsOK(res1)) {
33153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33154 }
33155 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33156 {
33157 arg2 = &temp2;
33158 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33159 }
33160 ecode3 = SWIG_AsVal_double(obj2, &val3);
33161 if (!SWIG_IsOK(ecode3)) {
33162 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
33163 }
33164 arg3 = static_cast< double >(val3);
33165 {
33166 PyThreadState* __tstate = wxPyBeginAllowThreads();
33167 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
33168 wxPyEndAllowThreads(__tstate);
33169 if (PyErr_Occurred()) SWIG_fail;
33170 }
33171 resultobj = SWIG_Py_Void();
33172 return resultobj;
33173fail:
33174 return NULL;
33175}
33176
33177
33178SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33179 PyObject *resultobj = 0;
33180 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33181 wxPoint *arg2 = 0 ;
33182 wxSize *arg3 = 0 ;
33183 double arg4 ;
33184 void *argp1 = 0 ;
33185 int res1 = 0 ;
33186 wxPoint temp2 ;
33187 wxSize temp3 ;
33188 double val4 ;
33189 int ecode4 = 0 ;
33190 PyObject * obj0 = 0 ;
33191 PyObject * obj1 = 0 ;
33192 PyObject * obj2 = 0 ;
33193 PyObject * obj3 = 0 ;
33194 char * kwnames[] = {
33195 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
33196 };
33197
33198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33200 if (!SWIG_IsOK(res1)) {
33201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33202 }
33203 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33204 {
33205 arg2 = &temp2;
33206 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33207 }
33208 {
33209 arg3 = &temp3;
33210 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
33211 }
33212 ecode4 = SWIG_AsVal_double(obj3, &val4);
33213 if (!SWIG_IsOK(ecode4)) {
33214 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
33215 }
33216 arg4 = static_cast< double >(val4);
33217 {
33218 PyThreadState* __tstate = wxPyBeginAllowThreads();
33219 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
33220 wxPyEndAllowThreads(__tstate);
33221 if (PyErr_Occurred()) SWIG_fail;
33222 }
33223 resultobj = SWIG_Py_Void();
33224 return resultobj;
33225fail:
33226 return NULL;
33227}
33228
33229
33230SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33231 PyObject *resultobj = 0;
33232 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33233 int arg2 ;
33234 int arg3 ;
33235 int arg4 ;
33236 void *argp1 = 0 ;
33237 int res1 = 0 ;
33238 int val2 ;
33239 int ecode2 = 0 ;
33240 int val3 ;
33241 int ecode3 = 0 ;
33242 int val4 ;
33243 int ecode4 = 0 ;
33244 PyObject * obj0 = 0 ;
33245 PyObject * obj1 = 0 ;
33246 PyObject * obj2 = 0 ;
33247 PyObject * obj3 = 0 ;
33248 char * kwnames[] = {
33249 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
33250 };
33251
33252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33254 if (!SWIG_IsOK(res1)) {
33255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33256 }
33257 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33258 ecode2 = SWIG_AsVal_int(obj1, &val2);
33259 if (!SWIG_IsOK(ecode2)) {
33260 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
33261 }
33262 arg2 = static_cast< int >(val2);
33263 ecode3 = SWIG_AsVal_int(obj2, &val3);
33264 if (!SWIG_IsOK(ecode3)) {
33265 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
33266 }
33267 arg3 = static_cast< int >(val3);
33268 ecode4 = SWIG_AsVal_int(obj3, &val4);
33269 if (!SWIG_IsOK(ecode4)) {
33270 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
33271 }
33272 arg4 = static_cast< int >(val4);
33273 {
33274 PyThreadState* __tstate = wxPyBeginAllowThreads();
33275 (arg1)->DrawCircle(arg2,arg3,arg4);
33276 wxPyEndAllowThreads(__tstate);
33277 if (PyErr_Occurred()) SWIG_fail;
33278 }
33279 resultobj = SWIG_Py_Void();
33280 return resultobj;
33281fail:
33282 return NULL;
33283}
33284
33285
33286SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33287 PyObject *resultobj = 0;
33288 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33289 wxPoint *arg2 = 0 ;
33290 int arg3 ;
33291 void *argp1 = 0 ;
33292 int res1 = 0 ;
33293 wxPoint temp2 ;
33294 int val3 ;
33295 int ecode3 = 0 ;
33296 PyObject * obj0 = 0 ;
33297 PyObject * obj1 = 0 ;
33298 PyObject * obj2 = 0 ;
33299 char * kwnames[] = {
33300 (char *) "self",(char *) "pt",(char *) "radius", NULL
33301 };
33302
33303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33305 if (!SWIG_IsOK(res1)) {
33306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33307 }
33308 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33309 {
33310 arg2 = &temp2;
33311 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33312 }
33313 ecode3 = SWIG_AsVal_int(obj2, &val3);
33314 if (!SWIG_IsOK(ecode3)) {
33315 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
33316 }
33317 arg3 = static_cast< int >(val3);
33318 {
33319 PyThreadState* __tstate = wxPyBeginAllowThreads();
33320 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
33321 wxPyEndAllowThreads(__tstate);
33322 if (PyErr_Occurred()) SWIG_fail;
33323 }
33324 resultobj = SWIG_Py_Void();
33325 return resultobj;
33326fail:
33327 return NULL;
33328}
33329
33330
33331SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33332 PyObject *resultobj = 0;
33333 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33334 int arg2 ;
33335 int arg3 ;
33336 int arg4 ;
33337 int arg5 ;
33338 void *argp1 = 0 ;
33339 int res1 = 0 ;
33340 int val2 ;
33341 int ecode2 = 0 ;
33342 int val3 ;
33343 int ecode3 = 0 ;
33344 int val4 ;
33345 int ecode4 = 0 ;
33346 int val5 ;
33347 int ecode5 = 0 ;
33348 PyObject * obj0 = 0 ;
33349 PyObject * obj1 = 0 ;
33350 PyObject * obj2 = 0 ;
33351 PyObject * obj3 = 0 ;
33352 PyObject * obj4 = 0 ;
33353 char * kwnames[] = {
33354 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
33355 };
33356
33357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33359 if (!SWIG_IsOK(res1)) {
33360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33361 }
33362 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33363 ecode2 = SWIG_AsVal_int(obj1, &val2);
33364 if (!SWIG_IsOK(ecode2)) {
33365 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
33366 }
33367 arg2 = static_cast< int >(val2);
33368 ecode3 = SWIG_AsVal_int(obj2, &val3);
33369 if (!SWIG_IsOK(ecode3)) {
33370 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
33371 }
33372 arg3 = static_cast< int >(val3);
33373 ecode4 = SWIG_AsVal_int(obj3, &val4);
33374 if (!SWIG_IsOK(ecode4)) {
33375 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
33376 }
33377 arg4 = static_cast< int >(val4);
33378 ecode5 = SWIG_AsVal_int(obj4, &val5);
33379 if (!SWIG_IsOK(ecode5)) {
33380 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
33381 }
33382 arg5 = static_cast< int >(val5);
33383 {
33384 PyThreadState* __tstate = wxPyBeginAllowThreads();
33385 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
33386 wxPyEndAllowThreads(__tstate);
33387 if (PyErr_Occurred()) SWIG_fail;
33388 }
33389 resultobj = SWIG_Py_Void();
33390 return resultobj;
33391fail:
33392 return NULL;
33393}
33394
33395
33396SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33397 PyObject *resultobj = 0;
33398 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33399 wxRect *arg2 = 0 ;
33400 void *argp1 = 0 ;
33401 int res1 = 0 ;
33402 wxRect temp2 ;
33403 PyObject * obj0 = 0 ;
33404 PyObject * obj1 = 0 ;
33405 char * kwnames[] = {
33406 (char *) "self",(char *) "rect", NULL
33407 };
33408
33409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
33410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33411 if (!SWIG_IsOK(res1)) {
33412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33413 }
33414 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33415 {
33416 arg2 = &temp2;
33417 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33418 }
33419 {
33420 PyThreadState* __tstate = wxPyBeginAllowThreads();
33421 (arg1)->DrawEllipse((wxRect const &)*arg2);
33422 wxPyEndAllowThreads(__tstate);
33423 if (PyErr_Occurred()) SWIG_fail;
33424 }
33425 resultobj = SWIG_Py_Void();
33426 return resultobj;
33427fail:
33428 return NULL;
33429}
33430
33431
33432SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33433 PyObject *resultobj = 0;
33434 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33435 wxPoint *arg2 = 0 ;
33436 wxSize *arg3 = 0 ;
33437 void *argp1 = 0 ;
33438 int res1 = 0 ;
33439 wxPoint temp2 ;
33440 wxSize temp3 ;
33441 PyObject * obj0 = 0 ;
33442 PyObject * obj1 = 0 ;
33443 PyObject * obj2 = 0 ;
33444 char * kwnames[] = {
33445 (char *) "self",(char *) "pt",(char *) "sz", NULL
33446 };
33447
33448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33450 if (!SWIG_IsOK(res1)) {
33451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33452 }
33453 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33454 {
33455 arg2 = &temp2;
33456 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33457 }
33458 {
33459 arg3 = &temp3;
33460 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
33461 }
33462 {
33463 PyThreadState* __tstate = wxPyBeginAllowThreads();
33464 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
33465 wxPyEndAllowThreads(__tstate);
33466 if (PyErr_Occurred()) SWIG_fail;
33467 }
33468 resultobj = SWIG_Py_Void();
33469 return resultobj;
33470fail:
33471 return NULL;
33472}
33473
33474
33475SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33476 PyObject *resultobj = 0;
33477 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33478 wxIcon *arg2 = 0 ;
33479 int arg3 ;
33480 int arg4 ;
33481 void *argp1 = 0 ;
33482 int res1 = 0 ;
33483 void *argp2 = 0 ;
33484 int res2 = 0 ;
33485 int val3 ;
33486 int ecode3 = 0 ;
33487 int val4 ;
33488 int ecode4 = 0 ;
33489 PyObject * obj0 = 0 ;
33490 PyObject * obj1 = 0 ;
33491 PyObject * obj2 = 0 ;
33492 PyObject * obj3 = 0 ;
33493 char * kwnames[] = {
33494 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
33495 };
33496
33497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) 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_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33501 }
33502 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33503 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
33504 if (!SWIG_IsOK(res2)) {
33505 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
33506 }
33507 if (!argp2) {
33508 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
33509 }
33510 arg2 = reinterpret_cast< wxIcon * >(argp2);
33511 ecode3 = SWIG_AsVal_int(obj2, &val3);
33512 if (!SWIG_IsOK(ecode3)) {
33513 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
33514 }
33515 arg3 = static_cast< int >(val3);
33516 ecode4 = SWIG_AsVal_int(obj3, &val4);
33517 if (!SWIG_IsOK(ecode4)) {
33518 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
33519 }
33520 arg4 = static_cast< int >(val4);
33521 {
33522 PyThreadState* __tstate = wxPyBeginAllowThreads();
33523 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
33524 wxPyEndAllowThreads(__tstate);
33525 if (PyErr_Occurred()) SWIG_fail;
33526 }
33527 resultobj = SWIG_Py_Void();
33528 return resultobj;
33529fail:
33530 return NULL;
33531}
33532
33533
33534SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33535 PyObject *resultobj = 0;
33536 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33537 wxIcon *arg2 = 0 ;
33538 wxPoint *arg3 = 0 ;
33539 void *argp1 = 0 ;
33540 int res1 = 0 ;
33541 void *argp2 = 0 ;
33542 int res2 = 0 ;
33543 wxPoint temp3 ;
33544 PyObject * obj0 = 0 ;
33545 PyObject * obj1 = 0 ;
33546 PyObject * obj2 = 0 ;
33547 char * kwnames[] = {
33548 (char *) "self",(char *) "icon",(char *) "pt", NULL
33549 };
33550
33551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33553 if (!SWIG_IsOK(res1)) {
33554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33555 }
33556 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33557 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
33558 if (!SWIG_IsOK(res2)) {
33559 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
33560 }
33561 if (!argp2) {
33562 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
33563 }
33564 arg2 = reinterpret_cast< wxIcon * >(argp2);
33565 {
33566 arg3 = &temp3;
33567 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33568 }
33569 {
33570 PyThreadState* __tstate = wxPyBeginAllowThreads();
33571 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
33572 wxPyEndAllowThreads(__tstate);
33573 if (PyErr_Occurred()) SWIG_fail;
33574 }
33575 resultobj = SWIG_Py_Void();
33576 return resultobj;
33577fail:
33578 return NULL;
33579}
33580
33581
33582SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33583 PyObject *resultobj = 0;
33584 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33585 wxBitmap *arg2 = 0 ;
33586 int arg3 ;
33587 int arg4 ;
33588 bool arg5 = (bool) false ;
33589 void *argp1 = 0 ;
33590 int res1 = 0 ;
33591 void *argp2 = 0 ;
33592 int res2 = 0 ;
33593 int val3 ;
33594 int ecode3 = 0 ;
33595 int val4 ;
33596 int ecode4 = 0 ;
33597 bool val5 ;
33598 int ecode5 = 0 ;
33599 PyObject * obj0 = 0 ;
33600 PyObject * obj1 = 0 ;
33601 PyObject * obj2 = 0 ;
33602 PyObject * obj3 = 0 ;
33603 PyObject * obj4 = 0 ;
33604 char * kwnames[] = {
33605 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
33606 };
33607
33608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33610 if (!SWIG_IsOK(res1)) {
33611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33612 }
33613 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33614 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
33615 if (!SWIG_IsOK(res2)) {
33616 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33617 }
33618 if (!argp2) {
33619 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33620 }
33621 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33622 ecode3 = SWIG_AsVal_int(obj2, &val3);
33623 if (!SWIG_IsOK(ecode3)) {
33624 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
33625 }
33626 arg3 = static_cast< int >(val3);
33627 ecode4 = SWIG_AsVal_int(obj3, &val4);
33628 if (!SWIG_IsOK(ecode4)) {
33629 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
33630 }
33631 arg4 = static_cast< int >(val4);
33632 if (obj4) {
33633 ecode5 = SWIG_AsVal_bool(obj4, &val5);
33634 if (!SWIG_IsOK(ecode5)) {
33635 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
33636 }
33637 arg5 = static_cast< bool >(val5);
33638 }
33639 {
33640 PyThreadState* __tstate = wxPyBeginAllowThreads();
33641 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
33642 wxPyEndAllowThreads(__tstate);
33643 if (PyErr_Occurred()) SWIG_fail;
33644 }
33645 resultobj = SWIG_Py_Void();
33646 return resultobj;
33647fail:
33648 return NULL;
33649}
33650
33651
33652SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33653 PyObject *resultobj = 0;
33654 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33655 wxBitmap *arg2 = 0 ;
33656 wxPoint *arg3 = 0 ;
33657 bool arg4 = (bool) false ;
33658 void *argp1 = 0 ;
33659 int res1 = 0 ;
33660 void *argp2 = 0 ;
33661 int res2 = 0 ;
33662 wxPoint temp3 ;
33663 bool val4 ;
33664 int ecode4 = 0 ;
33665 PyObject * obj0 = 0 ;
33666 PyObject * obj1 = 0 ;
33667 PyObject * obj2 = 0 ;
33668 PyObject * obj3 = 0 ;
33669 char * kwnames[] = {
33670 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
33671 };
33672
33673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33675 if (!SWIG_IsOK(res1)) {
33676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33677 }
33678 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33679 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
33680 if (!SWIG_IsOK(res2)) {
33681 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33682 }
33683 if (!argp2) {
33684 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33685 }
33686 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33687 {
33688 arg3 = &temp3;
33689 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33690 }
33691 if (obj3) {
33692 ecode4 = SWIG_AsVal_bool(obj3, &val4);
33693 if (!SWIG_IsOK(ecode4)) {
33694 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
33695 }
33696 arg4 = static_cast< bool >(val4);
33697 }
33698 {
33699 PyThreadState* __tstate = wxPyBeginAllowThreads();
33700 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
33701 wxPyEndAllowThreads(__tstate);
33702 if (PyErr_Occurred()) SWIG_fail;
33703 }
33704 resultobj = SWIG_Py_Void();
33705 return resultobj;
33706fail:
33707 return NULL;
33708}
33709
33710
33711SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33712 PyObject *resultobj = 0;
33713 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33714 wxString *arg2 = 0 ;
33715 int arg3 ;
33716 int arg4 ;
33717 void *argp1 = 0 ;
33718 int res1 = 0 ;
33719 bool temp2 = false ;
33720 int val3 ;
33721 int ecode3 = 0 ;
33722 int val4 ;
33723 int ecode4 = 0 ;
33724 PyObject * obj0 = 0 ;
33725 PyObject * obj1 = 0 ;
33726 PyObject * obj2 = 0 ;
33727 PyObject * obj3 = 0 ;
33728 char * kwnames[] = {
33729 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
33730 };
33731
33732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33734 if (!SWIG_IsOK(res1)) {
33735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33736 }
33737 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33738 {
33739 arg2 = wxString_in_helper(obj1);
33740 if (arg2 == NULL) SWIG_fail;
33741 temp2 = true;
33742 }
33743 ecode3 = SWIG_AsVal_int(obj2, &val3);
33744 if (!SWIG_IsOK(ecode3)) {
33745 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
33746 }
33747 arg3 = static_cast< int >(val3);
33748 ecode4 = SWIG_AsVal_int(obj3, &val4);
33749 if (!SWIG_IsOK(ecode4)) {
33750 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
33751 }
33752 arg4 = static_cast< int >(val4);
33753 {
33754 PyThreadState* __tstate = wxPyBeginAllowThreads();
33755 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
33756 wxPyEndAllowThreads(__tstate);
33757 if (PyErr_Occurred()) SWIG_fail;
33758 }
33759 resultobj = SWIG_Py_Void();
33760 {
33761 if (temp2)
33762 delete arg2;
33763 }
33764 return resultobj;
33765fail:
33766 {
33767 if (temp2)
33768 delete arg2;
33769 }
33770 return NULL;
33771}
33772
33773
33774SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33775 PyObject *resultobj = 0;
33776 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33777 wxString *arg2 = 0 ;
33778 wxPoint *arg3 = 0 ;
33779 void *argp1 = 0 ;
33780 int res1 = 0 ;
33781 bool temp2 = false ;
33782 wxPoint temp3 ;
33783 PyObject * obj0 = 0 ;
33784 PyObject * obj1 = 0 ;
33785 PyObject * obj2 = 0 ;
33786 char * kwnames[] = {
33787 (char *) "self",(char *) "text",(char *) "pt", NULL
33788 };
33789
33790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33792 if (!SWIG_IsOK(res1)) {
33793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33794 }
33795 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33796 {
33797 arg2 = wxString_in_helper(obj1);
33798 if (arg2 == NULL) SWIG_fail;
33799 temp2 = true;
33800 }
33801 {
33802 arg3 = &temp3;
33803 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33804 }
33805 {
33806 PyThreadState* __tstate = wxPyBeginAllowThreads();
33807 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
33808 wxPyEndAllowThreads(__tstate);
33809 if (PyErr_Occurred()) SWIG_fail;
33810 }
33811 resultobj = SWIG_Py_Void();
33812 {
33813 if (temp2)
33814 delete arg2;
33815 }
33816 return resultobj;
33817fail:
33818 {
33819 if (temp2)
33820 delete arg2;
33821 }
33822 return NULL;
33823}
33824
33825
33826SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33827 PyObject *resultobj = 0;
33828 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33829 wxString *arg2 = 0 ;
33830 int arg3 ;
33831 int arg4 ;
33832 double arg5 ;
33833 void *argp1 = 0 ;
33834 int res1 = 0 ;
33835 bool temp2 = false ;
33836 int val3 ;
33837 int ecode3 = 0 ;
33838 int val4 ;
33839 int ecode4 = 0 ;
33840 double val5 ;
33841 int ecode5 = 0 ;
33842 PyObject * obj0 = 0 ;
33843 PyObject * obj1 = 0 ;
33844 PyObject * obj2 = 0 ;
33845 PyObject * obj3 = 0 ;
33846 PyObject * obj4 = 0 ;
33847 char * kwnames[] = {
33848 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
33849 };
33850
33851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33853 if (!SWIG_IsOK(res1)) {
33854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33855 }
33856 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33857 {
33858 arg2 = wxString_in_helper(obj1);
33859 if (arg2 == NULL) SWIG_fail;
33860 temp2 = true;
33861 }
33862 ecode3 = SWIG_AsVal_int(obj2, &val3);
33863 if (!SWIG_IsOK(ecode3)) {
33864 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
33865 }
33866 arg3 = static_cast< int >(val3);
33867 ecode4 = SWIG_AsVal_int(obj3, &val4);
33868 if (!SWIG_IsOK(ecode4)) {
33869 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
33870 }
33871 arg4 = static_cast< int >(val4);
33872 ecode5 = SWIG_AsVal_double(obj4, &val5);
33873 if (!SWIG_IsOK(ecode5)) {
33874 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
33875 }
33876 arg5 = static_cast< double >(val5);
33877 {
33878 PyThreadState* __tstate = wxPyBeginAllowThreads();
33879 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
33880 wxPyEndAllowThreads(__tstate);
33881 if (PyErr_Occurred()) SWIG_fail;
33882 }
33883 resultobj = SWIG_Py_Void();
33884 {
33885 if (temp2)
33886 delete arg2;
33887 }
33888 return resultobj;
33889fail:
33890 {
33891 if (temp2)
33892 delete arg2;
33893 }
33894 return NULL;
33895}
33896
33897
33898SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33899 PyObject *resultobj = 0;
33900 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33901 wxString *arg2 = 0 ;
33902 wxPoint *arg3 = 0 ;
33903 double arg4 ;
33904 void *argp1 = 0 ;
33905 int res1 = 0 ;
33906 bool temp2 = false ;
33907 wxPoint temp3 ;
33908 double val4 ;
33909 int ecode4 = 0 ;
33910 PyObject * obj0 = 0 ;
33911 PyObject * obj1 = 0 ;
33912 PyObject * obj2 = 0 ;
33913 PyObject * obj3 = 0 ;
33914 char * kwnames[] = {
33915 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
33916 };
33917
33918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33920 if (!SWIG_IsOK(res1)) {
33921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33922 }
33923 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33924 {
33925 arg2 = wxString_in_helper(obj1);
33926 if (arg2 == NULL) SWIG_fail;
33927 temp2 = true;
33928 }
33929 {
33930 arg3 = &temp3;
33931 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33932 }
33933 ecode4 = SWIG_AsVal_double(obj3, &val4);
33934 if (!SWIG_IsOK(ecode4)) {
33935 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
33936 }
33937 arg4 = static_cast< double >(val4);
33938 {
33939 PyThreadState* __tstate = wxPyBeginAllowThreads();
33940 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
33941 wxPyEndAllowThreads(__tstate);
33942 if (PyErr_Occurred()) SWIG_fail;
33943 }
33944 resultobj = SWIG_Py_Void();
33945 {
33946 if (temp2)
33947 delete arg2;
33948 }
33949 return resultobj;
33950fail:
33951 {
33952 if (temp2)
33953 delete arg2;
33954 }
33955 return NULL;
33956}
33957
33958
33959SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33960 PyObject *resultobj = 0;
33961 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33962 int arg2 ;
33963 wxPoint *arg3 = (wxPoint *) 0 ;
33964 int arg4 = (int) 0 ;
33965 int arg5 = (int) 0 ;
33966 void *argp1 = 0 ;
33967 int res1 = 0 ;
33968 int val4 ;
33969 int ecode4 = 0 ;
33970 int val5 ;
33971 int ecode5 = 0 ;
33972 PyObject * obj0 = 0 ;
33973 PyObject * obj1 = 0 ;
33974 PyObject * obj2 = 0 ;
33975 PyObject * obj3 = 0 ;
33976 char * kwnames[] = {
33977 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
33978 };
33979
33980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33982 if (!SWIG_IsOK(res1)) {
33983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33984 }
33985 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33986 {
33987 arg3 = wxPoint_LIST_helper(obj1, &arg2);
33988 if (arg3 == NULL) SWIG_fail;
33989 }
33990 if (obj2) {
33991 ecode4 = SWIG_AsVal_int(obj2, &val4);
33992 if (!SWIG_IsOK(ecode4)) {
33993 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
33994 }
33995 arg4 = static_cast< int >(val4);
33996 }
33997 if (obj3) {
33998 ecode5 = SWIG_AsVal_int(obj3, &val5);
33999 if (!SWIG_IsOK(ecode5)) {
34000 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
34001 }
34002 arg5 = static_cast< int >(val5);
34003 }
34004 {
34005 PyThreadState* __tstate = wxPyBeginAllowThreads();
34006 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
34007 wxPyEndAllowThreads(__tstate);
34008 if (PyErr_Occurred()) SWIG_fail;
34009 }
34010 resultobj = SWIG_Py_Void();
34011 {
34012 if (arg3) delete [] arg3;
34013 }
34014 return resultobj;
34015fail:
34016 {
34017 if (arg3) delete [] arg3;
34018 }
34019 return NULL;
34020}
34021
34022
34023SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34024 PyObject *resultobj = 0;
34025 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34026 int arg2 ;
34027 wxPoint *arg3 = (wxPoint *) 0 ;
34028 int arg4 = (int) 0 ;
34029 int arg5 = (int) 0 ;
34030 int arg6 = (int) wxODDEVEN_RULE ;
34031 void *argp1 = 0 ;
34032 int res1 = 0 ;
34033 int val4 ;
34034 int ecode4 = 0 ;
34035 int val5 ;
34036 int ecode5 = 0 ;
34037 int val6 ;
34038 int ecode6 = 0 ;
34039 PyObject * obj0 = 0 ;
34040 PyObject * obj1 = 0 ;
34041 PyObject * obj2 = 0 ;
34042 PyObject * obj3 = 0 ;
34043 PyObject * obj4 = 0 ;
34044 char * kwnames[] = {
34045 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
34046 };
34047
34048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) 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_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34052 }
34053 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34054 {
34055 arg3 = wxPoint_LIST_helper(obj1, &arg2);
34056 if (arg3 == NULL) SWIG_fail;
34057 }
34058 if (obj2) {
34059 ecode4 = SWIG_AsVal_int(obj2, &val4);
34060 if (!SWIG_IsOK(ecode4)) {
34061 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
34062 }
34063 arg4 = static_cast< int >(val4);
34064 }
34065 if (obj3) {
34066 ecode5 = SWIG_AsVal_int(obj3, &val5);
34067 if (!SWIG_IsOK(ecode5)) {
34068 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
34069 }
34070 arg5 = static_cast< int >(val5);
34071 }
34072 if (obj4) {
34073 ecode6 = SWIG_AsVal_int(obj4, &val6);
34074 if (!SWIG_IsOK(ecode6)) {
34075 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
34076 }
34077 arg6 = static_cast< int >(val6);
34078 }
34079 {
34080 PyThreadState* __tstate = wxPyBeginAllowThreads();
34081 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
34082 wxPyEndAllowThreads(__tstate);
34083 if (PyErr_Occurred()) SWIG_fail;
34084 }
34085 resultobj = SWIG_Py_Void();
34086 {
34087 if (arg3) delete [] arg3;
34088 }
34089 return resultobj;
34090fail:
34091 {
34092 if (arg3) delete [] arg3;
34093 }
34094 return NULL;
34095}
34096
34097
34098SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34099 PyObject *resultobj = 0;
34100 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34101 wxString *arg2 = 0 ;
34102 wxRect *arg3 = 0 ;
34103 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
34104 int arg5 = (int) -1 ;
34105 void *argp1 = 0 ;
34106 int res1 = 0 ;
34107 bool temp2 = false ;
34108 wxRect temp3 ;
34109 int val4 ;
34110 int ecode4 = 0 ;
34111 int val5 ;
34112 int ecode5 = 0 ;
34113 PyObject * obj0 = 0 ;
34114 PyObject * obj1 = 0 ;
34115 PyObject * obj2 = 0 ;
34116 PyObject * obj3 = 0 ;
34117 PyObject * obj4 = 0 ;
34118 char * kwnames[] = {
34119 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
34120 };
34121
34122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34124 if (!SWIG_IsOK(res1)) {
34125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34126 }
34127 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34128 {
34129 arg2 = wxString_in_helper(obj1);
34130 if (arg2 == NULL) SWIG_fail;
34131 temp2 = true;
34132 }
34133 {
34134 arg3 = &temp3;
34135 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
34136 }
34137 if (obj3) {
34138 ecode4 = SWIG_AsVal_int(obj3, &val4);
34139 if (!SWIG_IsOK(ecode4)) {
34140 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
34141 }
34142 arg4 = static_cast< int >(val4);
34143 }
34144 if (obj4) {
34145 ecode5 = SWIG_AsVal_int(obj4, &val5);
34146 if (!SWIG_IsOK(ecode5)) {
34147 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
34148 }
34149 arg5 = static_cast< int >(val5);
34150 }
34151 {
34152 PyThreadState* __tstate = wxPyBeginAllowThreads();
34153 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
34154 wxPyEndAllowThreads(__tstate);
34155 if (PyErr_Occurred()) SWIG_fail;
34156 }
34157 resultobj = SWIG_Py_Void();
34158 {
34159 if (temp2)
34160 delete arg2;
34161 }
34162 return resultobj;
34163fail:
34164 {
34165 if (temp2)
34166 delete arg2;
34167 }
34168 return NULL;
34169}
34170
34171
34172SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34173 PyObject *resultobj = 0;
34174 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34175 wxString *arg2 = 0 ;
34176 wxBitmap *arg3 = 0 ;
34177 wxRect *arg4 = 0 ;
34178 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
34179 int arg6 = (int) -1 ;
34180 void *argp1 = 0 ;
34181 int res1 = 0 ;
34182 bool temp2 = false ;
34183 void *argp3 = 0 ;
34184 int res3 = 0 ;
34185 wxRect temp4 ;
34186 int val5 ;
34187 int ecode5 = 0 ;
34188 int val6 ;
34189 int ecode6 = 0 ;
34190 PyObject * obj0 = 0 ;
34191 PyObject * obj1 = 0 ;
34192 PyObject * obj2 = 0 ;
34193 PyObject * obj3 = 0 ;
34194 PyObject * obj4 = 0 ;
34195 PyObject * obj5 = 0 ;
34196 char * kwnames[] = {
34197 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
34198 };
34199
34200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
34201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34202 if (!SWIG_IsOK(res1)) {
34203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34204 }
34205 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34206 {
34207 arg2 = wxString_in_helper(obj1);
34208 if (arg2 == NULL) SWIG_fail;
34209 temp2 = true;
34210 }
34211 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
34212 if (!SWIG_IsOK(res3)) {
34213 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
34214 }
34215 if (!argp3) {
34216 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
34217 }
34218 arg3 = reinterpret_cast< wxBitmap * >(argp3);
34219 {
34220 arg4 = &temp4;
34221 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34222 }
34223 if (obj4) {
34224 ecode5 = SWIG_AsVal_int(obj4, &val5);
34225 if (!SWIG_IsOK(ecode5)) {
34226 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
34227 }
34228 arg5 = static_cast< int >(val5);
34229 }
34230 if (obj5) {
34231 ecode6 = SWIG_AsVal_int(obj5, &val6);
34232 if (!SWIG_IsOK(ecode6)) {
34233 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
34234 }
34235 arg6 = static_cast< int >(val6);
34236 }
34237 {
34238 PyThreadState* __tstate = wxPyBeginAllowThreads();
34239 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
34240 wxPyEndAllowThreads(__tstate);
34241 if (PyErr_Occurred()) SWIG_fail;
34242 }
34243 resultobj = SWIG_Py_Void();
34244 {
34245 if (temp2)
34246 delete arg2;
34247 }
34248 return resultobj;
34249fail:
34250 {
34251 if (temp2)
34252 delete arg2;
34253 }
34254 return NULL;
34255}
34256
34257
34258SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34259 PyObject *resultobj = 0;
34260 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34261 int arg2 ;
34262 wxPoint *arg3 = (wxPoint *) 0 ;
34263 void *argp1 = 0 ;
34264 int res1 = 0 ;
34265 PyObject * obj0 = 0 ;
34266 PyObject * obj1 = 0 ;
34267 char * kwnames[] = {
34268 (char *) "self",(char *) "points", NULL
34269 };
34270
34271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
34272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34273 if (!SWIG_IsOK(res1)) {
34274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34275 }
34276 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34277 {
34278 arg3 = wxPoint_LIST_helper(obj1, &arg2);
34279 if (arg3 == NULL) SWIG_fail;
34280 }
34281 {
34282 PyThreadState* __tstate = wxPyBeginAllowThreads();
34283 (arg1)->DrawSpline(arg2,arg3);
34284 wxPyEndAllowThreads(__tstate);
34285 if (PyErr_Occurred()) SWIG_fail;
34286 }
34287 resultobj = SWIG_Py_Void();
34288 {
34289 if (arg3) delete [] arg3;
34290 }
34291 return resultobj;
34292fail:
34293 {
34294 if (arg3) delete [] arg3;
34295 }
34296 return NULL;
34297}
34298
34299
34300SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34301 PyObject *resultobj = 0;
34302 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34303 void *argp1 = 0 ;
34304 int res1 = 0 ;
34305 PyObject *swig_obj[1] ;
34306
34307 if (!args) SWIG_fail;
34308 swig_obj[0] = args;
34309 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34310 if (!SWIG_IsOK(res1)) {
34311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34312 }
34313 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34314 {
34315 PyThreadState* __tstate = wxPyBeginAllowThreads();
34316 (arg1)->Clear();
34317 wxPyEndAllowThreads(__tstate);
34318 if (PyErr_Occurred()) SWIG_fail;
34319 }
34320 resultobj = SWIG_Py_Void();
34321 return resultobj;
34322fail:
34323 return NULL;
34324}
34325
34326
34327SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34328 PyObject *resultobj = 0;
34329 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34330 wxFont *arg2 = 0 ;
34331 void *argp1 = 0 ;
34332 int res1 = 0 ;
34333 void *argp2 = 0 ;
34334 int res2 = 0 ;
34335 PyObject * obj0 = 0 ;
34336 PyObject * obj1 = 0 ;
34337 char * kwnames[] = {
34338 (char *) "self",(char *) "font", NULL
34339 };
34340
34341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
34342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34343 if (!SWIG_IsOK(res1)) {
34344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34345 }
34346 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34347 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
34348 if (!SWIG_IsOK(res2)) {
34349 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
34350 }
34351 if (!argp2) {
34352 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
34353 }
34354 arg2 = reinterpret_cast< wxFont * >(argp2);
34355 {
34356 PyThreadState* __tstate = wxPyBeginAllowThreads();
34357 (arg1)->SetFont((wxFont const &)*arg2);
34358 wxPyEndAllowThreads(__tstate);
34359 if (PyErr_Occurred()) SWIG_fail;
34360 }
34361 resultobj = SWIG_Py_Void();
34362 return resultobj;
34363fail:
34364 return NULL;
34365}
34366
34367
34368SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34369 PyObject *resultobj = 0;
34370 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34371 wxPen *arg2 = 0 ;
34372 void *argp1 = 0 ;
34373 int res1 = 0 ;
34374 void *argp2 = 0 ;
34375 int res2 = 0 ;
34376 PyObject * obj0 = 0 ;
34377 PyObject * obj1 = 0 ;
34378 char * kwnames[] = {
34379 (char *) "self",(char *) "pen", NULL
34380 };
34381
34382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
34383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34384 if (!SWIG_IsOK(res1)) {
34385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34386 }
34387 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34388 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
34389 if (!SWIG_IsOK(res2)) {
34390 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
34391 }
34392 if (!argp2) {
34393 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
34394 }
34395 arg2 = reinterpret_cast< wxPen * >(argp2);
34396 {
34397 PyThreadState* __tstate = wxPyBeginAllowThreads();
34398 (arg1)->SetPen((wxPen const &)*arg2);
34399 wxPyEndAllowThreads(__tstate);
34400 if (PyErr_Occurred()) SWIG_fail;
34401 }
34402 resultobj = SWIG_Py_Void();
34403 return resultobj;
34404fail:
34405 return NULL;
34406}
34407
34408
34409SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34410 PyObject *resultobj = 0;
34411 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34412 wxBrush *arg2 = 0 ;
34413 void *argp1 = 0 ;
34414 int res1 = 0 ;
34415 void *argp2 = 0 ;
34416 int res2 = 0 ;
34417 PyObject * obj0 = 0 ;
34418 PyObject * obj1 = 0 ;
34419 char * kwnames[] = {
34420 (char *) "self",(char *) "brush", NULL
34421 };
34422
34423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
34424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34425 if (!SWIG_IsOK(res1)) {
34426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34427 }
34428 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34429 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
34430 if (!SWIG_IsOK(res2)) {
34431 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
34432 }
34433 if (!argp2) {
34434 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
34435 }
34436 arg2 = reinterpret_cast< wxBrush * >(argp2);
34437 {
34438 PyThreadState* __tstate = wxPyBeginAllowThreads();
34439 (arg1)->SetBrush((wxBrush const &)*arg2);
34440 wxPyEndAllowThreads(__tstate);
34441 if (PyErr_Occurred()) SWIG_fail;
34442 }
34443 resultobj = SWIG_Py_Void();
34444 return resultobj;
34445fail:
34446 return NULL;
34447}
34448
34449
34450SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34451 PyObject *resultobj = 0;
34452 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34453 wxBrush *arg2 = 0 ;
34454 void *argp1 = 0 ;
34455 int res1 = 0 ;
34456 void *argp2 = 0 ;
34457 int res2 = 0 ;
34458 PyObject * obj0 = 0 ;
34459 PyObject * obj1 = 0 ;
34460 char * kwnames[] = {
34461 (char *) "self",(char *) "brush", NULL
34462 };
34463
34464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
34465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34466 if (!SWIG_IsOK(res1)) {
34467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34468 }
34469 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34470 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
34471 if (!SWIG_IsOK(res2)) {
34472 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
34473 }
34474 if (!argp2) {
34475 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
34476 }
34477 arg2 = reinterpret_cast< wxBrush * >(argp2);
34478 {
34479 PyThreadState* __tstate = wxPyBeginAllowThreads();
34480 (arg1)->SetBackground((wxBrush const &)*arg2);
34481 wxPyEndAllowThreads(__tstate);
34482 if (PyErr_Occurred()) SWIG_fail;
34483 }
34484 resultobj = SWIG_Py_Void();
34485 return resultobj;
34486fail:
34487 return NULL;
34488}
34489
34490
34491SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34492 PyObject *resultobj = 0;
34493 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34494 int arg2 ;
34495 void *argp1 = 0 ;
34496 int res1 = 0 ;
34497 int val2 ;
34498 int ecode2 = 0 ;
34499 PyObject * obj0 = 0 ;
34500 PyObject * obj1 = 0 ;
34501 char * kwnames[] = {
34502 (char *) "self",(char *) "mode", NULL
34503 };
34504
34505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
34506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34507 if (!SWIG_IsOK(res1)) {
34508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34509 }
34510 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34511 ecode2 = SWIG_AsVal_int(obj1, &val2);
34512 if (!SWIG_IsOK(ecode2)) {
34513 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
34514 }
34515 arg2 = static_cast< int >(val2);
34516 {
34517 PyThreadState* __tstate = wxPyBeginAllowThreads();
34518 (arg1)->SetBackgroundMode(arg2);
34519 wxPyEndAllowThreads(__tstate);
34520 if (PyErr_Occurred()) SWIG_fail;
34521 }
34522 resultobj = SWIG_Py_Void();
34523 return resultobj;
34524fail:
34525 return NULL;
34526}
34527
34528
34529SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34530 PyObject *resultobj = 0;
34531 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34532 wxPalette *arg2 = 0 ;
34533 void *argp1 = 0 ;
34534 int res1 = 0 ;
34535 void *argp2 = 0 ;
34536 int res2 = 0 ;
34537 PyObject * obj0 = 0 ;
34538 PyObject * obj1 = 0 ;
34539 char * kwnames[] = {
34540 (char *) "self",(char *) "palette", NULL
34541 };
34542
34543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
34544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34545 if (!SWIG_IsOK(res1)) {
34546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34547 }
34548 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34549 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
34550 if (!SWIG_IsOK(res2)) {
34551 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
34552 }
34553 if (!argp2) {
34554 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
34555 }
34556 arg2 = reinterpret_cast< wxPalette * >(argp2);
34557 {
34558 PyThreadState* __tstate = wxPyBeginAllowThreads();
34559 (arg1)->SetPalette((wxPalette const &)*arg2);
34560 wxPyEndAllowThreads(__tstate);
34561 if (PyErr_Occurred()) SWIG_fail;
34562 }
34563 resultobj = SWIG_Py_Void();
34564 return resultobj;
34565fail:
34566 return NULL;
34567}
34568
34569
34570SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34571 PyObject *resultobj = 0;
34572 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34573 wxColour *arg2 = 0 ;
34574 void *argp1 = 0 ;
34575 int res1 = 0 ;
34576 wxColour temp2 ;
34577 PyObject * obj0 = 0 ;
34578 PyObject * obj1 = 0 ;
34579 char * kwnames[] = {
34580 (char *) "self",(char *) "colour", NULL
34581 };
34582
34583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
34584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34585 if (!SWIG_IsOK(res1)) {
34586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34587 }
34588 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34589 {
34590 arg2 = &temp2;
34591 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34592 }
34593 {
34594 PyThreadState* __tstate = wxPyBeginAllowThreads();
34595 (arg1)->SetTextForeground((wxColour const &)*arg2);
34596 wxPyEndAllowThreads(__tstate);
34597 if (PyErr_Occurred()) SWIG_fail;
34598 }
34599 resultobj = SWIG_Py_Void();
34600 return resultobj;
34601fail:
34602 return NULL;
34603}
34604
34605
34606SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34607 PyObject *resultobj = 0;
34608 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34609 wxColour *arg2 = 0 ;
34610 void *argp1 = 0 ;
34611 int res1 = 0 ;
34612 wxColour temp2 ;
34613 PyObject * obj0 = 0 ;
34614 PyObject * obj1 = 0 ;
34615 char * kwnames[] = {
34616 (char *) "self",(char *) "colour", NULL
34617 };
34618
34619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
34620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34621 if (!SWIG_IsOK(res1)) {
34622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34623 }
34624 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34625 {
34626 arg2 = &temp2;
34627 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34628 }
34629 {
34630 PyThreadState* __tstate = wxPyBeginAllowThreads();
34631 (arg1)->SetTextBackground((wxColour const &)*arg2);
34632 wxPyEndAllowThreads(__tstate);
34633 if (PyErr_Occurred()) SWIG_fail;
34634 }
34635 resultobj = SWIG_Py_Void();
34636 return resultobj;
34637fail:
34638 return NULL;
34639}
34640
34641
34642SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34643 PyObject *resultobj = 0;
34644 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34645 int arg2 ;
34646 void *argp1 = 0 ;
34647 int res1 = 0 ;
34648 int val2 ;
34649 int ecode2 = 0 ;
34650 PyObject * obj0 = 0 ;
34651 PyObject * obj1 = 0 ;
34652 char * kwnames[] = {
34653 (char *) "self",(char *) "function", NULL
34654 };
34655
34656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
34657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34658 if (!SWIG_IsOK(res1)) {
34659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34660 }
34661 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34662 ecode2 = SWIG_AsVal_int(obj1, &val2);
34663 if (!SWIG_IsOK(ecode2)) {
34664 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
34665 }
34666 arg2 = static_cast< int >(val2);
34667 {
34668 PyThreadState* __tstate = wxPyBeginAllowThreads();
34669 (arg1)->SetLogicalFunction(arg2);
34670 wxPyEndAllowThreads(__tstate);
34671 if (PyErr_Occurred()) SWIG_fail;
34672 }
34673 resultobj = SWIG_Py_Void();
34674 return resultobj;
34675fail:
34676 return NULL;
34677}
34678
34679
34680SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34681 PyObject *obj;
34682 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34683 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
34684 return SWIG_Py_Void();
34685}
34686
34687SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34688 return SWIG_Python_InitShadowInstance(args);
34689}
34690
34691static PyMethodDef SwigMethods[] = {
34692 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
34693 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
34694 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
34695 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
34696 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
34697 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
34698 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
34699 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
34700 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
34701 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
34702 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
34703 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
fc46b7f3 34704 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
b39fe951 34705 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
27e45892
RD
34706 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34707 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
34708 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
34709 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
34710 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
34711 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34712 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
fc46b7f3 34713 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
34714 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
34715 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
34716 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
34717 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
34718 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
34719 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
34720 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
34721 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
b39fe951 34722 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
27e45892
RD
34723 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
34724 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
34725 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
34726 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
34727 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
34728 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
34729 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
34730 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
34731 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
b39fe951 34732 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
27e45892
RD
34733 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
34734 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
34735 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
34736 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34737 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
34738 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
34739 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
34740 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
34741 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34742 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34743 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
34744 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
34745 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
34746 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34747 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
34748 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
34749 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34750 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
34751 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
34752 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
34753 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
34754 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
b39fe951 34755 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
27e45892
RD
34756 { (char *)"Brush_MacGetTheme", (PyCFunction)_wrap_Brush_MacGetTheme, METH_O, NULL},
34757 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL},
34758 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
34759 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
34760 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34761 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
34762 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34763 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34764 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
34765 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
34766 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 34767 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
27e45892
RD
34768 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
34769 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
34770 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
34771 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
34772 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
34773 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
34774 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
34775 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
34776 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34777 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
34778 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
34779 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
34780 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34781 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
34782 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
34783 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
34784 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
34785 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34786 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34787 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
34788 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
34789 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
34790 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
34791 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
34792 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
34793 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
34794 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
34795 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
34796 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
34797 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
34798 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
34799 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
34800 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
34801 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
34802 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
34803 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
34804 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
34805 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
34806 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
34807 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
34808 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
34809 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
34810 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
34811 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
34812 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
34813 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
34814 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34815 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
34816 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
34817 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
34818 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
34819 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
34820 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
34821 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
34822 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
34823 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
34824 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
34825 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
34826 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
34827 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
34828 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
34829 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
34830 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
34831 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
34832 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
34833 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
34834 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34835 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
34836 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
34837 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
27e45892
RD
34838 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
34839 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
34840 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
34841 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
34842 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
34843 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
34844 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
34845 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
34846 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34847 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 34848 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
27e45892
RD
34849 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
34850 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
34851 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
34852 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
34853 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
34854 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
34855 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34856 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
34857 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
34858 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
34859 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
34860 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
34861 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
34862 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
34863 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
34864 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
34865 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
34866 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
34867 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
34868 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
34869 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34870 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
34871 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34872 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
34873 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34874 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
34875 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
34876 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
34877 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
34878 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
34879 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 34880 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
27e45892
RD
34881 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
34882 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
34883 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
34884 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34885 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
34886 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
34887 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
34888 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
34889 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
34890 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
34891 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34892 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
34893 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
34894 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
34895 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
34896 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
34897 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34898 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
f5263701 34899 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
34900 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
34901 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
34902 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34903 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
34904 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
34905 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34906 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
34907 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
34908 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34909 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
34910 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34911 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
34912 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
34913 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
34914 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
34915 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
34916 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
34917 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
34918 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
34919 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
34920 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
34921 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
34922 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
34923 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
34924 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
34925 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
34926 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
34927 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
34928 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
34929 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
34930 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
34931 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
34932 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
34933 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
34934 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
34935 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
34936 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
34937 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
34938 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
34939 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
34940 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34941 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34942 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
34943 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
34944 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
34945 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
34946 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34947 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
34948 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
34949 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
34950 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
34951 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
34952 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
34953 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
34954 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
34955 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
34956 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
34957 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
34958 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
34959 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
34960 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
34961 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
34962 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
34963 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
34964 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34965 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34966 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
34967 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
34968 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
34969 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34970 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34971 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
34972 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34973 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
34974 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
34975 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
34976 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
34977 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
34978 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34979 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
34980 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
34981 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
34982 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
34983 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
34984 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
34985 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
34986 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34987 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
34988 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
34989 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
34990 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 34991 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
27e45892 34992 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
34993 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34994 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
34995 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
34996 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
34997 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
34998 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
34999 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
35000 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
35001 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
35002 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
35003 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
35004 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
35005 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
35006 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
35007 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35008 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
35009 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
35010 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
35011 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
35012 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
35013 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
35014 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35015 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35016 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
35017 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
35018 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
35019 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
35020 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
35021 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
35022 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
35023 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
35024 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35025 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
35026 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
35027 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
35028 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
35029 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35030 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
35031 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
35032 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
35033 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
35034 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
35035 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
35036 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
35037 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
35038 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
35039 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
35040 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
35041 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
35042 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
35043 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
35044 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
35045 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
35046 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
35047 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
35048 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
35049 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
35050 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
35051 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
35052 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
35053 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
35054 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
35055 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
35056 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
35057 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b 35058 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
35059 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
35060 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35061 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
35062 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35063 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
35064 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
35065 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
35066 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
35067 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
35068 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
35069 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
35070 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35071 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
35072 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
35073 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
35074 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
1bd55598
RD
35075 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
35076 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
35077 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
35078 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
35079 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
35080 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
35081 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
35082 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
35083 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
35084 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
35085 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
35086 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
35087 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
35088 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35089 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
35090 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
35091 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
35092 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35093 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
35094 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35095 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
35096 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35097 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
35098 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35099 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
35100 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
35101 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
35102 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35103 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35104 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35105 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35106 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35107 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35108 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35109 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35110 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35111 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
35112 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35113 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
35114 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
35115 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35116 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35117 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35118 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35119 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35120 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
35121 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35122 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
35123 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35124 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
35125 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35126 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35127 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35128 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35129 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
35130 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
35131 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
35132 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35133 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35134 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
35135 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
35136 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
35137 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
35138 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
35139 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
35140 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35141 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35142 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35143 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35144 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
35145 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
35146 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
35147 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
35148 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
35149 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
35150 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
35151 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35152 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35153 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35154 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
35155 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
35156 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
35157 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
35158 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
35159 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
35160 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
35161 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
35162 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
35163 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
35164 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
35165 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
35166 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
35167 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
35168 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
35169 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
35170 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
b39fe951 35171 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
1bd55598
RD
35172 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
35173 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
35174 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
35175 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
35176 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
35177 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
35178 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
35179 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
35180 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35181 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
35182 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
35183 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
35184 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
35185 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
35186 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
35187 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
35188 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
35189 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
35190 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35191 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
35192 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
35193 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
35194 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35195 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
35196 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
35197 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
35198 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
35199 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
35200 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35201 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
35202 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
35203 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
35204 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
35205 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
35206 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
b39fe951
RD
35207 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
35208 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
35209 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
35210 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
35211 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
35212 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
35213 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
35214 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
35215 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
8e99bda9 35216 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
35217 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
35218 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
35219 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
35220 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
1bd55598
RD
35221 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
35222 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
35223 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
35224 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
35225 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
35226 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
72ef6efb
RD
35227 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
35228 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
35229 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
1bd55598
RD
35230 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
35231 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
35232 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
35233 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
35234 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
35235 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
24f6c4e8
RD
35236 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
35237 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
35238 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
35239 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
35240 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
35241 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
35242 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
35243 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
35244 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
35245 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
35246 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
8e99bda9 35247 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
35248 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
35249 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
35250 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
35251 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
35252 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
35253 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
35254 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
35255 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
35256 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
35257 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
35258 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
35259 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
b39fe951 35260 { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL},
1bd55598
RD
35261 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
35262 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
35263 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
35264 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
35265 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
35266 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
35267 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
35268 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
35269 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
35270 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
35271 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
35272 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
35273 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
72ef6efb
RD
35274 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
35275 { (char *)"GraphicsPath_MoveToPoint", (PyCFunction) _wrap_GraphicsPath_MoveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35276 { (char *)"GraphicsPath_AddLineToPoint", (PyCFunction) _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35277 { (char *)"GraphicsPath_AddCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35278 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
35279 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
35280 { (char *)"GraphicsPath_AddArc", (PyCFunction) _wrap_GraphicsPath_AddArc, METH_VARARGS | METH_KEYWORDS, NULL},
35281 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35282 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35283 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
35284 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35285 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
35286 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
0a27f394
RD
35287 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
35288 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
35289 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
35290 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
35291 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
0a27f394 35292 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 35293 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
0a27f394
RD
35294 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
35295 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
72ef6efb
RD
35296 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
35297 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
35298 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
35299 { (char *)"GraphicsContext_SetPen", (PyCFunction) _wrap_GraphicsContext_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35300 { (char *)"GraphicsContext_SetBrush", (PyCFunction) _wrap_GraphicsContext_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35301 { (char *)"GraphicsContext_SetLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35302 { (char *)"GraphicsContext_SetRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35303 { (char *)"GraphicsContext_SetFont", (PyCFunction) _wrap_GraphicsContext_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
be68621e 35304 { (char *)"GraphicsContext_SetTextColour", (PyCFunction) _wrap_GraphicsContext_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
35305 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
35306 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
35307 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
35308 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
35309 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
be68621e 35310 { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
35311 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35312 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
35313 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35314 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35315 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 35316 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
f8eb59b9 35317 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
35318 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
35319 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35320 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
35321 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35322 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
35323 { (char *)"new_GCDC", (PyCFunction) _wrap_new_GCDC, METH_VARARGS | METH_KEYWORDS, NULL},
35324 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
0a27f394
RD
35325 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
35326 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
35327 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
35328 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
b39fe951
RD
35329 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
35330 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
35331 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
35332 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
35333 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
35334 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
35335 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
35336 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
35337 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
35338 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
1bd55598
RD
35339 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
35340 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
35341 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
35342 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
35343 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35344 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35345 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35346 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
35347 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
35348 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
35349 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
35350 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
35351 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
35352 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
35353 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
da91cb0f
RD
35354 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
35355 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
35356 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
35357 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
35358 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35359 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
35360 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
35361 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35362 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35363 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
35364 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
35365 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
35366 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
35367 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
35368 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
1bd55598 35369 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
da91cb0f 35370 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 35371 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 35372 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
1bd55598 35373 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
da91cb0f 35374 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 35375 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 35376 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
da91cb0f
RD
35377 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
35378 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
35379 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
35380 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
1bd55598
RD
35381 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
35382 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
35383 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
35384 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
35385 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
35386 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
35387 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
35388 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
da91cb0f
RD
35389 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
35390 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
35391 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
35392 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
1bd55598
RD
35393 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
35394 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
35395 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
35396 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
35397 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
35398 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
35399 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
35400 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
35401 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
35402 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
35403 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
35404 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35405 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
35406 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35407 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
35408 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
35409 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
35410 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
35411 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
35412 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
35413 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
35414 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
35415 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
33d6fd3b
RD
35416 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
35417 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
35418 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
35419 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
35420 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
35421 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
35422 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
35423 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
35424 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
35425 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
35426 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
35427 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
35428 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
35429 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
35430 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
35431 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
35432 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
35433 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
1bd55598
RD
35434 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
35435 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
35436 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
35437 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
35438 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
35439 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
35440 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
35441 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b
RD
35442 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
35443 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
35444 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
35445 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
35446 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
35447 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
35448 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
2131d850
RD
35449 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
35450 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
35451 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
35452 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
35453 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
35454 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
35455 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
35456 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35457 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
35458 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
27e45892
RD
35459 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
35460 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
35461 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
35462 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
35463 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
35464 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
35465 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
35466 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
35467 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
35468 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
35469 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
35470 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
35471 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
35472 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
35473 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
35474 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
35475 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
35476 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
35477 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
35478 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
35479 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
35480 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35481 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
35482 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35483 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
35484 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35485 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
35486 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35487 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
35488 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
35489 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
35490 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35491 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35492 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35493 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35494 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35495 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35496 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35497 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35498 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35499 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
35500 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35501 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
35502 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
35503 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35504 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35505 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35506 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35507 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35508 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
35509 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35510 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
35511 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35512 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
35513 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
35514 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35515 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35516 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
35517 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
35518 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35519 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35520 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35521 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35522 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
35523 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
35524 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
35525 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35526 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
35527 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
35528 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
1bd55598
RD
35529 { NULL, NULL, 0, NULL }
35530};
35531
35532
35533/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
35534
72ef6efb
RD
35535static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
35536 return (void *)((wxClientDC *) ((wxPaintDC *) x));
35537}
8e99bda9
RD
35538static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
35539 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
35540}
35541static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
35542 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
35543}
72ef6efb
RD
35544static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
35545 return (void *)((wxWindowDC *) ((wxClientDC *) x));
35546}
35547static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
35548 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
35549}
fc46b7f3
RD
35550static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
35551 return (void *)((wxLocale *) ((wxPyLocale *) x));
35552}
1bd55598
RD
35553static void *_p_wxIconTo_p_wxGDIObject(void *x) {
35554 return (void *)((wxGDIObject *) ((wxIcon *) x));
35555}
35556static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
35557 return (void *)((wxGDIObject *) ((wxPalette *) x));
35558}
35559static void *_p_wxPenTo_p_wxGDIObject(void *x) {
35560 return (void *)((wxGDIObject *) ((wxPen *) x));
35561}
35562static void *_p_wxFontTo_p_wxGDIObject(void *x) {
35563 return (void *)((wxGDIObject *) ((wxFont *) x));
35564}
35565static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
35566 return (void *)((wxGDIObject *) ((wxCursor *) x));
35567}
35568static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
35569 return (void *)((wxGDIObject *) ((wxBitmap *) x));
35570}
35571static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
35572 return (void *)((wxGDIObject *) ((wxRegion *) x));
35573}
35574static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
35575 return (void *)((wxGDIObject *) ((wxBrush *) x));
35576}
72ef6efb
RD
35577static void *_p_wxGCDCTo_p_wxDC(void *x) {
35578 return (void *)((wxDC *) ((wxGCDC *) x));
35579}
1bd55598
RD
35580static void *_p_wxScreenDCTo_p_wxDC(void *x) {
35581 return (void *)((wxDC *) ((wxScreenDC *) x));
35582}
24f6c4e8
RD
35583static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
35584 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
35585}
1bd55598
RD
35586static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
35587 return (void *)((wxDC *) ((wxMirrorDC *) x));
35588}
35589static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
35590 return (void *)((wxDC *) ((wxMemoryDC *) x));
35591}
35592static void *_p_wxWindowDCTo_p_wxDC(void *x) {
35593 return (void *)((wxDC *) ((wxWindowDC *) x));
35594}
35595static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
35596 return (void *)((wxDC *) ((wxMetaFileDC *) x));
35597}
1bd55598 35598static void *_p_wxClientDCTo_p_wxDC(void *x) {
72ef6efb 35599 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
1bd55598
RD
35600}
35601static void *_p_wxPaintDCTo_p_wxDC(void *x) {
72ef6efb 35602 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
1bd55598 35603}
24f6c4e8
RD
35604static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
35605 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
35606}
35607static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
35608 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
35609}
1bd55598
RD
35610static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
35611 return (void *)((wxDC *) ((wxPostScriptDC *) x));
35612}
35613static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
35614 return (void *)((wxDC *) ((wxPrinterDC *) x));
35615}
da91cb0f
RD
35616static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
35617 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
35618}
35619static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
35620 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
35621}
35622static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
35623 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
35624}
1bd55598
RD
35625static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
35626 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
35627}
35628static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
35629 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
35630}
35631static void *_p_wxPenTo_p_wxObject(void *x) {
35632 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
35633}
35634static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
35635 return (void *)((wxObject *) ((wxRegionIterator *) x));
35636}
1bd55598
RD
35637static void *_p_wxSizerItemTo_p_wxObject(void *x) {
35638 return (void *)((wxObject *) ((wxSizerItem *) x));
35639}
34e0a3bb
RD
35640static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
35641 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
35642}
1bd55598
RD
35643static void *_p_wxScrollEventTo_p_wxObject(void *x) {
35644 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
35645}
35646static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
35647 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
35648}
35649static void *_p_wxIconTo_p_wxObject(void *x) {
35650 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
35651}
35652static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
35653 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
35654}
35655static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
35656 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
35657}
35658static void *_p_wxSizerTo_p_wxObject(void *x) {
35659 return (void *)((wxObject *) ((wxSizer *) x));
35660}
35661static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
35662 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
35663}
35664static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
35665 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
35666}
1bd55598
RD
35667static void *_p_wxEventTo_p_wxObject(void *x) {
35668 return (void *)((wxObject *) ((wxEvent *) x));
35669}
35670static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
35671 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
35672}
35673static void *_p_wxGridSizerTo_p_wxObject(void *x) {
35674 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
35675}
35676static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
35677 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
35678}
27e45892
RD
35679static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
35680 return (void *)((wxObject *) ((wxPseudoDC *) x));
35681}
2131d850
RD
35682static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
35683 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
35684}
1bd55598
RD
35685static void *_p_wxPaintEventTo_p_wxObject(void *x) {
35686 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
35687}
35688static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
35689 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
35690}
35691static void *_p_wxDCTo_p_wxObject(void *x) {
35692 return (void *)((wxObject *) ((wxDC *) x));
35693}
35694static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
35695 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
35696}
35697static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
35698 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
35699}
35700static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
35701 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
35702}
35703static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
35704 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
35705}
35706static void *_p_wxControlTo_p_wxObject(void *x) {
35707 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
35708}
35709static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
35710 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
35711}
35712static void *_p_wxClientDCTo_p_wxObject(void *x) {
72ef6efb 35713 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
1bd55598
RD
35714}
35715static void *_p_wxFSFileTo_p_wxObject(void *x) {
35716 return (void *)((wxObject *) ((wxFSFile *) x));
35717}
35718static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
35719 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
35720}
35721static void *_p_wxRegionTo_p_wxObject(void *x) {
35722 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
35723}
35724static void *_p_wxPySizerTo_p_wxObject(void *x) {
35725 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
35726}
35727static void *_p_wxWindowDCTo_p_wxObject(void *x) {
35728 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
35729}
35730static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
35731 return (void *)((wxObject *) ((wxGDIObject *) x));
35732}
35733static void *_p_wxEffectsTo_p_wxObject(void *x) {
35734 return (void *)((wxObject *) ((wxEffects *) x));
35735}
35736static void *_p_wxPyEventTo_p_wxObject(void *x) {
35737 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
35738}
35739static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
35740 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
35741}
35742static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
35743 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
35744}
35745static void *_p_wxShowEventTo_p_wxObject(void *x) {
35746 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
35747}
35748static void *_p_wxMenuItemTo_p_wxObject(void *x) {
35749 return (void *)((wxObject *) ((wxMenuItem *) x));
35750}
35751static void *_p_wxDateEventTo_p_wxObject(void *x) {
35752 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
35753}
35754static void *_p_wxIdleEventTo_p_wxObject(void *x) {
35755 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
35756}
35757static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
35758 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
35759}
35760static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
35761 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
35762}
35763static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
35764 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
35765}
35766static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
35767 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
35768}
35769static void *_p_wxSizeEventTo_p_wxObject(void *x) {
35770 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
35771}
35772static void *_p_wxMoveEventTo_p_wxObject(void *x) {
35773 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
35774}
35775static void *_p_wxActivateEventTo_p_wxObject(void *x) {
35776 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
35777}
35778static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
35779 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
35780}
35781static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
35782 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
35783}
35784static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
35785 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
35786}
35787static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
35788 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
35789}
35790static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
35791 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
35792}
35793static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
35794 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
35795}
35796static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
35797 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
35798}
35799static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
35800 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
35801}
35802static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
35803 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
35804}
35805static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
35806 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
35807}
35808static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
35809 return (void *)((wxObject *) ((wxImageHandler *) x));
35810}
35811static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
35812 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
35813}
35814static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
35815 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
35816}
35817static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
35818 return (void *)((wxObject *) ((wxEvtHandler *) x));
35819}
34e0a3bb
RD
35820static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
35821 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
35822}
24f6c4e8
RD
35823static void *_p_wxPaintDCTo_p_wxObject(void *x) {
35824 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
35825}
1bd55598 35826static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
8e99bda9 35827 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
1bd55598 35828}
24f6c4e8
RD
35829static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
35830 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
1bd55598
RD
35831}
35832static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
35833 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
35834}
35835static void *_p_wxScreenDCTo_p_wxObject(void *x) {
35836 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
35837}
35838static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
35839 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
35840}
35841static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
35842 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
35843}
35844static void *_p_wxImageTo_p_wxObject(void *x) {
35845 return (void *)((wxObject *) ((wxImage *) x));
35846}
35847static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
35848 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
35849}
35850static void *_p_wxPaletteTo_p_wxObject(void *x) {
35851 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
35852}
35853static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
8e99bda9 35854 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
1bd55598
RD
35855}
35856static void *_p_wxImageListTo_p_wxObject(void *x) {
35857 return (void *)((wxObject *) ((wxImageList *) x));
35858}
72ef6efb
RD
35859static void *_p_wxGCDCTo_p_wxObject(void *x) {
35860 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
35861}
1bd55598
RD
35862static void *_p_wxCursorTo_p_wxObject(void *x) {
35863 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
35864}
35865static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
35866 return (void *)((wxObject *) ((wxEncodingConverter *) x));
35867}
35868static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
35869 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
35870}
35871static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
35872 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
35873}
35874static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
35875 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
35876}
35877static void *_p_wxKeyEventTo_p_wxObject(void *x) {
35878 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
35879}
35880static void *_p_wxWindowTo_p_wxObject(void *x) {
35881 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
35882}
35883static void *_p_wxMenuTo_p_wxObject(void *x) {
35884 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
35885}
35886static void *_p_wxMenuBarTo_p_wxObject(void *x) {
35887 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
35888}
35889static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
35890 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
35891}
1bd55598
RD
35892static void *_p_wxFileSystemTo_p_wxObject(void *x) {
35893 return (void *)((wxObject *) ((wxFileSystem *) x));
35894}
35895static void *_p_wxBitmapTo_p_wxObject(void *x) {
35896 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
35897}
35898static void *_p_wxMaskTo_p_wxObject(void *x) {
35899 return (void *)((wxObject *) ((wxMask *) x));
35900}
35901static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
35902 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
35903}
35904static void *_p_wxMenuEventTo_p_wxObject(void *x) {
35905 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
35906}
35907static void *_p_wxPyAppTo_p_wxObject(void *x) {
35908 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
35909}
35910static void *_p_wxCloseEventTo_p_wxObject(void *x) {
35911 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
35912}
35913static void *_p_wxMouseEventTo_p_wxObject(void *x) {
35914 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
35915}
35916static void *_p_wxEraseEventTo_p_wxObject(void *x) {
35917 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
35918}
35919static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
35920 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
35921}
35922static void *_p_wxCommandEventTo_p_wxObject(void *x) {
35923 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
35924}
35925static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
35926 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
35927}
35928static void *_p_wxFocusEventTo_p_wxObject(void *x) {
35929 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
35930}
35931static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
35932 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
35933}
35934static void *_p_wxFontTo_p_wxObject(void *x) {
35935 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
35936}
35937static void *_p_wxBrushTo_p_wxObject(void *x) {
35938 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
35939}
35940static void *_p_wxMetaFileTo_p_wxObject(void *x) {
35941 return (void *)((wxObject *) ((wxMetaFile *) x));
35942}
35943static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
35944 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
35945}
35946static void *_p_wxColourTo_p_wxObject(void *x) {
35947 return (void *)((wxObject *) ((wxColour *) x));
35948}
1bd55598
RD
35949static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
35950 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
35951}
35952static void *_p_wxValidatorTo_p_wxObject(void *x) {
35953 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
35954}
35955static void *_p_wxControlTo_p_wxWindow(void *x) {
35956 return (void *)((wxWindow *) ((wxControl *) x));
35957}
35958static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
35959 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
35960}
35961static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
35962 return (void *)((wxWindow *) ((wxMenuBar *) x));
35963}
fc46b7f3
RD
35964static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
35965 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
35966}
35967static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
35968 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
35969}
35970static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
1bd55598 35971static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
72ef6efb 35972static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
1bd55598
RD
35973static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
35974static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
35975static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
35976static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
35977static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
0a27f394 35978static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
fc46b7f3
RD
35979static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
35980static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
24f6c4e8 35981static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
1bd55598
RD
35982static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
35983static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
35984static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
35985static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
35986static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
fc46b7f3 35987static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
1bd55598 35988static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
72ef6efb 35989static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
1bd55598
RD
35990static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
35991static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
35992static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
35993static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
b39fe951 35994static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
1bd55598
RD
35995static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
35996static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
35997static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
35998static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
35999static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
36000static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
36001static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
72ef6efb 36002static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
da91cb0f 36003static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
1bd55598 36004static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
72ef6efb
RD
36005static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
36006static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
33d6fd3b 36007static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
1bd55598
RD
36008static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
36009static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
36010static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
36011static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
36012static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
36013static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
36014static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
36015static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
36016static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
36017static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
36018static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
36019static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
36020static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
36021static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
fc46b7f3
RD
36022static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
36023static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
1bd55598
RD
36024static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
36025static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
1bd55598 36026static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
34e0a3bb 36027static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
1bd55598
RD
36028static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
36029static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
36030static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
36031static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
36032static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
36033static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
36034static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
36035static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
36036static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
36037static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
36038static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
36039static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
2131d850 36040static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
1bd55598
RD
36041static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
36042static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
36043static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
36044static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
36045static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
36046static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
36047static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
36048static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
36049static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
36050static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
36051static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
36052static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
36053static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
36054static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
36055static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
36056static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
36057static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
36058static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
36059static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
36060static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
36061static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
36062static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
36063static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
1bd55598
RD
36064static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
36065static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
36066static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
36067static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
36068static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
36069static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
36070static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
24f6c4e8 36071static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
72ef6efb 36072static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
27e45892 36073static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
2131d850 36074static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
1bd55598
RD
36075static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
36076static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
36077static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
34e0a3bb 36078static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
1bd55598
RD
36079static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
36080static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
36081static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
36082static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
36083static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
36084static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
36085static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
36086static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
36087static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
36088static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
36089static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
36090static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
36091static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
36092static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
36093static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
36094static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
36095static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
36096static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
36097static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
36098static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
36099static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
36100static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
b39fe951 36101static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
1bd55598
RD
36102static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
36103static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
36104static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
36105static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
36106static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
fc46b7f3 36107static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
1bd55598 36108static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
72ef6efb 36109static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
1bd55598
RD
36110static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
36111static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
36112static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
27e45892 36113static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
1bd55598 36114static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
fc46b7f3 36115static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
1bd55598
RD
36116static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
36117static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
36118static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
36119static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
36120static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
36121static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
36122static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
36123static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
da91cb0f 36124static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
1bd55598
RD
36125static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
36126static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
36127static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
36128
36129static swig_type_info *swig_type_initial[] = {
fc46b7f3 36130 &_swigt__p_buffer,
1bd55598
RD
36131 &_swigt__p_char,
36132 &_swigt__p_double,
36133 &_swigt__p_form_ops_t,
36134 &_swigt__p_int,
36135 &_swigt__p_unsigned_char,
36136 &_swigt__p_unsigned_int,
36137 &_swigt__p_unsigned_long,
0a27f394 36138 &_swigt__p_void,
1bd55598
RD
36139 &_swigt__p_wxANIHandler,
36140 &_swigt__p_wxAcceleratorTable,
36141 &_swigt__p_wxActivateEvent,
fc46b7f3
RD
36142 &_swigt__p_wxAlphaPixelData,
36143 &_swigt__p_wxAlphaPixelData_Accessor,
24f6c4e8 36144 &_swigt__p_wxAutoBufferedPaintDC,
1bd55598
RD
36145 &_swigt__p_wxBMPHandler,
36146 &_swigt__p_wxBitmap,
36147 &_swigt__p_wxBoxSizer,
36148 &_swigt__p_wxBrush,
36149 &_swigt__p_wxBrushList,
36150 &_swigt__p_wxBufferedDC,
36151 &_swigt__p_wxBufferedPaintDC,
36152 &_swigt__p_wxCURHandler,
fc46b7f3 36153 &_swigt__p_wxChar,
1bd55598
RD
36154 &_swigt__p_wxChildFocusEvent,
36155 &_swigt__p_wxClientDC,
2131d850 36156 &_swigt__p_wxClipboardTextEvent,
1bd55598 36157 &_swigt__p_wxCloseEvent,
72ef6efb 36158 &_swigt__p_wxColor,
1bd55598
RD
36159 &_swigt__p_wxColour,
36160 &_swigt__p_wxColourDatabase,
36161 &_swigt__p_wxCommandEvent,
36162 &_swigt__p_wxContextMenuEvent,
36163 &_swigt__p_wxControl,
36164 &_swigt__p_wxControlWithItems,
36165 &_swigt__p_wxCursor,
36166 &_swigt__p_wxDC,
b39fe951 36167 &_swigt__p_wxDCOverlay,
1bd55598
RD
36168 &_swigt__p_wxDash,
36169 &_swigt__p_wxDateEvent,
36170 &_swigt__p_wxDisplayChangedEvent,
36171 &_swigt__p_wxDropFilesEvent,
36172 &_swigt__p_wxDuplexMode,
36173 &_swigt__p_wxEffects,
36174 &_swigt__p_wxEncodingConverter,
36175 &_swigt__p_wxEraseEvent,
36176 &_swigt__p_wxEvent,
36177 &_swigt__p_wxEvtHandler,
36178 &_swigt__p_wxFSFile,
36179 &_swigt__p_wxFileSystem,
36180 &_swigt__p_wxFlexGridSizer,
36181 &_swigt__p_wxFocusEvent,
36182 &_swigt__p_wxFont,
36183 &_swigt__p_wxFontList,
36184 &_swigt__p_wxFontMapper,
36185 &_swigt__p_wxGBSizerItem,
72ef6efb 36186 &_swigt__p_wxGCDC,
da91cb0f 36187 &_swigt__p_wxGDIObjListBase,
1bd55598
RD
36188 &_swigt__p_wxGDIObject,
36189 &_swigt__p_wxGIFHandler,
72ef6efb
RD
36190 &_swigt__p_wxGraphicsContext,
36191 &_swigt__p_wxGraphicsPath,
1bd55598
RD
36192 &_swigt__p_wxGridBagSizer,
36193 &_swigt__p_wxGridSizer,
33d6fd3b 36194 &_swigt__p_wxHeaderButtonParams,
1bd55598
RD
36195 &_swigt__p_wxICOHandler,
36196 &_swigt__p_wxIcon,
36197 &_swigt__p_wxIconBundle,
36198 &_swigt__p_wxIconLocation,
36199 &_swigt__p_wxIconizeEvent,
36200 &_swigt__p_wxIdleEvent,
36201 &_swigt__p_wxImage,
36202 &_swigt__p_wxImageHandler,
36203 &_swigt__p_wxImageList,
36204 &_swigt__p_wxIndividualLayoutConstraint,
36205 &_swigt__p_wxInitDialogEvent,
36206 &_swigt__p_wxJPEGHandler,
36207 &_swigt__p_wxKeyEvent,
36208 &_swigt__p_wxLanguageInfo,
36209 &_swigt__p_wxLayoutConstraints,
36210 &_swigt__p_wxLocale,
36211 &_swigt__p_wxMask,
36212 &_swigt__p_wxMaximizeEvent,
36213 &_swigt__p_wxMemoryDC,
36214 &_swigt__p_wxMenu,
36215 &_swigt__p_wxMenuBar,
36216 &_swigt__p_wxMenuEvent,
36217 &_swigt__p_wxMenuItem,
36218 &_swigt__p_wxMetaFile,
36219 &_swigt__p_wxMetaFileDC,
36220 &_swigt__p_wxMirrorDC,
36221 &_swigt__p_wxMouseCaptureChangedEvent,
34e0a3bb 36222 &_swigt__p_wxMouseCaptureLostEvent,
1bd55598
RD
36223 &_swigt__p_wxMouseEvent,
36224 &_swigt__p_wxMoveEvent,
36225 &_swigt__p_wxNativeEncodingInfo,
36226 &_swigt__p_wxNativeFontInfo,
fc46b7f3
RD
36227 &_swigt__p_wxNativePixelData,
36228 &_swigt__p_wxNativePixelData_Accessor,
1bd55598
RD
36229 &_swigt__p_wxNavigationKeyEvent,
36230 &_swigt__p_wxNcPaintEvent,
36231 &_swigt__p_wxNotifyEvent,
36232 &_swigt__p_wxObject,
b39fe951 36233 &_swigt__p_wxOverlay,
1bd55598
RD
36234 &_swigt__p_wxPCXHandler,
36235 &_swigt__p_wxPNGHandler,
36236 &_swigt__p_wxPNMHandler,
36237 &_swigt__p_wxPaintDC,
36238 &_swigt__p_wxPaintEvent,
36239 &_swigt__p_wxPalette,
36240 &_swigt__p_wxPaletteChangedEvent,
36241 &_swigt__p_wxPaperSize,
36242 &_swigt__p_wxPen,
36243 &_swigt__p_wxPenList,
fc46b7f3 36244 &_swigt__p_wxPixelDataBase,
1bd55598 36245 &_swigt__p_wxPoint,
72ef6efb 36246 &_swigt__p_wxPoint2D,
1bd55598
RD
36247 &_swigt__p_wxPostScriptDC,
36248 &_swigt__p_wxPrintData,
36249 &_swigt__p_wxPrinterDC,
27e45892 36250 &_swigt__p_wxPseudoDC,
1bd55598
RD
36251 &_swigt__p_wxPyApp,
36252 &_swigt__p_wxPyCommandEvent,
36253 &_swigt__p_wxPyEvent,
36254 &_swigt__p_wxPyFontEnumerator,
36255 &_swigt__p_wxPyImageHandler,
fc46b7f3 36256 &_swigt__p_wxPyLocale,
1bd55598
RD
36257 &_swigt__p_wxPySizer,
36258 &_swigt__p_wxPyValidator,
36259 &_swigt__p_wxQueryNewPaletteEvent,
36260 &_swigt__p_wxRect,
36261 &_swigt__p_wxRegion,
36262 &_swigt__p_wxRegionIterator,
36263 &_swigt__p_wxRendererNative,
36264 &_swigt__p_wxRendererVersion,
36265 &_swigt__p_wxScreenDC,
36266 &_swigt__p_wxScrollEvent,
36267 &_swigt__p_wxScrollWinEvent,
36268 &_swigt__p_wxSetCursorEvent,
36269 &_swigt__p_wxShowEvent,
36270 &_swigt__p_wxSize,
36271 &_swigt__p_wxSizeEvent,
36272 &_swigt__p_wxSizer,
36273 &_swigt__p_wxSizerItem,
36274 &_swigt__p_wxSplitterRenderParams,
36275 &_swigt__p_wxStaticBoxSizer,
36276 &_swigt__p_wxStdDialogButtonSizer,
da91cb0f 36277 &_swigt__p_wxStockGDI,
1bd55598
RD
36278 &_swigt__p_wxString,
36279 &_swigt__p_wxSysColourChangedEvent,
36280 &_swigt__p_wxTIFFHandler,
36281 &_swigt__p_wxUpdateUIEvent,
36282 &_swigt__p_wxValidator,
36283 &_swigt__p_wxWindow,
36284 &_swigt__p_wxWindowCreateEvent,
36285 &_swigt__p_wxWindowDC,
36286 &_swigt__p_wxWindowDestroyEvent,
36287 &_swigt__p_wxXPMHandler,
36288};
36289
fc46b7f3 36290static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
36291static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
36292static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
36293static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
36294static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
36295static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
36296static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
36297static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
0a27f394 36298static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
36299static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
36300static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 36301static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
36302static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
36303static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
36304static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
36305static 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}};
36306static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 36307static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb
RD
36308static 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}};
36309static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
36310static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
36311static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
36312static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 36313static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxAutoBufferedPaintDC, _p_wxAutoBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxDC, 0, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxDC, 0, 0},{0, 0, 0, 0}};
b39fe951 36314static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
36315static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
36316static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
36317static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
36318static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
36319static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
36320static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
36321static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 36322static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
da91cb0f 36323static 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 36324static 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
36325static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
36326static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
33d6fd3b 36327static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
36328static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
36329static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
36330static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
36331static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
36332static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
36333static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 36334static 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 36335static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
8e99bda9 36336static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxMemoryDC, 0, 0}, {&_swigt__p_wxMemoryDC, 0, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxMemoryDC, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
36337static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
36338static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
36339static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
36340static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
36341static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
36342static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
36343static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 36344static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 36345static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 36346static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
36347static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
36348static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
36349static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
36350static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
36351static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
36352static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
36353static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
36354static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
36355static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
36356static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
36357static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
36358static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 36359static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
36360static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
36361static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
36362static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36363static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36364static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36365static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36366static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
36367static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
36368static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
36369static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
36370static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
36371static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
36372static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
36373static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
36374static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
36375static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
36376static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
36377static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
36378static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
36379static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
36380static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
36381static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
36382static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
36383static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
36384static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
36385static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
36386static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
36387static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
36388static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
36389static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 36390static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 36391static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
27e45892 36392static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 36393static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
36394static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
36395static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
36396static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 36397static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
36398static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
36399static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
36400static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
36401static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
36402static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
36403static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
36404static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
36405static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
36406static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
36407static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
36408static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
36409static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
36410static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
36411static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
36412static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
36413static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
36414static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
36415static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
36416static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
36417static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
36418static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
36419static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 36420static 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_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_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxAutoBufferedPaintDC, _p_wxAutoBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_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 36421static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
36422static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
36423static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
36424static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
36425static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
36426static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 36427static 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 36428static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 36429static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
36430static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
36431static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
36432static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
27e45892 36433static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 36434static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 36435static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
36436static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
36437static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
36438static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
36439static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
36440static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
36441static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
36442static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
36443static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
da91cb0f 36444static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
36445static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
36446static 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 36447static 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
36448
36449static swig_cast_info *swig_cast_initial[] = {
fc46b7f3 36450 _swigc__p_buffer,
1bd55598
RD
36451 _swigc__p_char,
36452 _swigc__p_double,
36453 _swigc__p_form_ops_t,
36454 _swigc__p_int,
36455 _swigc__p_unsigned_char,
36456 _swigc__p_unsigned_int,
36457 _swigc__p_unsigned_long,
0a27f394 36458 _swigc__p_void,
1bd55598
RD
36459 _swigc__p_wxANIHandler,
36460 _swigc__p_wxAcceleratorTable,
36461 _swigc__p_wxActivateEvent,
fc46b7f3
RD
36462 _swigc__p_wxAlphaPixelData,
36463 _swigc__p_wxAlphaPixelData_Accessor,
24f6c4e8 36464 _swigc__p_wxAutoBufferedPaintDC,
1bd55598
RD
36465 _swigc__p_wxBMPHandler,
36466 _swigc__p_wxBitmap,
36467 _swigc__p_wxBoxSizer,
36468 _swigc__p_wxBrush,
36469 _swigc__p_wxBrushList,
36470 _swigc__p_wxBufferedDC,
36471 _swigc__p_wxBufferedPaintDC,
36472 _swigc__p_wxCURHandler,
fc46b7f3 36473 _swigc__p_wxChar,
1bd55598
RD
36474 _swigc__p_wxChildFocusEvent,
36475 _swigc__p_wxClientDC,
2131d850 36476 _swigc__p_wxClipboardTextEvent,
1bd55598 36477 _swigc__p_wxCloseEvent,
72ef6efb 36478 _swigc__p_wxColor,
1bd55598
RD
36479 _swigc__p_wxColour,
36480 _swigc__p_wxColourDatabase,
36481 _swigc__p_wxCommandEvent,
36482 _swigc__p_wxContextMenuEvent,
36483 _swigc__p_wxControl,
36484 _swigc__p_wxControlWithItems,
36485 _swigc__p_wxCursor,
36486 _swigc__p_wxDC,
b39fe951 36487 _swigc__p_wxDCOverlay,
1bd55598
RD
36488 _swigc__p_wxDash,
36489 _swigc__p_wxDateEvent,
36490 _swigc__p_wxDisplayChangedEvent,
36491 _swigc__p_wxDropFilesEvent,
36492 _swigc__p_wxDuplexMode,
36493 _swigc__p_wxEffects,
36494 _swigc__p_wxEncodingConverter,
36495 _swigc__p_wxEraseEvent,
36496 _swigc__p_wxEvent,
36497 _swigc__p_wxEvtHandler,
36498 _swigc__p_wxFSFile,
36499 _swigc__p_wxFileSystem,
36500 _swigc__p_wxFlexGridSizer,
36501 _swigc__p_wxFocusEvent,
36502 _swigc__p_wxFont,
36503 _swigc__p_wxFontList,
36504 _swigc__p_wxFontMapper,
36505 _swigc__p_wxGBSizerItem,
72ef6efb 36506 _swigc__p_wxGCDC,
da91cb0f 36507 _swigc__p_wxGDIObjListBase,
1bd55598
RD
36508 _swigc__p_wxGDIObject,
36509 _swigc__p_wxGIFHandler,
72ef6efb
RD
36510 _swigc__p_wxGraphicsContext,
36511 _swigc__p_wxGraphicsPath,
1bd55598
RD
36512 _swigc__p_wxGridBagSizer,
36513 _swigc__p_wxGridSizer,
33d6fd3b 36514 _swigc__p_wxHeaderButtonParams,
1bd55598
RD
36515 _swigc__p_wxICOHandler,
36516 _swigc__p_wxIcon,
36517 _swigc__p_wxIconBundle,
36518 _swigc__p_wxIconLocation,
36519 _swigc__p_wxIconizeEvent,
36520 _swigc__p_wxIdleEvent,
36521 _swigc__p_wxImage,
36522 _swigc__p_wxImageHandler,
36523 _swigc__p_wxImageList,
36524 _swigc__p_wxIndividualLayoutConstraint,
36525 _swigc__p_wxInitDialogEvent,
36526 _swigc__p_wxJPEGHandler,
36527 _swigc__p_wxKeyEvent,
36528 _swigc__p_wxLanguageInfo,
36529 _swigc__p_wxLayoutConstraints,
36530 _swigc__p_wxLocale,
36531 _swigc__p_wxMask,
36532 _swigc__p_wxMaximizeEvent,
36533 _swigc__p_wxMemoryDC,
36534 _swigc__p_wxMenu,
36535 _swigc__p_wxMenuBar,
36536 _swigc__p_wxMenuEvent,
36537 _swigc__p_wxMenuItem,
36538 _swigc__p_wxMetaFile,
36539 _swigc__p_wxMetaFileDC,
36540 _swigc__p_wxMirrorDC,
36541 _swigc__p_wxMouseCaptureChangedEvent,
34e0a3bb 36542 _swigc__p_wxMouseCaptureLostEvent,
1bd55598
RD
36543 _swigc__p_wxMouseEvent,
36544 _swigc__p_wxMoveEvent,
36545 _swigc__p_wxNativeEncodingInfo,
36546 _swigc__p_wxNativeFontInfo,
fc46b7f3
RD
36547 _swigc__p_wxNativePixelData,
36548 _swigc__p_wxNativePixelData_Accessor,
1bd55598
RD
36549 _swigc__p_wxNavigationKeyEvent,
36550 _swigc__p_wxNcPaintEvent,
36551 _swigc__p_wxNotifyEvent,
36552 _swigc__p_wxObject,
b39fe951 36553 _swigc__p_wxOverlay,
1bd55598
RD
36554 _swigc__p_wxPCXHandler,
36555 _swigc__p_wxPNGHandler,
36556 _swigc__p_wxPNMHandler,
36557 _swigc__p_wxPaintDC,
36558 _swigc__p_wxPaintEvent,
36559 _swigc__p_wxPalette,
36560 _swigc__p_wxPaletteChangedEvent,
36561 _swigc__p_wxPaperSize,
36562 _swigc__p_wxPen,
36563 _swigc__p_wxPenList,
fc46b7f3 36564 _swigc__p_wxPixelDataBase,
1bd55598 36565 _swigc__p_wxPoint,
72ef6efb 36566 _swigc__p_wxPoint2D,
1bd55598
RD
36567 _swigc__p_wxPostScriptDC,
36568 _swigc__p_wxPrintData,
36569 _swigc__p_wxPrinterDC,
27e45892 36570 _swigc__p_wxPseudoDC,
1bd55598
RD
36571 _swigc__p_wxPyApp,
36572 _swigc__p_wxPyCommandEvent,
36573 _swigc__p_wxPyEvent,
36574 _swigc__p_wxPyFontEnumerator,
36575 _swigc__p_wxPyImageHandler,
fc46b7f3 36576 _swigc__p_wxPyLocale,
1bd55598
RD
36577 _swigc__p_wxPySizer,
36578 _swigc__p_wxPyValidator,
36579 _swigc__p_wxQueryNewPaletteEvent,
36580 _swigc__p_wxRect,
36581 _swigc__p_wxRegion,
36582 _swigc__p_wxRegionIterator,
36583 _swigc__p_wxRendererNative,
36584 _swigc__p_wxRendererVersion,
36585 _swigc__p_wxScreenDC,
36586 _swigc__p_wxScrollEvent,
36587 _swigc__p_wxScrollWinEvent,
36588 _swigc__p_wxSetCursorEvent,
36589 _swigc__p_wxShowEvent,
36590 _swigc__p_wxSize,
36591 _swigc__p_wxSizeEvent,
36592 _swigc__p_wxSizer,
36593 _swigc__p_wxSizerItem,
36594 _swigc__p_wxSplitterRenderParams,
36595 _swigc__p_wxStaticBoxSizer,
36596 _swigc__p_wxStdDialogButtonSizer,
da91cb0f 36597 _swigc__p_wxStockGDI,
1bd55598
RD
36598 _swigc__p_wxString,
36599 _swigc__p_wxSysColourChangedEvent,
36600 _swigc__p_wxTIFFHandler,
36601 _swigc__p_wxUpdateUIEvent,
36602 _swigc__p_wxValidator,
36603 _swigc__p_wxWindow,
36604 _swigc__p_wxWindowCreateEvent,
36605 _swigc__p_wxWindowDC,
36606 _swigc__p_wxWindowDestroyEvent,
36607 _swigc__p_wxXPMHandler,
36608};
36609
36610
36611/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
36612
36613static swig_const_info swig_const_table[] = {
36614{0, 0, 0, 0.0, 0, 0}};
36615
36616#ifdef __cplusplus
36617}
36618#endif
36619/* -----------------------------------------------------------------------------
36620 * Type initialization:
36621 * This problem is tough by the requirement that no dynamic
36622 * memory is used. Also, since swig_type_info structures store pointers to
36623 * swig_cast_info structures and swig_cast_info structures store pointers back
36624 * to swig_type_info structures, we need some lookup code at initialization.
36625 * The idea is that swig generates all the structures that are needed.
36626 * The runtime then collects these partially filled structures.
36627 * The SWIG_InitializeModule function takes these initial arrays out of
36628 * swig_module, and does all the lookup, filling in the swig_module.types
36629 * array with the correct data and linking the correct swig_cast_info
36630 * structures together.
36631 *
36632 * The generated swig_type_info structures are assigned staticly to an initial
36633 * array. We just loop though that array, and handle each type individually.
36634 * First we lookup if this type has been already loaded, and if so, use the
36635 * loaded structure instead of the generated one. Then we have to fill in the
36636 * cast linked list. The cast data is initially stored in something like a
36637 * two-dimensional array. Each row corresponds to a type (there are the same
36638 * number of rows as there are in the swig_type_initial array). Each entry in
36639 * a column is one of the swig_cast_info structures for that type.
36640 * The cast_initial array is actually an array of arrays, because each row has
36641 * a variable number of columns. So to actually build the cast linked list,
36642 * we find the array of casts associated with the type, and loop through it
36643 * adding the casts to the list. The one last trick we need to do is making
36644 * sure the type pointer in the swig_cast_info struct is correct.
36645 *
36646 * First off, we lookup the cast->type name to see if it is already loaded.
36647 * There are three cases to handle:
36648 * 1) If the cast->type has already been loaded AND the type we are adding
36649 * casting info to has not been loaded (it is in this module), THEN we
36650 * replace the cast->type pointer with the type pointer that has already
36651 * been loaded.
36652 * 2) If BOTH types (the one we are adding casting info to, and the
36653 * cast->type) are loaded, THEN the cast info has already been loaded by
36654 * the previous module so we just ignore it.
36655 * 3) Finally, if cast->type has not already been loaded, then we add that
36656 * swig_cast_info to the linked list (because the cast->type) pointer will
36657 * be correct.
36658 * ----------------------------------------------------------------------------- */
36659
36660#ifdef __cplusplus
36661extern "C" {
36662#if 0
36663} /* c-mode */
36664#endif
36665#endif
36666
36667#if 0
36668#define SWIGRUNTIME_DEBUG
36669#endif
36670
36671SWIGRUNTIME void
36672SWIG_InitializeModule(void *clientdata) {
36673 size_t i;
36674 swig_module_info *module_head;
36675 static int init_run = 0;
36676
36677 clientdata = clientdata;
36678
36679 if (init_run) return;
36680 init_run = 1;
36681
36682 /* Initialize the swig_module */
36683 swig_module.type_initial = swig_type_initial;
36684 swig_module.cast_initial = swig_cast_initial;
36685
36686 /* Try and load any already created modules */
36687 module_head = SWIG_GetModule(clientdata);
36688 if (module_head) {
36689 swig_module.next = module_head->next;
36690 module_head->next = &swig_module;
36691 } else {
36692 /* This is the first module loaded */
36693 swig_module.next = &swig_module;
36694 SWIG_SetModule(clientdata, &swig_module);
36695 }
36696
36697 /* Now work on filling in swig_module.types */
36698#ifdef SWIGRUNTIME_DEBUG
36699 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
36700#endif
36701 for (i = 0; i < swig_module.size; ++i) {
36702 swig_type_info *type = 0;
36703 swig_type_info *ret;
36704 swig_cast_info *cast;
36705
36706#ifdef SWIGRUNTIME_DEBUG
36707 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
36708#endif
36709
36710 /* if there is another module already loaded */
36711 if (swig_module.next != &swig_module) {
36712 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
be9b1dca 36713 }
1bd55598
RD
36714 if (type) {
36715 /* Overwrite clientdata field */
36716#ifdef SWIGRUNTIME_DEBUG
36717 printf("SWIG_InitializeModule: found type %s\n", type->name);
36718#endif
36719 if (swig_module.type_initial[i]->clientdata) {
36720 type->clientdata = swig_module.type_initial[i]->clientdata;
36721#ifdef SWIGRUNTIME_DEBUG
36722 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
36723#endif
36724 }
36725 } else {
36726 type = swig_module.type_initial[i];
be9b1dca 36727 }
1bd55598
RD
36728
36729 /* Insert casting types */
36730 cast = swig_module.cast_initial[i];
36731 while (cast->type) {
36732 /* Don't need to add information already in the list */
36733 ret = 0;
36734#ifdef SWIGRUNTIME_DEBUG
36735 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
36736#endif
36737 if (swig_module.next != &swig_module) {
36738 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
36739#ifdef SWIGRUNTIME_DEBUG
36740 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
36741#endif
36742 }
36743 if (ret) {
36744 if (type == swig_module.type_initial[i]) {
36745#ifdef SWIGRUNTIME_DEBUG
36746 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
36747#endif
36748 cast->type = ret;
36749 ret = 0;
36750 } else {
36751 /* Check for casting already in the list */
36752 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
36753#ifdef SWIGRUNTIME_DEBUG
36754 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
36755#endif
36756 if (!ocast) ret = 0;
36757 }
36758 }
36759
36760 if (!ret) {
36761#ifdef SWIGRUNTIME_DEBUG
36762 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
36763#endif
36764 if (type->cast) {
36765 type->cast->prev = cast;
36766 cast->next = type->cast;
36767 }
36768 type->cast = cast;
36769 }
36770 cast++;
be9b1dca 36771 }
1bd55598
RD
36772 /* Set entry in modules->types array equal to the type */
36773 swig_module.types[i] = type;
36774 }
36775 swig_module.types[i] = 0;
36776
36777#ifdef SWIGRUNTIME_DEBUG
36778 printf("**** SWIG_InitializeModule: Cast List ******\n");
36779 for (i = 0; i < swig_module.size; ++i) {
36780 int j = 0;
36781 swig_cast_info *cast = swig_module.cast_initial[i];
36782 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
36783 while (cast->type) {
36784 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
36785 cast++;
36786 ++j;
36787 }
36788 printf("---- Total casts: %d\n",j);
36789 }
36790 printf("**** SWIG_InitializeModule: Cast List ******\n");
36791#endif
36792}
36793
36794/* This function will propagate the clientdata field of type to
36795* any new swig_type_info structures that have been added into the list
36796* of equivalent types. It is like calling
36797* SWIG_TypeClientData(type, clientdata) a second time.
36798*/
36799SWIGRUNTIME void
36800SWIG_PropagateClientData(void) {
36801 size_t i;
36802 swig_cast_info *equiv;
36803 static int init_run = 0;
36804
36805 if (init_run) return;
36806 init_run = 1;
36807
36808 for (i = 0; i < swig_module.size; i++) {
36809 if (swig_module.types[i]->clientdata) {
36810 equiv = swig_module.types[i]->cast;
36811 while (equiv) {
36812 if (!equiv->converter) {
36813 if (equiv->type && !equiv->type->clientdata)
36814 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
36815 }
36816 equiv = equiv->next;
36817 }
be9b1dca 36818 }
1bd55598
RD
36819 }
36820}
36821
36822#ifdef __cplusplus
36823#if 0
36824{
36825 /* c-mode */
36826#endif
36827}
36828#endif
36829
36830
36831
36832#ifdef __cplusplus
36833extern "C" {
36834#endif
36835
36836 /* Python-specific SWIG API */
36837#define SWIG_newvarlink() SWIG_Python_newvarlink()
36838#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
36839#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
36840
36841 /* -----------------------------------------------------------------------------
36842 * global variable support code.
36843 * ----------------------------------------------------------------------------- */
36844
36845 typedef struct swig_globalvar {
36846 char *name; /* Name of global variable */
36847 PyObject *(*get_attr)(void); /* Return the current value */
36848 int (*set_attr)(PyObject *); /* Set the value */
36849 struct swig_globalvar *next;
36850 } swig_globalvar;
36851
36852 typedef struct swig_varlinkobject {
36853 PyObject_HEAD
36854 swig_globalvar *vars;
36855 } swig_varlinkobject;
36856
36857 SWIGINTERN PyObject *
36858 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
36859 return PyString_FromString("<Swig global variables>");
36860 }
36861
36862 SWIGINTERN PyObject *
36863 swig_varlink_str(swig_varlinkobject *v) {
36864 PyObject *str = PyString_FromString("(");
36865 swig_globalvar *var;
36866 for (var = v->vars; var; var=var->next) {
36867 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
36868 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
36869 }
36870 PyString_ConcatAndDel(&str,PyString_FromString(")"));
36871 return str;
36872 }
36873
36874 SWIGINTERN int
36875 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
36876 PyObject *str = swig_varlink_str(v);
36877 fprintf(fp,"Swig global variables ");
36878 fprintf(fp,"%s\n", PyString_AsString(str));
36879 Py_DECREF(str);
36880 return 0;
36881 }
36882
36883 SWIGINTERN void
36884 swig_varlink_dealloc(swig_varlinkobject *v) {
36885 swig_globalvar *var = v->vars;
36886 while (var) {
36887 swig_globalvar *n = var->next;
36888 free(var->name);
36889 free(var);
36890 var = n;
be9b1dca 36891 }
1bd55598
RD
36892 }
36893
36894 SWIGINTERN PyObject *
36895 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
36896 PyObject *res = NULL;
36897 swig_globalvar *var = v->vars;
36898 while (var) {
36899 if (strcmp(var->name,n) == 0) {
36900 res = (*var->get_attr)();
36901 break;
36902 }
36903 var = var->next;
be9b1dca 36904 }
1bd55598
RD
36905 if (res == NULL && !PyErr_Occurred()) {
36906 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 36907 }
1bd55598
RD
36908 return res;
36909 }
36910
36911 SWIGINTERN int
36912 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
36913 int res = 1;
36914 swig_globalvar *var = v->vars;
36915 while (var) {
36916 if (strcmp(var->name,n) == 0) {
36917 res = (*var->set_attr)(p);
36918 break;
36919 }
36920 var = var->next;
be9b1dca 36921 }
1bd55598
RD
36922 if (res == 1 && !PyErr_Occurred()) {
36923 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 36924 }
1bd55598
RD
36925 return res;
36926 }
36927
36928 SWIGINTERN PyTypeObject*
36929 swig_varlink_type(void) {
36930 static char varlink__doc__[] = "Swig var link object";
36931 static PyTypeObject varlink_type;
36932 static int type_init = 0;
36933 if (!type_init) {
36934 const PyTypeObject tmp
36935 = {
36936 PyObject_HEAD_INIT(NULL)
36937 0, /* Number of items in variable part (ob_size) */
36938 (char *)"swigvarlink", /* Type name (tp_name) */
36939 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
36940 0, /* Itemsize (tp_itemsize) */
36941 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
36942 (printfunc) swig_varlink_print, /* Print (tp_print) */
36943 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
36944 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
36945 0, /* tp_compare */
36946 (reprfunc) swig_varlink_repr, /* tp_repr */
36947 0, /* tp_as_number */
36948 0, /* tp_as_sequence */
36949 0, /* tp_as_mapping */
36950 0, /* tp_hash */
36951 0, /* tp_call */
36952 (reprfunc)swig_varlink_str, /* tp_str */
36953 0, /* tp_getattro */
36954 0, /* tp_setattro */
36955 0, /* tp_as_buffer */
36956 0, /* tp_flags */
36957 varlink__doc__, /* tp_doc */
36958 0, /* tp_traverse */
36959 0, /* tp_clear */
36960 0, /* tp_richcompare */
36961 0, /* tp_weaklistoffset */
36962#if PY_VERSION_HEX >= 0x02020000
36963 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
36964#endif
36965#if PY_VERSION_HEX >= 0x02030000
36966 0, /* tp_del */
36967#endif
36968#ifdef COUNT_ALLOCS
36969 0,0,0,0 /* tp_alloc -> tp_next */
36970#endif
36971 };
36972 varlink_type = tmp;
36973 varlink_type.ob_type = &PyType_Type;
36974 type_init = 1;
be9b1dca 36975 }
1bd55598
RD
36976 return &varlink_type;
36977 }
36978
36979 /* Create a variable linking object for use later */
36980 SWIGINTERN PyObject *
36981 SWIG_Python_newvarlink(void) {
36982 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
36983 if (result) {
36984 result->vars = 0;
36985 }
36986 return ((PyObject*) result);
36987 }
36988
36989 SWIGINTERN void
36990 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
36991 swig_varlinkobject *v = (swig_varlinkobject *) p;
36992 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
36993 if (gv) {
36994 size_t size = strlen(name)+1;
36995 gv->name = (char *)malloc(size);
36996 if (gv->name) {
36997 strncpy(gv->name,name,size);
36998 gv->get_attr = get_attr;
36999 gv->set_attr = set_attr;
37000 gv->next = v->vars;
37001 }
be9b1dca 37002 }
1bd55598
RD
37003 v->vars = gv;
37004 }
37005
37006 SWIGINTERN PyObject *
37007 SWIG_globals() {
37008 static PyObject *_SWIG_globals = 0;
37009 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
37010 return _SWIG_globals;
37011 }
37012
37013 /* -----------------------------------------------------------------------------
37014 * constants/methods manipulation
37015 * ----------------------------------------------------------------------------- */
37016
37017 /* Install Constants */
37018 SWIGINTERN void
37019 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
37020 PyObject *obj = 0;
37021 size_t i;
37022 for (i = 0; constants[i].type; ++i) {
37023 switch(constants[i].type) {
37024 case SWIG_PY_POINTER:
37025 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
37026 break;
37027 case SWIG_PY_BINARY:
37028 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
37029 break;
37030 default:
37031 obj = 0;
37032 break;
37033 }
37034 if (obj) {
37035 PyDict_SetItemString(d, constants[i].name, obj);
37036 Py_DECREF(obj);
37037 }
be9b1dca 37038 }
1bd55598
RD
37039 }
37040
37041 /* -----------------------------------------------------------------------------*/
37042 /* Fix SwigMethods to carry the callback ptrs when needed */
37043 /* -----------------------------------------------------------------------------*/
37044
37045 SWIGINTERN void
37046 SWIG_Python_FixMethods(PyMethodDef *methods,
37047 swig_const_info *const_table,
37048 swig_type_info **types,
37049 swig_type_info **types_initial) {
37050 size_t i;
37051 for (i = 0; methods[i].ml_name; ++i) {
3d6c9062 37052 const char *c = methods[i].ml_doc;
1bd55598
RD
37053 if (c && (c = strstr(c, "swig_ptr: "))) {
37054 int j;
37055 swig_const_info *ci = 0;
3d6c9062 37056 const char *name = c + 10;
1bd55598
RD
37057 for (j = 0; const_table[j].type; ++j) {
37058 if (strncmp(const_table[j].name, name,
37059 strlen(const_table[j].name)) == 0) {
37060 ci = &(const_table[j]);
37061 break;
37062 }
37063 }
37064 if (ci) {
37065 size_t shift = (ci->ptype) - types;
37066 swig_type_info *ty = types_initial[shift];
37067 size_t ldoc = (c - methods[i].ml_doc);
37068 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
37069 char *ndoc = (char*)malloc(ldoc + lptr + 10);
37070 if (ndoc) {
37071 char *buff = ndoc;
37072 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
37073 if (ptr) {
37074 strncpy(buff, methods[i].ml_doc, ldoc);
37075 buff += ldoc;
37076 strncpy(buff, "swig_ptr: ", 10);
37077 buff += 10;
37078 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
37079 methods[i].ml_doc = ndoc;
37080 }
37081 }
37082 }
37083 }
be9b1dca 37084 }
1bd55598
RD
37085 }
37086
37087#ifdef __cplusplus
37088}
37089#endif
37090
37091/* -----------------------------------------------------------------------------*
37092 * Partial Init method
37093 * -----------------------------------------------------------------------------*/
37094
37095#ifdef __cplusplus
37096extern "C"
37097#endif
37098SWIGEXPORT void SWIG_init(void) {
37099 PyObject *m, *d;
37100
37101 /* Fix SwigMethods to carry the callback ptrs when needed */
37102 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
37103
37104 m = Py_InitModule((char *) SWIG_name, SwigMethods);
37105 d = PyModule_GetDict(m);
37106
37107 SWIG_InitializeModule(0);
37108 SWIG_InstallConstants(d,swig_const_table);
37109
37110
2131d850
RD
37111 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
37112 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
37113 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
fc46b7f3
RD
37114 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
37115 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
1bd55598
RD
37116 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
37117 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
37118 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
37119 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
37120 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
37121 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
37122 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
37123 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
37124 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
37125 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
37126 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
37127 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
37128 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
37129 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
37130 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
37131 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
37132 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
37133 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
37134 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
37135 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
37136 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
37137 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
37138 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
37139 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
37140 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
37141 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
37142 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
37143 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
37144 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
37145 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
37146 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
37147 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
37148 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
37149 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
37150 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
37151 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
37152 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
37153 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
37154 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
37155 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
37156 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
37157 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
37158 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
37159 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
37160 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
37161 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
37162 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
37163 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
37164 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
37165 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
37166 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
37167 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
37168 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
37169 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
37170 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
37171 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
37172 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
37173 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
37174 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
37175 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
37176 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
37177 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
37178 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
37179 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
37180 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
37181 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
37182 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
37183 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
37184 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
37185 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
37186 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
37187 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
37188 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
37189 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
37190 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
37191 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
37192 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
37193 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
37194 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
37195 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
37196 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
37197 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
37198 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
37199 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
37200 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
37201 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
37202 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
37203 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
37204 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
37205 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
37206 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
37207 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
37208 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
37209 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
37210 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
37211 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
37212 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
37213 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
37214 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
37215 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
37216 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
37217 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
37218 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
37219 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
37220 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
37221 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
37222 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
37223 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
37224 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
37225 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
37226 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
37227 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
37228 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
37229 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
37230 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
37231 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
37232 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
37233 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
37234 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
37235 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
37236 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
37237 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
37238 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
37239 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
37240 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
37241 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
37242 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
37243
37244 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
37245
37246 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
37247 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
37248 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
37249 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
37250 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
37251 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
37252 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
37253 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
37254 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
37255 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
37256 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
37257 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
37258 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
37259 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
37260 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
37261 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
37262 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
37263 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
37264 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
37265 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
37266 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
37267 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
37268 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
37269 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
37270 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
37271 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
37272 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
37273 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
37274 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
37275 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
37276 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
37277 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
37278 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
37279 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
37280 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
37281 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
37282 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
37283 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
37284 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
37285 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
37286 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
37287 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
37288 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
37289 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
37290 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
37291 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
37292 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
37293 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
37294 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
37295 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
37296 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
37297 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
37298 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
37299 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
37300 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
37301 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
37302 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
37303 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
37304 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
37305 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
37306 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
37307 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
37308 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
37309 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
37310 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
37311 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
37312 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
37313 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
37314 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
37315 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
37316 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
37317 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
37318 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
37319 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
37320 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
37321 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
37322 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
37323 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
37324 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
37325 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
37326 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
37327 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
37328 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
37329 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
37330 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
37331 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
37332 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
37333 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
37334 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
37335 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
37336 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
37337 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
37338 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
37339 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
37340 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
37341 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
37342 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
37343 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
37344 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
37345 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
37346 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
37347 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
37348 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
37349 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
37350 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
37351 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
37352 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
37353 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
37354 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
37355 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
37356 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
37357 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
37358 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
37359 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
37360 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
37361 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
37362 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
37363 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
37364 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
37365 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
37366 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
37367 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
37368 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
37369 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
37370 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
37371 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
37372 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
37373 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
37374 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
37375 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
37376 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
37377 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
37378 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
37379 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
37380 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
37381 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
37382 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
37383 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
37384 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
37385 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
37386 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
37387 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
37388 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
37389 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
37390 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
37391 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
37392 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
37393 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
37394 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
37395 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
37396 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
37397 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
37398 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
37399 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
37400 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
37401 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
37402 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
37403 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
37404 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
37405 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
37406 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
37407 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
37408 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
37409 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
37410 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
37411 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
37412 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
37413 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
37414 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
37415 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
37416 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
37417 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
37418 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
37419 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
37420 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
37421 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
37422 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
37423 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
37424 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
37425 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
37426 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
37427 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
37428 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
37429 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
37430 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
37431 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
37432 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
37433 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
37434 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
37435 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
37436 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
37437 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
37438 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
37439 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
37440 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
37441 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
37442 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
37443 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
37444 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
37445 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
37446 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
37447 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
37448 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
37449 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
37450 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
37451 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
37452 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
37453 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
37454 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
37455 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
37456 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
37457 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
37458 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
37459 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
37460 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
37461 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
37462 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
37463 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
37464 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
37465 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
37466 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
37467 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
37468 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
37469 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
37470 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
37471 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
37472 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
37473 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
37474 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
37475 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
37476 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
37477 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
37478 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
37479 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
37480 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
37481 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
37482 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
37483 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
37484 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
37485 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
37486 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
37487 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
37488 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
37489 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
37490 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
37491 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
37492 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
37493 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
37494 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
37495 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
37496 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
37497 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
37498 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
37499 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
37500 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
da91cb0f
RD
37501 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
37502 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
37503 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
37504 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
37505 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
37506 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
37507 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
37508 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
37509 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
37510 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
37511 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
37512 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
37513 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
37514 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
37515 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
37516 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
37517 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
37518 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
37519 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
37520 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
37521 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
37522 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
37523 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
37524 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
37525 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
37526 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
37527 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
37528 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
37529 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
37530 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
37531 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
37532 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
37533 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
37534 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
37535 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
1bd55598 37536 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
1bd55598
RD
37537 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
37538 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
37539 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
37540 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
37541 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
37542 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
37543 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
37544 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
1bd55598
RD
37545 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
37546 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
37547 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
79df624a 37548 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
1bd55598
RD
37549 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
37550 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
37551 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
79df624a 37552 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
1bd55598
RD
37553 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
37554 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
37555 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
37556 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
37557 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
37558 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
37559 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
33d6fd3b
RD
37560 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
37561 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
37562 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
1bd55598
RD
37563 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
37564 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
37565
37566 // Work around a chicken/egg problem in drawlist.cpp
37567 wxPyDrawList_SetAPIPtr();
37568
d55e5bfc
RD
37569}
37570